tokencache

package
v1.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Set provides an implementation and interface for Kubeconfig.

Functions

This section is empty.

Types

type Interface added in v1.14.3

type Interface interface {
	FindByKey(dir string, key Key) (*oidc.TokenSet, error)
	Save(dir string, key Key, tokenSet oidc.TokenSet) error
}

type Key added in v1.14.3

type Key struct {
	IssuerURL      string
	ClientID       string
	ClientSecret   string
	Username       string
	ExtraScopes    []string
	CACertFilename string
	CACertData     string
	SkipTLSVerify  bool
}

Key represents a key of a token cache.

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) (*oidc.TokenSet, error)

func (*Repository) Save

func (r *Repository) Save(dir string, key Key, tokenSet oidc.TokenSet) error

Directories

Path Synopsis
Package mock_tokencache is a generated GoMock package.
Package mock_tokencache is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL