Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet( wire.Struct(new(Repository), "*"), wire.Bind(new(Interface), new(*Repository)), )
Set provides an implementation and interface for Kubeconfig.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { FindByKey(dir string, key Key) (*TokenCache, error) Save(dir string, key Key, cache TokenCache) error }
type Repository ¶
type Repository struct{}
Repository provides access to the token cache on the local filesystem. Filename of a token cache is sha256 digest of the issuer, zero-character and client ID.
func (*Repository) FindByKey ¶
func (r *Repository) FindByKey(dir string, key Key) (*TokenCache, error)
func (*Repository) Save ¶
func (r *Repository) Save(dir string, key Key, cache TokenCache) error
type TokenCache ¶
type TokenCache struct { IDToken string `json:"id_token,omitempty"` RefreshToken string `json:"refresh_token,omitempty"` }
TokenCache represents a token cache.
Directories ¶
Path | Synopsis |
---|---|
Package mock_tokencache is a generated GoMock package.
|
Package mock_tokencache is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.