v2

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContainerResourceMetricSourceBlank = (&ContainerResourceMetricSourceDie{}).DieFeed(autoscalingv2.ContainerResourceMetricSource{})
View Source
var ContainerResourceMetricStatusBlank = (&ContainerResourceMetricStatusDie{}).DieFeed(autoscalingv2.ContainerResourceMetricStatus{})
View Source
var CrossVersionObjectReferenceBlank = (&CrossVersionObjectReferenceDie{}).DieFeed(autoscalingv2.CrossVersionObjectReference{})
View Source
var ExternalMetricSourceBlank = (&ExternalMetricSourceDie{}).DieFeed(autoscalingv2.ExternalMetricSource{})
View Source
var ExternalMetricStatusBlank = (&ExternalMetricStatusDie{}).DieFeed(autoscalingv2.ExternalMetricStatus{})
View Source
var HPAScalingPolicyBlank = (&HPAScalingPolicyDie{}).DieFeed(autoscalingv2.HPAScalingPolicy{})
View Source
var HPAScalingRulesBlank = (&HPAScalingRulesDie{}).DieFeed(autoscalingv2.HPAScalingRules{})
View Source
var HorizontalPodAutoscalerBehaviorBlank = (&HorizontalPodAutoscalerBehaviorDie{}).DieFeed(autoscalingv2.HorizontalPodAutoscalerBehavior{})
View Source
var HorizontalPodAutoscalerBlank = (&HorizontalPodAutoscalerDie{}).DieFeed(autoscalingv2.HorizontalPodAutoscaler{})
View Source
var HorizontalPodAutoscalerSpecBlank = (&HorizontalPodAutoscalerSpecDie{}).DieFeed(autoscalingv2.HorizontalPodAutoscalerSpec{})
View Source
var HorizontalPodAutoscalerStatusBlank = (&HorizontalPodAutoscalerStatusDie{}).DieFeed(autoscalingv2.HorizontalPodAutoscalerStatus{})
View Source
var MetricIdentifierBlank = (&MetricIdentifierDie{}).DieFeed(autoscalingv2.MetricIdentifier{})
View Source
var MetricSpecBlank = (&MetricSpecDie{}).DieFeed(autoscalingv2.MetricSpec{})
View Source
var MetricStatusBlank = (&MetricStatusDie{}).DieFeed(autoscalingv2.MetricStatus{})
View Source
var MetricTargetBlank = (&MetricTargetDie{}).DieFeed(autoscalingv2.MetricTarget{})
View Source
var MetricValueStatusBlank = (&MetricValueStatusDie{}).DieFeed(autoscalingv2.MetricValueStatus{})
View Source
var ObjectMetricSourceBlank = (&ObjectMetricSourceDie{}).DieFeed(autoscalingv2.ObjectMetricSource{})
View Source
var ObjectMetricStatusBlank = (&ObjectMetricStatusDie{}).DieFeed(autoscalingv2.ObjectMetricStatus{})
View Source
var PodsMetricSourceBlank = (&PodsMetricSourceDie{}).DieFeed(autoscalingv2.PodsMetricSource{})
View Source
var PodsMetricStatusBlank = (&PodsMetricStatusDie{}).DieFeed(autoscalingv2.PodsMetricStatus{})
View Source
var ResourceMetricSourceBlank = (&ResourceMetricSourceDie{}).DieFeed(autoscalingv2.ResourceMetricSource{})
View Source
var ResourceMetricStatusBlank = (&ResourceMetricStatusDie{}).DieFeed(autoscalingv2.ResourceMetricStatus{})

Functions

This section is empty.

Types

type ContainerResourceMetricSourceDie

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

func (*ContainerResourceMetricSourceDie) Container

container is the name of the container in the pods of the scaling target

func (*ContainerResourceMetricSourceDie) DeepCopy

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

func (*ContainerResourceMetricSourceDie) DieDiff

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

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

func (*ContainerResourceMetricSourceDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ContainerResourceMetricSourceDie) DieFeedJSON

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

func (*ContainerResourceMetricSourceDie) DieFeedPtr

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

func (*ContainerResourceMetricSourceDie) DieFeedRawExtension

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

func (*ContainerResourceMetricSourceDie) DieFeedYAML

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

func (*ContainerResourceMetricSourceDie) DieFeedYAMLFile

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

func (*ContainerResourceMetricSourceDie) DieImmutable

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

func (*ContainerResourceMetricSourceDie) DiePatch

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

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

func (*ContainerResourceMetricSourceDie) DieRelease

DieRelease returns the resource managed by the die.

func (*ContainerResourceMetricSourceDie) DieReleaseJSON

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

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

func (*ContainerResourceMetricSourceDie) DieReleasePtr

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

func (*ContainerResourceMetricSourceDie) DieReleaseRawExtension

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

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

func (*ContainerResourceMetricSourceDie) DieReleaseYAML

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

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

func (*ContainerResourceMetricSourceDie) DieSeal

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

func (*ContainerResourceMetricSourceDie) DieSealFeed

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 (*ContainerResourceMetricSourceDie) DieSealFeedPtr

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 (*ContainerResourceMetricSourceDie) DieSealRelease

DieSealRelease returns the sealed resource managed by the die.

func (*ContainerResourceMetricSourceDie) DieSealReleasePtr

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*ContainerResourceMetricSourceDie) DieStamp

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

func (*ContainerResourceMetricSourceDie) DieStampAt

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

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

func (*ContainerResourceMetricSourceDie) Name

name is the name of the resource in question.

func (*ContainerResourceMetricSourceDie) Target

target specifies the target value for the given metric

func (*ContainerResourceMetricSourceDie) TargetDie

TargetDie mutates Target as a die.

target specifies the target value for the given metric

type ContainerResourceMetricStatusDie

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

func (*ContainerResourceMetricStatusDie) Container

container is the name of the container in the pods of the scaling target

func (*ContainerResourceMetricStatusDie) Current

current contains the current value for the given metric

func (*ContainerResourceMetricStatusDie) CurrentDie

CurrentDie mutates Current as a die.

current contains the current value for the given metric

func (*ContainerResourceMetricStatusDie) DeepCopy

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

func (*ContainerResourceMetricStatusDie) DieDiff

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

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

func (*ContainerResourceMetricStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ContainerResourceMetricStatusDie) DieFeedJSON

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

func (*ContainerResourceMetricStatusDie) DieFeedPtr

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

func (*ContainerResourceMetricStatusDie) DieFeedRawExtension

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

func (*ContainerResourceMetricStatusDie) DieFeedYAML

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

func (*ContainerResourceMetricStatusDie) DieFeedYAMLFile

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

func (*ContainerResourceMetricStatusDie) DieImmutable

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

func (*ContainerResourceMetricStatusDie) DiePatch

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

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

func (*ContainerResourceMetricStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*ContainerResourceMetricStatusDie) DieReleaseJSON

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

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

func (*ContainerResourceMetricStatusDie) DieReleasePtr

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

func (*ContainerResourceMetricStatusDie) DieReleaseRawExtension

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

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

func (*ContainerResourceMetricStatusDie) DieReleaseYAML

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

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

func (*ContainerResourceMetricStatusDie) DieSeal

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

func (*ContainerResourceMetricStatusDie) DieSealFeed

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 (*ContainerResourceMetricStatusDie) DieSealFeedPtr

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 (*ContainerResourceMetricStatusDie) DieSealRelease

DieSealRelease returns the sealed resource managed by the die.

func (*ContainerResourceMetricStatusDie) DieSealReleasePtr

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*ContainerResourceMetricStatusDie) DieStamp

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

func (*ContainerResourceMetricStatusDie) DieStampAt

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

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

func (*ContainerResourceMetricStatusDie) Name

name is the name of the resource in question.

type CrossVersionObjectReferenceDie

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

func (*CrossVersionObjectReferenceDie) APIVersion

apiVersion is the API version of the referent

func (*CrossVersionObjectReferenceDie) DeepCopy

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

func (*CrossVersionObjectReferenceDie) DieDiff

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

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

func (*CrossVersionObjectReferenceDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*CrossVersionObjectReferenceDie) DieFeedJSON

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

func (*CrossVersionObjectReferenceDie) DieFeedPtr

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

func (*CrossVersionObjectReferenceDie) DieFeedRawExtension

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

func (*CrossVersionObjectReferenceDie) DieFeedYAML

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

func (*CrossVersionObjectReferenceDie) DieFeedYAMLFile

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

func (*CrossVersionObjectReferenceDie) DieImmutable

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

func (*CrossVersionObjectReferenceDie) DiePatch

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

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

func (*CrossVersionObjectReferenceDie) DieRelease

DieRelease returns the resource managed by the die.

func (*CrossVersionObjectReferenceDie) DieReleaseJSON

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

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

func (*CrossVersionObjectReferenceDie) DieReleasePtr

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

func (*CrossVersionObjectReferenceDie) DieReleaseRawExtension

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

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

func (*CrossVersionObjectReferenceDie) DieReleaseYAML

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

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

func (*CrossVersionObjectReferenceDie) DieSeal

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

func (*CrossVersionObjectReferenceDie) DieSealFeed

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 (*CrossVersionObjectReferenceDie) DieSealFeedPtr

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 (*CrossVersionObjectReferenceDie) DieSealRelease

DieSealRelease returns the sealed resource managed by the die.

func (*CrossVersionObjectReferenceDie) DieSealReleasePtr

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*CrossVersionObjectReferenceDie) DieStamp

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

func (*CrossVersionObjectReferenceDie) DieStampAt

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

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

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

func (*CrossVersionObjectReferenceDie) Name

name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

type ExternalMetricSourceDie

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

func (*ExternalMetricSourceDie) DeepCopy

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

func (*ExternalMetricSourceDie) DieDiff

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

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

func (*ExternalMetricSourceDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ExternalMetricSourceDie) DieFeedJSON

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

func (*ExternalMetricSourceDie) DieFeedPtr

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

func (*ExternalMetricSourceDie) DieFeedRawExtension

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

func (*ExternalMetricSourceDie) DieFeedYAML

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

func (*ExternalMetricSourceDie) DieFeedYAMLFile

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

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

func (*ExternalMetricSourceDie) DieImmutable

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

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

func (*ExternalMetricSourceDie) DiePatch

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

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

func (*ExternalMetricSourceDie) DieRelease

DieRelease returns the resource managed by the die.

func (*ExternalMetricSourceDie) DieReleaseJSON

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

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

func (*ExternalMetricSourceDie) DieReleasePtr

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

func (*ExternalMetricSourceDie) DieReleaseRawExtension

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

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

func (*ExternalMetricSourceDie) DieReleaseYAML

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

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

func (*ExternalMetricSourceDie) DieSeal

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

func (*ExternalMetricSourceDie) DieSealFeed

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 (*ExternalMetricSourceDie) DieSealFeedPtr

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 (*ExternalMetricSourceDie) DieSealRelease

DieSealRelease returns the sealed resource managed by the die.

func (*ExternalMetricSourceDie) DieSealReleasePtr

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*ExternalMetricSourceDie) DieStamp

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

func (*ExternalMetricSourceDie) DieStampAt

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

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

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

func (*ExternalMetricSourceDie) Metric

metric identifies the target metric by name and selector

func (*ExternalMetricSourceDie) MetricDie

MetricDie mutates Metric as a die.

metric identifies the target metric by name and selector

func (*ExternalMetricSourceDie) Target

target specifies the target value for the given metric

func (*ExternalMetricSourceDie) TargetDie

TargetDie mutates Target as a die.

target specifies the target value for the given metric

type ExternalMetricStatusDie

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

func (*ExternalMetricStatusDie) Current

current contains the current value for the given metric

func (*ExternalMetricStatusDie) CurrentDie

CurrentDie mutates Current as a die.

current contains the current value for the given metric

func (*ExternalMetricStatusDie) DeepCopy

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

func (*ExternalMetricStatusDie) DieDiff

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

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

func (*ExternalMetricStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ExternalMetricStatusDie) DieFeedJSON

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

func (*ExternalMetricStatusDie) DieFeedPtr

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

func (*ExternalMetricStatusDie) DieFeedRawExtension

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

func (*ExternalMetricStatusDie) DieFeedYAML

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

func (*ExternalMetricStatusDie) DieFeedYAMLFile

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

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

func (*ExternalMetricStatusDie) DieImmutable

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

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

func (*ExternalMetricStatusDie) DiePatch

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

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

func (*ExternalMetricStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*ExternalMetricStatusDie) DieReleaseJSON

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

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

func (*ExternalMetricStatusDie) DieReleasePtr

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

func (*ExternalMetricStatusDie) DieReleaseRawExtension

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

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

func (*ExternalMetricStatusDie) DieReleaseYAML

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

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

func (*ExternalMetricStatusDie) DieSeal

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

func (*ExternalMetricStatusDie) DieSealFeed

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 (*ExternalMetricStatusDie) DieSealFeedPtr

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 (*ExternalMetricStatusDie) DieSealRelease

DieSealRelease returns the sealed resource managed by the die.

func (*ExternalMetricStatusDie) DieSealReleasePtr

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*ExternalMetricStatusDie) DieStamp

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

func (*ExternalMetricStatusDie) DieStampAt

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

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

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

func (*ExternalMetricStatusDie) Metric

metric identifies the target metric by name and selector

func (*ExternalMetricStatusDie) MetricDie

MetricDie mutates Metric as a die.

metric identifies the target metric by name and selector

type HPAScalingPolicyDie

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

func (*HPAScalingPolicyDie) DeepCopy

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

func (*HPAScalingPolicyDie) DieDiff

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

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

func (*HPAScalingPolicyDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*HPAScalingPolicyDie) DieFeedJSON

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

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

func (*HPAScalingPolicyDie) DieFeedPtr

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

func (*HPAScalingPolicyDie) DieFeedRawExtension

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

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

func (*HPAScalingPolicyDie) DieFeedYAML

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

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

func (*HPAScalingPolicyDie) DieFeedYAMLFile

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

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

func (*HPAScalingPolicyDie) DieImmutable

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

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

func (*HPAScalingPolicyDie) DiePatch

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

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

func (*HPAScalingPolicyDie) DieRelease

DieRelease returns the resource managed by the die.

func (*HPAScalingPolicyDie) DieReleaseJSON

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

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

func (*HPAScalingPolicyDie) DieReleasePtr

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

func (*HPAScalingPolicyDie) DieReleaseRawExtension

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

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

func (*HPAScalingPolicyDie) DieReleaseYAML

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

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

func (*HPAScalingPolicyDie) DieSeal

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

func (*HPAScalingPolicyDie) DieSealFeed

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 (*HPAScalingPolicyDie) DieSealFeedPtr

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 (*HPAScalingPolicyDie) DieSealRelease

DieSealRelease returns the sealed resource managed by the die.

func (*HPAScalingPolicyDie) DieSealReleasePtr

func (d *HPAScalingPolicyDie) DieSealReleasePtr() *autoscalingv2.HPAScalingPolicy

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*HPAScalingPolicyDie) DieStamp

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

func (*HPAScalingPolicyDie) DieStampAt

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

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

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

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

func (*HPAScalingPolicyDie) PeriodSeconds

func (d *HPAScalingPolicyDie) PeriodSeconds(v int32) *HPAScalingPolicyDie

periodSeconds specifies the window of time for which the policy should hold true.

PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).

func (*HPAScalingPolicyDie) Type

type is used to specify the scaling policy.

func (*HPAScalingPolicyDie) Value

value contains the amount of change which is permitted by the policy.

It must be greater than zero

type HPAScalingRulesDie

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

func (*HPAScalingRulesDie) DeepCopy

func (d *HPAScalingRulesDie) DeepCopy() *HPAScalingRulesDie

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

func (*HPAScalingRulesDie) DieDiff

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

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

func (*HPAScalingRulesDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*HPAScalingRulesDie) DieFeedJSON

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

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

func (*HPAScalingRulesDie) DieFeedPtr

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

func (*HPAScalingRulesDie) DieFeedRawExtension

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

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

