reviewer

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: 5 Imported by: 0

Documentation

Overview

Kubernetes client id reviewer.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotAuthenticated = errors.New("not authenticated")
)

Functions

This section is empty.

Types

type Options

type Options struct {
	Audiences []string
}

type Reviewer

type Reviewer interface {
	Review(context.Context, string) error
}

func New

func New(rev TokenReviewCreator, opts *Options) Reviewer

type TokenReviewCreator

type TokenReviewCreator interface {
	Create(context.Context, *authv1.TokenReview, metav1.CreateOptions) (*authv1.TokenReview, error)
}

TokenReviewCreator is a subset of k8s.io/client-go/kubernetes/typed/authentication/v1.TokenReviewInterface that allows for easier interface fulfillment such as by github.com/rstudio/k8s-http-auth/reviewer/local.TokenReviewCreator and github.com/rstudio/k8s-http-auth/reviewer/memory.TokenReviewCreator. In typical production usage, this interface is satisfied by (*k8s.io/client-go/kubernetes.Clientset).AuthenticationV1().TokenReviews().

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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