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

Function InstanceTokenFetched

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

Source from the content-addressed store, hash-verified

89}
90
91func InstanceTokenFetched(ctx context.Context) bool {
92 elem := ctx.Value(instanceTokenFetched)
93 if elem == nil {
94 return false
95 }
96 return elem.(bool)
97}
98
99func SetInstanceHasJITConfig(ctx context.Context, cfg map[string]string) context.Context {
100 return context.WithValue(ctx, instanceHasJITConfig, len(cfg) > 0)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected