Documentation ¶
Index ¶
- func GetKubeconfig() string
- type Client
- func (c *Client) CreateDeployment(ctx context.Context, pvc *v1.PersistentVolumeClaim, command string) (*appv1.Deployment, error)
- func (c *Client) CreatePVC(ctx context.Context, p string) (*v1.PersistentVolumeClaim, error)
- func (c *Client) CreatePod(ctx context.Context, podName, pvcName string) (*v1.Pod, error)
- func (c *Client) DeleteDeployment(ctx context.Context, deploymentName string) error
- func (c *Client) DeletePVC(ctx context.Context, pvcName, namespace string) error
- func (c *Client) DeletePod(ctx context.Context, podName, namespace string) error
- func (c *Client) Exec(params ExecParams) error
- func (c *Client) GetPod() (*v1.Pod, error)
- func (c *Client) ListVolumes(ctx context.Context) (*v1.PersistentVolumeList, error)
- func (c *Client) ReplaceDeploymentPod(ctx context.Context) error
- func (c *Client) ResizePVC(ctx context.Context, pvcName string) (*v1.PersistentVolumeClaim, error)
- func (c *Client) WaitForDeployment(ctx context.Context, deploymentName, namespace string) error
- func (c *Client) WaitForPVC(ctx context.Context, pvcName, namespace string) error
- func (c *Client) WaitForPod(ctx context.Context, podName, namespace string) error
- type ExecParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKubeconfig ¶
func GetKubeconfig() string
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateDeployment ¶
func (c *Client) CreateDeployment(ctx context.Context, pvc *v1.PersistentVolumeClaim, command string) (*appv1.Deployment, error)
func (*Client) DeleteDeployment ¶
func (*Client) Exec ¶
func (c *Client) Exec(params ExecParams) error
func (*Client) ListVolumes ¶
func (*Client) ReplaceDeploymentPod ¶
func (*Client) WaitForDeployment ¶
func (*Client) WaitForPVC ¶
type ExecParams ¶
Click to show internal directories.
Click to hide internal directories.