MCPcopy
hub / github.com/kagent-dev/kagent / FetchActorTokenFunc

FuncType FetchActorTokenFunc

go/adk/pkg/sts/integration.go:24–24  ·  view source on GitHub ↗

FetchActorTokenFunc is a function type for fetching actor tokens dynamically. This can be used for scenarios where the actor token needs to be fetched at runtime rather than being a static Kubernetes service account token.

func(ctx context.Context) (string, error)

Source from the content-addressed store, hash-verified

22// This can be used for scenarios where the actor token needs to be fetched
23// at runtime rather than being a static Kubernetes service account token.
24type FetchActorTokenFunc func(ctx context.Context) (string, error)
25
26// STSIntegration provides framework-agnostic STS integration.
27// It wires together the STS client, actor token service, and subject token extraction.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected