Documentation ¶
Index ¶
- type Builder
- func (b *Builder) Build() (*corev1.Volume, error)
- func (b *Builder) WithConfigMap(configMap *corev1.ConfigMap, defaultMode int32) *Builder
- func (b *Builder) WithEmptyDir(dir *corev1.EmptyDirVolumeSource) *Builder
- func (b *Builder) WithHostDirectory(path string) *Builder
- func (b *Builder) WithHostPathAndType(dirpath string, dirtype *corev1.HostPathType) *Builder
- func (b *Builder) WithName(name string) *Builder
- func (b *Builder) WithPVCSource(pvcName string) *Builder
- func (b *Builder) WithSecret(secret *corev1.Secret, defaultMode int32) *Builder
- type Predicate
- type PredicateList
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is the builder object for Volume
func (*Builder) WithConfigMap ¶
WithConfigMap sets the VolumeSource field of Volume with provided ConfigMap
func (*Builder) WithEmptyDir ¶
func (b *Builder) WithEmptyDir(dir *corev1.EmptyDirVolumeSource) *Builder
WithEmptyDir sets the EmptyDir field of the Volume with provided dir
func (*Builder) WithHostDirectory ¶
WithHostDirectory sets the VolumeSource field of Volume with provided hostpath as type directory.
func (*Builder) WithHostPathAndType ¶
func (b *Builder) WithHostPathAndType( dirpath string, dirtype *corev1.HostPathType, ) *Builder
WithHostPathAndType sets the VolumeSource field of Volume with provided hostpath as directory path and type as directory type
func (*Builder) WithPVCSource ¶
WithPVCSource sets the Volume field of Volume with provided pvc
type Predicate ¶
Predicate defines an abstraction to determine conditional checks against the provided volume instance
type Volume ¶
type Volume struct {
// contains filtered or unexported fields
}
Volume is a wrapper over named volume api object, used within Pods. It provides build, validations and other common logic to be used by various feature specific callers.
func NewForAPIObject ¶
NewForAPIObject returns a new instance of Volume