Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
func GenerateToken(opts *TokenProviderOptions, name string, expiresIn int64) (string, error)
GenerateToken generate a token for the account with the specified name. expiresIn specify the duration before the token will expire; by default: no expiration.
Types ¶
type TokenProvider ¶
type TokenProvider interface { CreateSession(username, password string) (string, error) CreateTokenForAccount(name string) (string, error) SetAuthToken(token string) }
TokenProvider defines an interface for interaction with an Argo CD server.
func NewTokenProvider ¶
func NewTokenProvider(opts *TokenProviderOptions) (TokenProvider, error)
NewTokenProvider creates a new ArgoCD token provider from a set of config options.
Click to show internal directories.
Click to hide internal directories.