kube

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetaNamespaceKey

func MetaNamespaceKey(obj interface{}) string

Types

type K8sAPI

type K8sAPI struct {
	*rest.Config
	Client           kubernetes.Interface
	EventClient      v1core.EventsGetter
	DynamicClient    dynamic.Interface
	DiscoveryClient  discovery.DiscoveryInterface
	FlomeshClient    flomesh.Interface
	ExtensionsClient extensionsClientset.Interface
}

func NewAPI

func NewAPI(timeout time.Duration) (*K8sAPI, error)

func NewAPIForConfig

func NewAPIForConfig(config *rest.Config, timeout time.Duration) (*K8sAPI, error)

func NewAPIForConfigOrDie

func NewAPIForConfigOrDie(config *rest.Config, timeout time.Duration) (*K8sAPI, error)

func NewAPIForContext

func NewAPIForContext(kubeContext string, timeout time.Duration) (*K8sAPI, error)

Jump to

Keyboard shortcuts

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