Documentation
¶
Index ¶
- Variables
- type TestResourceDie
- func (d *TestResourceDie) DeepCopy() *TestResourceDie
- func (d *TestResourceDie) DeepCopyObject() runtime.Object
- func (d *TestResourceDie) DieFeed(r resources.TestResource) *TestResourceDie
- func (d *TestResourceDie) DieFeedPtr(r *resources.TestResource) *TestResourceDie
- func (d *TestResourceDie) DieImmutable(immutable bool) *TestResourceDie
- func (d *TestResourceDie) DieRelease() resources.TestResource
- func (d *TestResourceDie) DieReleasePtr() *resources.TestResource
- func (d *TestResourceDie) DieReleaseUnstructured() runtime.Unstructured
- func (d *TestResourceDie) DieStamp(fn func(r *resources.TestResource)) *TestResourceDie
- func (d *TestResourceDie) GetObjectKind() schema.ObjectKind
- func (d *TestResourceDie) MarshalJSON() ([]byte, error)
- func (d *TestResourceDie) MetadataDie(fn func(d *v1.ObjectMetaDie)) *TestResourceDie
- func (d *TestResourceDie) Spec(v resources.TestResourceSpec) *TestResourceDie
- func (d *TestResourceDie) SpecDie(fn func(d *TestResourceSpecDie)) *TestResourceDie
- func (d *TestResourceDie) Status(v resources.TestResourceStatus) *TestResourceDie
- func (d *TestResourceDie) StatusDie(fn func(d *TestResourceStatusDie)) *TestResourceDie
- func (d *TestResourceDie) UnmarshalJSON(b []byte) error
- type TestResourceEmptyStatusDie
- func (d *TestResourceEmptyStatusDie) DeepCopy() *TestResourceEmptyStatusDie
- func (d *TestResourceEmptyStatusDie) DeepCopyObject() runtime.Object
- func (d *TestResourceEmptyStatusDie) DieFeed(r resources.TestResourceEmptyStatus) *TestResourceEmptyStatusDie
- func (d *TestResourceEmptyStatusDie) DieFeedPtr(r *resources.TestResourceEmptyStatus) *TestResourceEmptyStatusDie
- func (d *TestResourceEmptyStatusDie) DieImmutable(immutable bool) *TestResourceEmptyStatusDie
- func (d *TestResourceEmptyStatusDie) DieRelease() resources.TestResourceEmptyStatus
- func (d *TestResourceEmptyStatusDie) DieReleasePtr() *resources.TestResourceEmptyStatus
- func (d *TestResourceEmptyStatusDie) DieReleaseUnstructured() runtime.Unstructured
- func (d *TestResourceEmptyStatusDie) DieStamp(fn func(r *resources.TestResourceEmptyStatus)) *TestResourceEmptyStatusDie
- func (d *TestResourceEmptyStatusDie) GetObjectKind() schema.ObjectKind
- func (d *TestResourceEmptyStatusDie) MarshalJSON() ([]byte, error)
- func (d *TestResourceEmptyStatusDie) MetadataDie(fn func(d *v1.ObjectMetaDie)) *TestResourceEmptyStatusDie
- func (d *TestResourceEmptyStatusDie) Spec(v resources.TestResourceSpec) *TestResourceEmptyStatusDie
- func (d *TestResourceEmptyStatusDie) SpecDie(fn func(d *TestResourceSpecDie)) *TestResourceEmptyStatusDie
- func (d *TestResourceEmptyStatusDie) Status(v resources.TestResourceEmptyStatusStatus) *TestResourceEmptyStatusDie
- func (d *TestResourceEmptyStatusDie) StatusDie(fn func(d *TestResourceEmptyStatusStatusDie)) *TestResourceEmptyStatusDie
- func (d *TestResourceEmptyStatusDie) UnmarshalJSON(b []byte) error
- type TestResourceEmptyStatusStatusDie
- func (d *TestResourceEmptyStatusStatusDie) DeepCopy() *TestResourceEmptyStatusStatusDie
- func (d *TestResourceEmptyStatusStatusDie) DieFeed(r resources.TestResourceEmptyStatusStatus) *TestResourceEmptyStatusStatusDie
- func (d *TestResourceEmptyStatusStatusDie) DieFeedPtr(r *resources.TestResourceEmptyStatusStatus) *TestResourceEmptyStatusStatusDie
- func (d *TestResourceEmptyStatusStatusDie) DieImmutable(immutable bool) *TestResourceEmptyStatusStatusDie
- func (d *TestResourceEmptyStatusStatusDie) DieRelease() resources.TestResourceEmptyStatusStatus
- func (d *TestResourceEmptyStatusStatusDie) DieReleasePtr() *resources.TestResourceEmptyStatusStatus
- func (d *TestResourceEmptyStatusStatusDie) DieStamp(fn func(r *resources.TestResourceEmptyStatusStatus)) *TestResourceEmptyStatusStatusDie
- type TestResourceNilableStatusDie
- func (d *TestResourceNilableStatusDie) DeepCopy() *TestResourceNilableStatusDie
- func (d *TestResourceNilableStatusDie) DeepCopyObject() runtime.Object
- func (d *TestResourceNilableStatusDie) DieFeed(r resources.TestResourceNilableStatus) *TestResourceNilableStatusDie
- func (d *TestResourceNilableStatusDie) DieFeedPtr(r *resources.TestResourceNilableStatus) *TestResourceNilableStatusDie
- func (d *TestResourceNilableStatusDie) DieImmutable(immutable bool) *TestResourceNilableStatusDie
- func (d *TestResourceNilableStatusDie) DieRelease() resources.TestResourceNilableStatus
- func (d *TestResourceNilableStatusDie) DieReleasePtr() *resources.TestResourceNilableStatus
- func (d *TestResourceNilableStatusDie) DieReleaseUnstructured() runtime.Unstructured
- func (d *TestResourceNilableStatusDie) DieStamp(fn func(r *resources.TestResourceNilableStatus)) *TestResourceNilableStatusDie
- func (d *TestResourceNilableStatusDie) GetObjectKind() schema.ObjectKind
- func (d *TestResourceNilableStatusDie) MarshalJSON() ([]byte, error)
- func (d *TestResourceNilableStatusDie) MetadataDie(fn func(d *v1.ObjectMetaDie)) *TestResourceNilableStatusDie
- func (d *TestResourceNilableStatusDie) Spec(v resources.TestResourceSpec) *TestResourceNilableStatusDie
- func (d *TestResourceNilableStatusDie) SpecDie(fn func(d *TestResourceSpecDie)) *TestResourceNilableStatusDie
- func (d *TestResourceNilableStatusDie) Status(v *resources.TestResourceStatus) *TestResourceNilableStatusDie
- func (d *TestResourceNilableStatusDie) StatusDie(fn func(d *TestResourceStatusDie)) *TestResourceNilableStatusDie
- func (d *TestResourceNilableStatusDie) UnmarshalJSON(b []byte) error
- type TestResourceNoStatusDie
- func (d *TestResourceNoStatusDie) DeepCopy() *TestResourceNoStatusDie
- func (d *TestResourceNoStatusDie) DeepCopyObject() runtime.Object
- func (d *TestResourceNoStatusDie) DieFeed(r resources.TestResourceNoStatus) *TestResourceNoStatusDie
- func (d *TestResourceNoStatusDie) DieFeedPtr(r *resources.TestResourceNoStatus) *TestResourceNoStatusDie
- func (d *TestResourceNoStatusDie) DieImmutable(immutable bool) *TestResourceNoStatusDie
- func (d *TestResourceNoStatusDie) DieRelease() resources.TestResourceNoStatus
- func (d *TestResourceNoStatusDie) DieReleasePtr() *resources.TestResourceNoStatus
- func (d *TestResourceNoStatusDie) DieReleaseUnstructured() runtime.Unstructured
- func (d *TestResourceNoStatusDie) DieStamp(fn func(r *resources.TestResourceNoStatus)) *TestResourceNoStatusDie
- func (d *TestResourceNoStatusDie) GetObjectKind() schema.ObjectKind
- func (d *TestResourceNoStatusDie) MarshalJSON() ([]byte, error)
- func (d *TestResourceNoStatusDie) MetadataDie(fn func(d *v1.ObjectMetaDie)) *TestResourceNoStatusDie
- func (d *TestResourceNoStatusDie) Spec(v resources.TestResourceSpec) *TestResourceNoStatusDie
- func (d *TestResourceNoStatusDie) SpecDie(fn func(d *TestResourceSpecDie)) *TestResourceNoStatusDie
- func (d *TestResourceNoStatusDie) UnmarshalJSON(b []byte) error
- type TestResourceSpecDie
- func (d *TestResourceSpecDie) AddField(key, value string) *TestResourceSpecDie
- func (d *TestResourceSpecDie) DeepCopy() *TestResourceSpecDie
- func (d *TestResourceSpecDie) DieFeed(r resources.TestResourceSpec) *TestResourceSpecDie
- func (d *TestResourceSpecDie) DieFeedPtr(r *resources.TestResourceSpec) *TestResourceSpecDie
- func (d *TestResourceSpecDie) DieImmutable(immutable bool) *TestResourceSpecDie
- func (d *TestResourceSpecDie) DieRelease() resources.TestResourceSpec
- func (d *TestResourceSpecDie) DieReleasePtr() *resources.TestResourceSpec
- func (d *TestResourceSpecDie) DieStamp(fn func(r *resources.TestResourceSpec)) *TestResourceSpecDie
- func (d *TestResourceSpecDie) ErrOnMarshal(v bool) *TestResourceSpecDie
- func (d *TestResourceSpecDie) ErrOnUnmarshal(v bool) *TestResourceSpecDie
- func (d *TestResourceSpecDie) Fields(v map[string]string) *TestResourceSpecDie
- func (d *TestResourceSpecDie) Template(v corev1.PodTemplateSpec) *TestResourceSpecDie
- func (d *TestResourceSpecDie) TemplateDie(fn func(d *diecorev1.PodTemplateSpecDie)) *TestResourceSpecDie
- type TestResourceStatusDie
- func (d *TestResourceStatusDie) AddField(key, value string) *TestResourceStatusDie
- func (d *TestResourceStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *TestResourceStatusDie
- func (d *TestResourceStatusDie) DeepCopy() *TestResourceStatusDie
- func (d *TestResourceStatusDie) DieFeed(r resources.TestResourceStatus) *TestResourceStatusDie
- func (d *TestResourceStatusDie) DieFeedPtr(r *resources.TestResourceStatus) *TestResourceStatusDie
- func (d *TestResourceStatusDie) DieImmutable(immutable bool) *TestResourceStatusDie
- func (d *TestResourceStatusDie) DieRelease() resources.TestResourceStatus
- func (d *TestResourceStatusDie) DieReleasePtr() *resources.TestResourceStatus
- func (d *TestResourceStatusDie) DieStamp(fn func(r *resources.TestResourceStatus)) *TestResourceStatusDie
- func (d *TestResourceStatusDie) Fields(v map[string]string) *TestResourceStatusDie
- func (d *TestResourceStatusDie) Status(v apis.Status) *TestResourceStatusDie
Constants ¶
This section is empty.
Variables ¶
var TestResourceBlank = (&TestResourceDie{}).DieFeed(resources.TestResource{})
var TestResourceEmptyStatusBlank = (&TestResourceEmptyStatusDie{}).DieFeed(resources.TestResourceEmptyStatus{})
var TestResourceEmptyStatusStatusBlank = (&TestResourceEmptyStatusStatusDie{}).DieFeed(resources.TestResourceEmptyStatusStatus{})
var TestResourceNilableStatusBlank = (&TestResourceNilableStatusDie{}).DieFeed(resources.TestResourceNilableStatus{})
var TestResourceNoStatusBlank = (&TestResourceNoStatusDie{}).DieFeed(resources.TestResourceNoStatus{})
var TestResourceSpecBlank = (&TestResourceSpecDie{}).DieFeed(resources.TestResourceSpec{})
var TestResourceStatusBlank = (&TestResourceStatusDie{}).DieFeed(resources.TestResourceStatus{})
Functions ¶
This section is empty.
Types ¶
type TestResourceDie ¶
type TestResourceDie struct { v1.FrozenObjectMeta // contains filtered or unexported fields }
func (*TestResourceDie) DeepCopy ¶
func (d *TestResourceDie) DeepCopy() *TestResourceDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*TestResourceDie) DeepCopyObject ¶
func (d *TestResourceDie) DeepCopyObject() runtime.Object
func (*TestResourceDie) DieFeed ¶
func (d *TestResourceDie) DieFeed(r resources.TestResource) *TestResourceDie
DieFeed returns a new die with the provided resource.
func (*TestResourceDie) DieFeedPtr ¶
func (d *TestResourceDie) DieFeedPtr(r *resources.TestResource) *TestResourceDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*TestResourceDie) DieImmutable ¶
func (d *TestResourceDie) DieImmutable(immutable bool) *TestResourceDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*TestResourceDie) DieRelease ¶
func (d *TestResourceDie) DieRelease() resources.TestResource
DieRelease returns the resource managed by the die.
func (*TestResourceDie) DieReleasePtr ¶
func (d *TestResourceDie) DieReleasePtr() *resources.TestResource
DieReleasePtr returns a pointer to the resource managed by the die.
func (*TestResourceDie) DieReleaseUnstructured ¶
func (d *TestResourceDie) DieReleaseUnstructured() runtime.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object.
func (*TestResourceDie) DieStamp ¶
func (d *TestResourceDie) DieStamp(fn func(r *resources.TestResource)) *TestResourceDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*TestResourceDie) GetObjectKind ¶
func (d *TestResourceDie) GetObjectKind() schema.ObjectKind
func (*TestResourceDie) MarshalJSON ¶
func (d *TestResourceDie) MarshalJSON() ([]byte, error)
func (*TestResourceDie) MetadataDie ¶
func (d *TestResourceDie) MetadataDie(fn func(d *v1.ObjectMetaDie)) *TestResourceDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*TestResourceDie) Spec ¶
func (d *TestResourceDie) Spec(v resources.TestResourceSpec) *TestResourceDie
func (*TestResourceDie) SpecDie ¶
func (d *TestResourceDie) SpecDie(fn func(d *TestResourceSpecDie)) *TestResourceDie
SpecDie stamps the resource's spec field with a mutable die.
func (*TestResourceDie) Status ¶
func (d *TestResourceDie) Status(v resources.TestResourceStatus) *TestResourceDie
func (*TestResourceDie) StatusDie ¶
func (d *TestResourceDie) StatusDie(fn func(d *TestResourceStatusDie)) *TestResourceDie
StatusDie stamps the resource's status field with a mutable die.
func (*TestResourceDie) UnmarshalJSON ¶
func (d *TestResourceDie) UnmarshalJSON(b []byte) error
type TestResourceEmptyStatusDie ¶
type TestResourceEmptyStatusDie struct { v1.FrozenObjectMeta // contains filtered or unexported fields }
func (*TestResourceEmptyStatusDie) DeepCopy ¶
func (d *TestResourceEmptyStatusDie) DeepCopy() *TestResourceEmptyStatusDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*TestResourceEmptyStatusDie) DeepCopyObject ¶
func (d *TestResourceEmptyStatusDie) DeepCopyObject() runtime.Object
func (*TestResourceEmptyStatusDie) DieFeed ¶
func (d *TestResourceEmptyStatusDie) DieFeed(r resources.TestResourceEmptyStatus) *TestResourceEmptyStatusDie
DieFeed returns a new die with the provided resource.
func (*TestResourceEmptyStatusDie) DieFeedPtr ¶
func (d *TestResourceEmptyStatusDie) DieFeedPtr(r *resources.TestResourceEmptyStatus) *TestResourceEmptyStatusDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*TestResourceEmptyStatusDie) DieImmutable ¶
func (d *TestResourceEmptyStatusDie) DieImmutable(immutable bool) *TestResourceEmptyStatusDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*TestResourceEmptyStatusDie) DieRelease ¶
func (d *TestResourceEmptyStatusDie) DieRelease() resources.TestResourceEmptyStatus
DieRelease returns the resource managed by the die.
func (*TestResourceEmptyStatusDie) DieReleasePtr ¶
func (d *TestResourceEmptyStatusDie) DieReleasePtr() *resources.TestResourceEmptyStatus
DieReleasePtr returns a pointer to the resource managed by the die.
func (*TestResourceEmptyStatusDie) DieReleaseUnstructured ¶
func (d *TestResourceEmptyStatusDie) DieReleaseUnstructured() runtime.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object.
func (*TestResourceEmptyStatusDie) DieStamp ¶
func (d *TestResourceEmptyStatusDie) DieStamp(fn func(r *resources.TestResourceEmptyStatus)) *TestResourceEmptyStatusDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*TestResourceEmptyStatusDie) GetObjectKind ¶
func (d *TestResourceEmptyStatusDie) GetObjectKind() schema.ObjectKind
func (*TestResourceEmptyStatusDie) MarshalJSON ¶
func (d *TestResourceEmptyStatusDie) MarshalJSON() ([]byte, error)
func (*TestResourceEmptyStatusDie) MetadataDie ¶
func (d *TestResourceEmptyStatusDie) MetadataDie(fn func(d *v1.ObjectMetaDie)) *TestResourceEmptyStatusDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*TestResourceEmptyStatusDie) Spec ¶
func (d *TestResourceEmptyStatusDie) Spec(v resources.TestResourceSpec) *TestResourceEmptyStatusDie
func (*TestResourceEmptyStatusDie) SpecDie ¶
func (d *TestResourceEmptyStatusDie) SpecDie(fn func(d *TestResourceSpecDie)) *TestResourceEmptyStatusDie
SpecDie stamps the resource's spec field with a mutable die.
func (*TestResourceEmptyStatusDie) Status ¶
func (d *TestResourceEmptyStatusDie) Status(v resources.TestResourceEmptyStatusStatus) *TestResourceEmptyStatusDie
func (*TestResourceEmptyStatusDie) StatusDie ¶
func (d *TestResourceEmptyStatusDie) StatusDie(fn func(d *TestResourceEmptyStatusStatusDie)) *TestResourceEmptyStatusDie
StatusDie stamps the resource's status field with a mutable die.
func (*TestResourceEmptyStatusDie) UnmarshalJSON ¶
func (d *TestResourceEmptyStatusDie) UnmarshalJSON(b []byte) error
type TestResourceEmptyStatusStatusDie ¶
type TestResourceEmptyStatusStatusDie struct {
// contains filtered or unexported fields
}
func (*TestResourceEmptyStatusStatusDie) DeepCopy ¶
func (d *TestResourceEmptyStatusStatusDie) DeepCopy() *TestResourceEmptyStatusStatusDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*TestResourceEmptyStatusStatusDie) DieFeed ¶
func (d *TestResourceEmptyStatusStatusDie) DieFeed(r resources.TestResourceEmptyStatusStatus) *TestResourceEmptyStatusStatusDie
DieFeed returns a new die with the provided resource.
func (*TestResourceEmptyStatusStatusDie) DieFeedPtr ¶
func (d *TestResourceEmptyStatusStatusDie) DieFeedPtr(r *resources.TestResourceEmptyStatusStatus) *TestResourceEmptyStatusStatusDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*TestResourceEmptyStatusStatusDie) DieImmutable ¶
func (d *TestResourceEmptyStatusStatusDie) DieImmutable(immutable bool) *TestResourceEmptyStatusStatusDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*TestResourceEmptyStatusStatusDie) DieRelease ¶
func (d *TestResourceEmptyStatusStatusDie) DieRelease() resources.TestResourceEmptyStatusStatus
DieRelease returns the resource managed by the die.
func (*TestResourceEmptyStatusStatusDie) DieReleasePtr ¶
func (d *TestResourceEmptyStatusStatusDie) DieReleasePtr() *resources.TestResourceEmptyStatusStatus
DieReleasePtr returns a pointer to the resource managed by the die.
func (*TestResourceEmptyStatusStatusDie) DieStamp ¶
func (d *TestResourceEmptyStatusStatusDie) DieStamp(fn func(r *resources.TestResourceEmptyStatusStatus)) *TestResourceEmptyStatusStatusDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
type TestResourceNilableStatusDie ¶
type TestResourceNilableStatusDie struct { v1.FrozenObjectMeta // contains filtered or unexported fields }
func (*TestResourceNilableStatusDie) DeepCopy ¶
func (d *TestResourceNilableStatusDie) DeepCopy() *TestResourceNilableStatusDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*TestResourceNilableStatusDie) DeepCopyObject ¶
func (d *TestResourceNilableStatusDie) DeepCopyObject() runtime.Object
func (*TestResourceNilableStatusDie) DieFeed ¶
func (d *TestResourceNilableStatusDie) DieFeed(r resources.TestResourceNilableStatus) *TestResourceNilableStatusDie
DieFeed returns a new die with the provided resource.
func (*TestResourceNilableStatusDie) DieFeedPtr ¶
func (d *TestResourceNilableStatusDie) DieFeedPtr(r *resources.TestResourceNilableStatus) *TestResourceNilableStatusDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*TestResourceNilableStatusDie) DieImmutable ¶
func (d *TestResourceNilableStatusDie) DieImmutable(immutable bool) *TestResourceNilableStatusDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*TestResourceNilableStatusDie) DieRelease ¶
func (d *TestResourceNilableStatusDie) DieRelease() resources.TestResourceNilableStatus
DieRelease returns the resource managed by the die.
func (*TestResourceNilableStatusDie) DieReleasePtr ¶
func (d *TestResourceNilableStatusDie) DieReleasePtr() *resources.TestResourceNilableStatus
DieReleasePtr returns a pointer to the resource managed by the die.
func (*TestResourceNilableStatusDie) DieReleaseUnstructured ¶
func (d *TestResourceNilableStatusDie) DieReleaseUnstructured() runtime.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object.
func (*TestResourceNilableStatusDie) DieStamp ¶
func (d *TestResourceNilableStatusDie) DieStamp(fn func(r *resources.TestResourceNilableStatus)) *TestResourceNilableStatusDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*TestResourceNilableStatusDie) GetObjectKind ¶
func (d *TestResourceNilableStatusDie) GetObjectKind() schema.ObjectKind
func (*TestResourceNilableStatusDie) MarshalJSON ¶
func (d *TestResourceNilableStatusDie) MarshalJSON() ([]byte, error)
func (*TestResourceNilableStatusDie) MetadataDie ¶
func (d *TestResourceNilableStatusDie) MetadataDie(fn func(d *v1.ObjectMetaDie)) *TestResourceNilableStatusDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*TestResourceNilableStatusDie) Spec ¶
func (d *TestResourceNilableStatusDie) Spec(v resources.TestResourceSpec) *TestResourceNilableStatusDie
func (*TestResourceNilableStatusDie) SpecDie ¶
func (d *TestResourceNilableStatusDie) SpecDie(fn func(d *TestResourceSpecDie)) *TestResourceNilableStatusDie
SpecDie stamps the resource's spec field with a mutable die.
func (*TestResourceNilableStatusDie) Status ¶
func (d *TestResourceNilableStatusDie) Status(v *resources.TestResourceStatus) *TestResourceNilableStatusDie
func (*TestResourceNilableStatusDie) StatusDie ¶
func (d *TestResourceNilableStatusDie) StatusDie(fn func(d *TestResourceStatusDie)) *TestResourceNilableStatusDie
StatusDie stamps the resource's status field with a mutable die.
func (*TestResourceNilableStatusDie) UnmarshalJSON ¶
func (d *TestResourceNilableStatusDie) UnmarshalJSON(b []byte) error
type TestResourceNoStatusDie ¶
type TestResourceNoStatusDie struct { v1.FrozenObjectMeta // contains filtered or unexported fields }
func (*TestResourceNoStatusDie) DeepCopy ¶
func (d *TestResourceNoStatusDie) DeepCopy() *TestResourceNoStatusDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*TestResourceNoStatusDie) DeepCopyObject ¶
func (d *TestResourceNoStatusDie) DeepCopyObject() runtime.Object
func (*TestResourceNoStatusDie) DieFeed ¶
func (d *TestResourceNoStatusDie) DieFeed(r resources.TestResourceNoStatus) *TestResourceNoStatusDie
DieFeed returns a new die with the provided resource.
func (*TestResourceNoStatusDie) DieFeedPtr ¶
func (d *TestResourceNoStatusDie) DieFeedPtr(r *resources.TestResourceNoStatus) *TestResourceNoStatusDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*TestResourceNoStatusDie) DieImmutable ¶
func (d *TestResourceNoStatusDie) DieImmutable(immutable bool) *TestResourceNoStatusDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*TestResourceNoStatusDie) DieRelease ¶
func (d *TestResourceNoStatusDie) DieRelease() resources.TestResourceNoStatus
DieRelease returns the resource managed by the die.
func (*TestResourceNoStatusDie) DieReleasePtr ¶
func (d *TestResourceNoStatusDie) DieReleasePtr() *resources.TestResourceNoStatus
DieReleasePtr returns a pointer to the resource managed by the die.
func (*TestResourceNoStatusDie) DieReleaseUnstructured ¶
func (d *TestResourceNoStatusDie) DieReleaseUnstructured() runtime.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object.
func (*TestResourceNoStatusDie) DieStamp ¶
func (d *TestResourceNoStatusDie) DieStamp(fn func(r *resources.TestResourceNoStatus)) *TestResourceNoStatusDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*TestResourceNoStatusDie) GetObjectKind ¶
func (d *TestResourceNoStatusDie) GetObjectKind() schema.ObjectKind
func (*TestResourceNoStatusDie) MarshalJSON ¶
func (d *TestResourceNoStatusDie) MarshalJSON() ([]byte, error)
func (*TestResourceNoStatusDie) MetadataDie ¶
func (d *TestResourceNoStatusDie) MetadataDie(fn func(d *v1.ObjectMetaDie)) *TestResourceNoStatusDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*TestResourceNoStatusDie) Spec ¶
func (d *TestResourceNoStatusDie) Spec(v resources.TestResourceSpec) *TestResourceNoStatusDie
func (*TestResourceNoStatusDie) SpecDie ¶
func (d *TestResourceNoStatusDie) SpecDie(fn func(d *TestResourceSpecDie)) *TestResourceNoStatusDie
SpecDie stamps the resource's spec field with a mutable die.
func (*TestResourceNoStatusDie) UnmarshalJSON ¶
func (d *TestResourceNoStatusDie) UnmarshalJSON(b []byte) error
type TestResourceSpecDie ¶
type TestResourceSpecDie struct {
// contains filtered or unexported fields
}
func (*TestResourceSpecDie) AddField ¶
func (d *TestResourceSpecDie) AddField(key, value string) *TestResourceSpecDie
func (*TestResourceSpecDie) DeepCopy ¶
func (d *TestResourceSpecDie) DeepCopy() *TestResourceSpecDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*TestResourceSpecDie) DieFeed ¶
func (d *TestResourceSpecDie) DieFeed(r resources.TestResourceSpec) *TestResourceSpecDie
DieFeed returns a new die with the provided resource.
func (*TestResourceSpecDie) DieFeedPtr ¶
func (d *TestResourceSpecDie) DieFeedPtr(r *resources.TestResourceSpec) *TestResourceSpecDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*TestResourceSpecDie) DieImmutable ¶
func (d *TestResourceSpecDie) DieImmutable(immutable bool) *TestResourceSpecDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*TestResourceSpecDie) DieRelease ¶
func (d *TestResourceSpecDie) DieRelease() resources.TestResourceSpec
DieRelease returns the resource managed by the die.
func (*TestResourceSpecDie) DieReleasePtr ¶
func (d *TestResourceSpecDie) DieReleasePtr() *resources.TestResourceSpec
DieReleasePtr returns a pointer to the resource managed by the die.
func (*TestResourceSpecDie) DieStamp ¶
func (d *TestResourceSpecDie) DieStamp(fn func(r *resources.TestResourceSpec)) *TestResourceSpecDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*TestResourceSpecDie) ErrOnMarshal ¶
func (d *TestResourceSpecDie) ErrOnMarshal(v bool) *TestResourceSpecDie
func (*TestResourceSpecDie) ErrOnUnmarshal ¶
func (d *TestResourceSpecDie) ErrOnUnmarshal(v bool) *TestResourceSpecDie
func (*TestResourceSpecDie) Fields ¶
func (d *TestResourceSpecDie) Fields(v map[string]string) *TestResourceSpecDie
func (*TestResourceSpecDie) Template ¶
func (d *TestResourceSpecDie) Template(v corev1.PodTemplateSpec) *TestResourceSpecDie
func (*TestResourceSpecDie) TemplateDie ¶
func (d *TestResourceSpecDie) TemplateDie(fn func(d *diecorev1.PodTemplateSpecDie)) *TestResourceSpecDie
type TestResourceStatusDie ¶
type TestResourceStatusDie struct {
// contains filtered or unexported fields
}
func (*TestResourceStatusDie) AddField ¶
func (d *TestResourceStatusDie) AddField(key, value string) *TestResourceStatusDie
func (*TestResourceStatusDie) ConditionsDie ¶
func (d *TestResourceStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *TestResourceStatusDie
func (*TestResourceStatusDie) DeepCopy ¶
func (d *TestResourceStatusDie) DeepCopy() *TestResourceStatusDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*TestResourceStatusDie) DieFeed ¶
func (d *TestResourceStatusDie) DieFeed(r resources.TestResourceStatus) *TestResourceStatusDie
DieFeed returns a new die with the provided resource.
func (*TestResourceStatusDie) DieFeedPtr ¶
func (d *TestResourceStatusDie) DieFeedPtr(r *resources.TestResourceStatus) *TestResourceStatusDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*TestResourceStatusDie) DieImmutable ¶
func (d *TestResourceStatusDie) DieImmutable(immutable bool) *TestResourceStatusDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*TestResourceStatusDie) DieRelease ¶
func (d *TestResourceStatusDie) DieRelease() resources.TestResourceStatus
DieRelease returns the resource managed by the die.
func (*TestResourceStatusDie) DieReleasePtr ¶
func (d *TestResourceStatusDie) DieReleasePtr() *resources.TestResourceStatus
DieReleasePtr returns a pointer to the resource managed by the die.
func (*TestResourceStatusDie) DieStamp ¶
func (d *TestResourceStatusDie) DieStamp(fn func(r *resources.TestResourceStatus)) *TestResourceStatusDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*TestResourceStatusDie) Fields ¶
func (d *TestResourceStatusDie) Fields(v map[string]string) *TestResourceStatusDie
func (*TestResourceStatusDie) Status ¶
func (d *TestResourceStatusDie) Status(v apis.Status) *TestResourceStatusDie