v1

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 14 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConditionBlank = (&ConditionDie{}).DieFeed(metav1.Condition{})
View Source
var FieldSelectorRequirementBlank = (&FieldSelectorRequirementDie{}).DieFeed(metav1.FieldSelectorRequirement{})
View Source
var GroupResourceBlank = (&GroupResourceDie{}).DieFeed(metav1.GroupResource{})
View Source
var GroupVersionBlank = (&GroupVersionDie{}).DieFeed(metav1.GroupVersion{})
View Source
var GroupVersionForDiscoveryBlank = (&GroupVersionForDiscoveryDie{}).DieFeed(metav1.GroupVersionForDiscovery{})
View Source
var GroupVersionKindBlank = (&GroupVersionKindDie{}).DieFeed(metav1.GroupVersionKind{})
View Source
var GroupVersionResourceBlank = (&GroupVersionResourceDie{}).DieFeed(metav1.GroupVersionResource{})
View Source
var LabelSelectorBlank = (&LabelSelectorDie{}).DieFeed(metav1.LabelSelector{})
View Source
var LabelSelectorRequirementBlank = (&LabelSelectorRequirementDie{}).DieFeed(metav1.LabelSelectorRequirement{})
View Source
var ListMetaBlank = (&ListMetaDie{}).DieFeed(metav1.ListMeta{})
View Source
var ManagedFieldsEntryBlank = (&ManagedFieldsEntryDie{}).DieFeed(metav1.ManagedFieldsEntry{})
View Source
var ObjectMetaBlank = (&ObjectMetaDie{}).DieFeed(metav1.ObjectMeta{})
View Source
var StatusBlank = (&StatusDie{}).DieFeed(metav1.Status{})
View Source
var StatusCauseBlank = (&StatusCauseDie{}).DieFeed(metav1.StatusCause{})
View Source
var StatusDetailsBlank = (&StatusDetailsDie{}).DieFeed(metav1.StatusDetails{})
View Source
var TypeMetaBlank = (&TypeMetaDie{}).DieFeed(metav1.TypeMeta{})

Functions

This section is empty.

Types

type ConditionDie

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

func (*ConditionDie) DeepCopy

func (d *ConditionDie) DeepCopy() *ConditionDie

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

func (*ConditionDie) DieDiff added in v0.13.0

func (d *ConditionDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*ConditionDie) DieFeed

func (d *ConditionDie) DieFeed(r metav1.Condition) *ConditionDie

DieFeed returns a new die with the provided resource.

func (*ConditionDie) DieFeedJSON

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

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

func (*ConditionDie) DieFeedPtr

func (d *ConditionDie) DieFeedPtr(r *metav1.Condition) *ConditionDie

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

func (*ConditionDie) DieFeedRawExtension

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

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

func (*ConditionDie) DieFeedYAML

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

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

func (*ConditionDie) DieFeedYAMLFile

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

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

func (*ConditionDie) DieImmutable

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

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

func (*ConditionDie) DiePatch added in v0.13.0

func (d *ConditionDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*ConditionDie) DieRelease

func (d *ConditionDie) DieRelease() metav1.Condition

DieRelease returns the resource managed by the die.

func (*ConditionDie) DieReleaseJSON

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

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

func (*ConditionDie) DieReleasePtr

func (d *ConditionDie) DieReleasePtr() *metav1.Condition

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

func (*ConditionDie) DieReleaseRawExtension

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

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

func (*ConditionDie) DieReleaseYAML

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

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

func (*ConditionDie) DieSeal added in v0.13.0

func (d *ConditionDie) DieSeal() *ConditionDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*ConditionDie) DieSealFeed added in v0.13.0

func (d *ConditionDie) DieSealFeed(r metav1.Condition) *ConditionDie

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*ConditionDie) DieSealFeedPtr added in v0.13.0

func (d *ConditionDie) DieSealFeedPtr(r *metav1.Condition) *ConditionDie

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*ConditionDie) DieSealRelease added in v0.13.0

func (d *ConditionDie) DieSealRelease() metav1.Condition

DieSealRelease returns the sealed resource managed by the die.

func (*ConditionDie) DieSealReleasePtr added in v0.13.0

func (d *ConditionDie) DieSealReleasePtr() *metav1.Condition

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*ConditionDie) DieStamp

func (d *ConditionDie) DieStamp(fn func(r *metav1.Condition)) *ConditionDie

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

func (*ConditionDie) DieStampAt

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

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 (*ConditionDie) DieWith

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

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

func (*ConditionDie) False

func (d *ConditionDie) False() *ConditionDie

func (*ConditionDie) LastTransitionTime

func (d *ConditionDie) LastTransitionTime(v metav1.Time) *ConditionDie

lastTransitionTime is the last time the condition transitioned from one status to another.

This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.

func (*ConditionDie) Message

func (d *ConditionDie) Message(v string) *ConditionDie

message is a human readable message indicating details about the transition.

This may be an empty string.

func (*ConditionDie) Messagef

func (d *ConditionDie) Messagef(format string, a ...interface{}) *ConditionDie

func (*ConditionDie) ObservedGeneration

func (d *ConditionDie) ObservedGeneration(v int64) *ConditionDie

observedGeneration represents the .metadata.generation that the condition was set based upon.

For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date

with respect to the current state of the instance.

func (*ConditionDie) Reason

func (d *ConditionDie) Reason(v string) *ConditionDie

reason contains a programmatic identifier indicating the reason for the condition's last transition.

Producers of specific condition types may define expected values and meanings for this field,

and whether the values are considered a guaranteed API.

The value should be a CamelCase string.

This field may not be empty.

func (*ConditionDie) Status

status of the condition, one of True, False, Unknown.

func (*ConditionDie) True

func (d *ConditionDie) True() *ConditionDie

func (*ConditionDie) Type

func (d *ConditionDie) Type(v string) *ConditionDie

type of condition in CamelCase or in foo.example.com/CamelCase.

---

Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be

useful (see .node.status.conditions), the ability to deconflict is important.

The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)

func (*ConditionDie) Unknown

func (d *ConditionDie) Unknown() *ConditionDie

type FieldSelectorRequirementDie added in v0.14.0

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

func (*FieldSelectorRequirementDie) DeepCopy added in v0.14.0

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

func (*FieldSelectorRequirementDie) DieDiff added in v0.14.0

func (d *FieldSelectorRequirementDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*FieldSelectorRequirementDie) DieFeed added in v0.14.0

DieFeed returns a new die with the provided resource.

func (*FieldSelectorRequirementDie) DieFeedJSON added in v0.14.0

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

func (*FieldSelectorRequirementDie) 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 (*FieldSelectorRequirementDie) DieFeedRawExtension added in v0.14.0

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

func (*FieldSelectorRequirementDie) DieFeedYAML added in v0.14.0

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

func (*FieldSelectorRequirementDie) DieFeedYAMLFile added in v0.14.0

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

func (*FieldSelectorRequirementDie) DieImmutable added in v0.14.0

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

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

func (*FieldSelectorRequirementDie) DiePatch added in v0.14.0

func (d *FieldSelectorRequirementDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*FieldSelectorRequirementDie) DieRelease added in v0.14.0

DieRelease returns the resource managed by the die.

func (*FieldSelectorRequirementDie) DieReleaseJSON added in v0.14.0

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

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

func (*FieldSelectorRequirementDie) DieReleasePtr added in v0.14.0

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

func (*FieldSelectorRequirementDie) DieReleaseRawExtension added in v0.14.0

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

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

func (*FieldSelectorRequirementDie) DieReleaseYAML added in v0.14.0

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

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

func (*FieldSelectorRequirementDie) DieSeal added in v0.14.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*FieldSelectorRequirementDie) DieSealFeed added in v0.14.0

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*FieldSelectorRequirementDie) DieSealFeedPtr added in v0.14.0

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*FieldSelectorRequirementDie) DieSealRelease added in v0.14.0

DieSealRelease returns the sealed resource managed by the die.

func (*FieldSelectorRequirementDie) DieSealReleasePtr added in v0.14.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*FieldSelectorRequirementDie) DieStamp added in v0.14.0

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

func (*FieldSelectorRequirementDie) DieStampAt added in v0.14.0

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

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

key is the field selector key that the requirement applies to.

func (*FieldSelectorRequirementDie) Operator added in v0.14.0

operator represents a key's relationship to a set of values.

Valid operators are In, NotIn, Exists, DoesNotExist.

The list of operators may grow in the future.

func (*FieldSelectorRequirementDie) Values added in v0.14.0

values is an array of string values.

If the operator is In or NotIn, the values array must be non-empty.

If the operator is Exists or DoesNotExist, the values array must be empty.

type FrozenObjectMeta

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

func FreezeObjectMeta

func FreezeObjectMeta(r metav1.ObjectMeta) FrozenObjectMeta

func (*FrozenObjectMeta) GetAnnotations

func (d *FrozenObjectMeta) GetAnnotations() map[string]string

func (*FrozenObjectMeta) GetCreationTimestamp

func (d *FrozenObjectMeta) GetCreationTimestamp() metav1.Time

func (*FrozenObjectMeta) GetDeletionGracePeriodSeconds

func (d *FrozenObjectMeta) GetDeletionGracePeriodSeconds() *int64

func (*FrozenObjectMeta) GetDeletionTimestamp

func (d *FrozenObjectMeta) GetDeletionTimestamp() *metav1.Time

func (*FrozenObjectMeta) GetFinalizers

func (d *FrozenObjectMeta) GetFinalizers() []string

func (*FrozenObjectMeta) GetGenerateName

func (d *FrozenObjectMeta) GetGenerateName() string

func (*FrozenObjectMeta) GetGeneration

func (d *FrozenObjectMeta) GetGeneration() int64

func (*FrozenObjectMeta) GetLabels

func (d *FrozenObjectMeta) GetLabels() map[string]string

func (*FrozenObjectMeta) GetManagedFields

func (d *FrozenObjectMeta) GetManagedFields() []metav1.ManagedFieldsEntry

func (*FrozenObjectMeta) GetName

func (d *FrozenObjectMeta) GetName() string

func (*FrozenObjectMeta) GetNamespace

func (d *FrozenObjectMeta) GetNamespace() string

func (*FrozenObjectMeta) GetObjectMeta

func (d *FrozenObjectMeta) GetObjectMeta() metav1.Object

func (*FrozenObjectMeta) GetOwnerReferences

func (d *FrozenObjectMeta) GetOwnerReferences() []metav1.OwnerReference

func (*FrozenObjectMeta) GetResourceVersion

func (d *FrozenObjectMeta) GetResourceVersion() string
func (d *FrozenObjectMeta) GetSelfLink() string

func (*FrozenObjectMeta) GetUID

func (d *FrozenObjectMeta) GetUID() types.UID

func (*FrozenObjectMeta) SetAnnotations

func (d *FrozenObjectMeta) SetAnnotations(annotations map[string]string)

func (*FrozenObjectMeta) SetCreationTimestamp

func (d *FrozenObjectMeta) SetCreationTimestamp(timestamp metav1.Time)

func (*FrozenObjectMeta) SetDeletionGracePeriodSeconds

func (d *FrozenObjectMeta) SetDeletionGracePeriodSeconds(*int64)

func (*FrozenObjectMeta) SetDeletionTimestamp

func (d *FrozenObjectMeta) SetDeletionTimestamp(timestamp *metav1.Time)

func (*FrozenObjectMeta) SetFinalizers

func (d *FrozenObjectMeta) SetFinalizers(finalizers []string)

func (*FrozenObjectMeta) SetGenerateName

func (d *FrozenObjectMeta) SetGenerateName(name string)

func (*FrozenObjectMeta) SetGeneration

func (d *FrozenObjectMeta) SetGeneration(generation int64)

func (*FrozenObjectMeta) SetLabels

func (d *FrozenObjectMeta) SetLabels(labels map[string]string)

func (*FrozenObjectMeta) SetManagedFields

func (d *FrozenObjectMeta) SetManagedFields(managedFields []metav1.ManagedFieldsEntry)

func (*FrozenObjectMeta) SetName

func (d *FrozenObjectMeta) SetName(name string)

func (*FrozenObjectMeta) SetNamespace

func (d *FrozenObjectMeta) SetNamespace(namespace string)

func (*FrozenObjectMeta) SetOwnerReferences

func (d *FrozenObjectMeta) SetOwnerReferences([]metav1.OwnerReference)

func (*FrozenObjectMeta) SetResourceVersion

func (d *FrozenObjectMeta) SetResourceVersion(version string)
func (d *FrozenObjectMeta) SetSelfLink(selfLink string)

func (*FrozenObjectMeta) SetUID

func (d *FrozenObjectMeta) SetUID(uid types.UID)

type GroupResourceDie

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

func (*GroupResourceDie) DeepCopy

func (d *GroupResourceDie) DeepCopy() *GroupResourceDie

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

func (*GroupResourceDie) DieDiff added in v0.13.0

func (d *GroupResourceDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*GroupResourceDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*GroupResourceDie) DieFeedJSON

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

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

func (*GroupResourceDie) DieFeedPtr

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

func (*GroupResourceDie) DieFeedRawExtension

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

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

func (*GroupResourceDie) DieFeedYAML

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

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

func (*GroupResourceDie) DieFeedYAMLFile

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

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

func (*GroupResourceDie) DieImmutable

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

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

func (*GroupResourceDie) DiePatch added in v0.13.0

func (d *GroupResourceDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*GroupResourceDie) DieRelease

func (d *GroupResourceDie) DieRelease() metav1.GroupResource

DieRelease returns the resource managed by the die.

func (*GroupResourceDie) DieReleaseJSON

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

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

func (*GroupResourceDie) DieReleasePtr

func (d *GroupResourceDie) DieReleasePtr() *metav1.GroupResource

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

func (*GroupResourceDie) DieReleaseRawExtension

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

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

func (*GroupResourceDie) DieReleaseYAML

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

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

func (*GroupResourceDie) DieSeal added in v0.13.0

func (d *GroupResourceDie) DieSeal() *GroupResourceDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*GroupResourceDie) DieSealFeed added in v0.13.0

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*GroupResourceDie) DieSealFeedPtr added in v0.13.0

func (d *GroupResourceDie) DieSealFeedPtr(r *metav1.GroupResource) *GroupResourceDie

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*GroupResourceDie) DieSealRelease added in v0.13.0

func (d *GroupResourceDie) DieSealRelease() metav1.GroupResource

DieSealRelease returns the sealed resource managed by the die.

func (*GroupResourceDie) DieSealReleasePtr added in v0.13.0

func (d *GroupResourceDie) DieSealReleasePtr() *metav1.GroupResource

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*GroupResourceDie) DieStamp

func (d *GroupResourceDie) DieStamp(fn func(r *metav1.GroupResource)) *GroupResourceDie

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

func (*GroupResourceDie) DieStampAt

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

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 (*GroupResourceDie) DieWith

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

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

func (*GroupResourceDie) Group

func (*GroupResourceDie) Resource

func (d *GroupResourceDie) Resource(v string) *GroupResourceDie

type GroupVersionDie

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

func (*GroupVersionDie) DeepCopy

func (d *GroupVersionDie) DeepCopy() *GroupVersionDie

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

func (*GroupVersionDie) DieDiff added in v0.13.0

func (d *GroupVersionDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*GroupVersionDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*GroupVersionDie) DieFeedJSON

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

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

func (*GroupVersionDie) DieFeedPtr

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

func (*GroupVersionDie) DieFeedRawExtension

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

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

func (*GroupVersionDie) DieFeedYAML

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

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

func (*GroupVersionDie) DieFeedYAMLFile

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

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

func (*GroupVersionDie) DieImmutable

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

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

func (*GroupVersionDie) DiePatch added in v0.13.0

func (d *GroupVersionDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*GroupVersionDie) DieRelease

func (d *GroupVersionDie) DieRelease() metav1.GroupVersion

DieRelease returns the resource managed by the die.

func (*GroupVersionDie) DieReleaseJSON

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

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

func (*GroupVersionDie) DieReleasePtr

func (d *GroupVersionDie) DieReleasePtr() *metav1.GroupVersion

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

func (*GroupVersionDie) DieReleaseRawExtension

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

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

func (*GroupVersionDie) DieReleaseYAML

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

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

func (*GroupVersionDie) DieSeal added in v0.13.0

func (d *GroupVersionDie) DieSeal() *GroupVersionDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*GroupVersionDie) DieSealFeed added in v0.13.0

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*GroupVersionDie) DieSealFeedPtr added in v0.13.0

func (d *GroupVersionDie) DieSealFeedPtr(r *metav1.GroupVersion) *GroupVersionDie

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*GroupVersionDie) DieSealRelease added in v0.13.0

func (d *GroupVersionDie) DieSealRelease() metav1.GroupVersion

DieSealRelease returns the sealed resource managed by the die.

func (*GroupVersionDie) DieSealReleasePtr added in v0.13.0

func (d *GroupVersionDie) DieSealReleasePtr() *metav1.GroupVersion

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*GroupVersionDie) DieStamp

func (d *GroupVersionDie) DieStamp(fn func(r *metav1.GroupVersion)) *GroupVersionDie

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

func (*GroupVersionDie) DieStampAt

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

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 (*GroupVersionDie) DieWith

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

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

func (*GroupVersionDie) Group

func (d *GroupVersionDie) Group(v string) *GroupVersionDie

func (*GroupVersionDie) Version

func (d *GroupVersionDie) Version(v string) *GroupVersionDie

type GroupVersionForDiscoveryDie

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

func (*GroupVersionForDiscoveryDie) DeepCopy

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

func (*GroupVersionForDiscoveryDie) DieDiff added in v0.13.0

func (d *GroupVersionForDiscoveryDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*GroupVersionForDiscoveryDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*GroupVersionForDiscoveryDie) DieFeedJSON

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

func (*GroupVersionForDiscoveryDie) DieFeedPtr

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

func (*GroupVersionForDiscoveryDie) DieFeedRawExtension

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

func (*GroupVersionForDiscoveryDie) DieFeedYAML

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

func (*GroupVersionForDiscoveryDie) DieFeedYAMLFile

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

func (*GroupVersionForDiscoveryDie) DieImmutable

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

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

func (*GroupVersionForDiscoveryDie) DiePatch added in v0.13.0

func (d *GroupVersionForDiscoveryDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*GroupVersionForDiscoveryDie) DieRelease

DieRelease returns the resource managed by the die.

func (*GroupVersionForDiscoveryDie) DieReleaseJSON

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

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

func (*GroupVersionForDiscoveryDie) DieReleasePtr

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

func (*GroupVersionForDiscoveryDie) DieReleaseRawExtension

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

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

func (*GroupVersionForDiscoveryDie) DieReleaseYAML

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

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

func (*GroupVersionForDiscoveryDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*GroupVersionForDiscoveryDie) DieSealFeed added in v0.13.0

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*GroupVersionForDiscoveryDie) DieSealFeedPtr added in v0.13.0

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*GroupVersionForDiscoveryDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*GroupVersionForDiscoveryDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*GroupVersionForDiscoveryDie) DieStamp

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

func (*GroupVersionForDiscoveryDie) DieStampAt

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

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 (*GroupVersionForDiscoveryDie) DieWith

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

func (*GroupVersionForDiscoveryDie) GroupVersion

groupVersion specifies the API group and version in the form "group/version"

func (*GroupVersionForDiscoveryDie) Version

version specifies the version in the form of "version". This is to save

the clients the trouble of splitting the GroupVersion.

type GroupVersionKindDie

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

func (*GroupVersionKindDie) DeepCopy

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

func (*GroupVersionKindDie) DieDiff added in v0.13.0

func (d *GroupVersionKindDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*GroupVersionKindDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*GroupVersionKindDie) DieFeedJSON

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

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

func (*GroupVersionKindDie) DieFeedPtr

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

func (*GroupVersionKindDie) DieFeedRawExtension

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

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

func (*GroupVersionKindDie) DieFeedYAML

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

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

func (*GroupVersionKindDie) DieFeedYAMLFile

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

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

func (*GroupVersionKindDie) DieImmutable

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

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

func (*GroupVersionKindDie) DiePatch added in v0.13.0

func (d *GroupVersionKindDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*GroupVersionKindDie) DieRelease

DieRelease returns the resource managed by the die.

func (*GroupVersionKindDie) DieReleaseJSON

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

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

func (*GroupVersionKindDie) DieReleasePtr

func (d *GroupVersionKindDie) DieReleasePtr() *metav1.GroupVersionKind

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

func (*GroupVersionKindDie) DieReleaseRawExtension

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

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

func (*GroupVersionKindDie) DieReleaseYAML

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

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

func (*GroupVersionKindDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*GroupVersionKindDie) DieSealFeed added in v0.13.0

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*GroupVersionKindDie) DieSealFeedPtr added in v0.13.0

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*GroupVersionKindDie) DieSealRelease added in v0.13.0

func (d *GroupVersionKindDie) DieSealRelease() metav1.GroupVersionKind

DieSealRelease returns the sealed resource managed by the die.

func (*GroupVersionKindDie) DieSealReleasePtr added in v0.13.0

func (d *GroupVersionKindDie) DieSealReleasePtr() *metav1.GroupVersionKind

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*GroupVersionKindDie) DieStamp

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

func (*GroupVersionKindDie) DieStampAt

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

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 (*GroupVersionKindDie) DieWith

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

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

func (*GroupVersionKindDie) Group

func (*GroupVersionKindDie) Kind

func (*GroupVersionKindDie) Version

type GroupVersionResourceDie

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

func (*GroupVersionResourceDie) DeepCopy

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

func (*GroupVersionResourceDie) DieDiff added in v0.13.0

func (d *GroupVersionResourceDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*GroupVersionResourceDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*GroupVersionResourceDie) DieFeedJSON

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

func (*GroupVersionResourceDie) DieFeedPtr

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

func (*GroupVersionResourceDie) DieFeedRawExtension

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

func (*GroupVersionResourceDie) DieFeedYAML

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

func (*GroupVersionResourceDie) DieFeedYAMLFile

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

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

func (*GroupVersionResourceDie) DieImmutable

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

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

func (*GroupVersionResourceDie) DiePatch added in v0.13.0

func (d *GroupVersionResourceDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*GroupVersionResourceDie) DieRelease

DieRelease returns the resource managed by the die.

func (*GroupVersionResourceDie) DieReleaseJSON

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

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

func (*GroupVersionResourceDie) DieReleasePtr

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

func (*GroupVersionResourceDie) DieReleaseRawExtension

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

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

func (*GroupVersionResourceDie) DieReleaseYAML

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

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

func (*GroupVersionResourceDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*GroupVersionResourceDie) DieSealFeed added in v0.13.0

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*GroupVersionResourceDie) DieSealFeedPtr added in v0.13.0

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*GroupVersionResourceDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*GroupVersionResourceDie) DieSealReleasePtr added in v0.13.0

func (d *GroupVersionResourceDie) DieSealReleasePtr() *metav1.GroupVersionResource

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*GroupVersionResourceDie) DieStamp

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

func (*GroupVersionResourceDie) DieStampAt

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

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 (*GroupVersionResourceDie) DieWith

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

func (*GroupVersionResourceDie) Group

func (*GroupVersionResourceDie) Resource

func (*GroupVersionResourceDie) Version

type LabelSelectorDie

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

func (*LabelSelectorDie) AddMatchExpression

func (d *LabelSelectorDie) AddMatchExpression(key string, operator metav1.LabelSelectorOperator, values ...string) *LabelSelectorDie

func (*LabelSelectorDie) AddMatchLabel

func (d *LabelSelectorDie) AddMatchLabel(key, value string) *LabelSelectorDie

func (*LabelSelectorDie) DeepCopy

func (d *LabelSelectorDie) DeepCopy() *LabelSelectorDie

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

func (*LabelSelectorDie) DieDiff added in v0.13.0

func (d *LabelSelectorDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*LabelSelectorDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*LabelSelectorDie) DieFeedJSON

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

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

func (*LabelSelectorDie) DieFeedPtr

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

func (*LabelSelectorDie) DieFeedRawExtension

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

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

func (*LabelSelectorDie) DieFeedYAML

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

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

func (*LabelSelectorDie) DieFeedYAMLFile

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

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

func (*LabelSelectorDie) DieImmutable

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

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

func (*LabelSelectorDie) DiePatch added in v0.13.0

func (d *LabelSelectorDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*LabelSelectorDie) DieRelease

func (d *LabelSelectorDie) DieRelease() metav1.LabelSelector

DieRelease returns the resource managed by the die.

func (*LabelSelectorDie) DieReleaseJSON

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

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

func (*LabelSelectorDie) DieReleasePtr

func (d *LabelSelectorDie) DieReleasePtr() *metav1.LabelSelector

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

func (*LabelSelectorDie) DieReleaseRawExtension

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

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

func (*LabelSelectorDie) DieReleaseYAML

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

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

func (*LabelSelectorDie) DieSeal added in v0.13.0

func (d *LabelSelectorDie) DieSeal() *LabelSelectorDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*LabelSelectorDie) DieSealFeed added in v0.13.0

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*LabelSelectorDie) DieSealFeedPtr added in v0.13.0

func (d *LabelSelectorDie) DieSealFeedPtr(r *metav1.LabelSelector) *LabelSelectorDie

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*LabelSelectorDie) DieSealRelease added in v0.13.0

func (d *LabelSelectorDie) DieSealRelease() metav1.LabelSelector

DieSealRelease returns the sealed resource managed by the die.

func (*LabelSelectorDie) DieSealReleasePtr added in v0.13.0

func (d *LabelSelectorDie) DieSealReleasePtr() *metav1.LabelSelector

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*LabelSelectorDie) DieStamp

func (d *LabelSelectorDie) DieStamp(fn func(r *metav1.LabelSelector)) *LabelSelectorDie

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

func (*LabelSelectorDie) DieStampAt

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

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 (*LabelSelectorDie) DieWith

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

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

func (*LabelSelectorDie) MatchExpressions

matchExpressions is a list of label selector requirements. The requirements are ANDed.

func (*LabelSelectorDie) MatchLabels

func (d *LabelSelectorDie) MatchLabels(v map[string]string) *LabelSelectorDie

matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels

map is equivalent to an element of matchExpressions, whose key field is "key", the

operator is "In", and the values array contains only "value". The requirements are ANDed.

type LabelSelectorRequirementDie added in v0.14.0

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

func (*LabelSelectorRequirementDie) DeepCopy added in v0.14.0

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

func (*LabelSelectorRequirementDie) DieDiff added in v0.14.0

func (d *LabelSelectorRequirementDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*LabelSelectorRequirementDie) DieFeed added in v0.14.0

DieFeed returns a new die with the provided resource.

func (*LabelSelectorRequirementDie) DieFeedJSON added in v0.14.0

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

func (*LabelSelectorRequirementDie) 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 (*LabelSelectorRequirementDie) DieFeedRawExtension added in v0.14.0

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

func (*LabelSelectorRequirementDie) DieFeedYAML added in v0.14.0

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

func (*LabelSelectorRequirementDie) DieFeedYAMLFile added in v0.14.0

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

func (*LabelSelectorRequirementDie) DieImmutable added in v0.14.0

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

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

func (*LabelSelectorRequirementDie) DiePatch added in v0.14.0

func (d *LabelSelectorRequirementDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*LabelSelectorRequirementDie) DieRelease added in v0.14.0

DieRelease returns the resource managed by the die.

func (*LabelSelectorRequirementDie) DieReleaseJSON added in v0.14.0

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

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

func (*LabelSelectorRequirementDie) DieReleasePtr added in v0.14.0

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

func (*LabelSelectorRequirementDie) DieReleaseRawExtension added in v0.14.0

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

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

func (*LabelSelectorRequirementDie) DieReleaseYAML added in v0.14.0

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

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

func (*LabelSelectorRequirementDie) DieSeal added in v0.14.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*LabelSelectorRequirementDie) DieSealFeed added in v0.14.0

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*LabelSelectorRequirementDie) DieSealFeedPtr added in v0.14.0

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*LabelSelectorRequirementDie) DieSealRelease added in v0.14.0

DieSealRelease returns the sealed resource managed by the die.

func (*LabelSelectorRequirementDie) DieSealReleasePtr added in v0.14.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*LabelSelectorRequirementDie) DieStamp added in v0.14.0

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

func (*LabelSelectorRequirementDie) DieStampAt added in v0.14.0

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

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

key is the label key that the selector applies to.

func (*LabelSelectorRequirementDie) Operator added in v0.14.0

operator represents a key's relationship to a set of values.

Valid operators are In, NotIn, Exists and DoesNotExist.

func (*LabelSelectorRequirementDie) Values added in v0.14.0

values is an array of string values. If the operator is In or NotIn,

the values array must be non-empty. If the operator is Exists or DoesNotExist,

the values array must be empty. This array is replaced during a strategic

merge patch.

type ListMetaDie

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

func (*ListMetaDie) Continue

func (d *ListMetaDie) Continue(v string) *ListMetaDie

continue may be set if the user set a limit on the number of items returned, and indicates that

the server has more data available. The value is opaque and may be used to issue another request

to the endpoint that served this list to retrieve the next set of available objects. Continuing a

consistent list may not be possible if the server configuration has changed or more than a few

minutes have passed. The resourceVersion field returned when using this continue value will be

identical to the value in the first response, unless you have received this token from an error

message.

func (*ListMetaDie) DeepCopy

func (d *ListMetaDie) DeepCopy() *ListMetaDie

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

func (*ListMetaDie) DieDiff added in v0.13.0

func (d *ListMetaDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*ListMetaDie) DieFeed

func (d *ListMetaDie) DieFeed(r metav1.ListMeta) *ListMetaDie

DieFeed returns a new die with the provided resource.

func (*ListMetaDie) DieFeedJSON

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

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

func (*ListMetaDie) DieFeedPtr

func (d *ListMetaDie) DieFeedPtr(r *metav1.ListMeta) *ListMetaDie

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

func (*ListMetaDie) DieFeedRawExtension

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

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

func (*ListMetaDie) DieFeedYAML

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

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

func (*ListMetaDie) DieFeedYAMLFile

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

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

func (*ListMetaDie) DieImmutable

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

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

func (*ListMetaDie) DiePatch added in v0.13.0

func (d *ListMetaDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*ListMetaDie) DieRelease

func (d *ListMetaDie) DieRelease() metav1.ListMeta

DieRelease returns the resource managed by the die.

func (*ListMetaDie) DieReleaseJSON

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

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

func (*ListMetaDie) DieReleasePtr

func (d *ListMetaDie) DieReleasePtr() *metav1.ListMeta

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

func (*ListMetaDie) DieReleaseRawExtension

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

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

func (*ListMetaDie) DieReleaseYAML

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

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

func (*ListMetaDie) DieSeal added in v0.13.0

func (d *ListMetaDie) DieSeal() *ListMetaDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*ListMetaDie) DieSealFeed added in v0.13.0

func (d *ListMetaDie) DieSealFeed(r metav1.ListMeta) *ListMetaDie

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*ListMetaDie) DieSealFeedPtr added in v0.13.0

func (d *ListMetaDie) DieSealFeedPtr(r *metav1.ListMeta) *ListMetaDie

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*ListMetaDie) DieSealRelease added in v0.13.0

func (d *ListMetaDie) DieSealRelease() metav1.ListMeta

DieSealRelease returns the sealed resource managed by the die.

func (*ListMetaDie) DieSealReleasePtr added in v0.13.0

func (d *ListMetaDie) DieSealReleasePtr() *metav1.ListMeta

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*ListMetaDie) DieStamp

func (d *ListMetaDie) DieStamp(fn func(r *metav1.ListMeta)) *ListMetaDie

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

func (*ListMetaDie) DieStampAt

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

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 (*ListMetaDie) DieWith

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

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

func (*ListMetaDie) RemainingItemCount

func (d *ListMetaDie) RemainingItemCount(v *int64) *ListMetaDie

remainingItemCount is the number of subsequent items in the list which are not included in this

list response. If the list request contained label or field selectors, then the number of

remaining items is unknown and the field will be left unset and omitted during serialization.

If the list is complete (either because it is not chunking or because this is the last chunk),

then there are no more remaining items and this field will be left unset and omitted during

serialization.

Servers older than v1.15 do not set this field.

The intended use of the remainingItemCount is *estimating* the size of a collection. Clients

should not rely on the remainingItemCount to be set or to be exact.

func (*ListMetaDie) ResourceVersion

func (d *ListMetaDie) ResourceVersion(v string) *ListMetaDie

String that identifies the server's internal version of this object that

can be used by clients to determine when objects have changed.

Value must be treated as opaque by clients and passed unmodified back to the server.

Populated by the system.

Read-only.

More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency

func (d *ListMetaDie) SelfLink(v string) *ListMetaDie

Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.

type ManagedFieldsEntryDie

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

func (*ManagedFieldsEntryDie) APIVersion

APIVersion defines the version of this resource that this field set

applies to. The format is "group/version" just like the top-level

APIVersion field. It is necessary to track the version of a field

set because it cannot be automatically converted.

func (*ManagedFieldsEntryDie) DeepCopy

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

func (*ManagedFieldsEntryDie) DieDiff added in v0.13.0

func (d *ManagedFieldsEntryDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*ManagedFieldsEntryDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ManagedFieldsEntryDie) DieFeedJSON

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

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

func (*ManagedFieldsEntryDie) DieFeedPtr

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

func (*ManagedFieldsEntryDie) DieFeedRawExtension

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

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

func (*ManagedFieldsEntryDie) DieFeedYAML

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

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

func (*ManagedFieldsEntryDie) DieFeedYAMLFile

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

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

func (*ManagedFieldsEntryDie) DieImmutable

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

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

func (*ManagedFieldsEntryDie) DiePatch added in v0.13.0

func (d *ManagedFieldsEntryDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*ManagedFieldsEntryDie) DieRelease

DieRelease returns the resource managed by the die.

func (*ManagedFieldsEntryDie) DieReleaseJSON

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

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

func (*ManagedFieldsEntryDie) DieReleasePtr

func (d *ManagedFieldsEntryDie) DieReleasePtr() *metav1.ManagedFieldsEntry

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

func (*ManagedFieldsEntryDie) DieReleaseRawExtension

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

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

func (*ManagedFieldsEntryDie) DieReleaseYAML

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

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

func (*ManagedFieldsEntryDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*ManagedFieldsEntryDie) DieSealFeed added in v0.13.0

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*ManagedFieldsEntryDie) DieSealFeedPtr added in v0.13.0

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*ManagedFieldsEntryDie) DieSealRelease added in v0.13.0

func (d *ManagedFieldsEntryDie) DieSealRelease() metav1.ManagedFieldsEntry

DieSealRelease returns the sealed resource managed by the die.

func (*ManagedFieldsEntryDie) DieSealReleasePtr added in v0.13.0

func (d *ManagedFieldsEntryDie) DieSealReleasePtr() *metav1.ManagedFieldsEntry

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*ManagedFieldsEntryDie) DieStamp

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

func (*ManagedFieldsEntryDie) DieStampAt

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

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 (*ManagedFieldsEntryDie) DieWith

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

func (*ManagedFieldsEntryDie) FieldsType

FieldsType is the discriminator for the different fields format and version.

There is currently only one possible value: "FieldsV1"

func (*ManagedFieldsEntryDie) FieldsV1

FieldsV1 holds the first JSON version format as described in the "FieldsV1" type.

func (*ManagedFieldsEntryDie) Manager

Manager is an identifier of the workflow managing these fields.

func (*ManagedFieldsEntryDie) Operation

Operation is the type of operation which lead to this ManagedFieldsEntry being created.

The only valid values for this field are 'Apply' and 'Update'.

func (*ManagedFieldsEntryDie) Subresource

Subresource is the name of the subresource used to update that object, or

empty string if the object was updated through the main resource. The

value of this field is used to distinguish between managers, even if they

share the same name. For example, a status update will be distinct from a

regular update using the same manager name.

it always corresponds to the version of the main resource.

func (*ManagedFieldsEntryDie) Time

Time is the timestamp of when the ManagedFields entry was added. The

timestamp will also be updated if a field is added, the manager

changes any of the owned fields value or removes a field. The

timestamp does not update when a field is removed from the entry

because another manager took it over.

type ObjectMetaDie

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

func (*ObjectMetaDie) AddAnnotation

func (d *ObjectMetaDie) AddAnnotation(key, value string) *ObjectMetaDie

func (*ObjectMetaDie) AddLabel

func (d *ObjectMetaDie) AddLabel(key, value string) *ObjectMetaDie

func (*ObjectMetaDie) Annotations

func (d *ObjectMetaDie) Annotations(v map[string]string) *ObjectMetaDie

Annotations is an unstructured key value map stored with a resource that may be

set by external tools to store and retrieve arbitrary metadata. They are not

queryable and should be preserved when modifying objects.

More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations

func (*ObjectMetaDie) ControlledBy

func (d *ObjectMetaDie) ControlledBy(obj runtime.Object, scheme *runtime.Scheme) *ObjectMetaDie

func (*ObjectMetaDie) CreationTimestamp

func (d *ObjectMetaDie) CreationTimestamp(v metav1.Time) *ObjectMetaDie

CreationTimestamp is a timestamp representing the server time when this object was

created. It is not guaranteed to be set in happens-before order across separate operations.

Clients may not set this value. It is represented in RFC3339 form and is in UTC.

Populated by the system.

Read-only.

Null for lists.

More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

func (*ObjectMetaDie) DeepCopy

func (d *ObjectMetaDie) DeepCopy() *ObjectMetaDie

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

func (*ObjectMetaDie) DeletionGracePeriodSeconds

func (d *ObjectMetaDie) DeletionGracePeriodSeconds(v *int64) *ObjectMetaDie

Number of seconds allowed for this object to gracefully terminate before

it will be removed from the system. Only set when deletionTimestamp is also set.

May only be shortened.

Read-only.

func (*ObjectMetaDie) DeletionTimestamp

func (d *ObjectMetaDie) DeletionTimestamp(v *metav1.Time) *ObjectMetaDie

DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This

field is set by the server when a graceful deletion is requested by the user, and is not

directly settable by a client. The resource is expected to be deleted (no longer visible

from resource lists, and not reachable by name) after the time in this field, once the

finalizers list is empty. As long as the finalizers list contains items, deletion is blocked.

Once the deletionTimestamp is set, this value may not be unset or be set further into the

future, although it may be shortened or the resource may be deleted prior to this time.

For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react

by sending a graceful termination signal to the containers in the pod. After that 30 seconds,

the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup,

remove the pod from the API. In the presence of network partitions, this object may still

exist after this timestamp, until an administrator or automated process can determine the

resource is fully terminated.

If not set, graceful deletion of the object has not been requested.

Populated by the system when a graceful deletion is requested.

Read-only.

More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

func (*ObjectMetaDie) DieDiff added in v0.13.0

func (d *ObjectMetaDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*ObjectMetaDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ObjectMetaDie) DieFeedJSON

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

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

func (*ObjectMetaDie) DieFeedPtr

func (d *ObjectMetaDie) DieFeedPtr(r *metav1.ObjectMeta) *ObjectMetaDie

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

func (*ObjectMetaDie) DieFeedRawExtension

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

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

func (*ObjectMetaDie) DieFeedYAML

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

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

func (*ObjectMetaDie) DieFeedYAMLFile

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

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

func (*ObjectMetaDie) DieImmutable

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

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

func (*ObjectMetaDie) DiePatch added in v0.13.0

func (d *ObjectMetaDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*ObjectMetaDie) DieRelease

func (d *ObjectMetaDie) DieRelease() metav1.ObjectMeta

DieRelease returns the resource managed by the die.

func (*ObjectMetaDie) DieReleaseJSON

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

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

func (*ObjectMetaDie) DieReleasePtr

func (d *ObjectMetaDie) DieReleasePtr() *metav1.ObjectMeta

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

func (*ObjectMetaDie) DieReleaseRawExtension

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

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

func (*ObjectMetaDie) DieReleaseYAML

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

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

func (*ObjectMetaDie) DieSeal added in v0.13.0

func (d *ObjectMetaDie) DieSeal() *ObjectMetaDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*ObjectMetaDie) DieSealFeed added in v0.13.0

func (d *ObjectMetaDie) DieSealFeed(r metav1.ObjectMeta) *ObjectMetaDie

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*ObjectMetaDie) DieSealFeedPtr added in v0.13.0

func (d *ObjectMetaDie) DieSealFeedPtr(r *metav1.ObjectMeta) *ObjectMetaDie

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*ObjectMetaDie) DieSealRelease added in v0.13.0

func (d *ObjectMetaDie) DieSealRelease() metav1.ObjectMeta

DieSealRelease returns the sealed resource managed by the die.

func (*ObjectMetaDie) DieSealReleasePtr added in v0.13.0

func (d *ObjectMetaDie) DieSealReleasePtr() *metav1.ObjectMeta

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*ObjectMetaDie) DieStamp

func (d *ObjectMetaDie) DieStamp(fn func(r *metav1.ObjectMeta)) *ObjectMetaDie

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

func (*ObjectMetaDie) DieStampAt

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

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 (*ObjectMetaDie) DieWith

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

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

func (*ObjectMetaDie) Finalizers

func (d *ObjectMetaDie) Finalizers(v ...string) *ObjectMetaDie

Must be empty before the object is deleted from the registry. Each entry

is an identifier for the responsible component that will remove the entry

from the list. If the deletionTimestamp of the object is non-nil, entries

in this list can only be removed.

Finalizers may be processed and removed in any order. Order is NOT enforced

because it introduces significant risk of stuck finalizers.

finalizers is a shared field, any actor with permission can reorder it.

If the finalizer list is processed in order, then this can lead to a situation

in which the component responsible for the first finalizer in the list is

waiting for a signal (field value, external system, or other) produced by a

component responsible for a finalizer later in the list, resulting in a deadlock.

Without enforced ordering finalizers are free to order amongst themselves and

are not vulnerable to ordering changes in the list.

func (*ObjectMetaDie) GenerateName

func (d *ObjectMetaDie) GenerateName(v string) *ObjectMetaDie

GenerateName is an optional prefix, used by the server, to generate a unique

name ONLY IF the Name field has not been provided.

If this field is used, the name returned to the client will be different

than the name passed. This value will also be combined with a unique suffix.

The provided value has the same validation rules as the Name field,

and may be truncated by the length of the suffix required to make the value

unique on the server.

If this field is specified and the generated name exists, the server will return a 409.

Applied only if Name is not specified.

More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency

func (*ObjectMetaDie) Generation

func (d *ObjectMetaDie) Generation(v int64) *ObjectMetaDie

A sequence number representing a specific generation of the desired state.

Populated by the system. Read-only.

func (*ObjectMetaDie) Labels

func (d *ObjectMetaDie) Labels(v map[string]string) *ObjectMetaDie

Map of string keys and values that can be used to organize and categorize

(scope and select) objects. May match selectors of replication controllers

and services.

More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels

func (*ObjectMetaDie) ManagedFields

func (d *ObjectMetaDie) ManagedFields(v ...metav1.ManagedFieldsEntry) *ObjectMetaDie

ManagedFields maps workflow-id and version to the set of fields

that are managed by that workflow. This is mostly for internal

housekeeping, and users typically shouldn't need to set or

understand this field. A workflow can be the user's name, a

controller's name, or the name of a specific apply path like

"ci-cd". The set of fields is always in the version that the

workflow used when modifying the object.

func (*ObjectMetaDie) ManagedFieldsDie

func (d *ObjectMetaDie) ManagedFieldsDie(v ...*ManagedFieldsEntryDie) *ObjectMetaDie

ManagedFieldsDie replaces ManagedFields by collecting the released value from each die passed.

ManagedFields maps workflow-id and version to the set of fields

that are managed by that workflow. This is mostly for internal

housekeeping, and users typically shouldn't need to set or

understand this field. A workflow can be the user's name, a

controller's name, or the name of a specific apply path like

"ci-cd". The set of fields is always in the version that the

workflow used when modifying the object.

func (*ObjectMetaDie) Name

func (d *ObjectMetaDie) Name(v string) *ObjectMetaDie

Name must be unique within a namespace. Is required when creating resources, although

some resources may allow a client to request the generation of an appropriate name

automatically. Name is primarily intended for creation idempotence and configuration

definition.

Cannot be updated.

More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names

func (*ObjectMetaDie) Namespace

func (d *ObjectMetaDie) Namespace(v string) *ObjectMetaDie

Namespace defines the space within which each name must be unique. An empty namespace is

equivalent to the "default" namespace, but "default" is the canonical representation.

Not all objects are required to be scoped to a namespace - the value of this field for

those objects will be empty.

Must be a DNS_LABEL.

Cannot be updated.

More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces

func (*ObjectMetaDie) OwnerReferences

func (d *ObjectMetaDie) OwnerReferences(v ...metav1.OwnerReference) *ObjectMetaDie

List of objects depended by this object. If ALL objects in the list have

been deleted, this object will be garbage collected. If this object is managed by a controller,

then an entry in this list will point to this controller, with the controller field set to true.

There cannot be more than one managing controller.

func (*ObjectMetaDie) ResourceVersion

func (d *ObjectMetaDie) ResourceVersion(v string) *ObjectMetaDie

An opaque value that represents the internal version of this object that can

be used by clients to determine when objects have changed. May be used for optimistic

concurrency, change detection, and the watch operation on a resource or set of resources.

Clients must treat these values as opaque and passed unmodified back to the server.

They may only be valid for a particular resource or set of resources.

Populated by the system.

Read-only.

Value must be treated as opaque by clients and .

More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency

func (d *ObjectMetaDie) SelfLink(v string) *ObjectMetaDie

Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.

func (*ObjectMetaDie) UID

func (d *ObjectMetaDie) UID(v types.UID) *ObjectMetaDie

UID is the unique in time and space value for this object. It is typically generated by

the server on successful creation of a resource and is not allowed to change on PUT

operations.

Populated by the system.

Read-only.

More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids

type StatusCauseDie

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

func (*StatusCauseDie) DeepCopy

func (d *StatusCauseDie) DeepCopy() *StatusCauseDie

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

func (*StatusCauseDie) DieDiff added in v0.13.0

func (d *StatusCauseDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*StatusCauseDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*StatusCauseDie) DieFeedJSON

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

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

func (*StatusCauseDie) DieFeedPtr

func (d *StatusCauseDie) DieFeedPtr(r *metav1.StatusCause) *StatusCauseDie

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

func (*StatusCauseDie) DieFeedRawExtension

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

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

func (*StatusCauseDie) DieFeedYAML

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

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

func (*StatusCauseDie) DieFeedYAMLFile

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

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

func (*StatusCauseDie) DieImmutable

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

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

func (*StatusCauseDie) DiePatch added in v0.13.0

func (d *StatusCauseDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*StatusCauseDie) DieRelease

func (d *StatusCauseDie) DieRelease() metav1.StatusCause

DieRelease returns the resource managed by the die.

func (*StatusCauseDie) DieReleaseJSON

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

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

func (*StatusCauseDie) DieReleasePtr

func (d *StatusCauseDie) DieReleasePtr() *metav1.StatusCause

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

func (*StatusCauseDie) DieReleaseRawExtension

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

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

func (*StatusCauseDie) DieReleaseYAML

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

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

func (*StatusCauseDie) DieSeal added in v0.13.0

func (d *StatusCauseDie) DieSeal() *StatusCauseDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*StatusCauseDie) DieSealFeed added in v0.13.0

func (d *StatusCauseDie) DieSealFeed(r metav1.StatusCause) *StatusCauseDie

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*StatusCauseDie) DieSealFeedPtr added in v0.13.0

func (d *StatusCauseDie) DieSealFeedPtr(r *metav1.StatusCause) *StatusCauseDie

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*StatusCauseDie) DieSealRelease added in v0.13.0

func (d *StatusCauseDie) DieSealRelease() metav1.StatusCause

DieSealRelease returns the sealed resource managed by the die.

func (*StatusCauseDie) DieSealReleasePtr added in v0.13.0

func (d *StatusCauseDie) DieSealReleasePtr() *metav1.StatusCause

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*StatusCauseDie) DieStamp

func (d *StatusCauseDie) DieStamp(fn func(r *metav1.StatusCause)) *StatusCauseDie

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

func (*StatusCauseDie) DieStampAt

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

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 (*StatusCauseDie) DieWith

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

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

func (*StatusCauseDie) Field

func (d *StatusCauseDie) Field(v string) *StatusCauseDie

The field of the resource that has caused this error, as named by its JSON

serialization. May include dot and postfix notation for nested attributes.

Arrays are zero-indexed. Fields may appear more than once in an array of

causes due to fields having multiple errors.

Optional.

Examples:

"name" - the field "name" on the current resource

"items[0].name" - the field "name" on the first array entry in "items"

func (*StatusCauseDie) Message

func (d *StatusCauseDie) Message(v string) *StatusCauseDie

A human-readable description of the cause of the error. This field may be

presented as-is to a reader.

func (*StatusCauseDie) Type

A machine-readable description of the cause of the error. If this value is

empty there is no information available.

type StatusDetailsDie

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

func (*StatusDetailsDie) Causes

The Causes array includes more details associated with the StatusReason

failure. Not all StatusReasons may provide detailed causes.

func (*StatusDetailsDie) CausesDie

func (d *StatusDetailsDie) CausesDie(v ...*StatusCauseDie) *StatusDetailsDie

CausesDie replaces Causes by collecting the released value from each die passed.

The Causes array includes more details associated with the StatusReason

failure. Not all StatusReasons may provide detailed causes.

func (*StatusDetailsDie) DeepCopy

func (d *StatusDetailsDie) DeepCopy() *StatusDetailsDie

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

func (*StatusDetailsDie) DieDiff added in v0.13.0

func (d *StatusDetailsDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*StatusDetailsDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*StatusDetailsDie) DieFeedJSON

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

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

func (*StatusDetailsDie) DieFeedPtr

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

func (*StatusDetailsDie) DieFeedRawExtension

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

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

func (*StatusDetailsDie) DieFeedYAML

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

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

func (*StatusDetailsDie) DieFeedYAMLFile

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

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

func (*StatusDetailsDie) DieImmutable

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

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

func (*StatusDetailsDie) DiePatch added in v0.13.0

func (d *StatusDetailsDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*StatusDetailsDie) DieRelease

func (d *StatusDetailsDie) DieRelease() metav1.StatusDetails

DieRelease returns the resource managed by the die.

func (*StatusDetailsDie) DieReleaseJSON

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

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

func (*StatusDetailsDie) DieReleasePtr

func (d *StatusDetailsDie) DieReleasePtr() *metav1.StatusDetails

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

func (*StatusDetailsDie) DieReleaseRawExtension

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

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

func (*StatusDetailsDie) DieReleaseYAML

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

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

func (*StatusDetailsDie) DieSeal added in v0.13.0

func (d *StatusDetailsDie) DieSeal() *StatusDetailsDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*StatusDetailsDie) DieSealFeed added in v0.13.0

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*StatusDetailsDie) DieSealFeedPtr added in v0.13.0

func (d *StatusDetailsDie) DieSealFeedPtr(r *metav1.StatusDetails) *StatusDetailsDie

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*StatusDetailsDie) DieSealRelease added in v0.13.0

func (d *StatusDetailsDie) DieSealRelease() metav1.StatusDetails

DieSealRelease returns the sealed resource managed by the die.

func (*StatusDetailsDie) DieSealReleasePtr added in v0.13.0

func (d *StatusDetailsDie) DieSealReleasePtr() *metav1.StatusDetails

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*StatusDetailsDie) DieStamp

func (d *StatusDetailsDie) DieStamp(fn func(r *metav1.StatusDetails)) *StatusDetailsDie

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

func (*StatusDetailsDie) DieStampAt

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

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 (*StatusDetailsDie) DieWith

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

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

func (*StatusDetailsDie) Group

The group attribute of the resource associated with the status StatusReason.

func (*StatusDetailsDie) Kind

The kind attribute of the resource associated with the status StatusReason.

On some operations may differ from the requested resource Kind.

More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

func (*StatusDetailsDie) Name

The name attribute of the resource associated with the status StatusReason

(when there is a single name which can be described).

func (*StatusDetailsDie) RetryAfterSeconds

func (d *StatusDetailsDie) RetryAfterSeconds(v int32) *StatusDetailsDie

If specified, the time in seconds before the operation should be retried. Some errors may indicate

the client must take an alternate action - for those errors this field may indicate how long to wait

before taking the alternate action.

func (*StatusDetailsDie) UID

UID of the resource.

(when there is a single resource which can be described).

More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids

type StatusDie

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

func (*StatusDie) APIVersion

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

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 (*StatusDie) Code

func (d *StatusDie) Code(v int32) *StatusDie

Suggested HTTP return code for this status, 0 if not set.

func (*StatusDie) DeepCopy

func (d *StatusDie) DeepCopy() *StatusDie

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

func (*StatusDie) Details

func (d *StatusDie) Details(v *metav1.StatusDetails) *StatusDie

Extended data associated with the reason. Each reason may define its

own extended details. This field is optional and the data returned

is not guaranteed to conform to any schema except that defined by

the reason type.

func (*StatusDie) DetailsDie added in v0.13.0

func (d *StatusDie) DetailsDie(fn func(d *StatusDetailsDie)) *StatusDie

DetailsDie mutates Details as a die.

Extended data associated with the reason. Each reason may define its

own extended details. This field is optional and the data returned

is not guaranteed to conform to any schema except that defined by

the reason type.

func (*StatusDie) DieDiff added in v0.13.0

func (d *StatusDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*StatusDie) DieFeed

func (d *StatusDie) DieFeed(r metav1.Status) *StatusDie

DieFeed returns a new die with the provided resource.

func (*StatusDie) DieFeedJSON

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

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

func (*StatusDie) DieFeedPtr

func (d *StatusDie) DieFeedPtr(r *metav1.Status) *StatusDie

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

func (*StatusDie) DieFeedRawExtension

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

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

func (*StatusDie) DieFeedYAML

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

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

func (*StatusDie) DieFeedYAMLFile

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

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

func (*StatusDie) DieImmutable

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

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

func (*StatusDie) DiePatch added in v0.13.0

func (d *StatusDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*StatusDie) DieRelease

func (d *StatusDie) DieRelease() metav1.Status

DieRelease returns the resource managed by the die.

func (*StatusDie) DieReleaseJSON

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

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

func (*StatusDie) DieReleasePtr

func (d *StatusDie) DieReleasePtr() *metav1.Status

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

func (*StatusDie) DieReleaseRawExtension

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

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

func (*StatusDie) DieReleaseYAML

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

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

func (*StatusDie) DieSeal added in v0.13.0

func (d *StatusDie) DieSeal() *StatusDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*StatusDie) DieSealFeed added in v0.13.0

func (d *StatusDie) DieSealFeed(r metav1.Status) *StatusDie

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*StatusDie) DieSealFeedPtr added in v0.13.0

func (d *StatusDie) DieSealFeedPtr(r *metav1.Status) *StatusDie

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*StatusDie) DieSealRelease added in v0.13.0

func (d *StatusDie) DieSealRelease() metav1.Status

DieSealRelease returns the sealed resource managed by the die.

func (*StatusDie) DieSealReleasePtr added in v0.13.0

func (d *StatusDie) DieSealReleasePtr() *metav1.Status

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*StatusDie) DieStamp

func (d *StatusDie) DieStamp(fn func(r *metav1.Status)) *StatusDie

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

func (*StatusDie) DieStampAt

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

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 (*StatusDie) DieWith

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

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

func (*StatusDie) Kind

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

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 (*StatusDie) ListMetaDie

func (d *StatusDie) ListMetaDie(fn func(d *ListMetaDie)) *StatusDie

ListMetaDie mutates ListMeta as a die.

Standard list metadata.

More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

func (*StatusDie) Message

func (d *StatusDie) Message(v string) *StatusDie

A human-readable description of the status of this operation.

func (*StatusDie) Reason

func (d *StatusDie) Reason(v metav1.StatusReason) *StatusDie

A machine-readable description of why this operation is in the

"Failure" status. If this value is empty there

is no information available. A Reason clarifies an HTTP status

code but does not override it.

func (*StatusDie) Status

func (d *StatusDie) Status(v string) *StatusDie

Status of the operation.

One of: "Success" or "Failure".

More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

func (*StatusDie) TypeMeta

func (d *StatusDie) TypeMeta(v metav1.TypeMeta) *StatusDie

type TypeMetaDie

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

func (*TypeMetaDie) APIVersion

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

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

func (d *TypeMetaDie) DeepCopy() *TypeMetaDie

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

func (*TypeMetaDie) DieDiff added in v0.13.0

func (d *TypeMetaDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*TypeMetaDie) DieFeed

func (d *TypeMetaDie) DieFeed(r metav1.TypeMeta) *TypeMetaDie

DieFeed returns a new die with the provided resource.

func (*TypeMetaDie) DieFeedJSON added in v0.13.0

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

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

func (*TypeMetaDie) DieFeedPtr

func (d *TypeMetaDie) DieFeedPtr(r *metav1.TypeMeta) *TypeMetaDie

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

func (*TypeMetaDie) DieFeedRawExtension

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

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

func (*TypeMetaDie) DieFeedYAML added in v0.13.0

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

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

func (*TypeMetaDie) DieFeedYAMLFile added in v0.13.0

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

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

func (*TypeMetaDie) DieImmutable

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

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

func (*TypeMetaDie) DiePatch added in v0.13.0

func (d *TypeMetaDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*TypeMetaDie) DieRelease

func (d *TypeMetaDie) DieRelease() metav1.TypeMeta

DieRelease returns the resource managed by the die.

func (*TypeMetaDie) DieReleaseJSON added in v0.13.0

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

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

func (*TypeMetaDie) DieReleasePtr

func (d *TypeMetaDie) DieReleasePtr() *metav1.TypeMeta

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

func (*TypeMetaDie) DieReleaseRawExtension

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

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

func (*TypeMetaDie) DieReleaseYAML added in v0.13.0

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

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

func (*TypeMetaDie) DieSeal added in v0.13.0

func (d *TypeMetaDie) DieSeal() *TypeMetaDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*TypeMetaDie) DieSealFeed added in v0.13.0

func (d *TypeMetaDie) DieSealFeed(r metav1.TypeMeta) *TypeMetaDie

DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.

func (*TypeMetaDie) DieSealFeedPtr added in v0.13.0

func (d *TypeMetaDie) DieSealFeedPtr(r *metav1.TypeMeta) *TypeMetaDie

DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.

func (*TypeMetaDie) DieSealRelease added in v0.13.0

func (d *TypeMetaDie) DieSealRelease() metav1.TypeMeta

DieSealRelease returns the sealed resource managed by the die.

func (*TypeMetaDie) DieSealReleasePtr added in v0.13.0

func (d *TypeMetaDie) DieSealReleasePtr() *metav1.TypeMeta

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*TypeMetaDie) DieStamp

func (d *TypeMetaDie) DieStamp(fn func(r *metav1.TypeMeta)) *TypeMetaDie

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

func (*TypeMetaDie) DieStampAt added in v0.13.0

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

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

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

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

func (*TypeMetaDie) Group added in v0.13.0

func (d *TypeMetaDie) Group(v string) *TypeMetaDie

Group defines the group component of the API version.

func (*TypeMetaDie) Kind

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

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 (*TypeMetaDie) Version added in v0.13.0

func (d *TypeMetaDie) Version(v string) *TypeMetaDie

Version defines the version component of the API version.

Jump to

Keyboard shortcuts

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