dies

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestDuckBlank = (&TestDuckDie{}).DieFeed(resources.TestDuck{})
View Source
var TestDuckSpecBlank = (&TestDuckSpecDie{}).DieFeed(resources.TestDuckSpec{})
View Source
var TestResourceBlank = (&TestResourceDie{}).DieFeed(resources.TestResource{})
View Source
var TestResourceEmptyStatusBlank = (&TestResourceEmptyStatusDie{}).DieFeed(resources.TestResourceEmptyStatus{})
View Source
var TestResourceEmptyStatusStatusBlank = (&TestResourceEmptyStatusStatusDie{}).DieFeed(resources.TestResourceEmptyStatusStatus{})
View Source
var TestResourceNilableStatusBlank = (&TestResourceNilableStatusDie{}).DieFeed(resources.TestResourceNilableStatus{})
View Source
var TestResourceNoStatusBlank = (&TestResourceNoStatusDie{}).DieFeed(resources.TestResourceNoStatus{})
View Source
var TestResourceSpecBlank = (&TestResourceSpecDie{}).DieFeed(resources.TestResourceSpec{})
View Source
var TestResourceStatusBlank = (&TestResourceStatusDie{}).DieFeed(resources.TestResourceStatus{})
View Source
var TestResourceUnexportedFieldsBlank = (&TestResourceUnexportedFieldsDie{}).DieFeed(resources.TestResourceUnexportedFields{})
View Source
var TestResourceUnexportedFieldsSpecBlank = (&TestResourceUnexportedFieldsSpecDie{}).DieFeed(resources.TestResourceUnexportedFieldsSpec{})
View Source
var TestResourceUnexportedFieldsStatusBlank = (&TestResourceUnexportedFieldsStatusDie{}).DieFeed(resources.TestResourceUnexportedFieldsStatus{})

Functions

This section is empty.

Types

type TestDuckDie added in v0.14.0

type TestDuckDie struct {
	v1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*TestDuckDie) APIVersion added in v0.14.0

func (d *TestDuckDie) APIVersion(v string) *TestDuckDie

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 (*TestDuckDie) DeepCopy added in v0.14.0

func (d *TestDuckDie) DeepCopy() *TestDuckDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*TestDuckDie) DeepCopyObject added in v0.14.0

func (d *TestDuckDie) DeepCopyObject() runtime.Object

func (*TestDuckDie) DieFeed added in v0.14.0

func (d *TestDuckDie) DieFeed(r resources.TestDuck) *TestDuckDie

DieFeed returns a new die with the provided resource.

func (*TestDuckDie) DieFeedJSON added in v0.14.0

func (d *TestDuckDie) DieFeedJSON(j []byte) *TestDuckDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*TestDuckDie) DieFeedPtr added in v0.14.0

func (d *TestDuckDie) DieFeedPtr(r *resources.TestDuck) *TestDuckDie

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*TestDuckDie) DieFeedRawExtension added in v0.14.0

func (d *TestDuckDie) DieFeedRawExtension(raw runtime.RawExtension) *TestDuckDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestDuckDie) DieFeedYAML added in v0.14.0

func (d *TestDuckDie) DieFeedYAML(y []byte) *TestDuckDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*TestDuckDie) DieFeedYAMLFile added in v0.14.0

func (d *TestDuckDie) DieFeedYAMLFile(name string) *TestDuckDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*TestDuckDie) DieImmutable added in v0.14.0

func (d *TestDuckDie) DieImmutable(immutable bool) *TestDuckDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*TestDuckDie) DieRelease added in v0.14.0

func (d *TestDuckDie) DieRelease() resources.TestDuck

DieRelease returns the resource managed by the die.

func (*TestDuckDie) DieReleaseJSON added in v0.14.0

func (d *TestDuckDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*TestDuckDie) DieReleasePtr added in v0.14.0

func (d *TestDuckDie) DieReleasePtr() *resources.TestDuck

DieReleasePtr returns a pointer to the resource managed by the die.

func (*TestDuckDie) DieReleaseRawExtension added in v0.14.0

func (d *TestDuckDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestDuckDie) DieReleaseUnstructured added in v0.14.0

func (d *TestDuckDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*TestDuckDie) DieReleaseYAML added in v0.14.0

func (d *TestDuckDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*TestDuckDie) DieStamp added in v0.14.0

func (d *TestDuckDie) DieStamp(fn func(r *resources.TestDuck)) *TestDuckDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*TestDuckDie) DieStampAt added in v0.14.0

func (d *TestDuckDie) DieStampAt(jp string, fn interface{}) *TestDuckDie

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 (*TestDuckDie) DieWith added in v0.14.0

func (d *TestDuckDie) DieWith(fns ...func(d *TestDuckDie)) *TestDuckDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*TestDuckDie) GetObjectKind added in v0.14.0

func (d *TestDuckDie) GetObjectKind() schema.ObjectKind

func (*TestDuckDie) Kind added in v0.14.0

func (d *TestDuckDie) Kind(v string) *TestDuckDie

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 (*TestDuckDie) MarshalJSON added in v0.14.0

func (d *TestDuckDie) MarshalJSON() ([]byte, error)

func (*TestDuckDie) MetadataDie added in v0.14.0

func (d *TestDuckDie) MetadataDie(fn func(d *v1.ObjectMetaDie)) *TestDuckDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*TestDuckDie) Spec added in v0.14.0

func (*TestDuckDie) SpecDie added in v0.14.0

func (d *TestDuckDie) SpecDie(fn func(d *TestDuckSpecDie)) *TestDuckDie

SpecDie stamps the resource's spec field with a mutable die.

func (*TestDuckDie) Status added in v0.14.0

func (*TestDuckDie) StatusDie added in v0.14.0

func (d *TestDuckDie) StatusDie(fn func(d *TestResourceStatusDie)) *TestDuckDie

func (*TestDuckDie) UnmarshalJSON added in v0.14.0

func (d *TestDuckDie) UnmarshalJSON(b []byte) error

type TestDuckSpecDie added in v0.14.0

type TestDuckSpecDie struct {
	// contains filtered or unexported fields
}

func (*TestDuckSpecDie) AddField added in v0.14.0

func (d *TestDuckSpecDie) AddField(key, value string) *TestDuckSpecDie

func (*TestDuckSpecDie) DeepCopy added in v0.14.0

func (d *TestDuckSpecDie) DeepCopy() *TestDuckSpecDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*TestDuckSpecDie) DieFeed added in v0.14.0

DieFeed returns a new die with the provided resource.

func (*TestDuckSpecDie) DieFeedJSON added in v0.14.0

func (d *TestDuckSpecDie) DieFeedJSON(j []byte) *TestDuckSpecDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*TestDuckSpecDie) DieFeedPtr added in v0.14.0

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*TestDuckSpecDie) DieFeedRawExtension added in v0.14.0

func (d *TestDuckSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *TestDuckSpecDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestDuckSpecDie) DieFeedYAML added in v0.14.0

func (d *TestDuckSpecDie) DieFeedYAML(y []byte) *TestDuckSpecDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*TestDuckSpecDie) DieFeedYAMLFile added in v0.14.0

func (d *TestDuckSpecDie) DieFeedYAMLFile(name string) *TestDuckSpecDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*TestDuckSpecDie) DieImmutable added in v0.14.0

func (d *TestDuckSpecDie) DieImmutable(immutable bool) *TestDuckSpecDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*TestDuckSpecDie) DieRelease added in v0.14.0

func (d *TestDuckSpecDie) DieRelease() resources.TestDuckSpec

DieRelease returns the resource managed by the die.

func (*TestDuckSpecDie) DieReleaseJSON added in v0.14.0

func (d *TestDuckSpecDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*TestDuckSpecDie) DieReleasePtr added in v0.14.0

func (d *TestDuckSpecDie) DieReleasePtr() *resources.TestDuckSpec

DieReleasePtr returns a pointer to the resource managed by the die.

func (*TestDuckSpecDie) DieReleaseRawExtension added in v0.14.0

func (d *TestDuckSpecDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestDuckSpecDie) DieReleaseYAML added in v0.14.0

func (d *TestDuckSpecDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*TestDuckSpecDie) DieStamp added in v0.14.0

func (d *TestDuckSpecDie) DieStamp(fn func(r *resources.TestDuckSpec)) *TestDuckSpecDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*TestDuckSpecDie) DieStampAt added in v0.14.0

func (d *TestDuckSpecDie) DieStampAt(jp string, fn interface{}) *TestDuckSpecDie

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 (*TestDuckSpecDie) DieWith added in v0.14.0

