kubernetesk8s.io/kubernetes/pkg/auth/group Index | Files

package group

import "k8s.io/kubernetes/pkg/auth/group"

Index

Functions

func NewGroupAdder

func NewGroupAdder(auth authenticator.Request, groups []string) authenticator.Request

NewGroupAdder wraps a request authenticator, and adds the specified groups to the returned user when authentication succeeds

Types

type GroupAdder

type GroupAdder struct {
	// Authenticator is delegated to make the authentication decision
	Authenticator authenticator.Request
	// Groups are additional groups to add to the user.Info from a successful authentication
	Groups []string
}

GroupAdder adds groups to an authenticated user.Info

func (*GroupAdder) AuthenticateRequest

func (g *GroupAdder) AuthenticateRequest(req *http.Request) (user.Info, bool, error)

Source Files

group_adder.go

Version
v1.5.3
Published
Feb 15, 2017
Platform
js/wasm
Imports
3 packages
Last checked
22 seconds ago

Tools for package owners.