client

package
v0.0.1-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Scheme = k8sruntime.NewScheme()
)

Functions

This section is empty.

Types

type K8sClusterInterface

type K8sClusterInterface interface {
	GetK8sClientSet() *kubernetes.Clientset
	GetK8sConfig() *rest.Config
	CreateClient() error
}

func NewK8sManager

func NewK8sManager() K8sClusterInterface

type K8sClusterManager

type K8sClusterManager struct {
	K8sCli  client.Client
	K8sSet  *kubernetes.Clientset
	K8sConf *rest.Config
}

func (*K8sClusterManager) CreateClient

func (m *K8sClusterManager) CreateClient() error

CreateClient 用于创建 k8s 客户端

func (*K8sClusterManager) GetK8sClientSet

func (m *K8sClusterManager) GetK8sClientSet() *kubernetes.Clientset

func (*K8sClusterManager) GetK8sConfig

func (m *K8sClusterManager) GetK8sConfig() *rest.Config

Jump to

Keyboard shortcuts

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