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.
Click to show internal directories.
Click to hide internal directories.