Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheAlert ¶
type CacheAlert struct {
// contains filtered or unexported fields
}
CacheAlert is a tokenLoadStorer that detects when a token's subject for a different cluster is changing, and produces a warning over an appropriate communication channel.
type FileContents ¶
type Keyring ¶
type Keyring struct {
// contains filtered or unexported fields
}
Keyring stores a JWT token on the user's keyring via the OS-specific keyring mechanism of the current platform.
type LoadStorer ¶
type LoadStorer interface {
Load(context.Context, string) (*oauth2.Token, error)
Store(context.Context, string, *oauth2.Token) error
}
func NewCacheAlert ¶
func NewCacheAlert(impl LoadStorer, stderr io.Writer) LoadStorer
func NewKeyring ¶
func NewKeyring() (LoadStorer, error)
Click to show internal directories.
Click to hide internal directories.