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

Function Expires

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

Source from the content-addressed store, hash-verified

231}
232
233func Expires(ctx context.Context) *time.Time {
234 elem := ctx.Value(authExpiresFlag)
235 if elem == nil {
236 return nil
237 }
238 return elem.(*time.Time)
239}
240
241func SetPasswordGeneration(ctx context.Context, val uint) context.Context {
242 return context.WithValue(ctx, passwordGenerationFlag, val)

Callers 1

clientWriterMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected