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

Function SetInstanceIsAgent

auth/context.go:51–53  ·  view source on GitHub ↗
(ctx context.Context, val bool)

Source from the content-addressed store, hash-verified

49)
50
51func SetInstanceIsAgent(ctx context.Context, val bool) context.Context {
52 return context.WithValue(ctx, instanceIsAgent, val)
53}
54
55func InstanceIsAgent(ctx context.Context) bool {
56 elem := ctx.Value(instanceIsAgent)

Callers 1

PopulateInstanceContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected