users

package
v0.0.0-...-9bbed00 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUser

func GetUser(ctx context.Context) *userapi.User

func Logout

func Logout(ctx context.Context)

func SetUser

func SetUser(ctx context.Context, user *userapi.User)

Types

type NamespaceMapper

type NamespaceMapper interface {
	NamespaceForUserID(userID string) string
}

type NamespacePerUser

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

func (*NamespacePerUser) NamespaceForUserID

func (m *NamespacePerUser) NamespaceForUserID(userID string) string

type SingleNamespaceMapper

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

func NewSingleNamespaceMapper

func NewSingleNamespaceMapper(ns string) *SingleNamespaceMapper

func (*SingleNamespaceMapper) NamespaceForUserID

func (m *SingleNamespaceMapper) NamespaceForUserID(userID string) string

type UserComponent

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

func NewUserComponent

func NewUserComponent(kube *kubeclient.Client, namespaceMapper NamespaceMapper) (*UserComponent, error)

func (*UserComponent) AddToScope

func (c *UserComponent) AddToScope(ctx context.Context, scope *scopes.Scope)

func (*UserComponent) LoadUser

func (c *UserComponent) LoadUser(ctx context.Context, userID string) (*userapi.User, error)

func (*UserComponent) MapToUser

func (c *UserComponent) MapToUser(ctx context.Context, token *oauth2.Token, info *components.AuthenticationInfo) (*userapi.User, error)

func (*UserComponent) ProcessRequest

func (*UserComponent) RegisterHandlers

func (c *UserComponent) RegisterHandlers(s *components.Server, mux *http.ServeMux) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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