func (d *TestDuckSpecDie) DieWith(fns ...func(d *TestDuckSpecDie)) *TestDuckSpecDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*TestDuckSpecDie) Fields added in v0.14.0

func (d *TestDuckSpecDie) Fields(v map[string]string) *TestDuckSpecDie

type TestResourceDie

type TestResourceDie struct {
	v1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*TestResourceDie) APIVersion added in v0.7.0

func (d *TestResourceDie) APIVersion(v string) *TestResourceDie

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 (*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

DieFeed returns a new die with the provided resource.

func (*TestResourceDie) DieFeedJSON added in v0.12.0

func (d *TestResourceDie) DieFeedJSON(j []byte) *TestResourceDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*TestResourceDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*TestResourceDie) DieFeedRawExtension added in v0.7.0

func (d *TestResourceDie) DieFeedRawExtension(raw runtime.RawExtension) *TestResourceDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceDie) DieFeedYAML added in v0.12.0

func (d *TestResourceDie) DieFeedYAML(y []byte) *TestResourceDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*TestResourceDie) DieFeedYAMLFile added in v0.12.0

func (d *TestResourceDie) DieFeedYAMLFile(name string) *TestResourceDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

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) DieReleaseJSON added in v0.12.0

func (d *TestResourceDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*TestResourceDie) DieReleasePtr

func (d *TestResourceDie) DieReleasePtr() *resources.TestResource

DieReleasePtr returns a pointer to the resource managed by the die.

func (*TestResourceDie) DieReleaseRawExtension added in v0.7.0

func (d *TestResourceDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceDie) DieReleaseUnstructured

func (d *TestResourceDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*TestResourceDie) DieReleaseYAML added in v0.12.0

func (d *TestResourceDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

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) DieStampAt added in v0.12.0

func (d *TestResourceDie) DieStampAt(jp string, fn interface{}) *TestResourceDie

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 (*TestResourceDie) DieWith added in v0.14.0

func (d *TestResourceDie) DieWith(fns ...func(d *TestResourceDie)) *TestResourceDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*TestResourceDie) GetObjectKind

func (d *TestResourceDie) GetObjectKind() schema.ObjectKind

func (*TestResourceDie) Kind added in v0.7.0

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 (*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 (*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 (*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) APIVersion added in v0.7.0

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 (*TestResourceEmptyStatusDie) DeepCopy

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

DieFeed returns a new die with the provided resource.

func (*TestResourceEmptyStatusDie) DieFeedJSON added in v0.12.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*TestResourceEmptyStatusDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*TestResourceEmptyStatusDie) DieFeedRawExtension added in v0.7.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceEmptyStatusDie) DieFeedYAML added in v0.12.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*TestResourceEmptyStatusDie) DieFeedYAMLFile added in v0.12.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

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

DieRelease returns the resource managed by the die.

func (*TestResourceEmptyStatusDie) DieReleaseJSON added in v0.12.0

func (d *TestResourceEmptyStatusDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*TestResourceEmptyStatusDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*TestResourceEmptyStatusDie) DieReleaseRawExtension added in v0.7.0

func (d *TestResourceEmptyStatusDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceEmptyStatusDie) DieReleaseUnstructured

func (d *TestResourceEmptyStatusDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*TestResourceEmptyStatusDie) DieReleaseYAML added in v0.12.0

func (d *TestResourceEmptyStatusDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*TestResourceEmptyStatusDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*TestResourceEmptyStatusDie) DieStampAt added in v0.12.0

func (d *TestResourceEmptyStatusDie) DieStampAt(jp string, fn interface{}) *TestResourceEmptyStatusDie

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 (*TestResourceEmptyStatusDie) DieWith added in v0.14.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*TestResourceEmptyStatusDie) GetObjectKind

func (d *TestResourceEmptyStatusDie) GetObjectKind() schema.ObjectKind

func (*TestResourceEmptyStatusDie) Kind added in v0.7.0

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 (*TestResourceEmptyStatusDie) MarshalJSON

func (d *TestResourceEmptyStatusDie) MarshalJSON() ([]byte, error)

func (*TestResourceEmptyStatusDie) MetadataDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*TestResourceEmptyStatusDie) Spec

func (*TestResourceEmptyStatusDie) SpecDie

SpecDie stamps the resource's spec field with a mutable die.

func (*TestResourceEmptyStatusDie) StatusDie

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

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*TestResourceEmptyStatusStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*TestResourceEmptyStatusStatusDie) DieFeedJSON added in v0.12.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*TestResourceEmptyStatusStatusDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*TestResourceEmptyStatusStatusDie) DieFeedRawExtension added in v0.7.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceEmptyStatusStatusDie) DieFeedYAML added in v0.12.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*TestResourceEmptyStatusStatusDie) DieFeedYAMLFile added in v0.12.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*TestResourceEmptyStatusStatusDie) DieImmutable

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*TestResourceEmptyStatusStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*TestResourceEmptyStatusStatusDie) DieReleaseJSON added in v0.12.0

func (d *TestResourceEmptyStatusStatusDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*TestResourceEmptyStatusStatusDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*TestResourceEmptyStatusStatusDie) DieReleaseRawExtension added in v0.7.0

func (d *TestResourceEmptyStatusStatusDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceEmptyStatusStatusDie) DieReleaseYAML added in v0.12.0

func (d *TestResourceEmptyStatusStatusDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*TestResourceEmptyStatusStatusDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*TestResourceEmptyStatusStatusDie) DieStampAt added in v0.12.0

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 (*TestResourceEmptyStatusStatusDie) DieWith added in v0.14.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

type TestResourceNilableStatusDie

type TestResourceNilableStatusDie struct {
	v1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*TestResourceNilableStatusDie) APIVersion added in v0.7.0

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 (*TestResourceNilableStatusDie) DeepCopy

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

DieFeed returns a new die with the provided resource.

func (*TestResourceNilableStatusDie) DieFeedJSON added in v0.12.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*TestResourceNilableStatusDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*TestResourceNilableStatusDie) DieFeedRawExtension added in v0.7.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceNilableStatusDie) DieFeedYAML added in v0.12.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*TestResourceNilableStatusDie) DieFeedYAMLFile added in v0.12.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*TestResourceNilableStatusDie) DieImmutable

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*TestResourceNilableStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*TestResourceNilableStatusDie) DieReleaseJSON added in v0.12.0

func (d *TestResourceNilableStatusDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*TestResourceNilableStatusDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*TestResourceNilableStatusDie) DieReleaseRawExtension added in v0.7.0

func (d *TestResourceNilableStatusDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceNilableStatusDie) DieReleaseUnstructured

func (d *TestResourceNilableStatusDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*TestResourceNilableStatusDie) DieReleaseYAML added in v0.12.0

func (d *TestResourceNilableStatusDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*TestResourceNilableStatusDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*TestResourceNilableStatusDie) DieStampAt added in v0.12.0

func (d *TestResourceNilableStatusDie) DieStampAt(jp string, fn interface{}) *TestResourceNilableStatusDie

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 (*TestResourceNilableStatusDie) DieWith added in v0.14.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*TestResourceNilableStatusDie) GetObjectKind

func (d *TestResourceNilableStatusDie) GetObjectKind() schema.ObjectKind

func (*TestResourceNilableStatusDie) Kind added in v0.7.0

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 (*TestResourceNilableStatusDie) MarshalJSON

func (d *TestResourceNilableStatusDie) MarshalJSON() ([]byte, error)

func (*TestResourceNilableStatusDie) MetadataDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*TestResourceNilableStatusDie) Spec

func (*TestResourceNilableStatusDie) SpecDie

SpecDie stamps the resource's spec field with a mutable die.

func (*TestResourceNilableStatusDie) Status

func (*TestResourceNilableStatusDie) StatusDie

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) APIVersion added in v0.7.0

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 (*TestResourceNoStatusDie) DeepCopy

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

DieFeed returns a new die with the provided resource.

func (*TestResourceNoStatusDie) DieFeedJSON added in v0.12.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*TestResourceNoStatusDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*TestResourceNoStatusDie) DieFeedRawExtension added in v0.7.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceNoStatusDie) DieFeedYAML added in v0.12.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*TestResourceNoStatusDie) DieFeedYAMLFile added in v0.12.0

func (d *TestResourceNoStatusDie) DieFeedYAMLFile(name string) *TestResourceNoStatusDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

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

DieRelease returns the resource managed by the die.

func (*TestResourceNoStatusDie) DieReleaseJSON added in v0.12.0

