workload

package
v0.0.0-...-a678cb8 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = status.Errorf(codes.Unimplemented, "Under Construction")

Functions

This section is empty.

Types

type Config

type Config struct {
	TrustDomain spiffeid.TrustDomain
	Log         *zap.Logger
}

type Handler

type Handler struct {
	workload.UnsafeSpiffeWorkloadAPIServer
	// contains filtered or unexported fields
}

Handler implements the Workload API interface

func New

func New(c Config) *Handler

func (*Handler) FetchJWTBundles

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. In case of multiple fetched SVIDs with same hint, the SVID that has the oldest associated entry will be returned.

func (*Handler) FetchX509Bundles

FetchX509Bundles processes request for x509 bundles

func (*Handler) FetchX509SVID

FetchX509SVID processes request for a x509 SVID. In case of multiple fetched SVIDs with same hint, the SVID that has the oldest associated entry will be returned.

func (*Handler) ValidateJWTSVID

ValidateJWTSVID processes request for JWT-SVID validation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL