config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdLine

type CmdLine struct {
	ContextName string
	IdpUrl      string
	ClientId    string
	NewUsername string
}

func LoadCmdArgs

func LoadCmdArgs(args []string, console io.Writer) (*CmdLine, error)

type Oidc

type Oidc struct {
	ClientId     string
	Token        string
	IdpUrl       string
	RefreshToken string
}

func (*Oidc) ToAuthInfo

func (o *Oidc) ToAuthInfo() *api.AuthInfo

type OidcRequest

type OidcRequest struct {
	ClientId string
	IdpUrl   string
}

func LoadOidcConfig

func LoadOidcConfig(cmdline *CmdLine, k8sConfig *api.Config) (*OidcRequest, string, error)

func (*OidcRequest) GenerateUsername

func (o *OidcRequest) GenerateUsername() string

Jump to

Keyboard shortcuts

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