Documentation ¶
Index ¶
- type Attestor
- type Config
- type Handler
- func (h *Handler) FetchJWTBundles(req *workload.JWTBundlesRequest, ...) error
- func (h *Handler) FetchJWTSVID(ctx context.Context, req *workload.JWTSVIDRequest) (resp *workload.JWTSVIDResponse, err error)
- func (h *Handler) FetchX509Bundles(_ *workload.X509BundlesRequest, ...) error
- func (h *Handler) FetchX509SVID(_ *workload.X509SVIDRequest, ...) error
- func (h *Handler) ValidateJWTSVID(ctx context.Context, req *workload.ValidateJWTSVIDRequest) (*workload.ValidateJWTSVIDResponse, error)
- type Manager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.12.0
type Config struct { Manager Manager Attestor Attestor AllowUnauthenticatedVerifiers bool AllowedForeignJWTClaims map[string]struct{} TrustDomain spiffeid.TrustDomain }
Handler implements the Workload API interface
type Handler ¶
type Handler struct { workload.UnsafeSpiffeWorkloadAPIServer // contains filtered or unexported fields }
func (*Handler) FetchJWTBundles ¶
func (h *Handler) FetchJWTBundles(req *workload.JWTBundlesRequest, stream workload.SpiffeWorkloadAPI_FetchJWTBundlesServer) error
FetchJWTBundles processes request for JWT bundles
func (*Handler) FetchJWTSVID ¶
func (h *Handler) FetchJWTSVID(ctx context.Context, req *workload.JWTSVIDRequest) (resp *workload.JWTSVIDResponse, err error)
FetchJWTSVID processes request for a JWT-SVID
func (*Handler) FetchX509Bundles ¶ added in v1.0.0
func (h *Handler) FetchX509Bundles(_ *workload.X509BundlesRequest, stream workload.SpiffeWorkloadAPI_FetchX509BundlesServer) error
FetchX509Bundles processes request for x509 bundles
func (*Handler) FetchX509SVID ¶
func (h *Handler) FetchX509SVID(_ *workload.X509SVIDRequest, stream workload.SpiffeWorkloadAPI_FetchX509SVIDServer) error
FetchX509SVID processes request for an x509 SVID
func (*Handler) ValidateJWTSVID ¶
func (h *Handler) ValidateJWTSVID(ctx context.Context, req *workload.ValidateJWTSVIDRequest) (*workload.ValidateJWTSVIDResponse, error)
ValidateJWTSVID processes request for JWT-SVID validation
type Manager ¶ added in v0.12.0
type Manager interface { SubscribeToCacheChanges(ctx context.Context, key cache.Selectors) (cache.Subscriber, error) MatchingRegistrationEntries(selectors []*common.Selector) []*common.RegistrationEntry FetchJWTSVID(ctx context.Context, spiffeID spiffeid.ID, audience []string) (*client.JWTSVID, error) FetchWorkloadUpdate([]*common.Selector) *cache.WorkloadUpdate }
Click to show internal directories.
Click to hide internal directories.