Documentation
¶
Index ¶
- func RegisterService(s *grpc.Server, service *Service)
- type BundleRefresher
- 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 {
// 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 (*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.