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

Function SetInstanceID

auth/context.go:75–77  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

73}
74
75func SetInstanceID(ctx context.Context, id string) context.Context {
76 return context.WithValue(ctx, instanceIDKey, id)
77}
78
79func InstanceID(ctx context.Context) string {
80 elem := ctx.Value(instanceIDKey)

Callers 1

PopulateInstanceContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected