local

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenReviewCreator

type TokenReviewCreator struct {
	// contains filtered or unexported fields
}

TokenReviewCreator fulfills the TokenReviewCreator interface that is expected to be typically fulfilled by k8s.io/client-go/kubernetes/typed/authentication/v1.TokenReviewInterface.

func New

func New(basePath string) (*TokenReviewCreator, error)

func (*TokenReviewCreator) Create

type TokenReviewDB

type TokenReviewDB struct {
	// contains filtered or unexported fields
}

TokenReviewDB allows direct access to the diskv-based database used by the local TokenReviewCreator.

func NewDB

func NewDB(basePath string) (*TokenReviewDB, error)

func (*TokenReviewDB) Get

func (trc *TokenReviewDB) Get(token string, audiences []string) (*authv1.TokenReview, error)

func (*TokenReviewDB) Put

func (trc *TokenReviewDB) Put(token string, audiences []string) error

Jump to

Keyboard shortcuts

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