Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheAlert ¶
type CacheAlert struct {
LoadStorer
// 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 FakeTokenStore ¶ added in v0.0.3
FakeTokenStore is a test implementation of LoadStorer that stores tokens in memory instead of the system keychain.
func NewFakeTokenStore ¶ added in v0.0.3
func NewFakeTokenStore() *FakeTokenStore
func (*FakeTokenStore) Delete ¶ added in v0.0.3
func (f *FakeTokenStore) Delete(ctx context.Context, cluster string) error
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
Delete(context.Context, string) 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.