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 ¶
func New(c kubernetes.Interface) *SimpleVolumeCreator
New creates and returns a VolumeCreator that creates fixed size, Filesystem based PersistentVolumeClaims.
func (SimpleVolumeCreator) Create ¶
func (s SimpleVolumeCreator) Create(namespace string, size resource.Quantity) (*corev1.PersistentVolumeClaim, error)
Create impements the Creator interface.
Click to show internal directories.
Click to hide internal directories.