Documentation ¶
Index ¶
- Constants
- type KubeApi
- func (k *KubeApi) GetDaemonSet(namespace string, name string) (*appsv1.DaemonSet, error)
- func (k *KubeApi) GetDaemonSetList(namespace string) (*appsv1.DaemonSetList, error)
- func (k *KubeApi) GetDaemonSets(namespace string, tag string) ([]*appsv1.DaemonSet, error)
- func (k *KubeApi) GetDeployment(namespace string, name string) (*appsv1.Deployment, error)
- func (k *KubeApi) GetDeploymentList(namespace string) (*appsv1.DeploymentList, error)
- func (k *KubeApi) GetDeployments(namespace string, tag string) ([]*appsv1.Deployment, error)
- func (k *KubeApi) GetNode(name string) (*v1.Node, error)
- func (k *KubeApi) GetNodeList() (*v1.NodeList, error)
- func (k *KubeApi) GetNodes(tag string) ([]*v1.Node, error)
- func (k *KubeApi) GetPod(namespace string, name string) (*v1.Pod, error)
- func (k *KubeApi) GetPodList(namespace string) (*v1.PodList, error)
- func (k *KubeApi) GetPods(namespace string, tag string) ([]*v1.Pod, error)
- func (k *KubeApi) GetService(namespace string, name string) (*v1.Service, error)
- func (k *KubeApi) GetServiceList(namespace string) (*v1.ServiceList, error)
- func (k *KubeApi) GetServices(namespace string, tag string) ([]*v1.Service, error)
- func (k *KubeApi) InitKube() error
- func (k *KubeApi) WatchDaemonSetList(namespace string) (watch.Interface, error)
- func (k *KubeApi) WatchDeploymentList(namespace string) (watch.Interface, error)
- func (k *KubeApi) WatchNodeList() (watch.Interface, error)
- func (k *KubeApi) WatchPodList(namespace string) (watch.Interface, error)
- func (k *KubeApi) WatchServiceList(namespace string) (watch.Interface, error)
Constants ¶
View Source
const ( K8State_All string = "" K8State_Waiting = "Waiting" K8State_Running = "Running" K8State_Terminated = "Terminated" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeApi ¶
type KubeApi struct {
// contains filtered or unexported fields
}
func NewKubeApi ¶
func NewKubeApi() *KubeApi
func (*KubeApi) GetDaemonSet ¶
func (*KubeApi) GetDaemonSetList ¶
func (k *KubeApi) GetDaemonSetList(namespace string) (*appsv1.DaemonSetList, error)
func (*KubeApi) GetDaemonSets ¶
func (*KubeApi) GetDeployment ¶
func (*KubeApi) GetDeploymentList ¶
func (k *KubeApi) GetDeploymentList(namespace string) (*appsv1.DeploymentList, error)
func (*KubeApi) GetDeployments ¶
func (*KubeApi) GetService ¶
func (*KubeApi) GetServiceList ¶
func (k *KubeApi) GetServiceList(namespace string) (*v1.ServiceList, error)
func (*KubeApi) GetServices ¶
func (*KubeApi) WatchDaemonSetList ¶
func (*KubeApi) WatchDeploymentList ¶
func (*KubeApi) WatchPodList ¶
Click to show internal directories.
Click to hide internal directories.