envtest

package
v0.0.0-...-275021d Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IanvsAssets = env.GetString("IANVS_ASSETS", "/data/projects/kube-ianvs/testbin/bin")
)

Functions

func DefaultKubeAPIServerFlags

func DefaultKubeAPIServerFlags() []string

DefaultKubeAPIServerFlags comment lint rebel

func NewHTTPClientFetcher

func NewHTTPClientFetcher() (c oidc.CodeFetcher)

NewHTTPClientFetcher comment lint rebel

func PollURLUntilOK

func PollURLUntilOK(httpClient *http.Client, url url.URL, interval time.Duration, ready chan bool, stopCh StopChannel)

PollURLUntilOK comment lint rebel

Types

type CallbackServer

type CallbackServer struct {
	Code chan string
	// contains filtered or unexported fields
}

CallbackServer comment lint rebel

type Dex

type Dex struct {
	ClientID      string
	OidcIssuer    string
	RedirectURI   string
	ConfigPath    string
	Host          string
	Port          int
	TelemetryPort int
	// contains filtered or unexported fields
}

Dex comment lint rebel

func (*Dex) GetIDToken

func (d *Dex) GetIDToken() (rawIDToken string, err error)

GetIDToken comment lint rebel

func (*Dex) InitConfigFile

func (d *Dex) InitConfigFile() (err error)

InitKubeConfigFile comment lint rebel

func (*Dex) Start

func (d *Dex) Start() (err error)

Start comment lint rebel

func (*Dex) Stop

func (d *Dex) Stop()

Stop comment lint rebel

type Environment

type Environment struct {
	envtest.Environment
	Dex                   Dex
	APIServerToken        string
	KubeConfigTestingPath string
	RawIDToken            string
	Config                *rest.Config
}

Environment comment lint rebel

func (*Environment) InitKubeConfigFile

func (e *Environment) InitKubeConfigFile() (err error)

InitKubeConfigFile comment lint rebel

func (*Environment) InitTokenCsv

func (e *Environment) InitTokenCsv() (err error)

InitTokenCsv comment lint rebel

func (*Environment) Start

func (e *Environment) Start() (err error)

Start comment lint rebel

type HTTPClientFetcher

type HTTPClientFetcher struct {
	oidc.CodeFetcher
}

HTTPClientFetcher comment lint rebel

func (*HTTPClientFetcher) Fetch

func (f *HTTPClientFetcher) Fetch(a *oidc.App) (code string)

Fetch comment lint rebel

type StopChannel

type StopChannel chan struct{}

StopChannel comment lint rebel

Jump to

Keyboard shortcuts

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