kubeconfig

package
v0.0.0-...-81cdc2d Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildClientConfigFromKubeconfig

func BuildClientConfigFromKubeconfig(kubeconfigPath, masterURL string) (*restclient.Config, error)

func BuildClientConfigFromToken

func BuildClientConfigFromToken(token, masterURL string) (*restclient.Config, error)

func BuildKusciaClientConfig

func BuildKusciaClientConfig() (*restclient.Config, error)

func CreateKubeClientFromKubeconfigWithOptions

func CreateKubeClientFromKubeconfigWithOptions(kubeconfigPath, masterURL string, QPS float32, Burst int, Timeout time.Duration) (kubernetes.Interface, error)

Types

type KubeClients

type KubeClients struct {
	KubeClient       kubernetes.Interface
	KusciaClient     kusciaclientset.Interface
	ExtensionsClient apiextensionsclientset.Interface
	Kubeconfig       *restclient.Config
}

func CreateClientSets

func CreateClientSets(config *restclient.Config) (*KubeClients, error)

func CreateClientSetsFromKubeconfig

func CreateClientSetsFromKubeconfig(kubeconfigPath, masterURL string) (*KubeClients, error)

func CreateClientSetsFromKubeconfigWithOptions

func CreateClientSetsFromKubeconfigWithOptions(kubeconfigPath, masterURL string, QPS float32, Burst int, Timeout time.Duration) (*KubeClients, error)

func CreateClientSetsFromToken

func CreateClientSetsFromToken(token, masterURL string) (*KubeClients, error)

type KusciaConfig

type KusciaConfig struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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