Documentation ¶
Index ¶
- func Describe(pvcName, namespace string) error
- func WaitOnDeleted(pvcPrefix, namespace string, sleep, duration time.Duration) (bool, error)
- type List
- type Metadata
- type PersistentVolumeClaim
- func CreatePVCFromFileDeleteIfExist(filename, name, namespace string) (*PersistentVolumeClaim, error)
- func CreatePersistentVolumeClaimsFromFile(filename, name, namespace string) (*PersistentVolumeClaim, error)
- func Get(pvcName, namespace string) (*PersistentVolumeClaim, error)
- func GetAllByPrefix(prefix, namespace string) ([]PersistentVolumeClaim, error)
- type Spec
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type List ¶ added in v0.36.0
type List struct {
PersistentVolumeClaims []PersistentVolumeClaim `json:"items"`
}
type Metadata ¶
type Metadata struct { CreatedAt time.Time `json:"creationTimestamp"` Name string `json:"name"` Namespace string `json:"namespace"` }
Metadata holds information like name, create time, and namespace
type PersistentVolumeClaim ¶ added in v0.36.0
type PersistentVolumeClaim struct { Metadata Metadata `json:"metadata"` Spec Spec `json:"spec"` Status Status `json:"status"` }
PersistentVolumeClaim is used to parse data from kubectl get pvc
func CreatePVCFromFileDeleteIfExist ¶ added in v0.36.0
func CreatePVCFromFileDeleteIfExist(filename, name, namespace string) (*PersistentVolumeClaim, error)
CreatePVCFromFileDeleteIfExist will create a PVC from file with a name
func CreatePersistentVolumeClaimsFromFile ¶
func CreatePersistentVolumeClaimsFromFile(filename, name, namespace string) (*PersistentVolumeClaim, error)
CreatePersistentVolumeClaimsFromFile will create a PVC from file with a name
func Get ¶
func Get(pvcName, namespace string) (*PersistentVolumeClaim, error)
Get will return a PersistentVolumeClaim with a given name and namespace
func GetAllByPrefix ¶ added in v0.36.0
func GetAllByPrefix(prefix, namespace string) ([]PersistentVolumeClaim, error)
GetAllByPrefix will return all jobs in a given namespace that match a prefix
func (*PersistentVolumeClaim) Delete ¶ added in v0.36.0
func (pvc *PersistentVolumeClaim) Delete(retries int) error
Delete will delete a PersistentVolumeClaim in a given namespace
func (*PersistentVolumeClaim) WaitOnReady ¶ added in v0.36.0
func (pvc *PersistentVolumeClaim) WaitOnReady(namespace string, sleep, duration time.Duration) (bool, error)
WaitOnReady will block until PersistentVolumeClaim is available
Click to show internal directories.
Click to hide internal directories.