pkg

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperatorParams

type OperatorParams struct {
	KubeCfgPath       string
	ClientConfig      clientcmd.ClientConfig
	NewKubeClient     func() (kubernetes.Interface, error)
	NewOperatorClient func() (*versioned.Clientset, error)
}

OperatorParams stores the configs for interacting with kube api

func (*OperatorParams) GetClientConfig

func (params *OperatorParams) GetClientConfig() (clientcmd.ClientConfig, error)

GetClientConfig gets ClientConfig from KubeCfgPath

func (*OperatorParams) Initialize

func (params *OperatorParams) Initialize() error

Initialize generate the clientset for params

func (*OperatorParams) RestConfig

func (params *OperatorParams) RestConfig() (*rest.Config, error)

RestConfig returns REST config, which can be to use to create specific clientset

Directories

Path Synopsis
command
ui

Jump to

Keyboard shortcuts

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