Documentation
¶
Index ¶
- func BuildPVCManifest(namespace, name, size, storageClass string, labels map[string]string, ...) ([]byte, error)
- func BuildPodManifest(namespace, name string, labels map[string]string, ...) ([]byte, error)
- func PreparePodSpec(podSpec corev1.PodSpec, volumes []corev1.Volume, ...) (corev1.PodSpec, error)
- type Client
- func (c *Client) AnnotatePod(ctx context.Context, namespace, pod, key, value string) error
- func (c *Client) Apply(ctx context.Context, namespace string, manifest []byte) error
- func (c *Client) CopyFromPod(ctx context.Context, namespace, podName, remotePath, localPath string) error
- func (c *Client) CopyToPod(ctx context.Context, namespace, localPath, podName, remotePath string) error
- func (c *Client) Delete(ctx context.Context, namespace string, kind string, name string, ...) error
- func (c *Client) DescribePod(ctx context.Context, namespace, pod string) (string, error)
- func (c *Client) ExecInteractive(ctx context.Context, namespace, pod string, tty bool, command []string, ...) error
- func (c *Client) ExecSh(ctx context.Context, namespace, pod string, script string) ([]byte, error)
- func (c *Client) ExecShInContainer(ctx context.Context, namespace, pod, container, script string) ([]byte, error)
- func (c *Client) ExtractTarToPod(ctx context.Context, namespace, podName, remoteDir string, tarStream io.Reader) error
- func (c *Client) GetPodAnnotation(ctx context.Context, namespace, pod, key string) (string, error)
- func (c *Client) GetPodSummary(ctx context.Context, namespace, name string) (*PodSummary, error)
- func (c *Client) ListPods(ctx context.Context, namespace string, allNamespaces bool, ...) ([]PodSummary, error)
- func (c *Client) PersistentVolumeClaimExists(ctx context.Context, namespace, name string) (bool, error)
- func (c *Client) PortForward(ctx context.Context, namespace, pod string, forwards []string, ...) error
- func (c *Client) StreamFromPod(ctx context.Context, namespace, podName, script string, stdout io.Writer) error
- func (c *Client) StreamShInContainer(ctx context.Context, namespace, pod, container, script string, ...) error
- func (c *Client) TouchPodActivity(ctx context.Context, namespace, pod string) error
- func (c *Client) WaitReady(ctx context.Context, namespace, pod string, timeout time.Duration) error
- func (c *Client) WaitReadyWithProgress(ctx context.Context, namespace, pod string, timeout time.Duration, ...) error
- type PodReadinessProgress
- type PodSummary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPVCManifest ¶
func BuildPodManifest ¶
Types ¶
type Client ¶
type Client struct {
Context string
// contains filtered or unexported fields
}
func (*Client) AnnotatePod ¶ added in v0.2.0
func (*Client) CopyFromPod ¶
func (*Client) DescribePod ¶
func (*Client) ExecInteractive ¶
func (*Client) ExecShInContainer ¶
func (*Client) ExtractTarToPod ¶
func (*Client) GetPodAnnotation ¶ added in v0.2.0
func (*Client) GetPodSummary ¶
func (*Client) PersistentVolumeClaimExists ¶ added in v0.2.6
func (*Client) PortForward ¶
func (*Client) StreamFromPod ¶
func (*Client) StreamShInContainer ¶ added in v0.2.11
func (*Client) TouchPodActivity ¶
func (*Client) WaitReadyWithProgress ¶
type PodReadinessProgress ¶
Click to show internal directories.
Click to hide internal directories.