Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CacheModes = []CacheMode{KeyringFilesystemFallback, ForcedKeyringCacheMode, ForcedFilesystemCacheMode, NoCacheCacheMode}
Functions ¶
func AddTokenCacheModeFlag ¶ added in v1.64.0
func DisplayAllAgents ¶
Types ¶
type CachedToken ¶ added in v1.78.0
type CachedToken struct {
ID string
AgentID int64
GitLabURL string
Token *gitlab.PersonalAccessToken
Source string
FilePath string // For filesystem tokens (optional)
Expired bool // For list command
Revoked bool // For list command
}
CachedToken represents a cached agent token
func FilterByAgents ¶ added in v1.78.0
func FilterByAgents(tokens []CachedToken, agents []int64) []CachedToken
FilterByAgents filters a slice of cached tokens by agent IDs
Click to show internal directories.
Click to hide internal directories.