cache

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetCacheFactory

func SetCacheFactory(cache Cache)

Types

type Cache

type Cache interface {
	Tokens() TokenCache
	Close()
}

func CacheFactory

func CacheFactory() Cache

type TokenCache

type TokenCache interface {
	Set(ctx context.Context, token string, opts *v1.CreateOptions) error
	Get(ctx context.Context, token string, opts *v1.GetOptions) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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