tokencache

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.32.0

type Config struct {
	// Directory is a path to the directory to store a token cache.
	// Note that a lock file is created into this directory even if the keyring is used.
	Directory string

	Storage Storage
}

Config represents a configuration for the token cache.

type Key

type Key struct {
	Provider        oidc.Provider
	TLSClientConfig tlsclientconfig.Config
	Username        string
}

Key represents a key of a token cache.

type Storage added in v1.32.0

type Storage byte

Storage is an enum of different storage strategies.

const (
	// StorageDisk will only store cached keys on disk.
	StorageDisk Storage = iota
	// StorageDisk will only store cached keys in the OS keyring.
	StorageKeyring
	// StorageNone will not store cached keys.
	StorageNone
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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