trustdomain

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 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.Server, service *Service)

RegisterService registers the trustdomain service on the gRPC server.

Types

type BundleRefresher

type BundleRefresher interface {
	RefreshBundleFor(ctx context.Context, td spiffeid.TrustDomain) (bool, error)
}

BundleRefresher defines the bundle refresher interface.

type BundleRefresherFunc

type BundleRefresherFunc func(ctx context.Context, td spiffeid.TrustDomain) (bool, error)

BundleRefresherFunc defines the function.

func (BundleRefresherFunc) RefreshBundleFor

func (fn BundleRefresherFunc) RefreshBundleFor(ctx context.Context, td spiffeid.TrustDomain) (bool, error)

RefreshBundleFor refreshes the trust domain bundle for the given trust domain. If the trust domain is not managed by the manager, false is returned.

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