Documentation ¶
Index ¶
- type Builder
- func (b *Builder) Build() (*corev1.PersistentVolumeClaim, error)
- func (b *Builder) WithAccessModes(accessMode []corev1.PersistentVolumeAccessMode) *Builder
- func (b *Builder) WithAnnotations(annotations map[string]string) *Builder
- func (b *Builder) WithCapacity(capacity string) *Builder
- func (b *Builder) WithGenerateName(name string) *Builder
- func (b *Builder) WithLabels(labels map[string]string) *Builder
- func (b *Builder) WithLabelsNew(labels map[string]string) *Builder
- func (b *Builder) WithName(name string) *Builder
- func (b *Builder) WithNamespace(namespace string) *Builder
- func (b *Builder) WithOwnerReferenceNew(ownerRefernce []metav1.OwnerReference) *Builder
- func (b *Builder) WithStorageClass(scName string) *Builder
- type PVC
- type PVCList
- type Predicate
- type PredicateList
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 PVC
func (*Builder) Build ¶
func (b *Builder) Build() (*corev1.PersistentVolumeClaim, error)
Build returns the PVC API instance
func (*Builder) WithAccessModes ¶
func (b *Builder) WithAccessModes(accessMode []corev1.PersistentVolumeAccessMode) *Builder
WithAccessModes sets the AccessMode field in PVC with provided arguments
func (*Builder) WithAnnotations ¶
WithAnnotations sets the Annotations field of PVC with provided arguments
func (*Builder) WithCapacity ¶
WithCapacity sets the Capacity field in PVC with provided arguments
func (*Builder) WithGenerateName ¶
WithGenerateName sets the GenerateName field of PVC with provided value
func (*Builder) WithLabels ¶
WithLabels merges existing labels if any with the ones that are provided here
func (*Builder) WithLabelsNew ¶
WithLabelsNew resets existing labels if any with ones that are provided here
func (*Builder) WithNamespace ¶
WithNamespace sets the Namespace field of PVC provided arguments
func (*Builder) WithOwnerReferenceNew ¶
func (b *Builder) WithOwnerReferenceNew(ownerRefernce []metav1.OwnerReference) *Builder
WithOwnerReferenceNew sets ownerreference if any with ones that are provided here
func (*Builder) WithStorageClass ¶
WithStorageClass sets the StorageClass field of PVC with provided arguments
type PVC ¶
type PVC struct {
// contains filtered or unexported fields
}
PVC is a wrapper over persistentvolumeclaim api object. It provides build, validations and other common logic to be used by various feature specific callers.
func NewForAPIObject ¶
func NewForAPIObject(obj *corev1.PersistentVolumeClaim, opts ...pvcBuildOption) *PVC
NewForAPIObject returns a new instance of PVC
type PVCList ¶
type PVCList struct {
// contains filtered or unexported fields
}
PVCList is a wrapper over persistentvolumeclaim api object. It provides build, validations and other common logic to be used by various feature specific callers.
func (*PVCList) ToAPIList ¶
func (p *PVCList) ToAPIList() *corev1.PersistentVolumeClaimList
ToAPIList converts PVCList to API PVCList
type Predicate ¶
Predicate defines an abstraction to determine conditional checks against the provided pvc instance
func ContainsName ¶
ContainsName is filter function to filter pvc's based on the name