Documentation
¶
Index ¶
- Variables
- type Interface
- type Repository
- func (r *Repository) DeleteAll(config tokencache.Config) error
- func (r *Repository) FindByKey(config tokencache.Config, key tokencache.Key) (*oidc.TokenSet, error)
- func (r *Repository) Lock(config tokencache.Config, key tokencache.Key) (io.Closer, error)
- func (r *Repository) Save(config tokencache.Config, key tokencache.Key, tokenSet oidc.TokenSet) error
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(config tokencache.Config, key tokencache.Key) (*oidc.TokenSet, error)
Save(config tokencache.Config, key tokencache.Key, tokenSet oidc.TokenSet) error
Lock(config tokencache.Config, key tokencache.Key) (io.Closer, error)
DeleteAll(config tokencache.Config) 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) DeleteAll ¶ added in v1.32.0
func (r *Repository) DeleteAll(config tokencache.Config) error
func (*Repository) FindByKey ¶
func (r *Repository) FindByKey(config tokencache.Config, key tokencache.Key) (*oidc.TokenSet, error)
func (*Repository) Lock ¶ added in v1.30.0
func (r *Repository) Lock(config tokencache.Config, key tokencache.Key) (io.Closer, error)
func (*Repository) Save ¶
func (r *Repository) Save(config tokencache.Config, key tokencache.Key, tokenSet oidc.TokenSet) error
Click to show internal directories.
Click to hide internal directories.