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

Method IsExpired

params/github.go:383–388  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

381}
382
383func (a RunnerScaleSetSession) IsExpired() bool {
384 if exp, err := a.ExiresAt(); err == nil {
385 return time.Now().UTC().After(exp)
386 }
387 return true
388}
389
390func (a RunnerScaleSetSession) TimeRemaining() (time.Duration, error) {
391 exp, err := a.ExiresAt()

Callers

nothing calls this directly

Calls 1

ExiresAtMethod · 0.95

Tested by

no test coverage detected