Help us shape the future of Go! Take the 2026 Go Developer Survey

fakeworkloadapi

package
v1.14.9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeRequest added in v1.6.0

type FakeRequest struct {
	Req  proto.Message
	Resp proto.Message
	Err  error
}

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) FetchJWTSVID

func (*WorkloadAPI) FetchX509SVID

Jump to

Keyboard shortcuts

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