func (*HPAScalingRulesDie) DieFeedYAML

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

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

func (*HPAScalingRulesDie) DieFeedYAMLFile

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

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

func (*HPAScalingRulesDie) DieImmutable

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

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

func (*HPAScalingRulesDie) DiePatch

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

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

func (*HPAScalingRulesDie) DieRelease

DieRelease returns the resource managed by the die.

func (*HPAScalingRulesDie) DieReleaseJSON

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

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

func (*HPAScalingRulesDie) DieReleasePtr

func (d *HPAScalingRulesDie) DieReleasePtr() *autoscalingv2.HPAScalingRules

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

func (*HPAScalingRulesDie) DieReleaseRawExtension

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

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

func (*HPAScalingRulesDie) DieReleaseYAML

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

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

func (*HPAScalingRulesDie) DieSeal

func (d *HPAScalingRulesDie) DieSeal() *HPAScalingRulesDie

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

func (*HPAScalingRulesDie) DieSealFeed

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 (*HPAScalingRulesDie) DieSealFeedPtr

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 (*HPAScalingRulesDie) DieSealRelease

func (d *HPAScalingRulesDie) DieSealRelease() autoscalingv2.HPAScalingRules

DieSealRelease returns the sealed resource managed by the die.

func (*HPAScalingRulesDie) DieSealReleasePtr

func (d *HPAScalingRulesDie) DieSealReleasePtr() *autoscalingv2.HPAScalingRules

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*HPAScalingRulesDie) DieStamp

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

func (*HPAScalingRulesDie) DieStampAt

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

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

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

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

func (*HPAScalingRulesDie) Policies

policies is a list of potential scaling polices which can be used during scaling.

At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid

func (*HPAScalingRulesDie) PoliciesDie

PoliciesDie replaces Policies by collecting the released value from each die passed.

policies is a list of potential scaling polices which can be used during scaling.

At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid

func (*HPAScalingRulesDie) SelectPolicy

selectPolicy is used to specify which policy should be used.

If not set, the default value Max is used.

func (*HPAScalingRulesDie) StabilizationWindowSeconds

func (d *HPAScalingRulesDie) StabilizationWindowSeconds(v *int32) *HPAScalingRulesDie

stabilizationWindowSeconds is the number of seconds for which past recommendations should be

considered while scaling up or scaling down.

StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour).

If not set, use the default values:

- For scale up: 0 (i.e. no stabilization is done).

- For scale down: 300 (i.e. the stabilization window is 300 seconds long).

type HorizontalPodAutoscalerBehaviorDie

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

func (*HorizontalPodAutoscalerBehaviorDie) DeepCopy

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

func (*HorizontalPodAutoscalerBehaviorDie) DieDiff

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

func (*HorizontalPodAutoscalerBehaviorDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*HorizontalPodAutoscalerBehaviorDie) DieFeedJSON

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

func (*HorizontalPodAutoscalerBehaviorDie) DieFeedPtr

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

func (*HorizontalPodAutoscalerBehaviorDie) DieFeedRawExtension

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

func (*HorizontalPodAutoscalerBehaviorDie) DieFeedYAML

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

func (*HorizontalPodAutoscalerBehaviorDie) DieFeedYAMLFile

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

func (*HorizontalPodAutoscalerBehaviorDie) DieImmutable

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

func (*HorizontalPodAutoscalerBehaviorDie) DiePatch

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

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

func (*HorizontalPodAutoscalerBehaviorDie) DieRelease

DieRelease returns the resource managed by the die.

func (*HorizontalPodAutoscalerBehaviorDie) DieReleaseJSON

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

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

func (*HorizontalPodAutoscalerBehaviorDie) DieReleasePtr

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

func (*HorizontalPodAutoscalerBehaviorDie) DieReleaseRawExtension

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

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

func (*HorizontalPodAutoscalerBehaviorDie) DieReleaseYAML

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

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

func (*HorizontalPodAutoscalerBehaviorDie) DieSeal

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

func (*HorizontalPodAutoscalerBehaviorDie) DieSealFeed

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 (*HorizontalPodAutoscalerBehaviorDie) DieSealFeedPtr

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 (*HorizontalPodAutoscalerBehaviorDie) DieSealRelease

DieSealRelease returns the sealed resource managed by the die.

func (*HorizontalPodAutoscalerBehaviorDie) DieSealReleasePtr

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*HorizontalPodAutoscalerBehaviorDie) DieStamp

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

func (*HorizontalPodAutoscalerBehaviorDie) DieStampAt

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

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

func (*HorizontalPodAutoscalerBehaviorDie) ScaleDown

scaleDown is scaling policy for scaling Down.

If not set, the default value is to allow to scale down to minReplicas pods, with a

300 second stabilization window (i.e., the highest recommendation for

the last 300sec is used).

func (*HorizontalPodAutoscalerBehaviorDie) ScaleDownDie

ScaleDownDie mutates ScaleDown as a die.

scaleDown is scaling policy for scaling Down.

If not set, the default value is to allow to scale down to minReplicas pods, with a

300 second stabilization window (i.e., the highest recommendation for

the last 300sec is used).

func (*HorizontalPodAutoscalerBehaviorDie) ScaleUp

scaleUp is scaling policy for scaling Up.

If not set, the default value is the higher of:

* increase no more than 4 pods per 60 seconds

* double the number of pods per 60 seconds

No stabilization is used.

func (*HorizontalPodAutoscalerBehaviorDie) ScaleUpDie

ScaleUpDie mutates ScaleUp as a die.

scaleUp is scaling policy for scaling Up.

If not set, the default value is the higher of:

* increase no more than 4 pods per 60 seconds

* double the number of pods per 60 seconds

No stabilization is used.

type HorizontalPodAutoscalerDie

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

func (*HorizontalPodAutoscalerDie) APIVersion

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

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

func (*HorizontalPodAutoscalerDie) DeepCopyObject

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

func (*HorizontalPodAutoscalerDie) DieDefaultTypeMetadata

func (d *HorizontalPodAutoscalerDie) DieDefaultTypeMetadata() *HorizontalPodAutoscalerDie

DieDefaultTypeMetadata sets the APIVersion and Kind to "autoscaling/v2" and "HorizontalPodAutoscaler" respectively.

func (*HorizontalPodAutoscalerDie) DieDiff

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

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

func (*HorizontalPodAutoscalerDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*HorizontalPodAutoscalerDie) DieFeedJSON

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

func (*HorizontalPodAutoscalerDie) DieFeedPtr

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

func (*HorizontalPodAutoscalerDie) DieFeedRawExtension

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

func (*HorizontalPodAutoscalerDie) DieFeedYAML

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

func (*HorizontalPodAutoscalerDie) DieFeedYAMLFile

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

func (*HorizontalPodAutoscalerDie) DieImmutable

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

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

func (*HorizontalPodAutoscalerDie) DiePatch

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

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

func (*HorizontalPodAutoscalerDie) DieRelease

DieRelease returns the resource managed by the die.

func (*HorizontalPodAutoscalerDie) DieReleaseJSON

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

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

func (*HorizontalPodAutoscalerDie) DieReleasePtr

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

func (*HorizontalPodAutoscalerDie) DieReleaseRawExtension

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

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

func (*HorizontalPodAutoscalerDie) DieReleaseUnstructured

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

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

func (*HorizontalPodAutoscalerDie) DieReleaseYAML

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

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

func (*HorizontalPodAutoscalerDie) DieSeal

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

func (*HorizontalPodAutoscalerDie) DieSealFeed

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 (*HorizontalPodAutoscalerDie) DieSealFeedPtr

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 (*HorizontalPodAutoscalerDie) DieSealRelease

DieSealRelease returns the sealed resource managed by the die.

func (*HorizontalPodAutoscalerDie) DieSealReleasePtr

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*HorizontalPodAutoscalerDie) DieStamp

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

func (*HorizontalPodAutoscalerDie) DieStampAt

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

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

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

func (*HorizontalPodAutoscalerDie) GetObjectKind

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

func (*HorizontalPodAutoscalerDie) Kind

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

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

