kubernetes

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientFactory

type ClientFactory interface {
	// GetSTDClient gets the Kubernetes standard client (pods, services...).
	GetSTDClient() (kubernetes.Interface, error)
	// GetCRDClient gets the Kubernetes client for the CRDs described in this application.
	GetCRDClient() (crdcli.Interface, error)
	// GetAPIExtensionClient gets the Kubernetes api extensions client (crds...).
	GetAPIExtensionClient() (apiextensionscli.Interface, error)
}

ClientFactory knows how to get Kubernetes clients.

func NewFactory

func NewFactory(config *rest.Config) ClientFactory

NewFactory returns a new kubernetes client factory.

func NewFake

func NewFake() ClientFactory

NewFake returns the faked Kubernetes clients factory.

Jump to

Keyboard shortcuts

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