Documentation ¶
Index ¶
- type KubeManager
- func (km *KubeManager) CreateDeployment(namespace string, dep *appsv1.Deployment) (*appsv1.Deployment, error)
- func (km *KubeManager) CreateReplicaSet(namespace string, rs *appsv1.ReplicaSet) (*appsv1.ReplicaSet, error)
- func (km *KubeManager) CreateService(namespace string, svc *corev1.Service) (*corev1.Service, error)
- func (km *KubeManager) DeleteDeployment(namespace, depName string) error
- func (km *KubeManager) DeleteReplicaSet(namespace, rsName string) error
- func (km *KubeManager) DeleteService(namespace, svcName string) error
- func (km *KubeManager) ForceDeletePods(namespace, label string) error
- func (km *KubeManager) GetAllNodeDetails() (*corev1.NodeList, error)
- func (km *KubeManager) MonitorReplicaSet(ctx context.Context, namespace, label string) error
- func (km *KubeManager) ScaleReplicaSet(namespace, rsName string, replicas int32) error
- type SpecKind
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 (*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
Click to show internal directories.
Click to hide internal directories.