Documentation ¶
Index ¶
- type FakeRequest
- type WorkloadAPI
- func (w *WorkloadAPI) Addr() net.Addr
- func (w *WorkloadAPI) FetchJWTBundles(req *workload.JWTBundlesRequest, ...) error
- func (w *WorkloadAPI) FetchJWTSVID(_ context.Context, req *workload.JWTSVIDRequest) (*workload.JWTSVIDResponse, error)
- func (w *WorkloadAPI) FetchX509SVID(req *workload.X509SVIDRequest, ...) error
- func (w *WorkloadAPI) ValidateJWTSVID(_ context.Context, req *workload.ValidateJWTSVIDRequest) (*workload.ValidateJWTSVIDResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeRequest ¶ added in v1.6.0
type WorkloadAPI ¶
type WorkloadAPI struct { workload.UnimplementedSpiffeWorkloadAPIServer ExpFetchJWTSVIDReq *workload.JWTSVIDRequest ExpFetchJWTBundlesReq *workload.JWTBundlesRequest // contains filtered or unexported fields }
func New ¶
func New(t *testing.T, responses ...*FakeRequest) *WorkloadAPI
func (*WorkloadAPI) Addr ¶
func (w *WorkloadAPI) Addr() net.Addr
func (*WorkloadAPI) FetchJWTBundles ¶
func (w *WorkloadAPI) FetchJWTBundles(req *workload.JWTBundlesRequest, stream workload.SpiffeWorkloadAPI_FetchJWTBundlesServer) error
func (*WorkloadAPI) FetchJWTSVID ¶
func (w *WorkloadAPI) FetchJWTSVID(_ context.Context, req *workload.JWTSVIDRequest) (*workload.JWTSVIDResponse, error)
func (*WorkloadAPI) FetchX509SVID ¶
func (w *WorkloadAPI) FetchX509SVID(req *workload.X509SVIDRequest, stream workload.SpiffeWorkloadAPI_FetchX509SVIDServer) error
func (*WorkloadAPI) ValidateJWTSVID ¶
func (w *WorkloadAPI) ValidateJWTSVID(_ context.Context, req *workload.ValidateJWTSVIDRequest) (*workload.ValidateJWTSVIDResponse, error)
Click to show internal directories.
Click to hide internal directories.