pvc

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

Create will create a PVC

Args:

  • Client struct from client module
  • Instance struct from pod module

Return:

  • error or nil

func Delete

func Delete(c *client.Client, namespace string, pvcname string) error

Delete will delete a pvc

Args:

  • Pointer to a Client struct
  • namespace name
  • pvc name

Returns:

error or nil

func List

func List(c *client.Client, namespace string) (*v1.PersistentVolumeClaimList, error)

List will list all Namespaces

Args:

  • Client struct from client module

Returns:

  • pointer v1.NamespaceList or error

Types

type Instance

type Instance struct {
	Name             string
	NamePrefix       string // "pvc-" if unspecified
	Namespace        string
	ClaimSize        string
	AccessModes      string
	Annotations      map[string]string
	Selector         *metav1.LabelSelector
	StorageClassName string
	VolumeMode       string
}

Instance type refers to the PVC object

Jump to

Keyboard shortcuts

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