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
Click to show internal directories.
Click to hide internal directories.