func (*HorizontalPodAutoscalerDie) Metadata

Metadata standard object's metadata.

func (*HorizontalPodAutoscalerDie) MetadataDie

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

func (*HorizontalPodAutoscalerDie) Spec

spec is the specification for the behaviour of the autoscaler.

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

func (*HorizontalPodAutoscalerDie) SpecDie

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

func (*HorizontalPodAutoscalerDie) Status

status is the current information about the autoscaler.

func (*HorizontalPodAutoscalerDie) StatusDie

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

func (*HorizontalPodAutoscalerDie) TypeMetadata

TypeMetadata standard object's type metadata.

func (*HorizontalPodAutoscalerDie) TypeMetadataDie

func (d *HorizontalPodAutoscalerDie) TypeMetadataDie(fn func(d *v1.TypeMetaDie)) *HorizontalPodAutoscalerDie

TypeMetadataDie stamps the resource's TypeMeta field with a mutable die.

func (*HorizontalPodAutoscalerDie) UnmarshalJSON

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

type HorizontalPodAutoscalerSpecDie

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

func (*HorizontalPodAutoscalerSpecDie) Behavior

behavior configures the scaling behavior of the target

in both Up and Down directions (scaleUp and scaleDown fields respectively).

If not set, the default HPAScalingRules for scale up and scale down are used.

func (*HorizontalPodAutoscalerSpecDie) BehaviorDie

BehaviorDie mutates Behavior as a die.

behavior configures the scaling behavior of the target

in both Up and Down directions (scaleUp and scaleDown fields respectively).

If not set, the default HPAScalingRules for scale up and scale down are used.

func (*HorizontalPodAutoscalerSpecDie) DeepCopy

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

func (*HorizontalPodAutoscalerSpecDie) DieDiff

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

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

func (*HorizontalPodAutoscalerSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*HorizontalPodAutoscalerSpecDie) DieFeedJSON

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

func (*HorizontalPodAutoscalerSpecDie) DieFeedPtr

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

func (*HorizontalPodAutoscalerSpecDie) DieFeedRawExtension

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

func (*HorizontalPodAutoscalerSpecDie) DieFeedYAML

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

func (*HorizontalPodAutoscalerSpecDie) DieFeedYAMLFile

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

func (*HorizontalPodAutoscalerSpecDie) DieImmutable

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

func (*HorizontalPodAutoscalerSpecDie) DiePatch

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

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

func (*HorizontalPodAutoscalerSpecDie) DieRelease

DieRelease returns the resource managed by the die.

func (*HorizontalPodAutoscalerSpecDie) DieReleaseJSON

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

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

func (*HorizontalPodAutoscalerSpecDie) DieReleasePtr

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

func (*HorizontalPodAutoscalerSpecDie) DieReleaseRawExtension

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

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

func (*HorizontalPodAutoscalerSpecDie) DieReleaseYAML

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

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

func (*HorizontalPodAutoscalerSpecDie) DieSeal

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

func (*HorizontalPodAutoscalerSpecDie) DieSealFeed

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 (*HorizontalPodAutoscalerSpecDie) DieSealFeedPtr

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 (*HorizontalPodAutoscalerSpecDie) DieSealRelease

DieSealRelease returns the sealed resource managed by the die.

func (*HorizontalPodAutoscalerSpecDie) DieSealReleasePtr

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*HorizontalPodAutoscalerSpecDie) DieStamp

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

func (*HorizontalPodAutoscalerSpecDie) DieStampAt

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

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

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

func (*HorizontalPodAutoscalerSpecDie) MaxReplicas

maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.

It cannot be less that minReplicas.

func (*HorizontalPodAutoscalerSpecDie) Metrics

metrics contains the specifications for which to use to calculate the

desired replica count (the maximum replica count across all metrics will

be used). The desired replica count is calculated multiplying the

ratio between the target value and the current value by the current

number of pods. Ergo, metrics used must decrease as the pod count is

increased, and vice-versa. See the individual metric source types for

more information about how each type of metric must respond.

If not set, the default metric will be set to 80% average CPU utilization.

func (*HorizontalPodAutoscalerSpecDie) MetricsDie

MetricsDie replaces Metrics by collecting the released value from each die passed.

metrics contains the specifications for which to use to calculate the

desired replica count (the maximum replica count across all metrics will

be used). The desired replica count is calculated multiplying the

ratio between the target value and the current value by the current

number of pods. Ergo, metrics used must decrease as the pod count is

increased, and vice-versa. See the individual metric source types for

more information about how each type of metric must respond.

If not set, the default metric will be set to 80% average CPU utilization.

func (*HorizontalPodAutoscalerSpecDie) MinReplicas

minReplicas is the lower limit for the number of replicas to which the autoscaler

can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the

alpha feature gate HPAScaleToZero is enabled and at least one Object or External

metric is configured. Scaling is active as long as at least one metric value is

available.

func (*HorizontalPodAutoscalerSpecDie) ScaleTargetRef

scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics

should be collected, as well as to actually change the replica count.

func (*HorizontalPodAutoscalerSpecDie) ScaleTargetRefDie

ScaleTargetRefDie mutates ScaleTargetRef as a die.

scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics

should be collected, as well as to actually change the replica count.

type HorizontalPodAutoscalerStatusDie

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

func (*HorizontalPodAutoscalerStatusDie) Conditions

conditions is the set of conditions required for this autoscaler to scale its target,

and indicates whether or not those conditions are met.

func (*HorizontalPodAutoscalerStatusDie) ConditionsDie

func (*HorizontalPodAutoscalerStatusDie) CurrentMetrics

currentMetrics is the last read state of the metrics used by this autoscaler.

func (*HorizontalPodAutoscalerStatusDie) CurrentMetricsDie

CurrentMetricsDie replaces CurrentMetrics by collecting the released value from each die passed.

currentMetrics is the last read state of the metrics used by this autoscaler.

func (*HorizontalPodAutoscalerStatusDie) CurrentReplicas

currentReplicas is current number of replicas of pods managed by this autoscaler,

as last seen by the autoscaler.

func (*HorizontalPodAutoscalerStatusDie) DeepCopy

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

func (*HorizontalPodAutoscalerStatusDie) DesiredReplicas

desiredReplicas is the desired number of replicas of pods managed by this autoscaler,

as last calculated by the autoscaler.

func (*HorizontalPodAutoscalerStatusDie) DieDiff

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

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

func (*HorizontalPodAutoscalerStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*HorizontalPodAutoscalerStatusDie) DieFeedJSON

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

func (*HorizontalPodAutoscalerStatusDie) DieFeedPtr

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

func (*HorizontalPodAutoscalerStatusDie) DieFeedRawExtension

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

func (*HorizontalPodAutoscalerStatusDie) DieFeedYAML

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

func (*HorizontalPodAutoscalerStatusDie) DieFeedYAMLFile

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

func (*HorizontalPodAutoscalerStatusDie) DieImmutable

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

func (*HorizontalPodAutoscalerStatusDie) DiePatch

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

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

func (*HorizontalPodAutoscalerStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*HorizontalPodAutoscalerStatusDie) DieReleaseJSON

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

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

func (*HorizontalPodAutoscalerStatusDie) DieReleasePtr

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

func (*HorizontalPodAutoscalerStatusDie) DieReleaseRawExtension

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

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

func (*HorizontalPodAutoscalerStatusDie) DieReleaseYAML

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

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

func (*HorizontalPodAutoscalerStatusDie) DieSeal

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

func (*HorizontalPodAutoscalerStatusDie) DieSealFeed

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 (*HorizontalPodAutoscalerStatusDie) DieSealFeedPtr

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 (*HorizontalPodAutoscalerStatusDie) DieSealRelease

DieSealRelease returns the sealed resource managed by the die.

func (*HorizontalPodAutoscalerStatusDie) DieSealReleasePtr

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*HorizontalPodAutoscalerStatusDie) DieStamp

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

func (*HorizontalPodAutoscalerStatusDie) DieStampAt

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

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

func (*HorizontalPodAutoscalerStatusDie) LastScaleTime

lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods,

