kube

package
v0.2.0-alpha.13 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT 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