client

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	KubeConfig  string  `json:"kubeConfig"`
	ClientQPS   float32 `json:"clientQPS"`
	ClientBurst int     `json:"clientBurst"`
}

func NewFactoryConfig

func NewFactoryConfig() *Config

NewFactoryConfig returns factory configuration.

func (*Config) AddFlags

func (cfg *Config) AddFlags(fs *pflag.FlagSet)

func (*Config) Validate

func (cfg *Config) Validate() error

type Factory

type Factory interface {
	AddFlags(flags *pflag.FlagSet)

	KahuClient() (clientset.Interface, error)

	KubeClient() (kubernetes.Interface, error)

	DynamicClient() (dynamic.Interface, error)

	ClientConfig() (*rest.Config, error)
}

func NewFactory

func NewFactory(agentBaseName string, cfg *Config) Factory

NewFactory returns a Factory.

Directories

Path Synopsis
clientset
versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
versioned/typed/kahu/v1beta1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
versioned/typed/kahu/v1beta1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
informers
listers

Jump to

Keyboard shortcuts

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