used by the autoscaler to control how often the number of pods is changed.

func (*HorizontalPodAutoscalerStatusDie) ObservedGeneration

observedGeneration is the most recent generation observed by this autoscaler.

type MetricIdentifierDie

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

func (*MetricIdentifierDie) DeepCopy

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

func (*MetricIdentifierDie) DieDiff

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

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

func (*MetricIdentifierDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*MetricIdentifierDie) DieFeedJSON

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

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

func (*MetricIdentifierDie) DieFeedPtr

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

func (*MetricIdentifierDie) DieFeedRawExtension

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

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

func (*MetricIdentifierDie) DieFeedYAML

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

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

func (*MetricIdentifierDie) DieFeedYAMLFile

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

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

func (*MetricIdentifierDie) DieImmutable

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

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

func (*MetricIdentifierDie) DiePatch

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

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

func (*MetricIdentifierDie) DieRelease

DieRelease returns the resource managed by the die.

func (*MetricIdentifierDie) DieReleaseJSON

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

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

func (*MetricIdentifierDie) DieReleasePtr

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

func (*MetricIdentifierDie) DieReleaseRawExtension

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

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

func (*MetricIdentifierDie) DieReleaseYAML

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

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

func (*MetricIdentifierDie) DieSeal

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

func (*MetricIdentifierDie) DieSealFeed

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 (*MetricIdentifierDie) DieSealFeedPtr

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 (*MetricIdentifierDie) DieSealRelease

DieSealRelease returns the sealed resource managed by the die.

func (*MetricIdentifierDie) DieSealReleasePtr

func (d *MetricIdentifierDie) DieSealReleasePtr() *autoscalingv2.MetricIdentifier

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*MetricIdentifierDie) DieStamp

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

func (*MetricIdentifierDie) DieStampAt

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

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

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

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

func (*MetricIdentifierDie) Name

name is the name of the given metric

func (*MetricIdentifierDie) Selector

selector is the string-encoded form of a standard kubernetes label selector for the given metric

When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping.

When unset, just the metricName will be used to gather metrics.

func (*MetricIdentifierDie) SelectorDie

func (d *MetricIdentifierDie) SelectorDie(fn func(d *v1.LabelSelectorDie)) *MetricIdentifierDie

SelectorDie mutates Selector as a die.

selector is the string-encoded form of a standard kubernetes label selector for the given metric

When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping.

When unset, just the metricName will be used to gather metrics.

type MetricSpecDie

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

func (*MetricSpecDie) ContainerResource

containerResource refers to a resource metric (such as those specified in

requests and limits) known to Kubernetes describing a single container in

each pod of the current scale target (e.g. CPU or memory). Such metrics are

built in to Kubernetes, and have special scaling options on top of those

available to normal per-pod metrics using the "pods" source.

func (*MetricSpecDie) ContainerResourceDie

func (d *MetricSpecDie) ContainerResourceDie(fn func(d *ContainerResourceMetricSourceDie)) *MetricSpecDie

ContainerResourceDie mutates ContainerResource as a die.

containerResource refers to a resource metric (such as those specified in

requests and limits) known to Kubernetes describing a single container in

each pod of the current scale target (e.g. CPU or memory). Such metrics are

built in to Kubernetes, and have special scaling options on top of those

available to normal per-pod metrics using the "pods" source.

func (*MetricSpecDie) DeepCopy

func (d *MetricSpecDie) DeepCopy() *MetricSpecDie

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

func (*MetricSpecDie) DieDiff

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

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

func (*MetricSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*MetricSpecDie) DieFeedJSON

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

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

func (*MetricSpecDie) DieFeedPtr

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

func (*MetricSpecDie) DieFeedRawExtension

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

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

func (*MetricSpecDie) DieFeedYAML

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

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

func (*MetricSpecDie) DieFeedYAMLFile

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

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

func (*MetricSpecDie) DieImmutable

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

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

func (*MetricSpecDie) DiePatch

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

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

func (*MetricSpecDie) DieRelease

func (d *MetricSpecDie) DieRelease() autoscalingv2.MetricSpec

DieRelease returns the resource managed by the die.

func (*MetricSpecDie) DieReleaseJSON

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

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

func (*MetricSpecDie) DieReleasePtr

func (d *MetricSpecDie) DieReleasePtr() *autoscalingv2.MetricSpec

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

func (*MetricSpecDie) DieReleaseRawExtension

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

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

func (*MetricSpecDie) DieReleaseYAML

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

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

func (*MetricSpecDie) DieSeal

func (d *MetricSpecDie) DieSeal() *MetricSpecDie

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

func (*MetricSpecDie) DieSealFeed

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 (*MetricSpecDie) DieSealFeedPtr

func (d *MetricSpecDie) DieSealFeedPtr(r *autoscalingv2.MetricSpec) *MetricSpecDie

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 (*MetricSpecDie) DieSealRelease

func (d *MetricSpecDie) DieSealRelease() autoscalingv2.MetricSpec

DieSealRelease returns the sealed resource managed by the die.

func (*MetricSpecDie) DieSealReleasePtr

func (d *MetricSpecDie) DieSealReleasePtr() *autoscalingv2.MetricSpec

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*MetricSpecDie) DieStamp

func (d *MetricSpecDie) DieStamp(fn func(r *autoscalingv2.MetricSpec)) *MetricSpecDie

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

func (*MetricSpecDie) DieStampAt

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

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

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

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

func (*MetricSpecDie) External

external refers to a global metric that is not associated

with any Kubernetes object. It allows autoscaling based on information

coming from components running outside of cluster

(for example length of queue in cloud messaging service, or

QPS from loadbalancer running outside of cluster).

func (*MetricSpecDie) ExternalDie

func (d *MetricSpecDie) ExternalDie(fn func(d *ExternalMetricSourceDie)) *MetricSpecDie

ExternalDie mutates External as a die.

external refers to a global metric that is not associated

with any Kubernetes object. It allows autoscaling based on information

coming from components running outside of cluster

(for example length of queue in cloud messaging service, or

QPS from loadbalancer running outside of cluster).

func (*MetricSpecDie) Object

object refers to a metric describing a single kubernetes object

(for example, hits-per-second on an Ingress object).

func (*MetricSpecDie) ObjectDie

func (d *MetricSpecDie) ObjectDie(fn func(d *ObjectMetricSourceDie)) *MetricSpecDie

ObjectDie mutates Object as a die.

object refers to a metric describing a single kubernetes object

(for example, hits-per-second on an Ingress object).

func (*MetricSpecDie) Pods

pods refers to a metric describing each pod in the current scale target

(for example, transactions-processed-per-second). The values will be

averaged together before being compared to the target value.

func (*MetricSpecDie) PodsDie

func (d *MetricSpecDie) PodsDie(fn func(d *PodsMetricSourceDie)) *MetricSpecDie

PodsDie mutates Pods as a die.

pods refers to a metric describing each pod in the current scale target

(for example, transactions-processed-per-second). The values will be

averaged together before being compared to the target value.

func (*MetricSpecDie) Resource

resource refers to a resource metric (such as those specified in

requests and limits) known to Kubernetes describing each pod in the

current scale target (e.g. CPU or memory). Such metrics are built in to

Kubernetes, and have special scaling options on top of those available

to normal per-pod metrics using the "pods" source.

func (*MetricSpecDie) ResourceDie

func (d *MetricSpecDie) ResourceDie(fn func(d *ResourceMetricSourceDie)) *MetricSpecDie

ResourceDie mutates Resource as a die.

resource refers to a resource metric (such as those specified in

requests and limits) known to Kubernetes describing each pod in the

current scale target (e.g. CPU or memory). Such metrics are built in to

Kubernetes, and have special scaling options on top of those available

to normal per-pod metrics using the "pods" source.

func (*MetricSpecDie) Type

type is the type of metric source. It should be one of "ContainerResource", "External",

"Object", "Pods" or "Resource", each mapping to a matching field in the object.

type MetricStatusDie

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

func (*MetricStatusDie) ContainerResource

container resource refers to a resource metric (such as those specified in

requests and limits) known to Kubernetes describing a single container in each pod in the

current scale target (e.g. CPU or memory). Such metrics are built in to

Kubernetes, and have special scaling options on top of those available

to normal per-pod metrics using the "pods" source.

func (*MetricStatusDie) ContainerResourceDie

func (d *MetricStatusDie) ContainerResourceDie(fn func(d *ContainerResourceMetricStatusDie)) *MetricStatusDie

ContainerResourceDie mutates ContainerResource as a die.

container resource refers to a resource metric (such as those specified in

requests and limits) known to Kubernetes describing a single container in each pod in the

current scale target (e.g. CPU or memory). Such metrics are built in to

Kubernetes, and have special scaling options on top of those available

to normal per-pod metrics using the "pods" source.

func (*MetricStatusDie) DeepCopy

func (d *MetricStatusDie) DeepCopy() *MetricStatusDie

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

func (*MetricStatusDie) DieDiff

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

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

func (*MetricStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*MetricStatusDie) DieFeedJSON

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

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

func (*MetricStatusDie) DieFeedPtr

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

func (*MetricStatusDie) DieFeedRawExtension

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

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

func (*MetricStatusDie) DieFeedYAML

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

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

func (*MetricStatusDie) DieFeedYAMLFile

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

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

func (*MetricStatusDie) DieImmutable

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

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

func (*MetricStatusDie) DiePatch

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

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

func (*MetricStatusDie) DieRelease

func (d *MetricStatusDie) DieRelease() autoscalingv2.MetricStatus

DieRelease returns the resource managed by the die.

func (*MetricStatusDie) DieReleaseJSON

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

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

func (*MetricStatusDie) DieReleasePtr

func (d *MetricStatusDie) DieReleasePtr() *autoscalingv2.MetricStatus

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

func (*MetricStatusDie) DieReleaseRawExtension

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

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

func (*MetricStatusDie) DieReleaseYAML

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

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

func (*MetricStatusDie) DieSeal

func (d *MetricStatusDie) DieSeal() *MetricStatusDie

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

func (*MetricStatusDie) DieSealFeed

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 (*MetricStatusDie) DieSealFeedPtr

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 (*MetricStatusDie) DieSealRelease

func (d *MetricStatusDie) DieSealRelease() autoscalingv2.MetricStatus

DieSealRelease returns the sealed resource managed by the die.

func (*MetricStatusDie) DieSealReleasePtr

func (d *MetricStatusDie) DieSealReleasePtr() *autoscalingv2.MetricStatus

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*MetricStatusDie) DieStamp

func (d *MetricStatusDie) DieStamp(fn func(r *autoscalingv2.MetricStatus)) *MetricStatusDie

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

func (*MetricStatusDie) DieStampAt

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

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

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

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

func (*MetricStatusDie) External

external refers to a global metric that is not associated

with any Kubernetes object. It allows autoscaling based on information

coming from components running outside of cluster

(for example length of queue in cloud messaging service, or

QPS from loadbalancer running outside of cluster).

func (*MetricStatusDie) ExternalDie

func (d *MetricStatusDie) ExternalDie(fn func(d *ExternalMetricStatusDie)) *MetricStatusDie

ExternalDie mutates External as a die.

external refers to a global metric that is not associated

with any Kubernetes object. It allows autoscaling based on information

coming from components running outside of cluster

(for example length of queue in cloud messaging service, or

QPS from loadbalancer running outside of cluster).

func (*MetricStatusDie) Object

object refers to a metric describing a single kubernetes object

(for example, hits-per-second on an Ingress object).

func (*MetricStatusDie) ObjectDie

func (d *MetricStatusDie) ObjectDie(fn func(d *ObjectMetricStatusDie)) *MetricStatusDie

ObjectDie mutates Object as a die.

object refers to a metric describing a single kubernetes object

(for example, hits-per-second on an Ingress object).

func (*MetricStatusDie) Pods

pods refers to a metric describing each pod in the current scale target

(for example, transactions-processed-per-second). The values will be

averaged together before being compared to the target value.

func (*MetricStatusDie) PodsDie

func (d *MetricStatusDie) PodsDie(fn func(d *PodsMetricStatusDie)) *MetricStatusDie

PodsDie mutates Pods as a die.

pods refers to a metric describing each pod in the current scale target

(for example, transactions-processed-per-second). The values will be

averaged together before being compared to the target value.

func (*MetricStatusDie) Resource

resource refers to a resource metric (such as those specified in

requests and limits) known to Kubernetes describing each pod in the

current scale target (e.g. CPU or memory). Such metrics are built in to

Kubernetes, and have special scaling options on top of those available

to normal per-pod metrics using the "pods" source.

func (*MetricStatusDie) ResourceDie

func (d *MetricStatusDie) ResourceDie(fn func(d *ResourceMetricStatusDie)) *MetricStatusDie

ResourceDie mutates Resource as a die.

resource refers to a resource metric (such as those specified in

requests and limits) known to Kubernetes describing each pod in the

current scale target (e.g. CPU or memory). Such metrics are built in to

Kubernetes, and have special scaling options on top of those available

to normal per-pod metrics using the "pods" source.

func (*MetricStatusDie) Type

type is the type of metric source. It will be one of "ContainerResource", "External",

"Object", "Pods" or "Resource", each corresponds to a matching field in the object.

type MetricTargetDie

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

func (*MetricTargetDie) AverageUtilization

func (d *MetricTargetDie) AverageUtilization(v *int32) *MetricTargetDie

averageUtilization is the target value of the average of the

resource metric across all relevant pods, represented as a percentage of

the requested value of the resource for the pods.

Currently only valid for Resource metric source type

func (*MetricTargetDie) AverageValue

func (d *MetricTargetDie) AverageValue(v *resource.Quantity) *MetricTargetDie

averageValue is the target value of the average of the

metric across all relevant pods (as a quantity)

func (*MetricTargetDie) AverageValueString

func (d *MetricTargetDie) AverageValueString(s string) *MetricTargetDie

AverageValueString sets AverageValue by parsing the string as a Quantity. Panics if the string is not parsable.

averageValue is the target value of the average of the

metric across all relevant pods (as a quantity)

func (*MetricTargetDie) DeepCopy

func (d *MetricTargetDie) DeepCopy() *MetricTargetDie

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

func (*MetricTargetDie) DieDiff

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

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

func (*MetricTargetDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*MetricTargetDie) DieFeedJSON

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

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

func (*MetricTargetDie) DieFeedPtr

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

func (*MetricTargetDie) DieFeedRawExtension

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

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

func (*MetricTargetDie) DieFeedYAML

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

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

func (*MetricTargetDie) DieFeedYAMLFile

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

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

func (*MetricTargetDie) DieImmutable

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

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

func (*MetricTargetDie) DiePatch

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

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

func (*MetricTargetDie) DieRelease

func (d *MetricTargetDie) DieRelease() autoscalingv2.MetricTarget

DieRelease returns the resource managed by the die.

func (*MetricTargetDie) DieReleaseJSON

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

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

func (*MetricTargetDie) DieReleasePtr

func (d *MetricTargetDie) DieReleasePtr() *autoscalingv2.MetricTarget

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

func (*MetricTargetDie) DieReleaseRawExtension

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

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

func (*MetricTargetDie) DieReleaseYAML

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

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

func (*MetricTargetDie) DieSeal

func (d *MetricTargetDie) DieSeal() *MetricTargetDie

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

func (*MetricTargetDie) DieSealFeed

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 (*MetricTargetDie) DieSealFeedPtr

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 (*MetricTargetDie) DieSealRelease

func (d *MetricTargetDie) DieSealRelease() autoscalingv2.MetricTarget

DieSealRelease returns the sealed resource managed by the die.

func (*MetricTargetDie) DieSealReleasePtr

func (d *MetricTargetDie) DieSealReleasePtr() *autoscalingv2.MetricTarget

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*MetricTargetDie) DieStamp

func (d *MetricTargetDie) DieStamp(fn func(r *autoscalingv2.MetricTarget)) *MetricTargetDie

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

func (*MetricTargetDie) DieStampAt

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

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

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

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

