persistentvolumeclaim

package
v1.1.0-rc Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: AGPL-3.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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