MCPcopy Create free account
hub / github.com/cloudbase/garm / SetInstanceTokenFetched

Function SetInstanceTokenFetched

auth/context.go:87–89  ·  view source on GitHub ↗
(ctx context.Context, fetched bool)

Source from the content-addressed store, hash-verified

85}
86
87func SetInstanceTokenFetched(ctx context.Context, fetched bool) context.Context {
88 return context.WithValue(ctx, instanceTokenFetched, fetched)
89}
90
91func InstanceTokenFetched(ctx context.Context) bool {
92 elem := ctx.Value(instanceTokenFetched)

Calls

no outgoing calls