func (*MetricTargetDie) Type

type represents whether the metric type is Utilization, Value, or AverageValue

func (*MetricTargetDie) Value

value is the target value of the metric (as a quantity).

func (*MetricTargetDie) ValueString

func (d *MetricTargetDie) ValueString(s string) *MetricTargetDie

ValueString sets Value by parsing the string as a Quantity. Panics if the string is not parsable.

value is the target value of the metric (as a quantity).

type MetricValueStatusDie

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

func (*MetricValueStatusDie) AverageUtilization

func (d *MetricValueStatusDie) AverageUtilization(v *int32) *MetricValueStatusDie

currentAverageUtilization is the current value of the average of the

resource metric across all relevant pods, represented as a percentage of

the requested value of the resource for the pods.

func (*MetricValueStatusDie) AverageValue

averageValue is the current value of the average of the

metric across all relevant pods (as a quantity)

func (*MetricValueStatusDie) AverageValueString

func (d *MetricValueStatusDie) AverageValueString(s string) *MetricValueStatusDie

AverageValueString sets AverageValue by parsing the string as a Quantity. Panics if the string is not parsable.

averageValue is the current value of the average of the

metric across all relevant pods (as a quantity)

func (*MetricValueStatusDie) DeepCopy

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

func (*MetricValueStatusDie) DieDiff

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

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

func (*MetricValueStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*MetricValueStatusDie) DieFeedJSON

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

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

func (*MetricValueStatusDie) DieFeedPtr

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

func (*MetricValueStatusDie) DieFeedRawExtension

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

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

func (*MetricValueStatusDie) DieFeedYAML

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

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

func (*MetricValueStatusDie) DieFeedYAMLFile

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

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

func (*MetricValueStatusDie) DieImmutable

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

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

func (*MetricValueStatusDie) DiePatch

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

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

func (*MetricValueStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*MetricValueStatusDie) DieReleaseJSON

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

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

func (*MetricValueStatusDie) DieReleasePtr

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

func (*MetricValueStatusDie) DieReleaseRawExtension

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

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

func (*MetricValueStatusDie) DieReleaseYAML

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

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

func (*MetricValueStatusDie) DieSeal

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

func (*MetricValueStatusDie) DieSealFeed

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 (*MetricValueStatusDie) DieSealFeedPtr

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 (*MetricValueStatusDie) DieSealRelease

DieSealRelease returns the sealed resource managed by the die.

func (*MetricValueStatusDie) DieSealReleasePtr

func (d *MetricValueStatusDie) DieSealReleasePtr() *autoscalingv2.MetricValueStatus

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*MetricValueStatusDie) DieStamp

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

func (*MetricValueStatusDie) DieStampAt

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

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

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

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

func (*MetricValueStatusDie) Value

value is the current value of the metric (as a quantity).

func (*MetricValueStatusDie) ValueString

ValueString sets Value by parsing the string as a Quantity. Panics if the string is not parsable.

value is the current value of the metric (as a quantity).

type ObjectMetricSourceDie

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

func (*ObjectMetricSourceDie) DeepCopy

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

func (*ObjectMetricSourceDie) DescribedObject

describedObject specifies the descriptions of a object,such as kind,name apiVersion

func (*ObjectMetricSourceDie) DescribedObjectDie

DescribedObjectDie mutates DescribedObject as a die.

describedObject specifies the descriptions of a object,such as kind,name apiVersion

func (*ObjectMetricSourceDie) DieDiff

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

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

func (*ObjectMetricSourceDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ObjectMetricSourceDie) DieFeedJSON

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

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

func (*ObjectMetricSourceDie) DieFeedPtr

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

func (*ObjectMetricSourceDie) DieFeedRawExtension

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

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

func (*ObjectMetricSourceDie) DieFeedYAML

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

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

func (*ObjectMetricSourceDie) DieFeedYAMLFile

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

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

func (*ObjectMetricSourceDie) DieImmutable

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

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

func (*ObjectMetricSourceDie) DiePatch

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

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

func (*ObjectMetricSourceDie) DieRelease

DieRelease returns the resource managed by the die.

func (*ObjectMetricSourceDie) DieReleaseJSON

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

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

func (*ObjectMetricSourceDie) DieReleasePtr

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

func (*ObjectMetricSourceDie) DieReleaseRawExtension

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

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

func (*ObjectMetricSourceDie) DieReleaseYAML

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

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

func (*ObjectMetricSourceDie) DieSeal

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

func (*ObjectMetricSourceDie) DieSealFeed

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 (*ObjectMetricSourceDie) DieSealFeedPtr

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 (*ObjectMetricSourceDie) DieSealRelease

DieSealRelease returns the sealed resource managed by the die.

func (*ObjectMetricSourceDie) DieSealReleasePtr

func (d *ObjectMetricSourceDie) DieSealReleasePtr() *autoscalingv2.ObjectMetricSource

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*ObjectMetricSourceDie) DieStamp

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

func (*ObjectMetricSourceDie) DieStampAt

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

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

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

func (*ObjectMetricSourceDie) Metric

metric identifies the target metric by name and selector

func (*ObjectMetricSourceDie) MetricDie

MetricDie mutates Metric as a die.

metric identifies the target metric by name and selector

func (*ObjectMetricSourceDie) Target

target specifies the target value for the given metric

func (*ObjectMetricSourceDie) TargetDie

func (d *ObjectMetricSourceDie) TargetDie(fn func(d *MetricTargetDie)) *ObjectMetricSourceDie

TargetDie mutates Target as a die.

target specifies the target value for the given metric

type ObjectMetricStatusDie

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

func (*ObjectMetricStatusDie) Current

current contains the current value for the given metric

func (*ObjectMetricStatusDie) CurrentDie

CurrentDie mutates Current as a die.

current contains the current value for the given metric

func (*ObjectMetricStatusDie) DeepCopy

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

func (*ObjectMetricStatusDie) DescribedObject

DescribedObject specifies the descriptions of a object,such as kind,name apiVersion

func (*ObjectMetricStatusDie) DescribedObjectDie

DescribedObjectDie mutates DescribedObject as a die.

DescribedObject specifies the descriptions of a object,such as kind,name apiVersion

func (*ObjectMetricStatusDie) DieDiff

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

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

func (*ObjectMetricStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ObjectMetricStatusDie) DieFeedJSON

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

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

func (*ObjectMetricStatusDie) DieFeedPtr

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

func (*ObjectMetricStatusDie) DieFeedRawExtension

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

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

func (*ObjectMetricStatusDie) DieFeedYAML

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

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

func (*ObjectMetricStatusDie) DieFeedYAMLFile

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

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

func (*ObjectMetricStatusDie) DieImmutable

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

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

func (*ObjectMetricStatusDie) DiePatch

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

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

func (*ObjectMetricStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*ObjectMetricStatusDie) DieReleaseJSON

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

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

func (*ObjectMetricStatusDie) DieReleasePtr

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

func (*ObjectMetricStatusDie) DieReleaseRawExtension

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

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

func (*ObjectMetricStatusDie) DieReleaseYAML

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

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

func (*ObjectMetricStatusDie) DieSeal

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

func (*ObjectMetricStatusDie) DieSealFeed

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 (*ObjectMetricStatusDie) DieSealFeedPtr

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 (*ObjectMetricStatusDie) DieSealRelease

DieSealRelease returns the sealed resource managed by the die.

func (*ObjectMetricStatusDie) DieSealReleasePtr

func (d *ObjectMetricStatusDie) DieSealReleasePtr() *autoscalingv2.ObjectMetricStatus

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*ObjectMetricStatusDie) DieStamp

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

func (*ObjectMetricStatusDie) DieStampAt

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

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

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

func (*ObjectMetricStatusDie) Metric

metric identifies the target metric by name and selector

func (*ObjectMetricStatusDie) MetricDie

MetricDie mutates Metric as a die.

metric identifies the target metric by name and selector

type PodsMetricSourceDie

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

func (*PodsMetricSourceDie) DeepCopy

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

func (*PodsMetricSourceDie) DieDiff

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

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