func (d *TestResourceNoStatusDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*TestResourceNoStatusDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*TestResourceNoStatusDie) DieReleaseRawExtension added in v0.7.0

func (d *TestResourceNoStatusDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceNoStatusDie) DieReleaseUnstructured

func (d *TestResourceNoStatusDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*TestResourceNoStatusDie) DieReleaseYAML added in v0.12.0

func (d *TestResourceNoStatusDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*TestResourceNoStatusDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*TestResourceNoStatusDie) DieStampAt added in v0.12.0

func (d *TestResourceNoStatusDie) DieStampAt(jp string, fn interface{}) *TestResourceNoStatusDie

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 (*TestResourceNoStatusDie) DieWith added in v0.14.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*TestResourceNoStatusDie) GetObjectKind

func (d *TestResourceNoStatusDie) GetObjectKind() schema.ObjectKind

func (*TestResourceNoStatusDie) Kind added in v0.7.0

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 (*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 (*TestResourceNoStatusDie) SpecDie

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

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*TestResourceSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*TestResourceSpecDie) DieFeedJSON added in v0.12.0

func (d *TestResourceSpecDie) DieFeedJSON(j []byte) *TestResourceSpecDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*TestResourceSpecDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*TestResourceSpecDie) DieFeedRawExtension added in v0.7.0

func (d *TestResourceSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *TestResourceSpecDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceSpecDie) DieFeedYAML added in v0.12.0

func (d *TestResourceSpecDie) DieFeedYAML(y []byte) *TestResourceSpecDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*TestResourceSpecDie) DieFeedYAMLFile added in v0.12.0

func (d *TestResourceSpecDie) DieFeedYAMLFile(name string) *TestResourceSpecDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

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

DieRelease returns the resource managed by the die.

func (*TestResourceSpecDie) DieReleaseJSON added in v0.12.0

func (d *TestResourceSpecDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*TestResourceSpecDie) DieReleasePtr

func (d *TestResourceSpecDie) DieReleasePtr() *resources.TestResourceSpec

DieReleasePtr returns a pointer to the resource managed by the die.

func (*TestResourceSpecDie) DieReleaseRawExtension added in v0.7.0

func (d *TestResourceSpecDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceSpecDie) DieReleaseYAML added in v0.12.0

func (d *TestResourceSpecDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*TestResourceSpecDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*TestResourceSpecDie) DieStampAt added in v0.12.0

func (d *TestResourceSpecDie) DieStampAt(jp string, fn interface{}) *TestResourceSpecDie

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 (*TestResourceSpecDie) DieWith added in v0.14.0

func (d *TestResourceSpecDie) DieWith(fns ...func(d *TestResourceSpecDie)) *TestResourceSpecDie

DieWith returns a new die after passing the current die to the callback function. The passed die 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 (*TestResourceSpecDie) Template

func (*TestResourceSpecDie) TemplateDie

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

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*TestResourceStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*TestResourceStatusDie) DieFeedJSON added in v0.12.0

func (d *TestResourceStatusDie) DieFeedJSON(j []byte) *TestResourceStatusDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*TestResourceStatusDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*TestResourceStatusDie) DieFeedRawExtension added in v0.7.0

func (d *TestResourceStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *TestResourceStatusDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceStatusDie) DieFeedYAML added in v0.12.0

func (d *TestResourceStatusDie) DieFeedYAML(y []byte) *TestResourceStatusDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*TestResourceStatusDie) DieFeedYAMLFile added in v0.12.0

func (d *TestResourceStatusDie) DieFeedYAMLFile(name string) *TestResourceStatusDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

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

DieRelease returns the resource managed by the die.

func (*TestResourceStatusDie) DieReleaseJSON added in v0.12.0

func (d *TestResourceStatusDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*TestResourceStatusDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*TestResourceStatusDie) DieReleaseRawExtension added in v0.7.0

func (d *TestResourceStatusDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceStatusDie) DieReleaseYAML added in v0.12.0

func (d *TestResourceStatusDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*TestResourceStatusDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*TestResourceStatusDie) DieStampAt added in v0.12.0

func (d *TestResourceStatusDie) DieStampAt(jp string, fn interface{}) *TestResourceStatusDie

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 (*TestResourceStatusDie) DieWith added in v0.14.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*TestResourceStatusDie) Fields

