Documentation ¶
Index ¶
- type K8sClient
- func (k *K8sClient) CreateJob(ctx context.Context, job *batchv1.Job) (*batchv1.Job, error)
- func (k *K8sClient) CreatePod(ctx context.Context, pod *corev1.Pod) (*corev1.Pod, error)
- func (k *K8sClient) CreateSecret(ctx context.Context, secret *corev1.Secret) (*corev1.Secret, error)
- func (k *K8sClient) DeleteJob(ctx context.Context, jobName string, namespace string) error
- func (k *K8sClient) DeletePod(ctx context.Context, pod *corev1.Pod) error
- func (k *K8sClient) DeleteSecret(ctx context.Context, secretName string, namespace string) error
- func (k *K8sClient) GetJob(ctx context.Context, jobName, namespace string) (*batchv1.Job, error)
- func (k *K8sClient) GetPersistentVolume(ctx context.Context, pvName string) (*corev1.PersistentVolume, error)
- func (k *K8sClient) GetPod(ctx context.Context, podName, namespace string) (*corev1.Pod, error)
- func (k *K8sClient) GetPodLog(ctx context.Context, podName, namespace, containerName string) (string, error)
- func (k *K8sClient) GetSecret(ctx context.Context, secretName, namespace string) (*corev1.Secret, error)
- func (k *K8sClient) ListPod(ctx context.Context, namespace string, labelSelector *metav1.LabelSelector, ...) ([]corev1.Pod, error)
- func (k *K8sClient) PatchPod(ctx context.Context, pod *corev1.Pod, data []byte, pt types.PatchType) error
- func (k *K8sClient) UpdateJob(ctx context.Context, job *batchv1.Job) error
- func (k *K8sClient) UpdatePod(ctx context.Context, pod *corev1.Pod) error
- func (k *K8sClient) UpdateSecret(ctx context.Context, secret *corev1.Secret) error
- type PatchDelValue
- type PatchListValue
- type PatchMapValue
- type PatchStringValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sClient ¶
type K8sClient struct {
kubernetes.Interface
}
func (*K8sClient) CreateSecret ¶
func (*K8sClient) DeleteSecret ¶
func (*K8sClient) GetPersistentVolume ¶
type PatchDelValue ¶ added in v0.17.4
type PatchListValue ¶
type PatchMapValue ¶
type PatchStringValue ¶ added in v0.17.4
Click to show internal directories.
Click to hide internal directories.