Documentation
¶
Index ¶
- Variables
- type CSIDriverDie
- func (d *CSIDriverDie) APIVersion(v string) *CSIDriverDie
- func (d *CSIDriverDie) DeepCopy() *CSIDriverDie
- func (d *CSIDriverDie) DeepCopyObject() runtime.Object
- func (d *CSIDriverDie) DieFeed(r storagev1.CSIDriver) *CSIDriverDie
- func (d *CSIDriverDie) DieFeedJSON(j []byte) *CSIDriverDie
- func (d *CSIDriverDie) DieFeedPtr(r *storagev1.CSIDriver) *CSIDriverDie
- func (d *CSIDriverDie) DieFeedRawExtension(raw runtime.RawExtension) *CSIDriverDie
- func (d *CSIDriverDie) DieFeedYAML(y []byte) *CSIDriverDie
- func (d *CSIDriverDie) DieFeedYAMLFile(name string) *CSIDriverDie
- func (d *CSIDriverDie) DieImmutable(immutable bool) *CSIDriverDie
- func (d *CSIDriverDie) DieRelease() storagev1.CSIDriver
- func (d *CSIDriverDie) DieReleaseJSON() []byte
- func (d *CSIDriverDie) DieReleasePtr() *storagev1.CSIDriver
- func (d *CSIDriverDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CSIDriverDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *CSIDriverDie) DieReleaseYAML() []byte
- func (d *CSIDriverDie) DieStamp(fn func(r *storagev1.CSIDriver)) *CSIDriverDie
- func (d *CSIDriverDie) DieStampAt(jp string, fn interface{}) *CSIDriverDie
- func (d *CSIDriverDie) DieWith(fns ...func(d *CSIDriverDie)) *CSIDriverDie
- func (d *CSIDriverDie) GetObjectKind() schema.ObjectKind
- func (d *CSIDriverDie) Kind(v string) *CSIDriverDie
- func (d *CSIDriverDie) MarshalJSON() ([]byte, error)
- func (d *CSIDriverDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *CSIDriverDie
- func (d *CSIDriverDie) Spec(v storagev1.CSIDriverSpec) *CSIDriverDie
- func (d *CSIDriverDie) SpecDie(fn func(d *CSIDriverSpecDie)) *CSIDriverDie
- func (d *CSIDriverDie) UnmarshalJSON(b []byte) error
- type CSIDriverSpecDie
- func (d *CSIDriverSpecDie) AttachRequired(v *bool) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) DeepCopy() *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) DieFeed(r storagev1.CSIDriverSpec) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) DieFeedJSON(j []byte) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) DieFeedPtr(r *storagev1.CSIDriverSpec) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) DieFeedYAML(y []byte) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) DieFeedYAMLFile(name string) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) DieImmutable(immutable bool) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) DieRelease() storagev1.CSIDriverSpec
- func (d *CSIDriverSpecDie) DieReleaseJSON() []byte
- func (d *CSIDriverSpecDie) DieReleasePtr() *storagev1.CSIDriverSpec
- func (d *CSIDriverSpecDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CSIDriverSpecDie) DieReleaseYAML() []byte
- func (d *CSIDriverSpecDie) DieStamp(fn func(r *storagev1.CSIDriverSpec)) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) DieStampAt(jp string, fn interface{}) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) DieWith(fns ...func(d *CSIDriverSpecDie)) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) FSGroupPolicy(v *storagev1.FSGroupPolicy) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) PodInfoOnMount(v *bool) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) RequiresRepublish(v *bool) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) SELinuxMount(v *bool) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) StorageCapacity(v *bool) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) TokenRequests(v ...storagev1.TokenRequest) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) TokenRequestsDie(requests ...*TokenRequestDie) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) VolumeLifecycleModes(v ...storagev1.VolumeLifecycleMode) *CSIDriverSpecDie
- type CSINodeDie
- func (d *CSINodeDie) APIVersion(v string) *CSINodeDie
- func (d *CSINodeDie) DeepCopy() *CSINodeDie
- func (d *CSINodeDie) DeepCopyObject() runtime.Object
- func (d *CSINodeDie) DieFeed(r storagev1.CSINode) *CSINodeDie
- func (d *CSINodeDie) DieFeedJSON(j []byte) *CSINodeDie
- func (d *CSINodeDie) DieFeedPtr(r *storagev1.CSINode) *CSINodeDie
- func (d *CSINodeDie) DieFeedRawExtension(raw runtime.RawExtension) *CSINodeDie
- func (d *CSINodeDie) DieFeedYAML(y []byte) *CSINodeDie
- func (d *CSINodeDie) DieFeedYAMLFile(name string) *CSINodeDie
- func (d *CSINodeDie) DieImmutable(immutable bool) *CSINodeDie
- func (d *CSINodeDie) DieRelease() storagev1.CSINode
- func (d *CSINodeDie) DieReleaseJSON() []byte
- func (d *CSINodeDie) DieReleasePtr() *storagev1.CSINode
- func (d *CSINodeDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CSINodeDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *CSINodeDie) DieReleaseYAML() []byte
- func (d *CSINodeDie) DieStamp(fn func(r *storagev1.CSINode)) *CSINodeDie
- func (d *CSINodeDie) DieStampAt(jp string, fn interface{}) *CSINodeDie
- func (d *CSINodeDie) DieWith(fns ...func(d *CSINodeDie)) *CSINodeDie
- func (d *CSINodeDie) GetObjectKind() schema.ObjectKind
- func (d *CSINodeDie) Kind(v string) *CSINodeDie
- func (d *CSINodeDie) MarshalJSON() ([]byte, error)
- func (d *CSINodeDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *CSINodeDie
- func (d *CSINodeDie) Spec(v storagev1.CSINodeSpec) *CSINodeDie
- func (d *CSINodeDie) SpecDie(fn func(d *CSINodeSpecDie)) *CSINodeDie
- func (d *CSINodeDie) UnmarshalJSON(b []byte) error
- type CSINodeDriverDie
- func (d *CSINodeDriverDie) Allocatable(v *storagev1.VolumeNodeResources) *CSINodeDriverDie
- func (d *CSINodeDriverDie) AllocatableDie(fn func(d *VolumeNodeResourcesDie)) *CSINodeDriverDie
- func (d *CSINodeDriverDie) DeepCopy() *CSINodeDriverDie
- func (d *CSINodeDriverDie) DieFeed(r storagev1.CSINodeDriver) *CSINodeDriverDie
- func (d *CSINodeDriverDie) DieFeedJSON(j []byte) *CSINodeDriverDie
- func (d *CSINodeDriverDie) DieFeedPtr(r *storagev1.CSINodeDriver) *CSINodeDriverDie
- func (d *CSINodeDriverDie) DieFeedRawExtension(raw runtime.RawExtension) *CSINodeDriverDie
- func (d *CSINodeDriverDie) DieFeedYAML(y []byte) *CSINodeDriverDie
- func (d *CSINodeDriverDie) DieFeedYAMLFile(name string) *CSINodeDriverDie
- func (d *CSINodeDriverDie) DieImmutable(immutable bool) *CSINodeDriverDie
- func (d *CSINodeDriverDie) DieRelease() storagev1.CSINodeDriver
- func (d *CSINodeDriverDie) DieReleaseJSON() []byte
- func (d *CSINodeDriverDie) DieReleasePtr() *storagev1.CSINodeDriver
- func (d *CSINodeDriverDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CSINodeDriverDie) DieReleaseYAML() []byte
- func (d *CSINodeDriverDie) DieStamp(fn func(r *storagev1.CSINodeDriver)) *CSINodeDriverDie
- func (d *CSINodeDriverDie) DieStampAt(jp string, fn interface{}) *CSINodeDriverDie
- func (d *CSINodeDriverDie) DieWith(fns ...func(d *CSINodeDriverDie)) *CSINodeDriverDie
- func (d *CSINodeDriverDie) Name(v string) *CSINodeDriverDie
- func (d *CSINodeDriverDie) NodeID(v string) *CSINodeDriverDie
- func (d *CSINodeDriverDie) TopologyKeys(v ...string) *CSINodeDriverDie
- type CSINodeSpecDie
- func (d *CSINodeSpecDie) DeepCopy() *CSINodeSpecDie
- func (d *CSINodeSpecDie) DieFeed(r storagev1.CSINodeSpec) *CSINodeSpecDie
- func (d *CSINodeSpecDie) DieFeedJSON(j []byte) *CSINodeSpecDie
- func (d *CSINodeSpecDie) DieFeedPtr(r *storagev1.CSINodeSpec) *CSINodeSpecDie
- func (d *CSINodeSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *CSINodeSpecDie
- func (d *CSINodeSpecDie) DieFeedYAML(y []byte) *CSINodeSpecDie
- func (d *CSINodeSpecDie) DieFeedYAMLFile(name string) *CSINodeSpecDie
- func (d *CSINodeSpecDie) DieImmutable(immutable bool) *CSINodeSpecDie
- func (d *CSINodeSpecDie) DieRelease() storagev1.CSINodeSpec
- func (d *CSINodeSpecDie) DieReleaseJSON() []byte
- func (d *CSINodeSpecDie) DieReleasePtr() *storagev1.CSINodeSpec
- func (d *CSINodeSpecDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CSINodeSpecDie) DieReleaseYAML() []byte
- func (d *CSINodeSpecDie) DieStamp(fn func(r *storagev1.CSINodeSpec)) *CSINodeSpecDie
- func (d *CSINodeSpecDie) DieStampAt(jp string, fn interface{}) *CSINodeSpecDie
- func (d *CSINodeSpecDie) DieWith(fns ...func(d *CSINodeSpecDie)) *CSINodeSpecDie
- func (d *CSINodeSpecDie) Drivers(v ...storagev1.CSINodeDriver) *CSINodeSpecDie
- func (d *CSINodeSpecDie) DriversDie(drivers ...*CSINodeDriverDie) *CSINodeSpecDie
- type StorageClassDie
- func (d *StorageClassDie) APIVersion(v string) *StorageClassDie
- func (d *StorageClassDie) AddParameter(key, value string) *StorageClassDie
- func (d *StorageClassDie) AllowVolumeExpansion(v *bool) *StorageClassDie
- func (d *StorageClassDie) AllowedTopologies(v ...corev1.TopologySelectorTerm) *StorageClassDie
- func (d *StorageClassDie) AllowedTopologiesDie(topologies ...*diecorev1.TopologySelectorTermDie) *StorageClassDie
- func (d *StorageClassDie) DeepCopy() *StorageClassDie
- func (d *StorageClassDie) DeepCopyObject() runtime.Object
- func (d *StorageClassDie) DieFeed(r storagev1.StorageClass) *StorageClassDie
- func (d *StorageClassDie) DieFeedJSON(j []byte) *StorageClassDie
- func (d *StorageClassDie) DieFeedPtr(r *storagev1.StorageClass) *StorageClassDie
- func (d *StorageClassDie) DieFeedRawExtension(raw runtime.RawExtension) *StorageClassDie
- func (d *StorageClassDie) DieFeedYAML(y []byte) *StorageClassDie
- func (d *StorageClassDie) DieFeedYAMLFile(name string) *StorageClassDie
- func (d *StorageClassDie) DieImmutable(immutable bool) *StorageClassDie
- func (d *StorageClassDie) DieRelease() storagev1.StorageClass
- func (d *StorageClassDie) DieReleaseJSON() []byte
- func (d *StorageClassDie) DieReleasePtr() *storagev1.StorageClass
- func (d *StorageClassDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *StorageClassDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *StorageClassDie) DieReleaseYAML() []byte
- func (d *StorageClassDie) DieStamp(fn func(r *storagev1.StorageClass)) *StorageClassDie
- func (d *StorageClassDie) DieStampAt(jp string, fn interface{}) *StorageClassDie
- func (d *StorageClassDie) DieWith(fns ...func(d *StorageClassDie)) *StorageClassDie
- func (d *StorageClassDie) GetObjectKind() schema.ObjectKind
- func (d *StorageClassDie) Kind(v string) *StorageClassDie
- func (d *StorageClassDie) MarshalJSON() ([]byte, error)
- func (d *StorageClassDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *StorageClassDie
- func (d *StorageClassDie) MountOptions(v ...string) *StorageClassDie
- func (d *StorageClassDie) Parameters(v map[string]string) *StorageClassDie
- func (d *StorageClassDie) Provisioner(v string) *StorageClassDie
- func (d *StorageClassDie) ReclaimPolicy(v *corev1.PersistentVolumeReclaimPolicy) *StorageClassDie
- func (d *StorageClassDie) UnmarshalJSON(b []byte) error
- func (d *StorageClassDie) VolumeBindingMode(v *storagev1.VolumeBindingMode) *StorageClassDie
- type TokenRequestDie
- func (d *TokenRequestDie) Audience(v string) *TokenRequestDie
- func (d *TokenRequestDie) DeepCopy() *TokenRequestDie
- func (d *TokenRequestDie) DieFeed(r storagev1.TokenRequest) *TokenRequestDie
- func (d *TokenRequestDie) DieFeedJSON(j []byte) *TokenRequestDie
- func (d *TokenRequestDie) DieFeedPtr(r *storagev1.TokenRequest) *TokenRequestDie
- func (d *TokenRequestDie) DieFeedRawExtension(raw runtime.RawExtension) *TokenRequestDie
- func (d *TokenRequestDie) DieFeedYAML(y []byte) *TokenRequestDie
- func (d *TokenRequestDie) DieFeedYAMLFile(name string) *TokenRequestDie
- func (d *TokenRequestDie) DieImmutable(immutable bool) *TokenRequestDie
- func (d *TokenRequestDie) DieRelease() storagev1.TokenRequest
- func (d *TokenRequestDie) DieReleaseJSON() []byte
- func (d *TokenRequestDie) DieReleasePtr() *storagev1.TokenRequest
- func (d *TokenRequestDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *TokenRequestDie) DieReleaseYAML() []byte
- func (d *TokenRequestDie) DieStamp(fn func(r *storagev1.TokenRequest)) *TokenRequestDie
- func (d *TokenRequestDie) DieStampAt(jp string, fn interface{}) *TokenRequestDie
- func (d *TokenRequestDie) DieWith(fns ...func(d *TokenRequestDie)) *TokenRequestDie
- func (d *TokenRequestDie) ExpirationSeconds(v *int64) *TokenRequestDie
- type VolumeAttachmentDie
- func (d *VolumeAttachmentDie) APIVersion(v string) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) DeepCopy() *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) DeepCopyObject() runtime.Object
- func (d *VolumeAttachmentDie) DieFeed(r storagev1.VolumeAttachment) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) DieFeedJSON(j []byte) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) DieFeedPtr(r *storagev1.VolumeAttachment) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) DieFeedRawExtension(raw runtime.RawExtension) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) DieFeedYAML(y []byte) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) DieFeedYAMLFile(name string) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) DieImmutable(immutable bool) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) DieRelease() storagev1.VolumeAttachment
- func (d *VolumeAttachmentDie) DieReleaseJSON() []byte
- func (d *VolumeAttachmentDie) DieReleasePtr() *storagev1.VolumeAttachment
- func (d *VolumeAttachmentDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *VolumeAttachmentDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *VolumeAttachmentDie) DieReleaseYAML() []byte
- func (d *VolumeAttachmentDie) DieStamp(fn func(r *storagev1.VolumeAttachment)) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) DieStampAt(jp string, fn interface{}) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) DieWith(fns ...func(d *VolumeAttachmentDie)) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) GetObjectKind() schema.ObjectKind
- func (d *VolumeAttachmentDie) Kind(v string) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) MarshalJSON() ([]byte, error)
- func (d *VolumeAttachmentDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) Spec(v storagev1.VolumeAttachmentSpec) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) SpecDie(fn func(d *VolumeAttachmentSpecDie)) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) Status(v storagev1.VolumeAttachmentStatus) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) StatusDie(fn func(d *VolumeAttachmentStatusDie)) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) UnmarshalJSON(b []byte) error
- type VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) DeepCopy() *VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) DieFeed(r storagev1.VolumeAttachmentSource) *VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) DieFeedJSON(j []byte) *VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) DieFeedPtr(r *storagev1.VolumeAttachmentSource) *VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) DieFeedRawExtension(raw runtime.RawExtension) *VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) DieFeedYAML(y []byte) *VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) DieFeedYAMLFile(name string) *VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) DieImmutable(immutable bool) *VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) DieRelease() storagev1.VolumeAttachmentSource
- func (d *VolumeAttachmentSourceDie) DieReleaseJSON() []byte
- func (d *VolumeAttachmentSourceDie) DieReleasePtr() *storagev1.VolumeAttachmentSource
- func (d *VolumeAttachmentSourceDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *VolumeAttachmentSourceDie) DieReleaseYAML() []byte
- func (d *VolumeAttachmentSourceDie) DieStamp(fn func(r *storagev1.VolumeAttachmentSource)) *VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) DieStampAt(jp string, fn interface{}) *VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) DieWith(fns ...func(d *VolumeAttachmentSourceDie)) *VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) InlineVolumeSpec(v *corev1.PersistentVolumeSpec) *VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) PersistentVolumeName(v *string) *VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) SourceDie(fn func(d *diecorev1.PersistentVolumeSpecDie)) *VolumeAttachmentSourceDie
- type VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) Attacher(v string) *VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) DeepCopy() *VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) DieFeed(r storagev1.VolumeAttachmentSpec) *VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) DieFeedJSON(j []byte) *VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) DieFeedPtr(r *storagev1.VolumeAttachmentSpec) *VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) DieFeedYAML(y []byte) *VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) DieFeedYAMLFile(name string) *VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) DieImmutable(immutable bool) *VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) DieRelease() storagev1.VolumeAttachmentSpec
- func (d *VolumeAttachmentSpecDie) DieReleaseJSON() []byte
- func (d *VolumeAttachmentSpecDie) DieReleasePtr() *storagev1.VolumeAttachmentSpec
- func (d *VolumeAttachmentSpecDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *VolumeAttachmentSpecDie) DieReleaseYAML() []byte
- func (d *VolumeAttachmentSpecDie) DieStamp(fn func(r *storagev1.VolumeAttachmentSpec)) *VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) DieStampAt(jp string, fn interface{}) *VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) DieWith(fns ...func(d *VolumeAttachmentSpecDie)) *VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) NodeName(v string) *VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) Source(v storagev1.VolumeAttachmentSource) *VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) SourceDie(fn func(d *VolumeAttachmentSourceDie)) *VolumeAttachmentSpecDie
- type VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) AttachError(v *storagev1.VolumeError) *VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) AttachErrorDie(fn func(d *VolumeErrorDie)) *VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) Attached(v bool) *VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) AttachmentMetadata(v map[string]string) *VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) DeepCopy() *VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) DetachError(v *storagev1.VolumeError) *VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) DetachErrorDie(fn func(d *VolumeErrorDie)) *VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) DieFeed(r storagev1.VolumeAttachmentStatus) *VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) DieFeedJSON(j []byte) *VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) DieFeedPtr(r *storagev1.VolumeAttachmentStatus) *VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) DieFeedYAML(y []byte) *VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) DieFeedYAMLFile(name string) *VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) DieImmutable(immutable bool) *VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) DieRelease() storagev1.VolumeAttachmentStatus
- func (d *VolumeAttachmentStatusDie) DieReleaseJSON() []byte
- func (d *VolumeAttachmentStatusDie) DieReleasePtr() *storagev1.VolumeAttachmentStatus
- func (d *VolumeAttachmentStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *VolumeAttachmentStatusDie) DieReleaseYAML() []byte
- func (d *VolumeAttachmentStatusDie) DieStamp(fn func(r *storagev1.VolumeAttachmentStatus)) *VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) DieStampAt(jp string, fn interface{}) *VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) DieWith(fns ...func(d *VolumeAttachmentStatusDie)) *VolumeAttachmentStatusDie
- type VolumeErrorDie
- func (d *VolumeErrorDie) DeepCopy() *VolumeErrorDie
- func (d *VolumeErrorDie) DieFeed(r storagev1.VolumeError) *VolumeErrorDie
- func (d *VolumeErrorDie) DieFeedJSON(j []byte) *VolumeErrorDie
- func (d *VolumeErrorDie) DieFeedPtr(r *storagev1.VolumeError) *VolumeErrorDie
- func (d *VolumeErrorDie) DieFeedRawExtension(raw runtime.RawExtension) *VolumeErrorDie
- func (d *VolumeErrorDie) DieFeedYAML(y []byte) *VolumeErrorDie
- func (d *VolumeErrorDie) DieFeedYAMLFile(name string) *VolumeErrorDie
- func (d *VolumeErrorDie) DieImmutable(immutable bool) *VolumeErrorDie
- func (d *VolumeErrorDie) DieRelease() storagev1.VolumeError
- func (d *VolumeErrorDie) DieReleaseJSON() []byte
- func (d *VolumeErrorDie) DieReleasePtr() *storagev1.VolumeError
- func (d *VolumeErrorDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *VolumeErrorDie) DieReleaseYAML() []byte
- func (d *VolumeErrorDie) DieStamp(fn func(r *storagev1.VolumeError)) *VolumeErrorDie
- func (d *VolumeErrorDie) DieStampAt(jp string, fn interface{}) *VolumeErrorDie
- func (d *VolumeErrorDie) DieWith(fns ...func(d *VolumeErrorDie)) *VolumeErrorDie
- func (d *VolumeErrorDie) Message(v string) *VolumeErrorDie
- func (d *VolumeErrorDie) Time(v apismetav1.Time) *VolumeErrorDie
- type VolumeNodeResourcesDie
- func (d *VolumeNodeResourcesDie) Count(v *int32) *VolumeNodeResourcesDie
- func (d *VolumeNodeResourcesDie) DeepCopy() *VolumeNodeResourcesDie
- func (d *VolumeNodeResourcesDie) DieFeed(r storagev1.VolumeNodeResources) *VolumeNodeResourcesDie
- func (d *VolumeNodeResourcesDie) DieFeedJSON(j []byte) *VolumeNodeResourcesDie
- func (d *VolumeNodeResourcesDie) DieFeedPtr(r *storagev1.VolumeNodeResources) *VolumeNodeResourcesDie
- func (d *VolumeNodeResourcesDie) DieFeedRawExtension(raw runtime.RawExtension) *VolumeNodeResourcesDie
- func (d *VolumeNodeResourcesDie) DieFeedYAML(y []byte) *VolumeNodeResourcesDie
- func (d *VolumeNodeResourcesDie) DieFeedYAMLFile(name string) *VolumeNodeResourcesDie
- func (d *VolumeNodeResourcesDie) DieImmutable(immutable bool) *VolumeNodeResourcesDie
- func (d *VolumeNodeResourcesDie) DieRelease() storagev1.VolumeNodeResources
- func (d *VolumeNodeResourcesDie) DieReleaseJSON() []byte
- func (d *VolumeNodeResourcesDie) DieReleasePtr() *storagev1.VolumeNodeResources
- func (d *VolumeNodeResourcesDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *VolumeNodeResourcesDie) DieReleaseYAML() []byte
- func (d *VolumeNodeResourcesDie) DieStamp(fn func(r *storagev1.VolumeNodeResources)) *VolumeNodeResourcesDie
- func (d *VolumeNodeResourcesDie) DieStampAt(jp string, fn interface{}) *VolumeNodeResourcesDie
- func (d *VolumeNodeResourcesDie) DieWith(fns ...func(d *VolumeNodeResourcesDie)) *VolumeNodeResourcesDie
Constants ¶
This section is empty.
Variables ¶
var CSIDriverBlank = (&CSIDriverDie{}).DieFeed(storagev1.CSIDriver{})
var CSIDriverSpecBlank = (&CSIDriverSpecDie{}).DieFeed(storagev1.CSIDriverSpec{})
var CSINodeBlank = (&CSINodeDie{}).DieFeed(storagev1.CSINode{})
var CSINodeDriverBlank = (&CSINodeDriverDie{}).DieFeed(storagev1.CSINodeDriver{})
var CSINodeSpecBlank = (&CSINodeSpecDie{}).DieFeed(storagev1.CSINodeSpec{})
var StorageClassBlank = (&StorageClassDie{}).DieFeed(storagev1.StorageClass{})
var TokenRequestBlank = (&TokenRequestDie{}).DieFeed(storagev1.TokenRequest{})
var VolumeAttachmentBlank = (&VolumeAttachmentDie{}).DieFeed(storagev1.VolumeAttachment{})
var VolumeAttachmentSourceBlank = (&VolumeAttachmentSourceDie{}).DieFeed(storagev1.VolumeAttachmentSource{})
var VolumeAttachmentSpecBlank = (&VolumeAttachmentSpecDie{}).DieFeed(storagev1.VolumeAttachmentSpec{})
var VolumeAttachmentStatusBlank = (&VolumeAttachmentStatusDie{}).DieFeed(storagev1.VolumeAttachmentStatus{})
var VolumeErrorBlank = (&VolumeErrorDie{}).DieFeed(storagev1.VolumeError{})
var VolumeNodeResourcesBlank = (&VolumeNodeResourcesDie{}).DieFeed(storagev1.VolumeNodeResources{})
Functions ¶
This section is empty.
Types ¶
type CSIDriverDie ¶
type CSIDriverDie struct { metav1.FrozenObjectMeta // contains filtered or unexported fields }
func (*CSIDriverDie) APIVersion ¶
func (d *CSIDriverDie) APIVersion(v string) *CSIDriverDie
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (*CSIDriverDie) DeepCopy ¶
func (d *CSIDriverDie) DeepCopy() *CSIDriverDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CSIDriverDie) DeepCopyObject ¶
func (d *CSIDriverDie) DeepCopyObject() runtime.Object
func (*CSIDriverDie) DieFeed ¶
func (d *CSIDriverDie) DieFeed(r storagev1.CSIDriver) *CSIDriverDie
DieFeed returns a new die with the provided resource.
func (*CSIDriverDie) DieFeedJSON ¶
func (d *CSIDriverDie) DieFeedJSON(j []byte) *CSIDriverDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CSIDriverDie) DieFeedPtr ¶
func (d *CSIDriverDie) DieFeedPtr(r *storagev1.CSIDriver) *CSIDriverDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CSIDriverDie) DieFeedRawExtension ¶
func (d *CSIDriverDie) DieFeedRawExtension(raw runtime.RawExtension) *CSIDriverDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CSIDriverDie) DieFeedYAML ¶
func (d *CSIDriverDie) DieFeedYAML(y []byte) *CSIDriverDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CSIDriverDie) DieFeedYAMLFile ¶
func (d *CSIDriverDie) DieFeedYAMLFile(name string) *CSIDriverDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CSIDriverDie) DieImmutable ¶
func (d *CSIDriverDie) DieImmutable(immutable bool) *CSIDriverDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*CSIDriverDie) DieRelease ¶
func (d *CSIDriverDie) DieRelease() storagev1.CSIDriver
DieRelease returns the resource managed by the die.
func (*CSIDriverDie) DieReleaseJSON ¶
func (d *CSIDriverDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*CSIDriverDie) DieReleasePtr ¶
func (d *CSIDriverDie) DieReleasePtr() *storagev1.CSIDriver
DieReleasePtr returns a pointer to the resource managed by the die.
func (*CSIDriverDie) DieReleaseRawExtension ¶
func (d *CSIDriverDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CSIDriverDie) DieReleaseUnstructured ¶
func (d *CSIDriverDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.
func (*CSIDriverDie) DieReleaseYAML ¶
func (d *CSIDriverDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*CSIDriverDie) DieStamp ¶
func (d *CSIDriverDie) DieStamp(fn func(r *storagev1.CSIDriver)) *CSIDriverDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*CSIDriverDie) DieStampAt ¶
func (d *CSIDriverDie) DieStampAt(jp string, fn interface{}) *CSIDriverDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*CSIDriverDie) DieWith ¶
func (d *CSIDriverDie) DieWith(fns ...func(d *CSIDriverDie)) *CSIDriverDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*CSIDriverDie) GetObjectKind ¶
func (d *CSIDriverDie) GetObjectKind() schema.ObjectKind
func (*CSIDriverDie) Kind ¶
func (d *CSIDriverDie) Kind(v string) *CSIDriverDie
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (*CSIDriverDie) MarshalJSON ¶
func (d *CSIDriverDie) MarshalJSON() ([]byte, error)
func (*CSIDriverDie) MetadataDie ¶
func (d *CSIDriverDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *CSIDriverDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*CSIDriverDie) Spec ¶
func (d *CSIDriverDie) Spec(v storagev1.CSIDriverSpec) *CSIDriverDie
spec represents the specification of the CSI Driver.
func (*CSIDriverDie) SpecDie ¶
func (d *CSIDriverDie) SpecDie(fn func(d *CSIDriverSpecDie)) *CSIDriverDie
SpecDie stamps the resource's spec field with a mutable die.
func (*CSIDriverDie) UnmarshalJSON ¶
func (d *CSIDriverDie) UnmarshalJSON(b []byte) error
type CSIDriverSpecDie ¶
type CSIDriverSpecDie struct {
// contains filtered or unexported fields
}
func (*CSIDriverSpecDie) AttachRequired ¶
func (d *CSIDriverSpecDie) AttachRequired(v *bool) *CSIDriverSpecDie
attachRequired indicates this CSI volume driver requires an attach
operation (because it implements the CSI ControllerPublishVolume()
method), and that the Kubernetes attach detach controller should call
the attach volume interface which checks the volumeattachment status
and waits until the volume is attached before proceeding to mounting.
The CSI external-attacher coordinates with CSI volume driver and updates ¶
the volumeattachment status when the attach operation is complete.
If the CSIDriverRegistry feature gate is enabled and the value is ¶
specified to false, the attach operation will be skipped.
Otherwise the attach operation will be called.
This field is immutable.
func (*CSIDriverSpecDie) DeepCopy ¶
func (d *CSIDriverSpecDie) DeepCopy() *CSIDriverSpecDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CSIDriverSpecDie) DieFeed ¶
func (d *CSIDriverSpecDie) DieFeed(r storagev1.CSIDriverSpec) *CSIDriverSpecDie
DieFeed returns a new die with the provided resource.
func (*CSIDriverSpecDie) DieFeedJSON ¶
func (d *CSIDriverSpecDie) DieFeedJSON(j []byte) *CSIDriverSpecDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CSIDriverSpecDie) DieFeedPtr ¶
func (d *CSIDriverSpecDie) DieFeedPtr(r *storagev1.CSIDriverSpec) *CSIDriverSpecDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CSIDriverSpecDie) DieFeedRawExtension ¶
func (d *CSIDriverSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *CSIDriverSpecDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CSIDriverSpecDie) DieFeedYAML ¶
func (d *CSIDriverSpecDie) DieFeedYAML(y []byte) *CSIDriverSpecDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CSIDriverSpecDie) DieFeedYAMLFile ¶
func (d *CSIDriverSpecDie) DieFeedYAMLFile(name string) *CSIDriverSpecDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CSIDriverSpecDie) DieImmutable ¶
func (d *CSIDriverSpecDie) DieImmutable(immutable bool) *CSIDriverSpecDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*CSIDriverSpecDie) DieRelease ¶
func (d *CSIDriverSpecDie) DieRelease() storagev1.CSIDriverSpec
DieRelease returns the resource managed by the die.
func (*CSIDriverSpecDie) DieReleaseJSON ¶
func (d *CSIDriverSpecDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*CSIDriverSpecDie) DieReleasePtr ¶
func (d *CSIDriverSpecDie) DieReleasePtr() *storagev1.CSIDriverSpec
DieReleasePtr returns a pointer to the resource managed by the die.
func (*CSIDriverSpecDie) DieReleaseRawExtension ¶
func (d *CSIDriverSpecDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CSIDriverSpecDie) DieReleaseYAML ¶
func (d *CSIDriverSpecDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*CSIDriverSpecDie) DieStamp ¶
func (d *CSIDriverSpecDie) DieStamp(fn func(r *storagev1.CSIDriverSpec)) *CSIDriverSpecDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*CSIDriverSpecDie) DieStampAt ¶
func (d *CSIDriverSpecDie) DieStampAt(jp string, fn interface{}) *CSIDriverSpecDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*CSIDriverSpecDie) DieWith ¶
func (d *CSIDriverSpecDie) DieWith(fns ...func(d *CSIDriverSpecDie)) *CSIDriverSpecDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*CSIDriverSpecDie) FSGroupPolicy ¶
func (d *CSIDriverSpecDie) FSGroupPolicy(v *storagev1.FSGroupPolicy) *CSIDriverSpecDie
fsGroupPolicy defines if the underlying volume supports changing ownership and
permission of the volume before being mounted.
Refer to the specific FSGroupPolicy values for additional details.
This field is immutable.
Defaults to ReadWriteOnceWithFSType, which will examine each volume ¶
to determine if Kubernetes should modify ownership and permissions of the volume.
With the default policy the defined fsGroup will only be applied ¶
if a fstype is defined and the volume's access mode contains ReadWriteOnce.
func (*CSIDriverSpecDie) PodInfoOnMount ¶
func (d *CSIDriverSpecDie) PodInfoOnMount(v *bool) *CSIDriverSpecDie
podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.)
during mount operations, if set to true.
If set to false, pod information will not be passed on mount.
Default is false.
The CSI driver specifies podInfoOnMount as part of driver deployment.
If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls.
The CSI driver is responsible for parsing and validating the information passed in as VolumeContext.
The following VolumeContext will be passed if podInfoOnMount is set to true.
This list might grow, but the prefix will be used.
"csi.storage.k8s.io/pod.name": pod.Name
"csi.storage.k8s.io/pod.namespace": pod.Namespace
"csi.storage.k8s.io/pod.uid": string(pod.UID)
"csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume
defined by a CSIVolumeSource, otherwise "false"
"csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only
required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode.
Other drivers can leave pod info disabled and/or ignore this field.
As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when
deployed on such a cluster and the deployment determines which mode that is, for example
via a command line parameter of the driver.
This field is immutable.
func (*CSIDriverSpecDie) RequiresRepublish ¶
func (d *CSIDriverSpecDie) RequiresRepublish(v *bool) *CSIDriverSpecDie
requiresRepublish indicates the CSI driver wants `NodePublishVolume`
being periodically called to reflect any possible change in the mounted
volume. This field defaults to false.
Note: After a successful initial NodePublishVolume call, subsequent calls
to NodePublishVolume should only update the contents of the volume. New
mount points will not be seen by a running container.
func (*CSIDriverSpecDie) SELinuxMount ¶
func (d *CSIDriverSpecDie) SELinuxMount(v *bool) *CSIDriverSpecDie
seLinuxMount specifies if the CSI driver supports "-o context"
mount option.
When "true", the CSI driver must ensure that all volumes provided by this CSI
driver can be mounted separately with different `-o context` options. This is
typical for storage backends that provide volumes as filesystems on block
devices or as independent shared volumes.
Kubernetes will call NodeStage / NodePublish with "-o context=xyz" mount
option when mounting a ReadWriteOncePod volume used in Pod that has
explicitly set SELinux context. In the future, it may be expanded to other
volume AccessModes. In any case, Kubernetes will ensure that the volume is
mounted only with a single SELinux context.
When "false", Kubernetes won't pass any special SELinux mount options to the driver.
This is typical for volumes that represent subdirectories of a bigger shared filesystem.
Default is "false".
func (*CSIDriverSpecDie) StorageCapacity ¶
func (d *CSIDriverSpecDie) StorageCapacity(v *bool) *CSIDriverSpecDie
storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage
capacity that the driver deployment will report by creating
CSIStorageCapacity objects with capacity information, if set to true.
The check can be enabled immediately when deploying a driver.
In that case, provisioning new volumes with late binding ¶
will pause until the driver deployment has published
some suitable CSIStorageCapacity object.
Alternatively, the driver can be deployed with the field ¶
unset or false and it can be flipped later when storage
capacity information has been published.
This field was immutable in Kubernetes <= 1.22 and now is mutable.
func (*CSIDriverSpecDie) TokenRequests ¶
func (d *CSIDriverSpecDie) TokenRequests(v ...storagev1.TokenRequest) *CSIDriverSpecDie
tokenRequests indicates the CSI driver needs pods' service account
tokens it is mounting volume for to do necessary authentication. Kubelet
will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
The CSI driver should parse and validate the following VolumeContext:
"csi.storage.k8s.io/serviceAccount.tokens": {
"<audience>": {
"token": <token>,
"expirationTimestamp": <expiration timestamp in RFC3339>,
},
...
}
Note: Audience in each TokenRequest should be different and at
most one token is empty string. To receive a new token after expiry,
RequiresRepublish can be used to trigger NodePublishVolume periodically.
func (*CSIDriverSpecDie) TokenRequestsDie ¶
func (d *CSIDriverSpecDie) TokenRequestsDie(requests ...*TokenRequestDie) *CSIDriverSpecDie
func (*CSIDriverSpecDie) VolumeLifecycleModes ¶
func (d *CSIDriverSpecDie) VolumeLifecycleModes(v ...storagev1.VolumeLifecycleMode) *CSIDriverSpecDie
volumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
The default if the list is empty is "Persistent", which is the usage defined by the
CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism.
The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec
with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod.
A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume.
For more information about implementing this mode, see ¶
https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
A driver can support one or more of these modes and more modes may be added in the future.
This field is beta.
This field is immutable.
type CSINodeDie ¶
type CSINodeDie struct { metav1.FrozenObjectMeta // contains filtered or unexported fields }
func (*CSINodeDie) APIVersion ¶
func (d *CSINodeDie) APIVersion(v string) *CSINodeDie
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (*CSINodeDie) DeepCopy ¶
func (d *CSINodeDie) DeepCopy() *CSINodeDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CSINodeDie) DeepCopyObject ¶
func (d *CSINodeDie) DeepCopyObject() runtime.Object
func (*CSINodeDie) DieFeed ¶
func (d *CSINodeDie) DieFeed(r storagev1.CSINode) *CSINodeDie
DieFeed returns a new die with the provided resource.
func (*CSINodeDie) DieFeedJSON ¶
func (d *CSINodeDie) DieFeedJSON(j []byte) *CSINodeDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CSINodeDie) DieFeedPtr ¶
func (d *CSINodeDie) DieFeedPtr(r *storagev1.CSINode) *CSINodeDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CSINodeDie) DieFeedRawExtension ¶
func (d *CSINodeDie) DieFeedRawExtension(raw runtime.RawExtension) *CSINodeDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CSINodeDie) DieFeedYAML ¶
func (d *CSINodeDie) DieFeedYAML(y []byte) *CSINodeDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CSINodeDie) DieFeedYAMLFile ¶
func (d *CSINodeDie) DieFeedYAMLFile(name string) *CSINodeDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CSINodeDie) DieImmutable ¶
func (d *CSINodeDie) DieImmutable(immutable bool) *CSINodeDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*CSINodeDie) DieRelease ¶
func (d *CSINodeDie) DieRelease() storagev1.CSINode
DieRelease returns the resource managed by the die.
func (*CSINodeDie) DieReleaseJSON ¶
func (d *CSINodeDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*CSINodeDie) DieReleasePtr ¶
func (d *CSINodeDie) DieReleasePtr() *storagev1.CSINode
DieReleasePtr returns a pointer to the resource managed by the die.
func (*CSINodeDie) DieReleaseRawExtension ¶
func (d *CSINodeDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CSINodeDie) DieReleaseUnstructured ¶
func (d *CSINodeDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.
func (*CSINodeDie) DieReleaseYAML ¶
func (d *CSINodeDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*CSINodeDie) DieStamp ¶
func (d *CSINodeDie) DieStamp(fn func(r *storagev1.CSINode)) *CSINodeDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*CSINodeDie) DieStampAt ¶
func (d *CSINodeDie) DieStampAt(jp string, fn interface{}) *CSINodeDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*CSINodeDie) DieWith ¶
func (d *CSINodeDie) DieWith(fns ...func(d *CSINodeDie)) *CSINodeDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*CSINodeDie) GetObjectKind ¶
func (d *CSINodeDie) GetObjectKind() schema.ObjectKind
func (*CSINodeDie) Kind ¶
func (d *CSINodeDie) Kind(v string) *CSINodeDie
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (*CSINodeDie) MarshalJSON ¶
func (d *CSINodeDie) MarshalJSON() ([]byte, error)
func (*CSINodeDie) MetadataDie ¶
func (d *CSINodeDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *CSINodeDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*CSINodeDie) Spec ¶
func (d *CSINodeDie) Spec(v storagev1.CSINodeSpec) *CSINodeDie
spec is the specification of CSINode
func (*CSINodeDie) SpecDie ¶
func (d *CSINodeDie) SpecDie(fn func(d *CSINodeSpecDie)) *CSINodeDie
SpecDie stamps the resource's spec field with a mutable die.
func (*CSINodeDie) UnmarshalJSON ¶
func (d *CSINodeDie) UnmarshalJSON(b []byte) error
type CSINodeDriverDie ¶
type CSINodeDriverDie struct {
// contains filtered or unexported fields
}
func (*CSINodeDriverDie) Allocatable ¶
func (d *CSINodeDriverDie) Allocatable(v *storagev1.VolumeNodeResources) *CSINodeDriverDie
allocatable represents the volume resources of a node that are available for scheduling.
This field is beta.
func (*CSINodeDriverDie) AllocatableDie ¶
func (d *CSINodeDriverDie) AllocatableDie(fn func(d *VolumeNodeResourcesDie)) *CSINodeDriverDie
func (*CSINodeDriverDie) DeepCopy ¶
func (d *CSINodeDriverDie) DeepCopy() *CSINodeDriverDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CSINodeDriverDie) DieFeed ¶
func (d *CSINodeDriverDie) DieFeed(r storagev1.CSINodeDriver) *CSINodeDriverDie
DieFeed returns a new die with the provided resource.
func (*CSINodeDriverDie) DieFeedJSON ¶
func (d *CSINodeDriverDie) DieFeedJSON(j []byte) *CSINodeDriverDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CSINodeDriverDie) DieFeedPtr ¶
func (d *CSINodeDriverDie) DieFeedPtr(r *storagev1.CSINodeDriver) *CSINodeDriverDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CSINodeDriverDie) DieFeedRawExtension ¶
func (d *CSINodeDriverDie) DieFeedRawExtension(raw runtime.RawExtension) *CSINodeDriverDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CSINodeDriverDie) DieFeedYAML ¶
func (d *CSINodeDriverDie) DieFeedYAML(y []byte) *CSINodeDriverDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CSINodeDriverDie) DieFeedYAMLFile ¶
func (d *CSINodeDriverDie) DieFeedYAMLFile(name string) *CSINodeDriverDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CSINodeDriverDie) DieImmutable ¶
func (d *CSINodeDriverDie) DieImmutable(immutable bool) *CSINodeDriverDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*CSINodeDriverDie) DieRelease ¶
func (d *CSINodeDriverDie) DieRelease() storagev1.CSINodeDriver
DieRelease returns the resource managed by the die.
func (*CSINodeDriverDie) DieReleaseJSON ¶
func (d *CSINodeDriverDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*CSINodeDriverDie) DieReleasePtr ¶
func (d *CSINodeDriverDie) DieReleasePtr() *storagev1.CSINodeDriver
DieReleasePtr returns a pointer to the resource managed by the die.
func (*CSINodeDriverDie) DieReleaseRawExtension ¶
func (d *CSINodeDriverDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CSINodeDriverDie) DieReleaseYAML ¶
func (d *CSINodeDriverDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*CSINodeDriverDie) DieStamp ¶
func (d *CSINodeDriverDie) DieStamp(fn func(r *storagev1.CSINodeDriver)) *CSINodeDriverDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*CSINodeDriverDie) DieStampAt ¶
func (d *CSINodeDriverDie) DieStampAt(jp string, fn interface{}) *CSINodeDriverDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*CSINodeDriverDie) DieWith ¶
func (d *CSINodeDriverDie) DieWith(fns ...func(d *CSINodeDriverDie)) *CSINodeDriverDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*CSINodeDriverDie) Name ¶
func (d *CSINodeDriverDie) Name(v string) *CSINodeDriverDie
name represents the name of the CSI driver that this object refers to.
This MUST be the same name returned by the CSI GetPluginName() call for ¶
that driver.
func (*CSINodeDriverDie) NodeID ¶
func (d *CSINodeDriverDie) NodeID(v string) *CSINodeDriverDie
nodeID of the node from the driver point of view.
This field enables Kubernetes to communicate with storage systems that do ¶
not share the same nomenclature for nodes. For example, Kubernetes may
refer to a given node as "node1", but the storage system may refer to
the same node as "nodeA". When Kubernetes issues a command to the storage
system to attach a volume to a specific node, it can use this field to
refer to the node name using the ID that the storage system will
understand, e.g. "nodeA" instead of "node1". This field is required.
func (*CSINodeDriverDie) TopologyKeys ¶
func (d *CSINodeDriverDie) TopologyKeys(v ...string) *CSINodeDriverDie
topologyKeys is the list of keys supported by the driver.
When a driver is initialized on a cluster, it provides a set of topology ¶
keys that it understands (e.g. "company.com/zone", "company.com/region").
When a driver is initialized on a node, it provides the same topology keys ¶
along with values. Kubelet will expose these topology keys as labels
on its own node object.
When Kubernetes does topology aware provisioning, it can use this list to ¶
determine which labels it should retrieve from the node object and pass
back to the driver.
It is possible for different nodes to use different topology keys.
This can be empty if driver does not support topology.
type CSINodeSpecDie ¶
type CSINodeSpecDie struct {
// contains filtered or unexported fields
}
func (*CSINodeSpecDie) DeepCopy ¶
func (d *CSINodeSpecDie) DeepCopy() *CSINodeSpecDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CSINodeSpecDie) DieFeed ¶
func (d *CSINodeSpecDie) DieFeed(r storagev1.CSINodeSpec) *CSINodeSpecDie
DieFeed returns a new die with the provided resource.
func (*CSINodeSpecDie) DieFeedJSON ¶
func (d *CSINodeSpecDie) DieFeedJSON(j []byte) *CSINodeSpecDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CSINodeSpecDie) DieFeedPtr ¶
func (d *CSINodeSpecDie) DieFeedPtr(r *storagev1.CSINodeSpec) *CSINodeSpecDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CSINodeSpecDie) DieFeedRawExtension ¶
func (d *CSINodeSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *CSINodeSpecDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CSINodeSpecDie) DieFeedYAML ¶
func (d *CSINodeSpecDie) DieFeedYAML(y []byte) *CSINodeSpecDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CSINodeSpecDie) DieFeedYAMLFile ¶
func (d *CSINodeSpecDie) DieFeedYAMLFile(name string) *CSINodeSpecDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CSINodeSpecDie) DieImmutable ¶
func (d *CSINodeSpecDie) DieImmutable(immutable bool) *CSINodeSpecDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*CSINodeSpecDie) DieRelease ¶
func (d *CSINodeSpecDie) DieRelease() storagev1.CSINodeSpec
DieRelease returns the resource managed by the die.
func (*CSINodeSpecDie) DieReleaseJSON ¶
func (d *CSINodeSpecDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*CSINodeSpecDie) DieReleasePtr ¶
func (d *CSINodeSpecDie) DieReleasePtr() *storagev1.CSINodeSpec
DieReleasePtr returns a pointer to the resource managed by the die.
func (*CSINodeSpecDie) DieReleaseRawExtension ¶
func (d *CSINodeSpecDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CSINodeSpecDie) DieReleaseYAML ¶
func (d *CSINodeSpecDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*CSINodeSpecDie) DieStamp ¶
func (d *CSINodeSpecDie) DieStamp(fn func(r *storagev1.CSINodeSpec)) *CSINodeSpecDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*CSINodeSpecDie) DieStampAt ¶
func (d *CSINodeSpecDie) DieStampAt(jp string, fn interface{}) *CSINodeSpecDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*CSINodeSpecDie) DieWith ¶
func (d *CSINodeSpecDie) DieWith(fns ...func(d *CSINodeSpecDie)) *CSINodeSpecDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*CSINodeSpecDie) Drivers ¶
func (d *CSINodeSpecDie) Drivers(v ...storagev1.CSINodeDriver) *CSINodeSpecDie
drivers is a list of information of all CSI Drivers existing on a node.
If all drivers in the list are uninstalled, this can become empty.
func (*CSINodeSpecDie) DriversDie ¶
func (d *CSINodeSpecDie) DriversDie(drivers ...*CSINodeDriverDie) *CSINodeSpecDie
type StorageClassDie ¶
type StorageClassDie struct { metav1.FrozenObjectMeta // contains filtered or unexported fields }
func (*StorageClassDie) APIVersion ¶
func (d *StorageClassDie) APIVersion(v string) *StorageClassDie
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (*StorageClassDie) AddParameter ¶
func (d *StorageClassDie) AddParameter(key, value string) *StorageClassDie
func (*StorageClassDie) AllowVolumeExpansion ¶
func (d *StorageClassDie) AllowVolumeExpansion(v *bool) *StorageClassDie
allowVolumeExpansion shows whether the storage class allow volume expand.
func (*StorageClassDie) AllowedTopologies ¶
func (d *StorageClassDie) AllowedTopologies(v ...corev1.TopologySelectorTerm) *StorageClassDie
allowedTopologies restrict the node topologies where volumes can be dynamically provisioned.
Each volume plugin defines its own supported topology specifications.
An empty TopologySelectorTerm list means there is no topology restriction.
This field is only honored by servers that enable the VolumeScheduling feature.
func (*StorageClassDie) AllowedTopologiesDie ¶
func (d *StorageClassDie) AllowedTopologiesDie(topologies ...*diecorev1.TopologySelectorTermDie) *StorageClassDie
func (*StorageClassDie) DeepCopy ¶
func (d *StorageClassDie) DeepCopy() *StorageClassDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*StorageClassDie) DeepCopyObject ¶
func (d *StorageClassDie) DeepCopyObject() runtime.Object
func (*StorageClassDie) DieFeed ¶
func (d *StorageClassDie) DieFeed(r storagev1.StorageClass) *StorageClassDie
DieFeed returns a new die with the provided resource.
func (*StorageClassDie) DieFeedJSON ¶
func (d *StorageClassDie) DieFeedJSON(j []byte) *StorageClassDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*StorageClassDie) DieFeedPtr ¶
func (d *StorageClassDie) DieFeedPtr(r *storagev1.StorageClass) *StorageClassDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*StorageClassDie) DieFeedRawExtension ¶
func (d *StorageClassDie) DieFeedRawExtension(raw runtime.RawExtension) *StorageClassDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*StorageClassDie) DieFeedYAML ¶
func (d *StorageClassDie) DieFeedYAML(y []byte) *StorageClassDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*StorageClassDie) DieFeedYAMLFile ¶
func (d *StorageClassDie) DieFeedYAMLFile(name string) *StorageClassDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*StorageClassDie) DieImmutable ¶
func (d *StorageClassDie) DieImmutable(immutable bool) *StorageClassDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*StorageClassDie) DieRelease ¶
func (d *StorageClassDie) DieRelease() storagev1.StorageClass
DieRelease returns the resource managed by the die.
func (*StorageClassDie) DieReleaseJSON ¶
func (d *StorageClassDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*StorageClassDie) DieReleasePtr ¶
func (d *StorageClassDie) DieReleasePtr() *storagev1.StorageClass
DieReleasePtr returns a pointer to the resource managed by the die.
func (*StorageClassDie) DieReleaseRawExtension ¶
func (d *StorageClassDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*StorageClassDie) DieReleaseUnstructured ¶
func (d *StorageClassDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.
func (*StorageClassDie) DieReleaseYAML ¶
func (d *StorageClassDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*StorageClassDie) DieStamp ¶
func (d *StorageClassDie) DieStamp(fn func(r *storagev1.StorageClass)) *StorageClassDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*StorageClassDie) DieStampAt ¶
func (d *StorageClassDie) DieStampAt(jp string, fn interface{}) *StorageClassDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*StorageClassDie) DieWith ¶
func (d *StorageClassDie) DieWith(fns ...func(d *StorageClassDie)) *StorageClassDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*StorageClassDie) GetObjectKind ¶
func (d *StorageClassDie) GetObjectKind() schema.ObjectKind
func (*StorageClassDie) Kind ¶
func (d *StorageClassDie) Kind(v string) *StorageClassDie
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (*StorageClassDie) MarshalJSON ¶
func (d *StorageClassDie) MarshalJSON() ([]byte, error)
func (*StorageClassDie) MetadataDie ¶
func (d *StorageClassDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *StorageClassDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*StorageClassDie) MountOptions ¶
func (d *StorageClassDie) MountOptions(v ...string) *StorageClassDie
mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class.
e.g. ["ro", "soft"]. Not validated -
mount of the PVs will simply fail if one is invalid.
func (*StorageClassDie) Parameters ¶
func (d *StorageClassDie) Parameters(v map[string]string) *StorageClassDie
parameters holds the parameters for the provisioner that should
create volumes of this storage class.
func (*StorageClassDie) Provisioner ¶
func (d *StorageClassDie) Provisioner(v string) *StorageClassDie
provisioner indicates the type of the provisioner.
func (*StorageClassDie) ReclaimPolicy ¶
func (d *StorageClassDie) ReclaimPolicy(v *corev1.PersistentVolumeReclaimPolicy) *StorageClassDie
reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class.
Defaults to Delete.
func (*StorageClassDie) UnmarshalJSON ¶
func (d *StorageClassDie) UnmarshalJSON(b []byte) error
func (*StorageClassDie) VolumeBindingMode ¶
func (d *StorageClassDie) VolumeBindingMode(v *storagev1.VolumeBindingMode) *StorageClassDie
volumeBindingMode indicates how PersistentVolumeClaims should be
provisioned and bound. When unset, VolumeBindingImmediate is used.
This field is only honored by servers that enable the VolumeScheduling feature.
type TokenRequestDie ¶
type TokenRequestDie struct {
// contains filtered or unexported fields
}
func (*TokenRequestDie) Audience ¶
func (d *TokenRequestDie) Audience(v string) *TokenRequestDie
audience is the intended audience of the token in "TokenRequestSpec".
It will default to the audiences of kube apiserver.
func (*TokenRequestDie) DeepCopy ¶
func (d *TokenRequestDie) DeepCopy() *TokenRequestDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*TokenRequestDie) DieFeed ¶
func (d *TokenRequestDie) DieFeed(r storagev1.TokenRequest) *TokenRequestDie
DieFeed returns a new die with the provided resource.
func (*TokenRequestDie) DieFeedJSON ¶
func (d *TokenRequestDie) DieFeedJSON(j []byte) *TokenRequestDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*TokenRequestDie) DieFeedPtr ¶
func (d *TokenRequestDie) DieFeedPtr(r *storagev1.TokenRequest) *TokenRequestDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*TokenRequestDie) DieFeedRawExtension ¶
func (d *TokenRequestDie) DieFeedRawExtension(raw runtime.RawExtension) *TokenRequestDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*TokenRequestDie) DieFeedYAML ¶
func (d *TokenRequestDie) DieFeedYAML(y []byte) *TokenRequestDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*TokenRequestDie) DieFeedYAMLFile ¶
func (d *TokenRequestDie) DieFeedYAMLFile(name string) *TokenRequestDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*TokenRequestDie) DieImmutable ¶
func (d *TokenRequestDie) DieImmutable(immutable bool) *TokenRequestDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*TokenRequestDie) DieRelease ¶
func (d *TokenRequestDie) DieRelease() storagev1.TokenRequest
DieRelease returns the resource managed by the die.
func (*TokenRequestDie) DieReleaseJSON ¶
func (d *TokenRequestDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*TokenRequestDie) DieReleasePtr ¶
func (d *TokenRequestDie) DieReleasePtr() *storagev1.TokenRequest
DieReleasePtr returns a pointer to the resource managed by the die.
func (*TokenRequestDie) DieReleaseRawExtension ¶
func (d *TokenRequestDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*TokenRequestDie) DieReleaseYAML ¶
func (d *TokenRequestDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*TokenRequestDie) DieStamp ¶
func (d *TokenRequestDie) DieStamp(fn func(r *storagev1.TokenRequest)) *TokenRequestDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*TokenRequestDie) DieStampAt ¶
func (d *TokenRequestDie) DieStampAt(jp string, fn interface{}) *TokenRequestDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*TokenRequestDie) DieWith ¶
func (d *TokenRequestDie) DieWith(fns ...func(d *TokenRequestDie)) *TokenRequestDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*TokenRequestDie) ExpirationSeconds ¶
func (d *TokenRequestDie) ExpirationSeconds(v *int64) *TokenRequestDie
expirationSeconds is the duration of validity of the token in "TokenRequestSpec".
It has the same default value of "ExpirationSeconds" in "TokenRequestSpec".
type VolumeAttachmentDie ¶
type VolumeAttachmentDie struct { metav1.FrozenObjectMeta // contains filtered or unexported fields }
func (*VolumeAttachmentDie) APIVersion ¶
func (d *VolumeAttachmentDie) APIVersion(v string) *VolumeAttachmentDie
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (*VolumeAttachmentDie) DeepCopy ¶
func (d *VolumeAttachmentDie) DeepCopy() *VolumeAttachmentDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*VolumeAttachmentDie) DeepCopyObject ¶
func (d *VolumeAttachmentDie) DeepCopyObject() runtime.Object
func (*VolumeAttachmentDie) DieFeed ¶
func (d *VolumeAttachmentDie) DieFeed(r storagev1.VolumeAttachment) *VolumeAttachmentDie
DieFeed returns a new die with the provided resource.
func (*VolumeAttachmentDie) DieFeedJSON ¶
func (d *VolumeAttachmentDie) DieFeedJSON(j []byte) *VolumeAttachmentDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*VolumeAttachmentDie) DieFeedPtr ¶
func (d *VolumeAttachmentDie) DieFeedPtr(r *storagev1.VolumeAttachment) *VolumeAttachmentDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*VolumeAttachmentDie) DieFeedRawExtension ¶
func (d *VolumeAttachmentDie) DieFeedRawExtension(raw runtime.RawExtension) *VolumeAttachmentDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*VolumeAttachmentDie) DieFeedYAML ¶
func (d *VolumeAttachmentDie) DieFeedYAML(y []byte) *VolumeAttachmentDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*VolumeAttachmentDie) DieFeedYAMLFile ¶
func (d *VolumeAttachmentDie) DieFeedYAMLFile(name string) *VolumeAttachmentDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*VolumeAttachmentDie) DieImmutable ¶
func (d *VolumeAttachmentDie) DieImmutable(immutable bool) *VolumeAttachmentDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*VolumeAttachmentDie) DieRelease ¶
func (d *VolumeAttachmentDie) DieRelease() storagev1.VolumeAttachment
DieRelease returns the resource managed by the die.
func (*VolumeAttachmentDie) DieReleaseJSON ¶
func (d *VolumeAttachmentDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*VolumeAttachmentDie) DieReleasePtr ¶
func (d *VolumeAttachmentDie) DieReleasePtr() *storagev1.VolumeAttachment
DieReleasePtr returns a pointer to the resource managed by the die.
func (*VolumeAttachmentDie) DieReleaseRawExtension ¶
func (d *VolumeAttachmentDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*VolumeAttachmentDie) DieReleaseUnstructured ¶
func (d *VolumeAttachmentDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.
func (*VolumeAttachmentDie) DieReleaseYAML ¶
func (d *VolumeAttachmentDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*VolumeAttachmentDie) DieStamp ¶
func (d *VolumeAttachmentDie) DieStamp(fn func(r *storagev1.VolumeAttachment)) *VolumeAttachmentDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*VolumeAttachmentDie) DieStampAt ¶
func (d *VolumeAttachmentDie) DieStampAt(jp string, fn interface{}) *VolumeAttachmentDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*VolumeAttachmentDie) DieWith ¶
func (d *VolumeAttachmentDie) DieWith(fns ...func(d *VolumeAttachmentDie)) *VolumeAttachmentDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*VolumeAttachmentDie) GetObjectKind ¶
func (d *VolumeAttachmentDie) GetObjectKind() schema.ObjectKind
func (*VolumeAttachmentDie) Kind ¶
func (d *VolumeAttachmentDie) Kind(v string) *VolumeAttachmentDie
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (*VolumeAttachmentDie) MarshalJSON ¶
func (d *VolumeAttachmentDie) MarshalJSON() ([]byte, error)
func (*VolumeAttachmentDie) MetadataDie ¶
func (d *VolumeAttachmentDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *VolumeAttachmentDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*VolumeAttachmentDie) Spec ¶
func (d *VolumeAttachmentDie) Spec(v storagev1.VolumeAttachmentSpec) *VolumeAttachmentDie
spec represents specification of the desired attach/detach volume behavior.
Populated by the Kubernetes system.
func (*VolumeAttachmentDie) SpecDie ¶
func (d *VolumeAttachmentDie) SpecDie(fn func(d *VolumeAttachmentSpecDie)) *VolumeAttachmentDie
SpecDie stamps the resource's spec field with a mutable die.
func (*VolumeAttachmentDie) Status ¶
func (d *VolumeAttachmentDie) Status(v storagev1.VolumeAttachmentStatus) *VolumeAttachmentDie
status represents status of the VolumeAttachment request.
Populated by the entity completing the attach or detach ¶
operation, i.e. the external-attacher.
func (*VolumeAttachmentDie) StatusDie ¶
func (d *VolumeAttachmentDie) StatusDie(fn func(d *VolumeAttachmentStatusDie)) *VolumeAttachmentDie
StatusDie stamps the resource's status field with a mutable die.
func (*VolumeAttachmentDie) UnmarshalJSON ¶
func (d *VolumeAttachmentDie) UnmarshalJSON(b []byte) error
type VolumeAttachmentSourceDie ¶
type VolumeAttachmentSourceDie struct {
// contains filtered or unexported fields
}
func (*VolumeAttachmentSourceDie) DeepCopy ¶
func (d *VolumeAttachmentSourceDie) DeepCopy() *VolumeAttachmentSourceDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*VolumeAttachmentSourceDie) DieFeed ¶
func (d *VolumeAttachmentSourceDie) DieFeed(r storagev1.VolumeAttachmentSource) *VolumeAttachmentSourceDie
DieFeed returns a new die with the provided resource.
func (*VolumeAttachmentSourceDie) DieFeedJSON ¶
func (d *VolumeAttachmentSourceDie) DieFeedJSON(j []byte) *VolumeAttachmentSourceDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*VolumeAttachmentSourceDie) DieFeedPtr ¶
func (d *VolumeAttachmentSourceDie) DieFeedPtr(r *storagev1.VolumeAttachmentSource) *VolumeAttachmentSourceDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*VolumeAttachmentSourceDie) DieFeedRawExtension ¶
func (d *VolumeAttachmentSourceDie) DieFeedRawExtension(raw runtime.RawExtension) *VolumeAttachmentSourceDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*VolumeAttachmentSourceDie) DieFeedYAML ¶
func (d *VolumeAttachmentSourceDie) DieFeedYAML(y []byte) *VolumeAttachmentSourceDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*VolumeAttachmentSourceDie) DieFeedYAMLFile ¶
func (d *VolumeAttachmentSourceDie) DieFeedYAMLFile(name string) *VolumeAttachmentSourceDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*VolumeAttachmentSourceDie) DieImmutable ¶
func (d *VolumeAttachmentSourceDie) DieImmutable(immutable bool) *VolumeAttachmentSourceDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*VolumeAttachmentSourceDie) DieRelease ¶
func (d *VolumeAttachmentSourceDie) DieRelease() storagev1.VolumeAttachmentSource
DieRelease returns the resource managed by the die.
func (*VolumeAttachmentSourceDie) DieReleaseJSON ¶
func (d *VolumeAttachmentSourceDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*VolumeAttachmentSourceDie) DieReleasePtr ¶
func (d *VolumeAttachmentSourceDie) DieReleasePtr() *storagev1.VolumeAttachmentSource
DieReleasePtr returns a pointer to the resource managed by the die.
func (*VolumeAttachmentSourceDie) DieReleaseRawExtension ¶
func (d *VolumeAttachmentSourceDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*VolumeAttachmentSourceDie) DieReleaseYAML ¶
func (d *VolumeAttachmentSourceDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*VolumeAttachmentSourceDie) DieStamp ¶
func (d *VolumeAttachmentSourceDie) DieStamp(fn func(r *storagev1.VolumeAttachmentSource)) *VolumeAttachmentSourceDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*VolumeAttachmentSourceDie) DieStampAt ¶
func (d *VolumeAttachmentSourceDie) DieStampAt(jp string, fn interface{}) *VolumeAttachmentSourceDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*VolumeAttachmentSourceDie) DieWith ¶
func (d *VolumeAttachmentSourceDie) DieWith(fns ...func(d *VolumeAttachmentSourceDie)) *VolumeAttachmentSourceDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*VolumeAttachmentSourceDie) InlineVolumeSpec ¶
func (d *VolumeAttachmentSourceDie) InlineVolumeSpec(v *corev1.PersistentVolumeSpec) *VolumeAttachmentSourceDie
inlineVolumeSpec contains all the information necessary to attach
a persistent volume defined by a pod's inline VolumeSource. This field
is populated only for the CSIMigration feature. It contains
translated fields from a pod's inline VolumeSource to a
PersistentVolumeSpec. This field is beta-level and is only
honored by servers that enabled the CSIMigration feature.
func (*VolumeAttachmentSourceDie) PersistentVolumeName ¶
func (d *VolumeAttachmentSourceDie) PersistentVolumeName(v *string) *VolumeAttachmentSourceDie
persistentVolumeName represents the name of the persistent volume to attach.
func (*VolumeAttachmentSourceDie) SourceDie ¶
func (d *VolumeAttachmentSourceDie) SourceDie(fn func(d *diecorev1.PersistentVolumeSpecDie)) *VolumeAttachmentSourceDie
type VolumeAttachmentSpecDie ¶
type VolumeAttachmentSpecDie struct {
// contains filtered or unexported fields
}
func (*VolumeAttachmentSpecDie) Attacher ¶
func (d *VolumeAttachmentSpecDie) Attacher(v string) *VolumeAttachmentSpecDie
attacher indicates the name of the volume driver that MUST handle this
request. This is the name returned by GetPluginName().
func (*VolumeAttachmentSpecDie) DeepCopy ¶
func (d *VolumeAttachmentSpecDie) DeepCopy() *VolumeAttachmentSpecDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*VolumeAttachmentSpecDie) DieFeed ¶
func (d *VolumeAttachmentSpecDie) DieFeed(r storagev1.VolumeAttachmentSpec) *VolumeAttachmentSpecDie
DieFeed returns a new die with the provided resource.
func (*VolumeAttachmentSpecDie) DieFeedJSON ¶
func (d *VolumeAttachmentSpecDie) DieFeedJSON(j []byte) *VolumeAttachmentSpecDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*VolumeAttachmentSpecDie) DieFeedPtr ¶
func (d *VolumeAttachmentSpecDie) DieFeedPtr(r *storagev1.VolumeAttachmentSpec) *VolumeAttachmentSpecDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*VolumeAttachmentSpecDie) DieFeedRawExtension ¶
func (d *VolumeAttachmentSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *VolumeAttachmentSpecDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*VolumeAttachmentSpecDie) DieFeedYAML ¶
func (d *VolumeAttachmentSpecDie) DieFeedYAML(y []byte) *VolumeAttachmentSpecDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*VolumeAttachmentSpecDie) DieFeedYAMLFile ¶
func (d *VolumeAttachmentSpecDie) DieFeedYAMLFile(name string) *VolumeAttachmentSpecDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*VolumeAttachmentSpecDie) DieImmutable ¶
func (d *VolumeAttachmentSpecDie) DieImmutable(immutable bool) *VolumeAttachmentSpecDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*VolumeAttachmentSpecDie) DieRelease ¶
func (d *VolumeAttachmentSpecDie) DieRelease() storagev1.VolumeAttachmentSpec
DieRelease returns the resource managed by the die.
func (*VolumeAttachmentSpecDie) DieReleaseJSON ¶
func (d *VolumeAttachmentSpecDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*VolumeAttachmentSpecDie) DieReleasePtr ¶
func (d *VolumeAttachmentSpecDie) DieReleasePtr() *storagev1.VolumeAttachmentSpec
DieReleasePtr returns a pointer to the resource managed by the die.
func (*VolumeAttachmentSpecDie) DieReleaseRawExtension ¶
func (d *VolumeAttachmentSpecDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*VolumeAttachmentSpecDie) DieReleaseYAML ¶
func (d *VolumeAttachmentSpecDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*VolumeAttachmentSpecDie) DieStamp ¶
func (d *VolumeAttachmentSpecDie) DieStamp(fn func(r *storagev1.VolumeAttachmentSpec)) *VolumeAttachmentSpecDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*VolumeAttachmentSpecDie) DieStampAt ¶
func (d *VolumeAttachmentSpecDie) DieStampAt(jp string, fn interface{}) *VolumeAttachmentSpecDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*VolumeAttachmentSpecDie) DieWith ¶
func (d *VolumeAttachmentSpecDie) DieWith(fns ...func(d *VolumeAttachmentSpecDie)) *VolumeAttachmentSpecDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*VolumeAttachmentSpecDie) NodeName ¶
func (d *VolumeAttachmentSpecDie) NodeName(v string) *VolumeAttachmentSpecDie
nodeName represents the node that the volume should be attached to.
func (*VolumeAttachmentSpecDie) Source ¶
func (d *VolumeAttachmentSpecDie) Source(v storagev1.VolumeAttachmentSource) *VolumeAttachmentSpecDie
source represents the volume that should be attached.
func (*VolumeAttachmentSpecDie) SourceDie ¶
func (d *VolumeAttachmentSpecDie) SourceDie(fn func(d *VolumeAttachmentSourceDie)) *VolumeAttachmentSpecDie
type VolumeAttachmentStatusDie ¶
type VolumeAttachmentStatusDie struct {
// contains filtered or unexported fields
}
func (*VolumeAttachmentStatusDie) AttachError ¶
func (d *VolumeAttachmentStatusDie) AttachError(v *storagev1.VolumeError) *VolumeAttachmentStatusDie
attachError represents the last error encountered during attach operation, if any.
This field must only be set by the entity completing the attach ¶
operation, i.e. the external-attacher.
func (*VolumeAttachmentStatusDie) AttachErrorDie ¶
func (d *VolumeAttachmentStatusDie) AttachErrorDie(fn func(d *VolumeErrorDie)) *VolumeAttachmentStatusDie
func (*VolumeAttachmentStatusDie) Attached ¶
func (d *VolumeAttachmentStatusDie) Attached(v bool) *VolumeAttachmentStatusDie
attached indicates the volume is successfully attached.
This field must only be set by the entity completing the attach ¶
operation, i.e. the external-attacher.
func (*VolumeAttachmentStatusDie) AttachmentMetadata ¶
func (d *VolumeAttachmentStatusDie) AttachmentMetadata(v map[string]string) *VolumeAttachmentStatusDie
attachmentMetadata is populated with any
information returned by the attach operation, upon successful attach, that must be passed
into subsequent WaitForAttach or Mount calls.
This field must only be set by the entity completing the attach ¶
operation, i.e. the external-attacher.
func (*VolumeAttachmentStatusDie) DeepCopy ¶
func (d *VolumeAttachmentStatusDie) DeepCopy() *VolumeAttachmentStatusDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*VolumeAttachmentStatusDie) DetachError ¶
func (d *VolumeAttachmentStatusDie) DetachError(v *storagev1.VolumeError) *VolumeAttachmentStatusDie
detachError represents the last error encountered during detach operation, if any.
This field must only be set by the entity completing the detach ¶
operation, i.e. the external-attacher.
func (*VolumeAttachmentStatusDie) DetachErrorDie ¶
func (d *VolumeAttachmentStatusDie) DetachErrorDie(fn func(d *VolumeErrorDie)) *VolumeAttachmentStatusDie
func (*VolumeAttachmentStatusDie) DieFeed ¶
func (d *VolumeAttachmentStatusDie) DieFeed(r storagev1.VolumeAttachmentStatus) *VolumeAttachmentStatusDie
DieFeed returns a new die with the provided resource.
func (*VolumeAttachmentStatusDie) DieFeedJSON ¶
func (d *VolumeAttachmentStatusDie) DieFeedJSON(j []byte) *VolumeAttachmentStatusDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*VolumeAttachmentStatusDie) DieFeedPtr ¶
func (d *VolumeAttachmentStatusDie) DieFeedPtr(r *storagev1.VolumeAttachmentStatus) *VolumeAttachmentStatusDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*VolumeAttachmentStatusDie) DieFeedRawExtension ¶
func (d *VolumeAttachmentStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *VolumeAttachmentStatusDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*VolumeAttachmentStatusDie) DieFeedYAML ¶
func (d *VolumeAttachmentStatusDie) DieFeedYAML(y []byte) *VolumeAttachmentStatusDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*VolumeAttachmentStatusDie) DieFeedYAMLFile ¶
func (d *VolumeAttachmentStatusDie) DieFeedYAMLFile(name string) *VolumeAttachmentStatusDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*VolumeAttachmentStatusDie) DieImmutable ¶
func (d *VolumeAttachmentStatusDie) DieImmutable(immutable bool) *VolumeAttachmentStatusDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*VolumeAttachmentStatusDie) DieRelease ¶
func (d *VolumeAttachmentStatusDie) DieRelease() storagev1.VolumeAttachmentStatus
DieRelease returns the resource managed by the die.
func (*VolumeAttachmentStatusDie) DieReleaseJSON ¶
func (d *VolumeAttachmentStatusDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*VolumeAttachmentStatusDie) DieReleasePtr ¶
func (d *VolumeAttachmentStatusDie) DieReleasePtr() *storagev1.VolumeAttachmentStatus
DieReleasePtr returns a pointer to the resource managed by the die.
func (*VolumeAttachmentStatusDie) DieReleaseRawExtension ¶
func (d *VolumeAttachmentStatusDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*VolumeAttachmentStatusDie) DieReleaseYAML ¶
func (d *VolumeAttachmentStatusDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*VolumeAttachmentStatusDie) DieStamp ¶
func (d *VolumeAttachmentStatusDie) DieStamp(fn func(r *storagev1.VolumeAttachmentStatus)) *VolumeAttachmentStatusDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*VolumeAttachmentStatusDie) DieStampAt ¶
func (d *VolumeAttachmentStatusDie) DieStampAt(jp string, fn interface{}) *VolumeAttachmentStatusDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*VolumeAttachmentStatusDie) DieWith ¶
func (d *VolumeAttachmentStatusDie) DieWith(fns ...func(d *VolumeAttachmentStatusDie)) *VolumeAttachmentStatusDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
type VolumeErrorDie ¶
type VolumeErrorDie struct {
// contains filtered or unexported fields
}
func (*VolumeErrorDie) DeepCopy ¶
func (d *VolumeErrorDie) DeepCopy() *VolumeErrorDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*VolumeErrorDie) DieFeed ¶
func (d *VolumeErrorDie) DieFeed(r storagev1.VolumeError) *VolumeErrorDie
DieFeed returns a new die with the provided resource.
func (*VolumeErrorDie) DieFeedJSON ¶
func (d *VolumeErrorDie) DieFeedJSON(j []byte) *VolumeErrorDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*VolumeErrorDie) DieFeedPtr ¶
func (d *VolumeErrorDie) DieFeedPtr(r *storagev1.VolumeError) *VolumeErrorDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*VolumeErrorDie) DieFeedRawExtension ¶
func (d *VolumeErrorDie) DieFeedRawExtension(raw runtime.RawExtension) *VolumeErrorDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*VolumeErrorDie) DieFeedYAML ¶
func (d *VolumeErrorDie) DieFeedYAML(y []byte) *VolumeErrorDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*VolumeErrorDie) DieFeedYAMLFile ¶
func (d *VolumeErrorDie) DieFeedYAMLFile(name string) *VolumeErrorDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*VolumeErrorDie) DieImmutable ¶
func (d *VolumeErrorDie) DieImmutable(immutable bool) *VolumeErrorDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*VolumeErrorDie) DieRelease ¶
func (d *VolumeErrorDie) DieRelease() storagev1.VolumeError
DieRelease returns the resource managed by the die.
func (*VolumeErrorDie) DieReleaseJSON ¶
func (d *VolumeErrorDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*VolumeErrorDie) DieReleasePtr ¶
func (d *VolumeErrorDie) DieReleasePtr() *storagev1.VolumeError
DieReleasePtr returns a pointer to the resource managed by the die.
func (*VolumeErrorDie) DieReleaseRawExtension ¶
func (d *VolumeErrorDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*VolumeErrorDie) DieReleaseYAML ¶
func (d *VolumeErrorDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*VolumeErrorDie) DieStamp ¶
func (d *VolumeErrorDie) DieStamp(fn func(r *storagev1.VolumeError)) *VolumeErrorDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*VolumeErrorDie) DieStampAt ¶
func (d *VolumeErrorDie) DieStampAt(jp string, fn interface{}) *VolumeErrorDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*VolumeErrorDie) DieWith ¶
func (d *VolumeErrorDie) DieWith(fns ...func(d *VolumeErrorDie)) *VolumeErrorDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*VolumeErrorDie) Message ¶
func (d *VolumeErrorDie) Message(v string) *VolumeErrorDie
message represents the error encountered during Attach or Detach operation.
This string may be logged, so it should not contain sensitive ¶
information.
func (*VolumeErrorDie) Time ¶
func (d *VolumeErrorDie) Time(v apismetav1.Time) *VolumeErrorDie
time represents the time the error was encountered.
type VolumeNodeResourcesDie ¶
type VolumeNodeResourcesDie struct {
// contains filtered or unexported fields
}
func (*VolumeNodeResourcesDie) Count ¶
func (d *VolumeNodeResourcesDie) Count(v *int32) *VolumeNodeResourcesDie
count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node.
A volume that is both attached and mounted on a node is considered to be used once, not twice.
The same rule applies for a unique volume that is shared among multiple pods on the same node.
If this field is not specified, then the supported number of volumes on this node is unbounded.
func (*VolumeNodeResourcesDie) DeepCopy ¶
func (d *VolumeNodeResourcesDie) DeepCopy() *VolumeNodeResourcesDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*VolumeNodeResourcesDie) DieFeed ¶
func (d *VolumeNodeResourcesDie) DieFeed(r storagev1.VolumeNodeResources) *VolumeNodeResourcesDie
DieFeed returns a new die with the provided resource.
func (*VolumeNodeResourcesDie) DieFeedJSON ¶
func (d *VolumeNodeResourcesDie) DieFeedJSON(j []byte) *VolumeNodeResourcesDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*VolumeNodeResourcesDie) DieFeedPtr ¶
func (d *VolumeNodeResourcesDie) DieFeedPtr(r *storagev1.VolumeNodeResources) *VolumeNodeResourcesDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*VolumeNodeResourcesDie) DieFeedRawExtension ¶
func (d *VolumeNodeResourcesDie) DieFeedRawExtension(raw runtime.RawExtension) *VolumeNodeResourcesDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*VolumeNodeResourcesDie) DieFeedYAML ¶
func (d *VolumeNodeResourcesDie) DieFeedYAML(y []byte) *VolumeNodeResourcesDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*VolumeNodeResourcesDie) DieFeedYAMLFile ¶
func (d *VolumeNodeResourcesDie) DieFeedYAMLFile(name string) *VolumeNodeResourcesDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*VolumeNodeResourcesDie) DieImmutable ¶
func (d *VolumeNodeResourcesDie) DieImmutable(immutable bool) *VolumeNodeResourcesDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*VolumeNodeResourcesDie) DieRelease ¶
func (d *VolumeNodeResourcesDie) DieRelease() storagev1.VolumeNodeResources
DieRelease returns the resource managed by the die.
func (*VolumeNodeResourcesDie) DieReleaseJSON ¶
func (d *VolumeNodeResourcesDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*VolumeNodeResourcesDie) DieReleasePtr ¶
func (d *VolumeNodeResourcesDie) DieReleasePtr() *storagev1.VolumeNodeResources
DieReleasePtr returns a pointer to the resource managed by the die.
func (*VolumeNodeResourcesDie) DieReleaseRawExtension ¶
func (d *VolumeNodeResourcesDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*VolumeNodeResourcesDie) DieReleaseYAML ¶
func (d *VolumeNodeResourcesDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*VolumeNodeResourcesDie) DieStamp ¶
func (d *VolumeNodeResourcesDie) DieStamp(fn func(r *storagev1.VolumeNodeResources)) *VolumeNodeResourcesDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*VolumeNodeResourcesDie) DieStampAt ¶
func (d *VolumeNodeResourcesDie) DieStampAt(jp string, fn interface{}) *VolumeNodeResourcesDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*VolumeNodeResourcesDie) DieWith ¶
func (d *VolumeNodeResourcesDie) DieWith(fns ...func(d *VolumeNodeResourcesDie)) *VolumeNodeResourcesDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.