persistentvolumeclaim

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package persistentvolumeclaim manipulates the k8s api of persistentvolumeclaim object

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*PersistentVolumeClaim)

Option configures a PersistentVolumeClaim

func WithCompleteParams

func WithCompleteParams(addr string, client *httpclient.HTTPClient) Option

WithCompleteParams provides an Option

type PersistentVolumeClaim

type PersistentVolumeClaim struct {
	// contains filtered or unexported fields
}

PersistentVolumeClaim is the object to manipulate k8s api of persistentVolumeClaim

func New

func New(options ...Option) *PersistentVolumeClaim

New news a PersistentVolumeClaim

func (*PersistentVolumeClaim) Create

Create creates a k8s persistentVolumeClaim

func (*PersistentVolumeClaim) CreateIfNotExists

func (p *PersistentVolumeClaim) CreateIfNotExists(pvc *apiv1.PersistentVolumeClaim) error

func (*PersistentVolumeClaim) Delete

func (p *PersistentVolumeClaim) Delete(namespace, name string) error

Delete deletes a k8s persistentVolumeClaim

Jump to

Keyboard shortcuts

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