func (*TestResourceStatusDie) Status

type TestResourceUnexportedFieldsDie added in v0.19.0

type TestResourceUnexportedFieldsDie struct {
	v1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*TestResourceUnexportedFieldsDie) APIVersion added in v0.19.0

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 (*TestResourceUnexportedFieldsDie) DeepCopy added in v0.19.0

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*TestResourceUnexportedFieldsDie) DeepCopyObject added in v0.19.0

func (d *TestResourceUnexportedFieldsDie) DeepCopyObject() runtime.Object

func (*TestResourceUnexportedFieldsDie) DieFeed added in v0.19.0

DieFeed returns a new die with the provided resource.

func (*TestResourceUnexportedFieldsDie) DieFeedJSON added in v0.19.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*TestResourceUnexportedFieldsDie) DieFeedPtr added in v0.19.0

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*TestResourceUnexportedFieldsDie) DieFeedRawExtension added in v0.19.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceUnexportedFieldsDie) DieFeedYAML added in v0.19.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*TestResourceUnexportedFieldsDie) DieFeedYAMLFile added in v0.19.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*TestResourceUnexportedFieldsDie) DieImmutable added in v0.19.0

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*TestResourceUnexportedFieldsDie) DieRelease added in v0.19.0

DieRelease returns the resource managed by the die.

func (*TestResourceUnexportedFieldsDie) DieReleaseJSON added in v0.19.0

func (d *TestResourceUnexportedFieldsDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*TestResourceUnexportedFieldsDie) DieReleasePtr added in v0.19.0

DieReleasePtr returns a pointer to the resource managed by the die.

func (*TestResourceUnexportedFieldsDie) DieReleaseRawExtension added in v0.19.0

func (d *TestResourceUnexportedFieldsDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceUnexportedFieldsDie) DieReleaseUnstructured added in v0.19.0

func (d *TestResourceUnexportedFieldsDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*TestResourceUnexportedFieldsDie) DieReleaseYAML added in v0.19.0

func (d *TestResourceUnexportedFieldsDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*TestResourceUnexportedFieldsDie) DieStamp added in v0.19.0

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*TestResourceUnexportedFieldsDie) DieStampAt added in v0.19.0

func (d *TestResourceUnexportedFieldsDie) DieStampAt(jp string, fn interface{}) *TestResourceUnexportedFieldsDie

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 (*TestResourceUnexportedFieldsDie) DieWith added in v0.19.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*TestResourceUnexportedFieldsDie) GetObjectKind added in v0.19.0

func (*TestResourceUnexportedFieldsDie) Kind added in v0.19.0

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 (*TestResourceUnexportedFieldsDie) MarshalJSON added in v0.19.0

func (d *TestResourceUnexportedFieldsDie) MarshalJSON() ([]byte, error)

func (*TestResourceUnexportedFieldsDie) MetadataDie added in v0.19.0

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*TestResourceUnexportedFieldsDie) Spec added in v0.19.0

func (*TestResourceUnexportedFieldsDie) SpecDie added in v0.19.0

SpecDie stamps the resource's spec field with a mutable die.

func (*TestResourceUnexportedFieldsDie) Status added in v0.19.0

func (*TestResourceUnexportedFieldsDie) StatusDie added in v0.19.0

StatusDie stamps the resource's status field with a mutable die.

func (*TestResourceUnexportedFieldsDie) UnmarshalJSON added in v0.19.0

func (d *TestResourceUnexportedFieldsDie) UnmarshalJSON(b []byte) error

type TestResourceUnexportedFieldsSpecDie added in v0.19.0

type TestResourceUnexportedFieldsSpecDie struct {
	// contains filtered or unexported fields
}

func (*TestResourceUnexportedFieldsSpecDie) AddField added in v0.19.0

func (*TestResourceUnexportedFieldsSpecDie) AddUnexportedField added in v0.19.0

func (*TestResourceUnexportedFieldsSpecDie) DeepCopy added in v0.19.0

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*TestResourceUnexportedFieldsSpecDie) DieFeed added in v0.19.0

DieFeed returns a new die with the provided resource.

