Documentation ¶
Index ¶
- func GetDeployment(k8s *Client, ns, name string) (*appsv1.Deployment, error)
- func GetPodLogs(k8s *Client, ns, name string, opts *PodLogOptions) (io.ReadCloser, error)
- func GetReplicaSet(k8s *Client, ns, name string) (*appsv1.ReplicaSet, error)
- func GetService(k8s *Client, ns, name string) (*v1.Service, error)
- func GetStatefulSet(k8s *Client, ns, name string) (*appsv1.StatefulSet, error)
- func ListPods(k8s *Client, ns string, selector *LabelSelector) ([]v1.Pod, error)
- func WatchPods(k8s *Client, ns string, selector *LabelSelector, onAdd func(*v1.Pod), ...) func()
- type Client
- type LabelSelector
- type Pod
- type PodLogOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDeployment ¶
func GetDeployment(k8s *Client, ns, name string) (*appsv1.Deployment, error)
GetDeployment gets a Deployment object
func GetPodLogs ¶
func GetPodLogs(k8s *Client, ns, name string, opts *PodLogOptions) (io.ReadCloser, error)
GetPodLogs gets logs of a pod
func GetReplicaSet ¶
func GetReplicaSet(k8s *Client, ns, name string) (*appsv1.ReplicaSet, error)
GetReplicaSet gets a ReplicaSet object
func GetService ¶
GetService gets a Service object
func GetStatefulSet ¶
func GetStatefulSet(k8s *Client, ns, name string) (*appsv1.StatefulSet, error)
GetStatefulSet gets a StatefulSet object
Types ¶
type LabelSelector ¶
type LabelSelector = metav1.LabelSelector
LabelSelector is an alias to kubernetes' LabelSelector
type PodLogOptions ¶
type PodLogOptions = v1.PodLogOptions
PodLogOptions is an alias to kubernetes' PodLogOptions
Click to show internal directories.
Click to hide internal directories.