kube

package
v0.0.0-...-3a733ff Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeManager

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

func NewManager

func NewManager(kubeConfigPath string) (*KubeManager, error)

func (*KubeManager) CreateDeployment

func (km *KubeManager) CreateDeployment(namespace string, dep *appsv1.Deployment) (*appsv1.Deployment, error)

func (*KubeManager) CreateReplicaSet

func (km *KubeManager) CreateReplicaSet(namespace string, rs *appsv1.ReplicaSet) (*appsv1.ReplicaSet, error)

func (*KubeManager) CreateService

func (km *KubeManager) CreateService(namespace string, svc *corev1.Service) (*corev1.Service, error)

func (*KubeManager) DeleteDeployment

func (km *KubeManager) DeleteDeployment(namespace, depName string) error

func (*KubeManager) DeleteReplicaSet

func (km *KubeManager) DeleteReplicaSet(namespace, rsName string) error

func (*KubeManager) DeleteService

func (km *KubeManager) DeleteService(namespace, svcName string) error

func (*KubeManager) ForceDeletePods

func (km *KubeManager) ForceDeletePods(namespace, label string) error

func (*KubeManager) GetAllNodeDetails

func (km *KubeManager) GetAllNodeDetails() (*corev1.NodeList, error)

func (*KubeManager) MonitorReplicaSet

func (km *KubeManager) MonitorReplicaSet(ctx context.Context,
	namespace, label string) error

func (*KubeManager) ScaleReplicaSet

func (km *KubeManager) ScaleReplicaSet(
	namespace, rsName string,
	replicas int32,
) error

type SpecKind

type SpecKind struct {
	Spec runtime.Object
	Kind string
}

Jump to

Keyboard shortcuts

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