initialization

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Initializer

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

Initializer provides a way to install the k8s-pixy-auth binary as well as set up kube config with the auth exec information

func NewDefaultInitializer

func NewDefaultInitializer() *Initializer

NewDefaultInitializer constructs an initializer with default setup

func (*Initializer) InstallBinary

func (init *Initializer) InstallBinary() (string, error)

InstallBinary creates the ~/.k8s-pixy-auth/bin folder if it does not exist and copies the currently running binary to that location. It will return the absolute path of the installed binary.

func (*Initializer) UpdateKubeConfig

func (init *Initializer) UpdateKubeConfig(contextName, binaryLocation string, issuer auth.Issuer, useIDToken, withRefreshToken bool, port uint16) error

UpdateKubeConfig updates the provided context in kube config with the k8s-pixy-auth exec information

Jump to

Keyboard shortcuts

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