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

Function SetIsEnabled

auth/context.go:268–270  ·  view source on GitHub ↗

SetIsEnabled sets a flag indicating if account is enabled

(ctx context.Context, enabled bool)

Source from the content-addressed store, hash-verified

266
267// SetIsEnabled sets a flag indicating if account is enabled
268func SetIsEnabled(ctx context.Context, enabled bool) context.Context {
269 return context.WithValue(ctx, isEnabledFlag, enabled)
270}
271
272// IsEnabled returns the a boolean indicating if the enabled flag is
273// set and is true or false

Callers 2

PopulateContextFunction · 0.85
GetAdminContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected