dies

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 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) 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) 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 (*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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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