func (*TestResourceUnexportedFieldsSpecDie) DieFeedJSON added in v0.19.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*TestResourceUnexportedFieldsSpecDie) DieFeedPtr added in v0.19.0

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*TestResourceUnexportedFieldsSpecDie) DieFeedRawExtension added in v0.19.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceUnexportedFieldsSpecDie) DieFeedYAML added in v0.19.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*TestResourceUnexportedFieldsSpecDie) DieFeedYAMLFile added in v0.19.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*TestResourceUnexportedFieldsSpecDie) DieImmutable added in v0.19.0

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*TestResourceUnexportedFieldsSpecDie) DieRelease added in v0.19.0

DieRelease returns the resource managed by the die.

func (*TestResourceUnexportedFieldsSpecDie) DieReleaseJSON added in v0.19.0

func (d *TestResourceUnexportedFieldsSpecDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*TestResourceUnexportedFieldsSpecDie) DieReleasePtr added in v0.19.0

DieReleasePtr returns a pointer to the resource managed by the die.

func (*TestResourceUnexportedFieldsSpecDie) DieReleaseRawExtension added in v0.19.0

func (d *TestResourceUnexportedFieldsSpecDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceUnexportedFieldsSpecDie) DieReleaseYAML added in v0.19.0

func (d *TestResourceUnexportedFieldsSpecDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*TestResourceUnexportedFieldsSpecDie) DieStamp added in v0.19.0

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*TestResourceUnexportedFieldsSpecDie) DieStampAt added in v0.19.0

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 (*TestResourceUnexportedFieldsSpecDie) DieWith added in v0.19.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*TestResourceUnexportedFieldsSpecDie) ErrOnMarshal added in v0.19.0

func (*TestResourceUnexportedFieldsSpecDie) ErrOnUnmarshal added in v0.19.0

func (*TestResourceUnexportedFieldsSpecDie) Fields added in v0.19.0

func (*TestResourceUnexportedFieldsSpecDie) Template added in v0.19.0

func (*TestResourceUnexportedFieldsSpecDie) TemplateDie added in v0.19.0

type TestResourceUnexportedFieldsStatusDie added in v0.19.0

type TestResourceUnexportedFieldsStatusDie struct {
	// contains filtered or unexported fields
}

func (*TestResourceUnexportedFieldsStatusDie) AddField added in v0.19.0

func (*TestResourceUnexportedFieldsStatusDie) AddUnexportedField added in v0.19.0

func (*TestResourceUnexportedFieldsStatusDie) ConditionsDie added in v0.19.0

func (*TestResourceUnexportedFieldsStatusDie) DeepCopy added in v0.19.0

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*TestResourceUnexportedFieldsStatusDie) DieFeed added in v0.19.0

DieFeed returns a new die with the provided resource.

func (*TestResourceUnexportedFieldsStatusDie) DieFeedJSON added in v0.19.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*TestResourceUnexportedFieldsStatusDie) DieFeedPtr added in v0.19.0

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*TestResourceUnexportedFieldsStatusDie) DieFeedRawExtension added in v0.19.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceUnexportedFieldsStatusDie) DieFeedYAML added in v0.19.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*TestResourceUnexportedFieldsStatusDie) DieFeedYAMLFile added in v0.19.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*TestResourceUnexportedFieldsStatusDie) DieImmutable added in v0.19.0

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*TestResourceUnexportedFieldsStatusDie) DieRelease added in v0.19.0

DieRelease returns the resource managed by the die.

func (*TestResourceUnexportedFieldsStatusDie) DieReleaseJSON added in v0.19.0

func (d *TestResourceUnexportedFieldsStatusDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*TestResourceUnexportedFieldsStatusDie) DieReleasePtr added in v0.19.0

DieReleasePtr returns a pointer to the resource managed by the die.

func (*TestResourceUnexportedFieldsStatusDie) DieReleaseRawExtension added in v0.19.0

func (d *TestResourceUnexportedFieldsStatusDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*TestResourceUnexportedFieldsStatusDie) DieReleaseYAML added in v0.19.0

func (d *TestResourceUnexportedFieldsStatusDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*TestResourceUnexportedFieldsStatusDie) DieStamp added in v0.19.0

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*TestResourceUnexportedFieldsStatusDie) DieStampAt added in v0.19.0

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 (*TestResourceUnexportedFieldsStatusDie) DieWith added in v0.19.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*TestResourceUnexportedFieldsStatusDie) Fields added in v0.19.0

func (*TestResourceUnexportedFieldsStatusDie) Status added in v0.19.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL