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

Function InstanceID

auth/context.go:79–85  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

77}
78
79func InstanceID(ctx context.Context) string {
80 elem := ctx.Value(instanceIDKey)
81 if elem == nil {
82 return ""
83 }
84 return elem.(string)
85}
86
87func SetInstanceTokenFetched(ctx context.Context, fetched bool) context.Context {
88 return context.WithValue(ctx, instanceTokenFetched, fetched)

Callers 2

MiddlewareMethod · 0.85
MiddlewareMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected