volumes

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// SimpleVolumeMode is the default PersistentVolumeMode.
	SimpleVolumeMode = corev1.PersistentVolumeFilesystem
)

Functions

This section is empty.

Types

type Creator

type Creator interface {
	Create(namespace string, size resource.Quantity) (*corev1.PersistentVolumeClaim, error)
}

Creator is an interface that defines the behaviour for creating new PersistentVolumeClaims with a a requisite size.

type SimpleVolumeCreator

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

SimpleVolumeCreator is an implementation of the Creator interface.

func New

New creates and returns a VolumeCreator that creates fixed size, Filesystem based PersistentVolumeClaims.

func (SimpleVolumeCreator) Create

Create impements the Creator interface.

Jump to

Keyboard shortcuts

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