func (*PodsMetricSourceDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*PodsMetricSourceDie) DieFeedJSON

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

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

func (*PodsMetricSourceDie) DieFeedPtr

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

func (*PodsMetricSourceDie) DieFeedRawExtension

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

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

func (*PodsMetricSourceDie) DieFeedYAML

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

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

func (*PodsMetricSourceDie) DieFeedYAMLFile

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

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

func (*PodsMetricSourceDie) DieImmutable

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

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

func (*PodsMetricSourceDie) DiePatch

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

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

func (*PodsMetricSourceDie) DieRelease

DieRelease returns the resource managed by the die.

func (*PodsMetricSourceDie) DieReleaseJSON

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

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

func (*PodsMetricSourceDie) DieReleasePtr

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

func (*PodsMetricSourceDie) DieReleaseRawExtension

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

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

func (*PodsMetricSourceDie) DieReleaseYAML

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

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

func (*PodsMetricSourceDie) DieSeal

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

func (*PodsMetricSourceDie) DieSealFeed

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 (*PodsMetricSourceDie) DieSealFeedPtr

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 (*PodsMetricSourceDie) DieSealRelease

DieSealRelease returns the sealed resource managed by the die.

func (*PodsMetricSourceDie) DieSealReleasePtr

func (d *PodsMetricSourceDie) DieSealReleasePtr() *autoscalingv2.PodsMetricSource

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*PodsMetricSourceDie) DieStamp

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

func (*PodsMetricSourceDie) DieStampAt

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

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

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

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

func (*PodsMetricSourceDie) Metric

metric identifies the target metric by name and selector

func (*PodsMetricSourceDie) MetricDie

func (d *PodsMetricSourceDie) MetricDie(fn func(d *MetricIdentifierDie)) *PodsMetricSourceDie

MetricDie mutates Metric as a die.

metric identifies the target metric by name and selector

func (*PodsMetricSourceDie) Target

target specifies the target value for the given metric

func (*PodsMetricSourceDie) TargetDie

func (d *PodsMetricSourceDie) TargetDie(fn func(d *MetricTargetDie)) *PodsMetricSourceDie

TargetDie mutates Target as a die.

target specifies the target value for the given metric

type PodsMetricStatusDie

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

func (*PodsMetricStatusDie) Current

current contains the current value for the given metric

func (*PodsMetricStatusDie) CurrentDie

func (d *PodsMetricStatusDie) CurrentDie(fn func(d *MetricValueStatusDie)) *PodsMetricStatusDie

CurrentDie mutates Current as a die.

current contains the current value for the given metric

func (*PodsMetricStatusDie) DeepCopy

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

func (*PodsMetricStatusDie) DieDiff

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

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

func (*PodsMetricStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*PodsMetricStatusDie) DieFeedJSON

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

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

func (*PodsMetricStatusDie) DieFeedPtr

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

func (*PodsMetricStatusDie) DieFeedRawExtension

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

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

func (*PodsMetricStatusDie) DieFeedYAML

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

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

func (*PodsMetricStatusDie) DieFeedYAMLFile

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

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

func (*PodsMetricStatusDie) DieImmutable

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

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

func (*PodsMetricStatusDie) DiePatch

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

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

func (*PodsMetricStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*PodsMetricStatusDie) DieReleaseJSON

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

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

func (*PodsMetricStatusDie) DieReleasePtr

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

func (*PodsMetricStatusDie) DieReleaseRawExtension

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

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

func (*PodsMetricStatusDie) DieReleaseYAML

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

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

func (*PodsMetricStatusDie) DieSeal

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

func (*PodsMetricStatusDie) DieSealFeed

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 (*PodsMetricStatusDie) DieSealFeedPtr

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 (*PodsMetricStatusDie) DieSealRelease

DieSealRelease returns the sealed resource managed by the die.

func (*PodsMetricStatusDie) DieSealReleasePtr

func (d *PodsMetricStatusDie) DieSealReleasePtr() *autoscalingv2.PodsMetricStatus

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*PodsMetricStatusDie) DieStamp

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

func (*PodsMetricStatusDie) DieStampAt

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

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

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

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

func (*PodsMetricStatusDie) Metric

metric identifies the target metric by name and selector

func (*PodsMetricStatusDie) MetricDie

func (d *PodsMetricStatusDie) MetricDie(fn func(d *MetricIdentifierDie)) *PodsMetricStatusDie

MetricDie mutates Metric as a die.

metric identifies the target metric by name and selector

type ResourceMetricSourceDie

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

func (*ResourceMetricSourceDie) DeepCopy

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

func (*ResourceMetricSourceDie) DieDiff

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

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

func (*ResourceMetricSourceDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ResourceMetricSourceDie) DieFeedJSON

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

func (*ResourceMetricSourceDie) DieFeedPtr

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

func (*ResourceMetricSourceDie) DieFeedRawExtension

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

func (*ResourceMetricSourceDie) DieFeedYAML

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

func (*ResourceMetricSourceDie) DieFeedYAMLFile

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

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

func (*ResourceMetricSourceDie) DieImmutable

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

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

func (*ResourceMetricSourceDie) DiePatch

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

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

func (*ResourceMetricSourceDie) DieRelease

DieRelease returns the resource managed by the die.

func (*ResourceMetricSourceDie) DieReleaseJSON

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

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

func (*ResourceMetricSourceDie) DieReleasePtr

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

func (*ResourceMetricSourceDie) DieReleaseRawExtension

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

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

func (*ResourceMetricSourceDie) DieReleaseYAML

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

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

func (*ResourceMetricSourceDie) DieSeal

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

func (*ResourceMetricSourceDie) DieSealFeed

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 (*ResourceMetricSourceDie) DieSealFeedPtr

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 (*ResourceMetricSourceDie) DieSealRelease

DieSealRelease returns the sealed resource managed by the die.

func (*ResourceMetricSourceDie) DieSealReleasePtr

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*ResourceMetricSourceDie) DieStamp

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

func (*ResourceMetricSourceDie) DieStampAt

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

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

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

func (*ResourceMetricSourceDie) Name

name is the name of the resource in question.

func (*ResourceMetricSourceDie) Target

target specifies the target value for the given metric

func (*ResourceMetricSourceDie) TargetDie

TargetDie mutates Target as a die.

target specifies the target value for the given metric

type ResourceMetricStatusDie

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

func (*ResourceMetricStatusDie) Current

current contains the current value for the given metric

func (*ResourceMetricStatusDie) CurrentDie

CurrentDie mutates Current as a die.

current contains the current value for the given metric

func (*ResourceMetricStatusDie) DeepCopy

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

func (*ResourceMetricStatusDie) DieDiff

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

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

func (*ResourceMetricStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ResourceMetricStatusDie) DieFeedJSON

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

func (*ResourceMetricStatusDie) DieFeedPtr

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

func (*ResourceMetricStatusDie) DieFeedRawExtension

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

func (*ResourceMetricStatusDie) DieFeedYAML

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

func (*ResourceMetricStatusDie) DieFeedYAMLFile

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

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

func (*ResourceMetricStatusDie) DieImmutable

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

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

func (*ResourceMetricStatusDie) DiePatch

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

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

func (*ResourceMetricStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*ResourceMetricStatusDie) DieReleaseJSON

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

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

func (*ResourceMetricStatusDie) DieReleasePtr

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

func (*ResourceMetricStatusDie) DieReleaseRawExtension

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

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

func (*ResourceMetricStatusDie) DieReleaseYAML

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

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

func (*ResourceMetricStatusDie) DieSeal

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

func (*ResourceMetricStatusDie) DieSealFeed

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 (*ResourceMetricStatusDie) DieSealFeedPtr

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 (*ResourceMetricStatusDie) DieSealRelease

DieSealRelease returns the sealed resource managed by the die.

func (*ResourceMetricStatusDie) DieSealReleasePtr

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*ResourceMetricStatusDie) DieStamp

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

func (*ResourceMetricStatusDie) DieStampAt

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

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

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

func (*ResourceMetricStatusDie) Name

name is the name of the resource in question.

Jump to

Keyboard shortcuts

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