Documentation
¶
Index ¶
- func RegisterService(s *grpc.Server, service *Service)
- type BundleRefresher
- type BundleRefresherFunc
- type Config
- type Service
- func (s *Service) BatchCreateFederationRelationship(ctx context.Context, ...) (*trustdomainv1.BatchCreateFederationRelationshipResponse, error)
- func (s *Service) BatchDeleteFederationRelationship(ctx context.Context, ...) (*trustdomainv1.BatchDeleteFederationRelationshipResponse, error)
- func (s *Service) BatchUpdateFederationRelationship(ctx context.Context, ...) (*trustdomainv1.BatchUpdateFederationRelationshipResponse, error)
- func (s *Service) GetFederationRelationship(ctx context.Context, req *trustdomainv1.GetFederationRelationshipRequest) (*types.FederationRelationship, error)
- func (s *Service) ListFederationRelationships(ctx context.Context, req *trustdomainv1.ListFederationRelationshipsRequest) (*trustdomainv1.ListFederationRelationshipsResponse, error)
- func (s *Service) RefreshBundle(ctx context.Context, req *trustdomainv1.RefreshBundleRequest) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterService ¶
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 ¶
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 (*Service) BatchCreateFederationRelationship ¶
func (s *Service) BatchCreateFederationRelationship(ctx context.Context, req *trustdomainv1.BatchCreateFederationRelationshipRequest) (*trustdomainv1.BatchCreateFederationRelationshipResponse, error)
func (*Service) BatchDeleteFederationRelationship ¶
func (s *Service) BatchDeleteFederationRelationship(ctx context.Context, req *trustdomainv1.BatchDeleteFederationRelationshipRequest) (*trustdomainv1.BatchDeleteFederationRelationshipResponse, error)
func (*Service) BatchUpdateFederationRelationship ¶
func (s *Service) BatchUpdateFederationRelationship(ctx context.Context, req *trustdomainv1.BatchUpdateFederationRelationshipRequest) (*trustdomainv1.BatchUpdateFederationRelationshipResponse, error)
func (*Service) GetFederationRelationship ¶
func (s *Service) GetFederationRelationship(ctx context.Context, req *trustdomainv1.GetFederationRelationshipRequest) (*types.FederationRelationship, error)
func (*Service) ListFederationRelationships ¶
func (s *Service) ListFederationRelationships(ctx context.Context, req *trustdomainv1.ListFederationRelationshipsRequest) (*trustdomainv1.ListFederationRelationshipsResponse, error)
func (*Service) RefreshBundle ¶
func (s *Service) RefreshBundle(ctx context.Context, req *trustdomainv1.RefreshBundleRequest) (*emptypb.Empty, error)
Click to show internal directories.
Click to hide internal directories.