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

Method ExpiresIn

params/github.go:399–405  ·  view source on GitHub ↗
(t time.Duration)

Source from the content-addressed store, hash-verified

397}
398
399func (a RunnerScaleSetSession) ExpiresIn(t time.Duration) bool {
400 remaining, err := a.TimeRemaining()
401 if err != nil {
402 return true
403 }
404 return remaining <= t
405}
406
407type RunnerScaleSetMessage struct {
408 MessageID int64 `json:"messageId"`

Callers 2

maybeRefreshTokenMethod · 0.45
ensureAdminInfoMethod · 0.45

Calls 1

TimeRemainingMethod · 0.95

Tested by

no test coverage detected