kubernetes

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// GetClientSet returns the ClientSet for future use
	GetClientSet() kubernetes.Interface
	// GetConfig returns the *rest.Config for future use
	GetConfig() (*rest.Config, error)
	// ApplyOrDeleteYAML applies or delete the yaml content to/from the target cluster
	ApplyOrDeleteYAML(yamlStr string, delete bool) error
}

Client provides methods to interact with a Kubernetes API server

func NewKubernetesClient

func NewKubernetesClient(kubeconfigPath string, kubeconfigContent string, inCluster bool) (Client, error)

NewKubernetesClient returns a client struct based on the kubeconfig path

Jump to

Keyboard shortcuts

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