Documentation ¶
Index ¶
- func RegisterService(s grpc.ServiceRegistrar, service *Service)
- type Config
- type Service
- func (s *Service) AppendBundle(ctx context.Context, req *bundlev1.AppendBundleRequest) (*types.Bundle, error)
- func (s *Service) BatchCreateFederatedBundle(ctx context.Context, req *bundlev1.BatchCreateFederatedBundleRequest) (*bundlev1.BatchCreateFederatedBundleResponse, error)
- func (s *Service) BatchDeleteFederatedBundle(ctx context.Context, req *bundlev1.BatchDeleteFederatedBundleRequest) (*bundlev1.BatchDeleteFederatedBundleResponse, error)
- func (s *Service) BatchSetFederatedBundle(ctx context.Context, req *bundlev1.BatchSetFederatedBundleRequest) (*bundlev1.BatchSetFederatedBundleResponse, error)
- func (s *Service) BatchUpdateFederatedBundle(ctx context.Context, req *bundlev1.BatchUpdateFederatedBundleRequest) (*bundlev1.BatchUpdateFederatedBundleResponse, error)
- func (s *Service) CountBundles(ctx context.Context, _ *bundlev1.CountBundlesRequest) (*bundlev1.CountBundlesResponse, error)
- func (s *Service) GetBundle(ctx context.Context, req *bundlev1.GetBundleRequest) (*types.Bundle, error)
- func (s *Service) GetFederatedBundle(ctx context.Context, req *bundlev1.GetFederatedBundleRequest) (*types.Bundle, error)
- func (s *Service) ListFederatedBundles(ctx context.Context, req *bundlev1.ListFederatedBundlesRequest) (*bundlev1.ListFederatedBundlesResponse, error)
- func (s *Service) PublishJWTAuthority(ctx context.Context, req *bundlev1.PublishJWTAuthorityRequest) (*bundlev1.PublishJWTAuthorityResponse, error)
- type UpstreamPublisher
- type UpstreamPublisherFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterService ¶
func RegisterService(s grpc.ServiceRegistrar, service *Service)
RegisterService registers the bundle service on the gRPC server.
Types ¶
type Config ¶
type Config struct { DataStore datastore.DataStore TrustDomain spiffeid.TrustDomain UpstreamPublisher UpstreamPublisher }
Config defines the bundle service configuration.
type Service ¶
type Service struct { bundlev1.UnsafeBundleServer // contains filtered or unexported fields }
Service defines the v1 bundle service properties.
func (*Service) AppendBundle ¶
func (s *Service) AppendBundle(ctx context.Context, req *bundlev1.AppendBundleRequest) (*types.Bundle, error)
AppendBundle appends the given authorities to the given bundlev1.
func (*Service) BatchCreateFederatedBundle ¶
func (s *Service) BatchCreateFederatedBundle(ctx context.Context, req *bundlev1.BatchCreateFederatedBundleRequest) (*bundlev1.BatchCreateFederatedBundleResponse, error)
BatchCreateFederatedBundle adds one or more bundles to the server.
func (*Service) BatchDeleteFederatedBundle ¶
func (s *Service) BatchDeleteFederatedBundle(ctx context.Context, req *bundlev1.BatchDeleteFederatedBundleRequest) (*bundlev1.BatchDeleteFederatedBundleResponse, error)
BatchDeleteFederatedBundle removes one or more bundles from the server.
func (*Service) BatchSetFederatedBundle ¶
func (s *Service) BatchSetFederatedBundle(ctx context.Context, req *bundlev1.BatchSetFederatedBundleRequest) (*bundlev1.BatchSetFederatedBundleResponse, error)
BatchSetFederatedBundle upserts one or more bundles in the server.
func (*Service) BatchUpdateFederatedBundle ¶
func (s *Service) BatchUpdateFederatedBundle(ctx context.Context, req *bundlev1.BatchUpdateFederatedBundleRequest) (*bundlev1.BatchUpdateFederatedBundleResponse, error)
BatchUpdateFederatedBundle updates one or more bundles in the server.
func (*Service) CountBundles ¶ added in v1.0.0
func (s *Service) CountBundles(ctx context.Context, _ *bundlev1.CountBundlesRequest) (*bundlev1.CountBundlesResponse, error)
CountBundles returns the total number of bundles.
func (*Service) GetBundle ¶
func (s *Service) GetBundle(ctx context.Context, req *bundlev1.GetBundleRequest) (*types.Bundle, error)
GetBundle returns the bundle associated with the given trust domain.
func (*Service) GetFederatedBundle ¶
func (s *Service) GetFederatedBundle(ctx context.Context, req *bundlev1.GetFederatedBundleRequest) (*types.Bundle, error)
GetFederatedBundle returns the bundle associated with the given trust domain.
func (*Service) ListFederatedBundles ¶
func (s *Service) ListFederatedBundles(ctx context.Context, req *bundlev1.ListFederatedBundlesRequest) (*bundlev1.ListFederatedBundlesResponse, error)
ListFederatedBundles returns an optionally paginated list of federated bundles.
func (*Service) PublishJWTAuthority ¶
func (s *Service) PublishJWTAuthority(ctx context.Context, req *bundlev1.PublishJWTAuthorityRequest) (*bundlev1.PublishJWTAuthorityResponse, error)
PublishJWTAuthority published the JWT key on the server.
type UpstreamPublisher ¶
type UpstreamPublisher interface {
PublishJWTKey(ctx context.Context, jwtKey *common.PublicKey) ([]*common.PublicKey, error)
}
UpstreamPublisher defines the publisher interface.
type UpstreamPublisherFunc ¶
type UpstreamPublisherFunc func(ctx context.Context, jwtKey *common.PublicKey) ([]*common.PublicKey, error)
UpstreamPublisherFunc defines the function.
func (UpstreamPublisherFunc) PublishJWTKey ¶
func (fn UpstreamPublisherFunc) PublishJWTKey(ctx context.Context, jwtKey *common.PublicKey) ([]*common.PublicKey, error)
PublishJWTKey publishes the JWT key with the given function.