server

package
v0.0.0-...-15099dc Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClusterIDNotFound = errors.New("clusterID not found")

Functions

func New

func New(listener net.Listener, mgr manager.Manager, logger logr.Logger) *server

Types

type AuthenticatedUser

type AuthenticatedUser struct {
	UID               string
	Name              string
	Groups            []string
	ServiceAccountRef client.ObjectKey
	WorkloadGroupRef  client.ObjectKey
}

func AuthenticateToken

func AuthenticateToken(ctx context.Context, c client.Client, token string) (*AuthenticatedUser, error)

type NASPTokenAudience

type NASPTokenAudience string

func (NASPTokenAudience) Generate

func (a NASPTokenAudience) Generate(ref client.ObjectKey) string

func (NASPTokenAudience) Parse

func (NASPTokenAudience) String

func (a NASPTokenAudience) String() string

func (NASPTokenAudience) Valid

func (a NASPTokenAudience) Valid() bool

Jump to

Keyboard shortcuts

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