mock

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(namespace string) (*Client, error)

func (*Client) CreateDeployment

func (c *Client) CreateDeployment(ctx context.Context, pvc *v1.PersistentVolumeClaim, command string) (*appv1.Deployment, error)

func (*Client) CreatePVC

func (c *Client) CreatePVC(ctx context.Context, p string) (*v1.PersistentVolumeClaim, error)

func (*Client) CreatePod

func (c *Client) CreatePod(ctx context.Context, podName, pvcName string) (*v1.Pod, error)

func (*Client) DeleteDeployment

func (c *Client) DeleteDeployment(ctx context.Context, deploymentName string) error

func (*Client) DeletePVC

func (c *Client) DeletePVC(ctx context.Context, pvcName, namespace string) error

func (*Client) DeletePod

func (c *Client) DeletePod(ctx context.Context, podName, namespace string) error

func (*Client) Exec

func (c *Client) Exec(params ExecParams) error

func (*Client) GetPod

func (c *Client) GetPod() (*v1.Pod, error)

func (*Client) ListVolumes

func (c *Client) ListVolumes(ctx context.Context) (*v1.PersistentVolumeList, error)

func (*Client) ReplaceDeploymentPod

func (c *Client) ReplaceDeploymentPod(ctx context.Context) error

func (*Client) ResizePVC

func (c *Client) ResizePVC(ctx context.Context, pvcName string) (*v1.PersistentVolumeClaim, error)

func (*Client) WaitForDeployment

func (c *Client) WaitForDeployment(ctx context.Context, deploymentName, namespace string) error

func (*Client) WaitForPVC

func (c *Client) WaitForPVC(ctx context.Context, pvcName, namespace string) error

func (*Client) WaitForPod

func (c *Client) WaitForPod(ctx context.Context, podName, namespace string) error

type ExecParams

type ExecParams struct {
	Command        string
	ExpectedString string
	PodName        string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL