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) DieDefaultTypeMetadata() *CSIDriverDie
- func (d *CSIDriverDie) DieDiff(opts ...cmp.Option) string
- 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) DiePatch(patchType types.PatchType) ([]byte, error)
- 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) DieSeal() *CSIDriverDie
- func (d *CSIDriverDie) DieSealFeed(r storagev1.CSIDriver) *CSIDriverDie
- func (d *CSIDriverDie) DieSealFeedPtr(r *storagev1.CSIDriver) *CSIDriverDie
- func (d *CSIDriverDie) DieSealRelease() storagev1.CSIDriver
- func (d *CSIDriverDie) DieSealReleasePtr() *storagev1.CSIDriver
- 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) Metadata(v apismetav1.ObjectMeta) *CSIDriverDie
- 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) TypeMetadata(v apismetav1.TypeMeta) *CSIDriverDie
- func (d *CSIDriverDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *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) DieDiff(opts ...cmp.Option) string
- 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) DiePatch(patchType types.PatchType) ([]byte, error)
- 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) DieSeal() *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) DieSealFeed(r storagev1.CSIDriverSpec) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) DieSealFeedPtr(r *storagev1.CSIDriverSpec) *CSIDriverSpecDie
- func (d *CSIDriverSpecDie) DieSealRelease() storagev1.CSIDriverSpec
- func (d *CSIDriverSpecDie) DieSealReleasePtr() *storagev1.CSIDriverSpec
- 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(v ...*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) DieDefaultTypeMetadata() *CSINodeDie
- func (d *CSINodeDie) DieDiff(opts ...cmp.Option) string
- 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) DiePatch(patchType types.PatchType) ([]byte, error)
- 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) DieSeal() *CSINodeDie
- func (d *CSINodeDie) DieSealFeed(r storagev1.CSINode) *CSINodeDie
- func (d *CSINodeDie) DieSealFeedPtr(r *storagev1.CSINode) *CSINodeDie
- func (d *CSINodeDie) DieSealRelease() storagev1.CSINode
- func (d *CSINodeDie) DieSealReleasePtr() *storagev1.CSINode
- 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) Metadata(v apismetav1.ObjectMeta) *CSINodeDie
- 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) TypeMetadata(v apismetav1.TypeMeta) *CSINodeDie
- func (d *CSINodeDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *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) DieDiff(opts ...cmp.Option) string
- 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) DiePatch(patchType types.PatchType) ([]byte, error)
- 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) DieSeal() *CSINodeDriverDie
- func (d *CSINodeDriverDie) DieSealFeed(r storagev1.CSINodeDriver) *CSINodeDriverDie
- func (d *CSINodeDriverDie) DieSealFeedPtr(r *storagev1.CSINodeDriver) *CSINodeDriverDie
- func (d *CSINodeDriverDie) DieSealRelease() storagev1.CSINodeDriver
- func (d *CSINodeDriverDie) DieSealReleasePtr() *storagev1.CSINodeDriver
- 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) DieDiff(opts ...cmp.Option) string
- 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) DiePatch(patchType types.PatchType) ([]byte, error)
- 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) DieSeal() *CSINodeSpecDie
- func (d *CSINodeSpecDie) DieSealFeed(r storagev1.CSINodeSpec) *CSINodeSpecDie
- func (d *CSINodeSpecDie) DieSealFeedPtr(r *storagev1.CSINodeSpec) *CSINodeSpecDie
- func (d *CSINodeSpecDie) DieSealRelease() storagev1.CSINodeSpec
- func (d *CSINodeSpecDie) DieSealReleasePtr() *storagev1.CSINodeSpec
- 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(v ...*CSINodeDriverDie) *CSINodeSpecDie
- type CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) APIVersion(v string) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) Capacity(v *resource.Quantity) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) CapacityString(s string) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) DeepCopy() *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) DeepCopyObject() runtime.Object
- func (d *CSIStorageCapacityDie) DieDefaultTypeMetadata() *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) DieDiff(opts ...cmp.Option) string
- func (d *CSIStorageCapacityDie) DieFeed(r storagev1.CSIStorageCapacity) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) DieFeedJSON(j []byte) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) DieFeedPtr(r *storagev1.CSIStorageCapacity) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) DieFeedRawExtension(raw runtime.RawExtension) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) DieFeedYAML(y []byte) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) DieFeedYAMLFile(name string) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) DieImmutable(immutable bool) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *CSIStorageCapacityDie) DieRelease() storagev1.CSIStorageCapacity
- func (d *CSIStorageCapacityDie) DieReleaseJSON() []byte
- func (d *CSIStorageCapacityDie) DieReleasePtr() *storagev1.CSIStorageCapacity
- func (d *CSIStorageCapacityDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CSIStorageCapacityDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *CSIStorageCapacityDie) DieReleaseYAML() []byte
- func (d *CSIStorageCapacityDie) DieSeal() *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) DieSealFeed(r storagev1.CSIStorageCapacity) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) DieSealFeedPtr(r *storagev1.CSIStorageCapacity) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) DieSealRelease() storagev1.CSIStorageCapacity
- func (d *CSIStorageCapacityDie) DieSealReleasePtr() *storagev1.CSIStorageCapacity
- func (d *CSIStorageCapacityDie) DieStamp(fn func(r *storagev1.CSIStorageCapacity)) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) DieStampAt(jp string, fn interface{}) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) DieWith(fns ...func(d *CSIStorageCapacityDie)) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) GetObjectKind() schema.ObjectKind
- func (d *CSIStorageCapacityDie) Kind(v string) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) MarshalJSON() ([]byte, error)
- func (d *CSIStorageCapacityDie) MaximumVolumeSize(v *resource.Quantity) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) MaximumVolumeSizeString(s string) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) Metadata(v apismetav1.ObjectMeta) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) NodeTopology(v *apismetav1.LabelSelector) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) NodeTopologyDie(fn func(d *metav1.LabelSelectorDie)) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) StorageClassName(v string) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) TypeMetadata(v apismetav1.TypeMeta) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *CSIStorageCapacityDie
- func (d *CSIStorageCapacityDie) UnmarshalJSON(b []byte) error
- 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 ...apicorev1.TopologySelectorTerm) *StorageClassDie
- func (d *StorageClassDie) AllowedTopologiesDie(v ...*corev1.TopologySelectorTermDie) *StorageClassDie
- func (d *StorageClassDie) DeepCopy() *StorageClassDie
- func (d *StorageClassDie) DeepCopyObject() runtime.Object
- func (d *StorageClassDie) DieDefaultTypeMetadata() *StorageClassDie
- func (d *StorageClassDie) DieDiff(opts ...cmp.Option) string
- 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) DiePatch(patchType types.PatchType) ([]byte, error)
- 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) DieSeal() *StorageClassDie
- func (d *StorageClassDie) DieSealFeed(r storagev1.StorageClass) *StorageClassDie
- func (d *StorageClassDie) DieSealFeedPtr(r *storagev1.StorageClass) *StorageClassDie
- func (d *StorageClassDie) DieSealRelease() storagev1.StorageClass
- func (d *StorageClassDie) DieSealReleasePtr() *storagev1.StorageClass
- 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) Metadata(v apismetav1.ObjectMeta) *StorageClassDie
- 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 *apicorev1.PersistentVolumeReclaimPolicy) *StorageClassDie
- func (d *StorageClassDie) TypeMetadata(v apismetav1.TypeMeta) *StorageClassDie
- func (d *StorageClassDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *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) DieDiff(opts ...cmp.Option) string
- 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) DiePatch(patchType types.PatchType) ([]byte, error)
- 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) DieSeal() *TokenRequestDie
- func (d *TokenRequestDie) DieSealFeed(r storagev1.TokenRequest) *TokenRequestDie
- func (d *TokenRequestDie) DieSealFeedPtr(r *storagev1.TokenRequest) *TokenRequestDie
- func (d *TokenRequestDie) DieSealRelease() storagev1.TokenRequest
- func (d *TokenRequestDie) DieSealReleasePtr() *storagev1.TokenRequest
- 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) DieDefaultTypeMetadata() *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) DieDiff(opts ...cmp.Option) string
- 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) DiePatch(patchType types.PatchType) ([]byte, error)
- 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) DieSeal() *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) DieSealFeed(r storagev1.VolumeAttachment) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) DieSealFeedPtr(r *storagev1.VolumeAttachment) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) DieSealRelease() storagev1.VolumeAttachment
- func (d *VolumeAttachmentDie) DieSealReleasePtr() *storagev1.VolumeAttachment
- 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) Metadata(v apismetav1.ObjectMeta) *VolumeAttachmentDie
- 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) TypeMetadata(v apismetav1.TypeMeta) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *VolumeAttachmentDie
- func (d *VolumeAttachmentDie) UnmarshalJSON(b []byte) error
- type VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) DeepCopy() *VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) DieDiff(opts ...cmp.Option) string
- 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) DiePatch(patchType types.PatchType) ([]byte, error)
- 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) DieSeal() *VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) DieSealFeed(r storagev1.VolumeAttachmentSource) *VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) DieSealFeedPtr(r *storagev1.VolumeAttachmentSource) *VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) DieSealRelease() storagev1.VolumeAttachmentSource
- func (d *VolumeAttachmentSourceDie) DieSealReleasePtr() *storagev1.VolumeAttachmentSource
- 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 *apicorev1.PersistentVolumeSpec) *VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) InlineVolumeSpecDie(fn func(d *corev1.PersistentVolumeSpecDie)) *VolumeAttachmentSourceDie
- func (d *VolumeAttachmentSourceDie) PersistentVolumeName(v *string) *VolumeAttachmentSourceDie
- type VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) Attacher(v string) *VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) DeepCopy() *VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) DieDiff(opts ...cmp.Option) string
- 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) DiePatch(patchType types.PatchType) ([]byte, error)
- 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) DieSeal() *VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) DieSealFeed(r storagev1.VolumeAttachmentSpec) *VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) DieSealFeedPtr(r *storagev1.VolumeAttachmentSpec) *VolumeAttachmentSpecDie
- func (d *VolumeAttachmentSpecDie) DieSealRelease() storagev1.VolumeAttachmentSpec
- func (d *VolumeAttachmentSpecDie) DieSealReleasePtr() *storagev1.VolumeAttachmentSpec
- 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) DieDiff(opts ...cmp.Option) string
- 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) DiePatch(patchType types.PatchType) ([]byte, error)
- 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) DieSeal() *VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) DieSealFeed(r storagev1.VolumeAttachmentStatus) *VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) DieSealFeedPtr(r *storagev1.VolumeAttachmentStatus) *VolumeAttachmentStatusDie
- func (d *VolumeAttachmentStatusDie) DieSealRelease() storagev1.VolumeAttachmentStatus
- func (d *VolumeAttachmentStatusDie) DieSealReleasePtr() *storagev1.VolumeAttachmentStatus
- 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) DieDiff(opts ...cmp.Option) string
- 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) DiePatch(patchType types.PatchType) ([]byte, error)
- 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) DieSeal() *VolumeErrorDie
- func (d *VolumeErrorDie) DieSealFeed(r storagev1.VolumeError) *VolumeErrorDie
- func (d *VolumeErrorDie) DieSealFeedPtr(r *storagev1.VolumeError) *VolumeErrorDie
- func (d *VolumeErrorDie) DieSealRelease() storagev1.VolumeError
- func (d *VolumeErrorDie) DieSealReleasePtr() *storagev1.VolumeError
- 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) DieDiff(opts ...cmp.Option) string
- 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) DiePatch(patchType types.PatchType) ([]byte, error)
- 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) DieSeal() *VolumeNodeResourcesDie
- func (d *VolumeNodeResourcesDie) DieSealFeed(r storagev1.VolumeNodeResources) *VolumeNodeResourcesDie
- func (d *VolumeNodeResourcesDie) DieSealFeedPtr(r *storagev1.VolumeNodeResources) *VolumeNodeResourcesDie
- func (d *VolumeNodeResourcesDie) DieSealRelease() storagev1.VolumeNodeResources
- func (d *VolumeNodeResourcesDie) DieSealReleasePtr() *storagev1.VolumeNodeResources
- 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 CSIStorageCapacityBlank = (&CSIStorageCapacityDie{}).DieFeed(storagev1.CSIStorageCapacity{})
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) DieDefaultTypeMetadata ¶ added in v0.13.0
func (d *CSIDriverDie) DieDefaultTypeMetadata() *CSIDriverDie
DieDefaultTypeMetadata sets the APIVersion and Kind to "storage.k8s.io/v1" and "CSIDriver" respectively.
func (*CSIDriverDie) DieDiff ¶ added in v0.13.0
func (d *CSIDriverDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
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) DiePatch ¶ added in v0.13.0
func (d *CSIDriverDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
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) DieSeal ¶ added in v0.13.0
func (d *CSIDriverDie) DieSeal() *CSIDriverDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*CSIDriverDie) DieSealFeed ¶ added in v0.13.0
func (d *CSIDriverDie) DieSealFeed(r storagev1.CSIDriver) *CSIDriverDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*CSIDriverDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *CSIDriverDie) DieSealFeedPtr(r *storagev1.CSIDriver) *CSIDriverDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*CSIDriverDie) DieSealRelease ¶ added in v0.13.0
func (d *CSIDriverDie) DieSealRelease() storagev1.CSIDriver
DieSealRelease returns the sealed resource managed by the die.
func (*CSIDriverDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *CSIDriverDie) DieSealReleasePtr() *storagev1.CSIDriver
DieSealReleasePtr returns the sealed resource pointer managed by the die.
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) Metadata ¶ added in v0.13.0
func (d *CSIDriverDie) Metadata(v apismetav1.ObjectMeta) *CSIDriverDie
Metadata standard object's metadata.
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) TypeMetadata ¶ added in v0.13.0
func (d *CSIDriverDie) TypeMetadata(v apismetav1.TypeMeta) *CSIDriverDie
TypeMetadata standard object's type metadata.
func (*CSIDriverDie) TypeMetadataDie ¶ added in v0.13.0
func (d *CSIDriverDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *CSIDriverDie
TypeMetadataDie stamps the resource's TypeMeta 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) DieDiff ¶ added in v0.13.0
func (d *CSIDriverSpecDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
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) DiePatch ¶ added in v0.13.0
func (d *CSIDriverSpecDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
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) DieSeal ¶ added in v0.13.0
func (d *CSIDriverSpecDie) DieSeal() *CSIDriverSpecDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*CSIDriverSpecDie) DieSealFeed ¶ added in v0.13.0
func (d *CSIDriverSpecDie) DieSealFeed(r storagev1.CSIDriverSpec) *CSIDriverSpecDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*CSIDriverSpecDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *CSIDriverSpecDie) DieSealFeedPtr(r *storagev1.CSIDriverSpec) *CSIDriverSpecDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*CSIDriverSpecDie) DieSealRelease ¶ added in v0.13.0
func (d *CSIDriverSpecDie) DieSealRelease() storagev1.CSIDriverSpec
DieSealRelease returns the sealed resource managed by the die.
func (*CSIDriverSpecDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *CSIDriverSpecDie) DieSealReleasePtr() *storagev1.CSIDriverSpec
DieSealReleasePtr returns the sealed resource pointer managed by the die.
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 was immutable in Kubernetes < 1.29 and now is mutable.
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 was immutable in Kubernetes < 1.29 and now is mutable.
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(v ...*TokenRequestDie) *CSIDriverSpecDie
TokenRequestsDie replaces TokenRequests by collecting the released value from each die passed.
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) 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) DieDefaultTypeMetadata ¶ added in v0.13.0
func (d *CSINodeDie) DieDefaultTypeMetadata() *CSINodeDie
DieDefaultTypeMetadata sets the APIVersion and Kind to "storage.k8s.io/v1" and "CSINode" respectively.
func (*CSINodeDie) DieDiff ¶ added in v0.13.0
func (d *CSINodeDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
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) DiePatch ¶ added in v0.13.0
func (d *CSINodeDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
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) DieSeal ¶ added in v0.13.0
func (d *CSINodeDie) DieSeal() *CSINodeDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*CSINodeDie) DieSealFeed ¶ added in v0.13.0
func (d *CSINodeDie) DieSealFeed(r storagev1.CSINode) *CSINodeDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*CSINodeDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *CSINodeDie) DieSealFeedPtr(r *storagev1.CSINode) *CSINodeDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*CSINodeDie) DieSealRelease ¶ added in v0.13.0
func (d *CSINodeDie) DieSealRelease() storagev1.CSINode
DieSealRelease returns the sealed resource managed by the die.
func (*CSINodeDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *CSINodeDie) DieSealReleasePtr() *storagev1.CSINode
DieSealReleasePtr returns the sealed resource pointer managed by the die.
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) Metadata ¶ added in v0.13.0
func (d *CSINodeDie) Metadata(v apismetav1.ObjectMeta) *CSINodeDie
Metadata standard object's metadata.
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) TypeMetadata ¶ added in v0.13.0
func (d *CSINodeDie) TypeMetadata(v apismetav1.TypeMeta) *CSINodeDie
TypeMetadata standard object's type metadata.
func (*CSINodeDie) TypeMetadataDie ¶ added in v0.13.0
func (d *CSINodeDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *CSINodeDie
TypeMetadataDie stamps the resource's TypeMeta 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
AllocatableDie mutates Allocatable as a die.
allocatable represents the volume resources of a node that are available for scheduling.
This field is beta.
func (*CSINodeDriverDie) DeepCopy ¶
func (d *CSINodeDriverDie) DeepCopy() *CSINodeDriverDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CSINodeDriverDie) DieDiff ¶ added in v0.13.0
func (d *CSINodeDriverDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
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) DiePatch ¶ added in v0.13.0
func (d *CSINodeDriverDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
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) DieSeal ¶ added in v0.13.0
func (d *CSINodeDriverDie) DieSeal() *CSINodeDriverDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*CSINodeDriverDie) DieSealFeed ¶ added in v0.13.0
func (d *CSINodeDriverDie) DieSealFeed(r storagev1.CSINodeDriver) *CSINodeDriverDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*CSINodeDriverDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *CSINodeDriverDie) DieSealFeedPtr(r *storagev1.CSINodeDriver) *CSINodeDriverDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*CSINodeDriverDie) DieSealRelease ¶ added in v0.13.0
func (d *CSINodeDriverDie) DieSealRelease() storagev1.CSINodeDriver
DieSealRelease returns the sealed resource managed by the die.
func (*CSINodeDriverDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *CSINodeDriverDie) DieSealReleasePtr() *storagev1.CSINodeDriver
DieSealReleasePtr returns the sealed resource pointer managed by the die.
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) DieDiff ¶ added in v0.13.0
func (d *CSINodeSpecDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
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) DiePatch ¶ added in v0.13.0
func (d *CSINodeSpecDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
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) DieSeal ¶ added in v0.13.0
func (d *CSINodeSpecDie) DieSeal() *CSINodeSpecDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*CSINodeSpecDie) DieSealFeed ¶ added in v0.13.0
func (d *CSINodeSpecDie) DieSealFeed(r storagev1.CSINodeSpec) *CSINodeSpecDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*CSINodeSpecDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *CSINodeSpecDie) DieSealFeedPtr(r *storagev1.CSINodeSpec) *CSINodeSpecDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*CSINodeSpecDie) DieSealRelease ¶ added in v0.13.0
func (d *CSINodeSpecDie) DieSealRelease() storagev1.CSINodeSpec
DieSealRelease returns the sealed resource managed by the die.
func (*CSINodeSpecDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *CSINodeSpecDie) DieSealReleasePtr() *storagev1.CSINodeSpec
DieSealReleasePtr returns the sealed resource pointer managed by the die.
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(v ...*CSINodeDriverDie) *CSINodeSpecDie
DriversDie replaces Drivers by collecting the released value from each die passed.
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.
type CSIStorageCapacityDie ¶ added in v0.13.0
type CSIStorageCapacityDie struct { metav1.FrozenObjectMeta // contains filtered or unexported fields }
func (*CSIStorageCapacityDie) APIVersion ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) APIVersion(v string) *CSIStorageCapacityDie
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 (*CSIStorageCapacityDie) Capacity ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) Capacity(v *resource.Quantity) *CSIStorageCapacityDie
capacity is the value reported by the CSI driver in its GetCapacityResponse
for a GetCapacityRequest with topology and parameters that match the
previous fields.
The semantic is currently (CSI spec 1.2) defined as:
The available capacity, in bytes, of the storage that can be used ¶
to provision volumes. If not set, that information is currently
unavailable.
func (*CSIStorageCapacityDie) CapacityString ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) CapacityString(s string) *CSIStorageCapacityDie
CapacityString sets Capacity by parsing the string as a Quantity. Panics if the string is not parsable.
capacity is the value reported by the CSI driver in its GetCapacityResponse
for a GetCapacityRequest with topology and parameters that match the
previous fields.
The semantic is currently (CSI spec 1.2) defined as:
The available capacity, in bytes, of the storage that can be used ¶
to provision volumes. If not set, that information is currently
unavailable.
func (*CSIStorageCapacityDie) DeepCopy ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DeepCopy() *CSIStorageCapacityDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CSIStorageCapacityDie) DeepCopyObject ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DeepCopyObject() runtime.Object
func (*CSIStorageCapacityDie) DieDefaultTypeMetadata ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieDefaultTypeMetadata() *CSIStorageCapacityDie
DieDefaultTypeMetadata sets the APIVersion and Kind to "storage.k8s.io/v1" and "CSIStorageCapacity" respectively.
func (*CSIStorageCapacityDie) DieDiff ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*CSIStorageCapacityDie) DieFeed ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieFeed(r storagev1.CSIStorageCapacity) *CSIStorageCapacityDie
DieFeed returns a new die with the provided resource.
func (*CSIStorageCapacityDie) DieFeedJSON ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieFeedJSON(j []byte) *CSIStorageCapacityDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CSIStorageCapacityDie) DieFeedPtr ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieFeedPtr(r *storagev1.CSIStorageCapacity) *CSIStorageCapacityDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CSIStorageCapacityDie) DieFeedRawExtension ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieFeedRawExtension(raw runtime.RawExtension) *CSIStorageCapacityDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CSIStorageCapacityDie) DieFeedYAML ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieFeedYAML(y []byte) *CSIStorageCapacityDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CSIStorageCapacityDie) DieFeedYAMLFile ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieFeedYAMLFile(name string) *CSIStorageCapacityDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CSIStorageCapacityDie) DieImmutable ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieImmutable(immutable bool) *CSIStorageCapacityDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*CSIStorageCapacityDie) DiePatch ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*CSIStorageCapacityDie) DieRelease ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieRelease() storagev1.CSIStorageCapacity
DieRelease returns the resource managed by the die.
func (*CSIStorageCapacityDie) DieReleaseJSON ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*CSIStorageCapacityDie) DieReleasePtr ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieReleasePtr() *storagev1.CSIStorageCapacity
DieReleasePtr returns a pointer to the resource managed by the die.
func (*CSIStorageCapacityDie) DieReleaseRawExtension ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CSIStorageCapacityDie) DieReleaseUnstructured ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.
func (*CSIStorageCapacityDie) DieReleaseYAML ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*CSIStorageCapacityDie) DieSeal ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieSeal() *CSIStorageCapacityDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*CSIStorageCapacityDie) DieSealFeed ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieSealFeed(r storagev1.CSIStorageCapacity) *CSIStorageCapacityDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*CSIStorageCapacityDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieSealFeedPtr(r *storagev1.CSIStorageCapacity) *CSIStorageCapacityDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*CSIStorageCapacityDie) DieSealRelease ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieSealRelease() storagev1.CSIStorageCapacity
DieSealRelease returns the sealed resource managed by the die.
func (*CSIStorageCapacityDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieSealReleasePtr() *storagev1.CSIStorageCapacity
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*CSIStorageCapacityDie) DieStamp ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieStamp(fn func(r *storagev1.CSIStorageCapacity)) *CSIStorageCapacityDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*CSIStorageCapacityDie) DieStampAt ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieStampAt(jp string, fn interface{}) *CSIStorageCapacityDie
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 (*CSIStorageCapacityDie) DieWith ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) DieWith(fns ...func(d *CSIStorageCapacityDie)) *CSIStorageCapacityDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*CSIStorageCapacityDie) GetObjectKind ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) GetObjectKind() schema.ObjectKind
func (*CSIStorageCapacityDie) Kind ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) Kind(v string) *CSIStorageCapacityDie
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 (*CSIStorageCapacityDie) MarshalJSON ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) MarshalJSON() ([]byte, error)
func (*CSIStorageCapacityDie) MaximumVolumeSize ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) MaximumVolumeSize(v *resource.Quantity) *CSIStorageCapacityDie
maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse
for a GetCapacityRequest with topology and parameters that match the
previous fields.
This is defined since CSI spec 1.4.0 as the largest size ¶
that may be used in a
CreateVolumeRequest.capacity_range.required_bytes field to
create a volume with the same parameters as those in
GetCapacityRequest. The corresponding value in the Kubernetes
API is ResourceRequirements.Requests in a volume claim.
func (*CSIStorageCapacityDie) MaximumVolumeSizeString ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) MaximumVolumeSizeString(s string) *CSIStorageCapacityDie
MaximumVolumeSizeString sets MaximumVolumeSize by parsing the string as a Quantity. Panics if the string is not parsable.
maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse
for a GetCapacityRequest with topology and parameters that match the
previous fields.
This is defined since CSI spec 1.4.0 as the largest size ¶
that may be used in a
CreateVolumeRequest.capacity_range.required_bytes field to
create a volume with the same parameters as those in
GetCapacityRequest. The corresponding value in the Kubernetes
API is ResourceRequirements.Requests in a volume claim.
func (*CSIStorageCapacityDie) Metadata ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) Metadata(v apismetav1.ObjectMeta) *CSIStorageCapacityDie
Metadata standard object's metadata.
func (*CSIStorageCapacityDie) MetadataDie ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *CSIStorageCapacityDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*CSIStorageCapacityDie) NodeTopology ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) NodeTopology(v *apismetav1.LabelSelector) *CSIStorageCapacityDie
nodeTopology defines which nodes have access to the storage
for which capacity was reported. If not set, the storage is
not accessible from any node in the cluster. If empty, the
storage is accessible from all nodes. This field is
immutable.
func (*CSIStorageCapacityDie) NodeTopologyDie ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) NodeTopologyDie(fn func(d *metav1.LabelSelectorDie)) *CSIStorageCapacityDie
NodeTopologyDie mutates NodeTopology as a die.
nodeTopology defines which nodes have access to the storage
for which capacity was reported. If not set, the storage is
not accessible from any node in the cluster. If empty, the
storage is accessible from all nodes. This field is
immutable.
func (*CSIStorageCapacityDie) StorageClassName ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) StorageClassName(v string) *CSIStorageCapacityDie
storageClassName represents the name of the StorageClass that the reported capacity applies to.
It must meet the same requirements as the name of a StorageClass ¶
object (non-empty, DNS subdomain). If that object no longer exists,
the CSIStorageCapacity object is obsolete and should be removed by its
creator.
This field is immutable.
func (*CSIStorageCapacityDie) TypeMetadata ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) TypeMetadata(v apismetav1.TypeMeta) *CSIStorageCapacityDie
TypeMetadata standard object's type metadata.
func (*CSIStorageCapacityDie) TypeMetadataDie ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *CSIStorageCapacityDie
TypeMetadataDie stamps the resource's TypeMeta field with a mutable die.
func (*CSIStorageCapacityDie) UnmarshalJSON ¶ added in v0.13.0
func (d *CSIStorageCapacityDie) UnmarshalJSON(b []byte) error
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 ...apicorev1.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(v ...*corev1.TopologySelectorTermDie) *StorageClassDie
AllowedTopologiesDie replaces AllowedTopologies by collecting the released value from each die passed.
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) 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) DieDefaultTypeMetadata ¶ added in v0.13.0
func (d *StorageClassDie) DieDefaultTypeMetadata() *StorageClassDie
DieDefaultTypeMetadata sets the APIVersion and Kind to "storage.k8s.io/v1" and "StorageClass" respectively.
func (*StorageClassDie) DieDiff ¶ added in v0.13.0
func (d *StorageClassDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
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) DiePatch ¶ added in v0.13.0
func (d *StorageClassDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
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) DieSeal ¶ added in v0.13.0
func (d *StorageClassDie) DieSeal() *StorageClassDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*StorageClassDie) DieSealFeed ¶ added in v0.13.0
func (d *StorageClassDie) DieSealFeed(r storagev1.StorageClass) *StorageClassDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*StorageClassDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *StorageClassDie) DieSealFeedPtr(r *storagev1.StorageClass) *StorageClassDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*StorageClassDie) DieSealRelease ¶ added in v0.13.0
func (d *StorageClassDie) DieSealRelease() storagev1.StorageClass
DieSealRelease returns the sealed resource managed by the die.
func (*StorageClassDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *StorageClassDie) DieSealReleasePtr() *storagev1.StorageClass
DieSealReleasePtr returns the sealed resource pointer managed by the die.
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) Metadata ¶ added in v0.13.0
func (d *StorageClassDie) Metadata(v apismetav1.ObjectMeta) *StorageClassDie
Metadata standard object's metadata.
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 *apicorev1.PersistentVolumeReclaimPolicy) *StorageClassDie
reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class.
Defaults to Delete.
func (*StorageClassDie) TypeMetadata ¶ added in v0.13.0
func (d *StorageClassDie) TypeMetadata(v apismetav1.TypeMeta) *StorageClassDie
TypeMetadata standard object's type metadata.
func (*StorageClassDie) TypeMetadataDie ¶ added in v0.13.0
func (d *StorageClassDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *StorageClassDie
TypeMetadataDie stamps the resource's TypeMeta field with a mutable die.
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) DieDiff ¶ added in v0.13.0
func (d *TokenRequestDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
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) DiePatch ¶ added in v0.13.0
func (d *TokenRequestDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
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) DieSeal ¶ added in v0.13.0
func (d *TokenRequestDie) DieSeal() *TokenRequestDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*TokenRequestDie) DieSealFeed ¶ added in v0.13.0
func (d *TokenRequestDie) DieSealFeed(r storagev1.TokenRequest) *TokenRequestDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*TokenRequestDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *TokenRequestDie) DieSealFeedPtr(r *storagev1.TokenRequest) *TokenRequestDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*TokenRequestDie) DieSealRelease ¶ added in v0.13.0
func (d *TokenRequestDie) DieSealRelease() storagev1.TokenRequest
DieSealRelease returns the sealed resource managed by the die.
func (*TokenRequestDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *TokenRequestDie) DieSealReleasePtr() *storagev1.TokenRequest
DieSealReleasePtr returns the sealed resource pointer managed by the die.
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) DieDefaultTypeMetadata ¶ added in v0.13.0
func (d *VolumeAttachmentDie) DieDefaultTypeMetadata() *VolumeAttachmentDie
DieDefaultTypeMetadata sets the APIVersion and Kind to "storage.k8s.io/v1" and "VolumeAttachment" respectively.
func (*VolumeAttachmentDie) DieDiff ¶ added in v0.13.0
func (d *VolumeAttachmentDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
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) DiePatch ¶ added in v0.13.0
func (d *VolumeAttachmentDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
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) DieSeal ¶ added in v0.13.0
func (d *VolumeAttachmentDie) DieSeal() *VolumeAttachmentDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*VolumeAttachmentDie) DieSealFeed ¶ added in v0.13.0
func (d *VolumeAttachmentDie) DieSealFeed(r storagev1.VolumeAttachment) *VolumeAttachmentDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*VolumeAttachmentDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *VolumeAttachmentDie) DieSealFeedPtr(r *storagev1.VolumeAttachment) *VolumeAttachmentDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*VolumeAttachmentDie) DieSealRelease ¶ added in v0.13.0
func (d *VolumeAttachmentDie) DieSealRelease() storagev1.VolumeAttachment
DieSealRelease returns the sealed resource managed by the die.
func (*VolumeAttachmentDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *VolumeAttachmentDie) DieSealReleasePtr() *storagev1.VolumeAttachment
DieSealReleasePtr returns the sealed resource pointer managed by the die.
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) Metadata ¶ added in v0.13.0
func (d *VolumeAttachmentDie) Metadata(v apismetav1.ObjectMeta) *VolumeAttachmentDie
Metadata standard object's metadata.
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) TypeMetadata ¶ added in v0.13.0
func (d *VolumeAttachmentDie) TypeMetadata(v apismetav1.TypeMeta) *VolumeAttachmentDie
TypeMetadata standard object's type metadata.
func (*VolumeAttachmentDie) TypeMetadataDie ¶ added in v0.13.0
func (d *VolumeAttachmentDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *VolumeAttachmentDie
TypeMetadataDie stamps the resource's TypeMeta 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) DieDiff ¶ added in v0.13.0
func (d *VolumeAttachmentSourceDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
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) DiePatch ¶ added in v0.13.0
func (d *VolumeAttachmentSourceDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
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) DieSeal ¶ added in v0.13.0
func (d *VolumeAttachmentSourceDie) DieSeal() *VolumeAttachmentSourceDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*VolumeAttachmentSourceDie) DieSealFeed ¶ added in v0.13.0
func (d *VolumeAttachmentSourceDie) DieSealFeed(r storagev1.VolumeAttachmentSource) *VolumeAttachmentSourceDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*VolumeAttachmentSourceDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *VolumeAttachmentSourceDie) DieSealFeedPtr(r *storagev1.VolumeAttachmentSource) *VolumeAttachmentSourceDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*VolumeAttachmentSourceDie) DieSealRelease ¶ added in v0.13.0
func (d *VolumeAttachmentSourceDie) DieSealRelease() storagev1.VolumeAttachmentSource
DieSealRelease returns the sealed resource managed by the die.
func (*VolumeAttachmentSourceDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *VolumeAttachmentSourceDie) DieSealReleasePtr() *storagev1.VolumeAttachmentSource
DieSealReleasePtr returns the sealed resource pointer managed by the die.
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 *apicorev1.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) InlineVolumeSpecDie ¶ added in v0.13.0
func (d *VolumeAttachmentSourceDie) InlineVolumeSpecDie(fn func(d *corev1.PersistentVolumeSpecDie)) *VolumeAttachmentSourceDie
InlineVolumeSpecDie mutates InlineVolumeSpec as a die.
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.
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) DieDiff ¶ added in v0.13.0
func (d *VolumeAttachmentSpecDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
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) DiePatch ¶ added in v0.13.0
func (d *VolumeAttachmentSpecDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
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) DieSeal ¶ added in v0.13.0
func (d *VolumeAttachmentSpecDie) DieSeal() *VolumeAttachmentSpecDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*VolumeAttachmentSpecDie) DieSealFeed ¶ added in v0.13.0
func (d *VolumeAttachmentSpecDie) DieSealFeed(r storagev1.VolumeAttachmentSpec) *VolumeAttachmentSpecDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*VolumeAttachmentSpecDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *VolumeAttachmentSpecDie) DieSealFeedPtr(r *storagev1.VolumeAttachmentSpec) *VolumeAttachmentSpecDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*VolumeAttachmentSpecDie) DieSealRelease ¶ added in v0.13.0
func (d *VolumeAttachmentSpecDie) DieSealRelease() storagev1.VolumeAttachmentSpec
DieSealRelease returns the sealed resource managed by the die.
func (*VolumeAttachmentSpecDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *VolumeAttachmentSpecDie) DieSealReleasePtr() *storagev1.VolumeAttachmentSpec
DieSealReleasePtr returns the sealed resource pointer managed by the die.
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
SourceDie mutates Source as a die.
source represents the volume that should be attached.
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
AttachErrorDie mutates AttachError as a die.
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) 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
DetachErrorDie mutates DetachError as a die.
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) DieDiff ¶ added in v0.13.0
func (d *VolumeAttachmentStatusDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
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) DiePatch ¶ added in v0.13.0
func (d *VolumeAttachmentStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
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) DieSeal ¶ added in v0.13.0
func (d *VolumeAttachmentStatusDie) DieSeal() *VolumeAttachmentStatusDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*VolumeAttachmentStatusDie) DieSealFeed ¶ added in v0.13.0
func (d *VolumeAttachmentStatusDie) DieSealFeed(r storagev1.VolumeAttachmentStatus) *VolumeAttachmentStatusDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*VolumeAttachmentStatusDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *VolumeAttachmentStatusDie) DieSealFeedPtr(r *storagev1.VolumeAttachmentStatus) *VolumeAttachmentStatusDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*VolumeAttachmentStatusDie) DieSealRelease ¶ added in v0.13.0
func (d *VolumeAttachmentStatusDie) DieSealRelease() storagev1.VolumeAttachmentStatus
DieSealRelease returns the sealed resource managed by the die.
func (*VolumeAttachmentStatusDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *VolumeAttachmentStatusDie) DieSealReleasePtr() *storagev1.VolumeAttachmentStatus
DieSealReleasePtr returns the sealed resource pointer managed by the die.
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) DieDiff ¶ added in v0.13.0
func (d *VolumeErrorDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
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) DiePatch ¶ added in v0.13.0
func (d *VolumeErrorDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
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) DieSeal ¶ added in v0.13.0
func (d *VolumeErrorDie) DieSeal() *VolumeErrorDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*VolumeErrorDie) DieSealFeed ¶ added in v0.13.0
func (d *VolumeErrorDie) DieSealFeed(r storagev1.VolumeError) *VolumeErrorDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*VolumeErrorDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *VolumeErrorDie) DieSealFeedPtr(r *storagev1.VolumeError) *VolumeErrorDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*VolumeErrorDie) DieSealRelease ¶ added in v0.13.0
func (d *VolumeErrorDie) DieSealRelease() storagev1.VolumeError
DieSealRelease returns the sealed resource managed by the die.
func (*VolumeErrorDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *VolumeErrorDie) DieSealReleasePtr() *storagev1.VolumeError
DieSealReleasePtr returns the sealed resource pointer managed by the die.
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) DieDiff ¶ added in v0.13.0
func (d *VolumeNodeResourcesDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
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) DiePatch ¶ added in v0.13.0
func (d *VolumeNodeResourcesDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
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) DieSeal ¶ added in v0.13.0
func (d *VolumeNodeResourcesDie) DieSeal() *VolumeNodeResourcesDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*VolumeNodeResourcesDie) DieSealFeed ¶ added in v0.13.0
func (d *VolumeNodeResourcesDie) DieSealFeed(r storagev1.VolumeNodeResources) *VolumeNodeResourcesDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*VolumeNodeResourcesDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *VolumeNodeResourcesDie) DieSealFeedPtr(r *storagev1.VolumeNodeResources) *VolumeNodeResourcesDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*VolumeNodeResourcesDie) DieSealRelease ¶ added in v0.13.0
func (d *VolumeNodeResourcesDie) DieSealRelease() storagev1.VolumeNodeResources
DieSealRelease returns the sealed resource managed by the die.
func (*VolumeNodeResourcesDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *VolumeNodeResourcesDie) DieSealReleasePtr() *storagev1.VolumeNodeResources
DieSealReleasePtr returns the sealed resource pointer managed by the die.
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.