dies

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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{})

Functions

This section is empty.

Types

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) 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.

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

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

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

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) 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) 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.

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) 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.

func (*TestResourceEmptyStatusDie) DieReleaseUnstructured

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

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

func (*TestResourceEmptyStatusDie) DieStamp

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) 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) 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.

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) 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.

func (*TestResourceEmptyStatusStatusDie) DieStamp

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) 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) 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.

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) 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.

func (*TestResourceNilableStatusDie) DieReleaseUnstructured

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

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

func (*TestResourceNilableStatusDie) DieStamp

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) 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) 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.

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) 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.

func (*TestResourceNoStatusDie) DieReleaseUnstructured

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

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

func (*TestResourceNoStatusDie) DieStamp

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) 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) 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.

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) 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.

func (*TestResourceSpecDie) DieStamp

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

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) 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.

func (*TestResourceStatusDie) DieStamp

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

func (*TestResourceStatusDie) Fields

func (*TestResourceStatusDie) Status

Jump to

Keyboard shortcuts

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