Documentation ¶
Index ¶
- type Clients
- func (c *Clients) CreateDeployment(dep *appsv1.Deployment) *appsv1.Deployment
- func (c *Clients) CreateNameSpace(ns *corev1.Namespace) *corev1.Namespace
- func (c *Clients) CreatePersistentVolume(pv *corev1.PersistentVolume) *corev1.PersistentVolume
- func (c *Clients) CreatePersistentVolumeClaim(pvc *corev1.PersistentVolumeClaim) *corev1.PersistentVolumeClaim
- func (c *Clients) CreatePod(pod *corev1.Pod) *corev1.Pod
- func (c *Clients) CreateService(service *corev1.Service) *corev1.Service
- func (c *Clients) CreateStatefulSet(sfs *appsv1.StatefulSet) *appsv1.StatefulSet
- func (c *Clients) DeleteDeployment(dep *appsv1.Deployment, ops *metav1.DeleteOptions) error
- func (c *Clients) DeleteNameSpace(ns *corev1.Namespace, ops *metav1.DeleteOptions) error
- func (c *Clients) DeletePersistentVolume(pv *corev1.PersistentVolume, ops *metav1.DeleteOptions) error
- func (c *Clients) DeletePersistentVolumeClaim(pvc *corev1.PersistentVolumeClaim, ops *metav1.DeleteOptions) error
- func (c *Clients) DeletePod(pod *corev1.Pod, ops *metav1.DeleteOptions)
- func (c *Clients) DeleteService(service *corev1.Service, ops *metav1.DeleteOptions) error
- func (c *Clients) DeleteStatefulSet(sfs *appsv1.StatefulSet, ops *metav1.DeleteOptions) error
- func (c *Clients) GetDeployment(dep *appsv1.Deployment, ops metav1.GetOptions) *appsv1.Deployment
- func (c *Clients) GetDeploymentList(dep *appsv1.Deployment, ops metav1.ListOptions) *appsv1.DeploymentList
- func (c *Clients) GetNamespaceList(ops metav1.ListOptions) *corev1.NamespaceList
- func (c *Clients) GetNodeList(ops metav1.ListOptions) *corev1.NodeList
- func (c *Clients) GetPod(ns string, podName string) *corev1.Pod
- func (c *Clients) GetPodList(ns string, ops metav1.ListOptions) *corev1.PodList
- func (c *Clients) GetServiceList(ns string, ops metav1.ListOptions) *corev1.ServiceList
- func (c *Clients) PrintPodLogs(ns string, podName string) string
- func (c *Clients) UpdateDeployment(dep *appsv1.Deployment) *appsv1.Deployment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clients ¶
type Clients struct {
KubeClient *kubernetes.Clientset
}
func NewClients ¶
func (*Clients) CreateDeployment ¶
func (c *Clients) CreateDeployment(dep *appsv1.Deployment) *appsv1.Deployment
func (*Clients) CreateNameSpace ¶
func (*Clients) CreatePersistentVolume ¶
func (c *Clients) CreatePersistentVolume(pv *corev1.PersistentVolume) *corev1.PersistentVolume
func (*Clients) CreatePersistentVolumeClaim ¶
func (c *Clients) CreatePersistentVolumeClaim(pvc *corev1.PersistentVolumeClaim) *corev1.PersistentVolumeClaim
func (*Clients) CreateService ¶
func (*Clients) CreateStatefulSet ¶
func (c *Clients) CreateStatefulSet(sfs *appsv1.StatefulSet) *appsv1.StatefulSet
func (*Clients) DeleteDeployment ¶
func (c *Clients) DeleteDeployment(dep *appsv1.Deployment, ops *metav1.DeleteOptions) error
func (*Clients) DeleteNameSpace ¶
func (*Clients) DeletePersistentVolume ¶
func (c *Clients) DeletePersistentVolume(pv *corev1.PersistentVolume, ops *metav1.DeleteOptions) error
func (*Clients) DeletePersistentVolumeClaim ¶
func (c *Clients) DeletePersistentVolumeClaim(pvc *corev1.PersistentVolumeClaim, ops *metav1.DeleteOptions) error
func (*Clients) DeleteService ¶
func (*Clients) DeleteStatefulSet ¶
func (c *Clients) DeleteStatefulSet(sfs *appsv1.StatefulSet, ops *metav1.DeleteOptions) error
func (*Clients) GetDeployment ¶
func (c *Clients) GetDeployment(dep *appsv1.Deployment, ops metav1.GetOptions) *appsv1.Deployment
func (*Clients) GetDeploymentList ¶
func (c *Clients) GetDeploymentList(dep *appsv1.Deployment, ops metav1.ListOptions) *appsv1.DeploymentList
func (*Clients) GetNamespaceList ¶
func (c *Clients) GetNamespaceList(ops metav1.ListOptions) *corev1.NamespaceList
func (*Clients) GetNodeList ¶
func (c *Clients) GetNodeList(ops metav1.ListOptions) *corev1.NodeList
func (*Clients) GetPodList ¶
func (*Clients) GetServiceList ¶
func (c *Clients) GetServiceList(ns string, ops metav1.ListOptions) *corev1.ServiceList
func (*Clients) UpdateDeployment ¶
func (c *Clients) UpdateDeployment(dep *appsv1.Deployment) *appsv1.Deployment
Click to show internal directories.
Click to hide internal directories.