tokenreview

package
v0.0.0-...-d2452cb Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is the server that implements the AuthorizationServer interface. Server issues TokenReview requests to the Kubernetes API server for a set of requested paths.

func NewServer

func NewServer(config *tokenreview.Config, client kubernetes.Interface) *Server

NewServer creates a new Server.

func (*Server) Check

func (s *Server) Check(ctx context.Context, request *authv3.CheckRequest) (*authv3.CheckResponse, error)

Check the request and return a response. If the TokenReview request is successful, the request is allowed and the UserInfo is set on the request metadata. If the TokenReview request is not successful, the request is denied.

Jump to

Keyboard shortcuts

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