trustdomain

package
v1.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService

func RegisterService(s grpc.ServiceRegistrar, service *Service)

RegisterService registers the trustdomain service on the gRPC server.

Types

type BundleRefresher

type BundleRefresher interface {
	// TriggerConfigReload triggers the refresher to reload it's configuration
	TriggerConfigReload()

	// RefreshBundleFor refreshes the bundle for the given trust domain.
	RefreshBundleFor(ctx context.Context, td spiffeid.TrustDomain) (bool, error)
}

BundleRefresher is used by the service to refresh bundles.

type Config

type Config struct {
	DataStore       datastore.DataStore
	TrustDomain     spiffeid.TrustDomain
	BundleRefresher BundleRefresher
}

Config is the service configuration.

type Service

type Service struct {
	trustdomainv1.UnsafeTrustDomainServer
	// contains filtered or unexported fields
}

Service implements the v1 trustdomain service.

func New

func New(config Config) *Service

New creates a new trustdomain service.

func (*Service) RefreshBundle

func (s *Service) RefreshBundle(ctx context.Context, req *trustdomainv1.RefreshBundleRequest) (*emptypb.Empty, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL