Documentation
¶
Index ¶
- type Client
- func (c Client) CreatePod(ctx context.Context, ns string, pod *v1.Pod) error
- func (c Client) DeletePod(ctx context.Context, ns string, name string) error
- func (c Client) GetContainerLog(ctx context.Context, ns string, podName string, containerName string) (string, error)
- func (c Client) GetPod(ctx context.Context, name string, ns string) (*v1.Pod, error)
- func (c Client) ListCronJobs(ctx context.Context) ([]batchv1.CronJob, error)
- func (c Client) ListDaemonSets(ctx context.Context) ([]appv1.DaemonSet, error)
- func (c Client) ListDeployments(ctx context.Context) ([]appv1.Deployment, error)
- func (c Client) ListNodes(ctx context.Context) ([]v1.Node, error)
- func (c Client) ListPodsByLabel(ctx context.Context, label *metav1.LabelSelector) ([]v1.Pod, error)
- func (c Client) ListStatefulSets(ctx context.Context) ([]appv1.StatefulSet, error)
- func (c Client) WaitUntilCompleted(namespace string, podName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(clientSet kubernetes.Interface) Client
func (Client) GetContainerLog ¶
func (Client) ListCronJobs ¶
func (Client) ListDaemonSets ¶
func (Client) ListDeployments ¶
func (Client) ListPodsByLabel ¶
func (Client) ListStatefulSets ¶
Click to show internal directories.
Click to hide internal directories.