connect

package
v0.0.0-...-ed127e3 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_NAMESPACE_NAME    = "default"
	DEFAULT_AUTH_INFO         = "default"
	DEFAULT_CLUSTER_NAME      = "default-cluster"
	DEFAULT_CONTEXT_NAME      = "default-context"
	CLIENT_CONFIG_KIND        = "Config"
	CLIENT_CONFIG_API_VERSION = "v1"
	TEMPORARY_FILE_DIR        = "/tmp"
	KUBE_CONFIG_FILE_NAME     = "config"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeConnection

type KubeConnection struct {
	KubeConfig     *rest.Config
	KubeConfigPath string
	Error          error
}

func ConnectToCluster

func ConnectToCluster(clusterConfig config.ClusterConfig, logger *logrus.Logger) *KubeConnection

Jump to

Keyboard shortcuts

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