Documentation
¶
Index ¶
- Variables
- type ContainerResourceMetricSourceDie
- func (d *ContainerResourceMetricSourceDie) Container(v string) *ContainerResourceMetricSourceDie
- func (d *ContainerResourceMetricSourceDie) DeepCopy() *ContainerResourceMetricSourceDie
- func (d *ContainerResourceMetricSourceDie) DieDiff(opts ...cmp.Option) string
- func (d *ContainerResourceMetricSourceDie) DieFeed(r autoscalingv2.ContainerResourceMetricSource) *ContainerResourceMetricSourceDie
- func (d *ContainerResourceMetricSourceDie) DieFeedJSON(j []byte) *ContainerResourceMetricSourceDie
- func (d *ContainerResourceMetricSourceDie) DieFeedPtr(r *autoscalingv2.ContainerResourceMetricSource) *ContainerResourceMetricSourceDie
- func (d *ContainerResourceMetricSourceDie) DieFeedRawExtension(raw runtime.RawExtension) *ContainerResourceMetricSourceDie
- func (d *ContainerResourceMetricSourceDie) DieFeedYAML(y []byte) *ContainerResourceMetricSourceDie
- func (d *ContainerResourceMetricSourceDie) DieFeedYAMLFile(name string) *ContainerResourceMetricSourceDie
- func (d *ContainerResourceMetricSourceDie) DieImmutable(immutable bool) *ContainerResourceMetricSourceDie
- func (d *ContainerResourceMetricSourceDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ContainerResourceMetricSourceDie) DieRelease() autoscalingv2.ContainerResourceMetricSource
- func (d *ContainerResourceMetricSourceDie) DieReleaseJSON() []byte
- func (d *ContainerResourceMetricSourceDie) DieReleasePtr() *autoscalingv2.ContainerResourceMetricSource
- func (d *ContainerResourceMetricSourceDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ContainerResourceMetricSourceDie) DieReleaseYAML() []byte
- func (d *ContainerResourceMetricSourceDie) DieSeal() *ContainerResourceMetricSourceDie
- func (d *ContainerResourceMetricSourceDie) DieSealFeed(r autoscalingv2.ContainerResourceMetricSource) *ContainerResourceMetricSourceDie
- func (d *ContainerResourceMetricSourceDie) DieSealFeedPtr(r *autoscalingv2.ContainerResourceMetricSource) *ContainerResourceMetricSourceDie
- func (d *ContainerResourceMetricSourceDie) DieSealRelease() autoscalingv2.ContainerResourceMetricSource
- func (d *ContainerResourceMetricSourceDie) DieSealReleasePtr() *autoscalingv2.ContainerResourceMetricSource
- func (d *ContainerResourceMetricSourceDie) DieStamp(fn func(r *autoscalingv2.ContainerResourceMetricSource)) *ContainerResourceMetricSourceDie
- func (d *ContainerResourceMetricSourceDie) DieStampAt(jp string, fn interface{}) *ContainerResourceMetricSourceDie
- func (d *ContainerResourceMetricSourceDie) DieWith(fns ...func(d *ContainerResourceMetricSourceDie)) *ContainerResourceMetricSourceDie
- func (d *ContainerResourceMetricSourceDie) Name(v corev1.ResourceName) *ContainerResourceMetricSourceDie
- func (d *ContainerResourceMetricSourceDie) Target(v autoscalingv2.MetricTarget) *ContainerResourceMetricSourceDie
- func (d *ContainerResourceMetricSourceDie) TargetDie(fn func(d *MetricTargetDie)) *ContainerResourceMetricSourceDie
- type ContainerResourceMetricStatusDie
- func (d *ContainerResourceMetricStatusDie) Container(v string) *ContainerResourceMetricStatusDie
- func (d *ContainerResourceMetricStatusDie) Current(v autoscalingv2.MetricValueStatus) *ContainerResourceMetricStatusDie
- func (d *ContainerResourceMetricStatusDie) CurrentDie(fn func(d *MetricValueStatusDie)) *ContainerResourceMetricStatusDie
- func (d *ContainerResourceMetricStatusDie) DeepCopy() *ContainerResourceMetricStatusDie
- func (d *ContainerResourceMetricStatusDie) DieDiff(opts ...cmp.Option) string
- func (d *ContainerResourceMetricStatusDie) DieFeed(r autoscalingv2.ContainerResourceMetricStatus) *ContainerResourceMetricStatusDie
- func (d *ContainerResourceMetricStatusDie) DieFeedJSON(j []byte) *ContainerResourceMetricStatusDie
- func (d *ContainerResourceMetricStatusDie) DieFeedPtr(r *autoscalingv2.ContainerResourceMetricStatus) *ContainerResourceMetricStatusDie
- func (d *ContainerResourceMetricStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *ContainerResourceMetricStatusDie
- func (d *ContainerResourceMetricStatusDie) DieFeedYAML(y []byte) *ContainerResourceMetricStatusDie
- func (d *ContainerResourceMetricStatusDie) DieFeedYAMLFile(name string) *ContainerResourceMetricStatusDie
- func (d *ContainerResourceMetricStatusDie) DieImmutable(immutable bool) *ContainerResourceMetricStatusDie
- func (d *ContainerResourceMetricStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ContainerResourceMetricStatusDie) DieRelease() autoscalingv2.ContainerResourceMetricStatus
- func (d *ContainerResourceMetricStatusDie) DieReleaseJSON() []byte
- func (d *ContainerResourceMetricStatusDie) DieReleasePtr() *autoscalingv2.ContainerResourceMetricStatus
- func (d *ContainerResourceMetricStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ContainerResourceMetricStatusDie) DieReleaseYAML() []byte
- func (d *ContainerResourceMetricStatusDie) DieSeal() *ContainerResourceMetricStatusDie
- func (d *ContainerResourceMetricStatusDie) DieSealFeed(r autoscalingv2.ContainerResourceMetricStatus) *ContainerResourceMetricStatusDie
- func (d *ContainerResourceMetricStatusDie) DieSealFeedPtr(r *autoscalingv2.ContainerResourceMetricStatus) *ContainerResourceMetricStatusDie
- func (d *ContainerResourceMetricStatusDie) DieSealRelease() autoscalingv2.ContainerResourceMetricStatus
- func (d *ContainerResourceMetricStatusDie) DieSealReleasePtr() *autoscalingv2.ContainerResourceMetricStatus
- func (d *ContainerResourceMetricStatusDie) DieStamp(fn func(r *autoscalingv2.ContainerResourceMetricStatus)) *ContainerResourceMetricStatusDie
- func (d *ContainerResourceMetricStatusDie) DieStampAt(jp string, fn interface{}) *ContainerResourceMetricStatusDie
- func (d *ContainerResourceMetricStatusDie) DieWith(fns ...func(d *ContainerResourceMetricStatusDie)) *ContainerResourceMetricStatusDie
- func (d *ContainerResourceMetricStatusDie) Name(v corev1.ResourceName) *ContainerResourceMetricStatusDie
- type CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) APIVersion(v string) *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) DeepCopy() *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) DieDiff(opts ...cmp.Option) string
- func (d *CrossVersionObjectReferenceDie) DieFeed(r autoscalingv2.CrossVersionObjectReference) *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) DieFeedJSON(j []byte) *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) DieFeedPtr(r *autoscalingv2.CrossVersionObjectReference) *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) DieFeedRawExtension(raw runtime.RawExtension) *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) DieFeedYAML(y []byte) *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) DieFeedYAMLFile(name string) *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) DieImmutable(immutable bool) *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *CrossVersionObjectReferenceDie) DieRelease() autoscalingv2.CrossVersionObjectReference
- func (d *CrossVersionObjectReferenceDie) DieReleaseJSON() []byte
- func (d *CrossVersionObjectReferenceDie) DieReleasePtr() *autoscalingv2.CrossVersionObjectReference
- func (d *CrossVersionObjectReferenceDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CrossVersionObjectReferenceDie) DieReleaseYAML() []byte
- func (d *CrossVersionObjectReferenceDie) DieSeal() *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) DieSealFeed(r autoscalingv2.CrossVersionObjectReference) *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) DieSealFeedPtr(r *autoscalingv2.CrossVersionObjectReference) *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) DieSealRelease() autoscalingv2.CrossVersionObjectReference
- func (d *CrossVersionObjectReferenceDie) DieSealReleasePtr() *autoscalingv2.CrossVersionObjectReference
- func (d *CrossVersionObjectReferenceDie) DieStamp(fn func(r *autoscalingv2.CrossVersionObjectReference)) *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) DieStampAt(jp string, fn interface{}) *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) DieWith(fns ...func(d *CrossVersionObjectReferenceDie)) *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) Kind(v string) *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) Name(v string) *CrossVersionObjectReferenceDie
- type ExternalMetricSourceDie
- func (d *ExternalMetricSourceDie) DeepCopy() *ExternalMetricSourceDie
- func (d *ExternalMetricSourceDie) DieDiff(opts ...cmp.Option) string
- func (d *ExternalMetricSourceDie) DieFeed(r autoscalingv2.ExternalMetricSource) *ExternalMetricSourceDie
- func (d *ExternalMetricSourceDie) DieFeedJSON(j []byte) *ExternalMetricSourceDie
- func (d *ExternalMetricSourceDie) DieFeedPtr(r *autoscalingv2.ExternalMetricSource) *ExternalMetricSourceDie
- func (d *ExternalMetricSourceDie) DieFeedRawExtension(raw runtime.RawExtension) *ExternalMetricSourceDie
- func (d *ExternalMetricSourceDie) DieFeedYAML(y []byte) *ExternalMetricSourceDie
- func (d *ExternalMetricSourceDie) DieFeedYAMLFile(name string) *ExternalMetricSourceDie
- func (d *ExternalMetricSourceDie) DieImmutable(immutable bool) *ExternalMetricSourceDie
- func (d *ExternalMetricSourceDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ExternalMetricSourceDie) DieRelease() autoscalingv2.ExternalMetricSource
- func (d *ExternalMetricSourceDie) DieReleaseJSON() []byte
- func (d *ExternalMetricSourceDie) DieReleasePtr() *autoscalingv2.ExternalMetricSource
- func (d *ExternalMetricSourceDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ExternalMetricSourceDie) DieReleaseYAML() []byte
- func (d *ExternalMetricSourceDie) DieSeal() *ExternalMetricSourceDie
- func (d *ExternalMetricSourceDie) DieSealFeed(r autoscalingv2.ExternalMetricSource) *ExternalMetricSourceDie
- func (d *ExternalMetricSourceDie) DieSealFeedPtr(r *autoscalingv2.ExternalMetricSource) *ExternalMetricSourceDie
- func (d *ExternalMetricSourceDie) DieSealRelease() autoscalingv2.ExternalMetricSource
- func (d *ExternalMetricSourceDie) DieSealReleasePtr() *autoscalingv2.ExternalMetricSource
- func (d *ExternalMetricSourceDie) DieStamp(fn func(r *autoscalingv2.ExternalMetricSource)) *ExternalMetricSourceDie
- func (d *ExternalMetricSourceDie) DieStampAt(jp string, fn interface{}) *ExternalMetricSourceDie
- func (d *ExternalMetricSourceDie) DieWith(fns ...func(d *ExternalMetricSourceDie)) *ExternalMetricSourceDie
- func (d *ExternalMetricSourceDie) Metric(v autoscalingv2.MetricIdentifier) *ExternalMetricSourceDie
- func (d *ExternalMetricSourceDie) MetricDie(fn func(d *MetricIdentifierDie)) *ExternalMetricSourceDie
- func (d *ExternalMetricSourceDie) Target(v autoscalingv2.MetricTarget) *ExternalMetricSourceDie
- func (d *ExternalMetricSourceDie) TargetDie(fn func(d *MetricTargetDie)) *ExternalMetricSourceDie
- type ExternalMetricStatusDie
- func (d *ExternalMetricStatusDie) Current(v autoscalingv2.MetricValueStatus) *ExternalMetricStatusDie
- func (d *ExternalMetricStatusDie) CurrentDie(fn func(d *MetricValueStatusDie)) *ExternalMetricStatusDie
- func (d *ExternalMetricStatusDie) DeepCopy() *ExternalMetricStatusDie
- func (d *ExternalMetricStatusDie) DieDiff(opts ...cmp.Option) string
- func (d *ExternalMetricStatusDie) DieFeed(r autoscalingv2.ExternalMetricStatus) *ExternalMetricStatusDie
- func (d *ExternalMetricStatusDie) DieFeedJSON(j []byte) *ExternalMetricStatusDie
- func (d *ExternalMetricStatusDie) DieFeedPtr(r *autoscalingv2.ExternalMetricStatus) *ExternalMetricStatusDie
- func (d *ExternalMetricStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *ExternalMetricStatusDie
- func (d *ExternalMetricStatusDie) DieFeedYAML(y []byte) *ExternalMetricStatusDie
- func (d *ExternalMetricStatusDie) DieFeedYAMLFile(name string) *ExternalMetricStatusDie
- func (d *ExternalMetricStatusDie) DieImmutable(immutable bool) *ExternalMetricStatusDie
- func (d *ExternalMetricStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ExternalMetricStatusDie) DieRelease() autoscalingv2.ExternalMetricStatus
- func (d *ExternalMetricStatusDie) DieReleaseJSON() []byte
- func (d *ExternalMetricStatusDie) DieReleasePtr() *autoscalingv2.ExternalMetricStatus
- func (d *ExternalMetricStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ExternalMetricStatusDie) DieReleaseYAML() []byte
- func (d *ExternalMetricStatusDie) DieSeal() *ExternalMetricStatusDie
- func (d *ExternalMetricStatusDie) DieSealFeed(r autoscalingv2.ExternalMetricStatus) *ExternalMetricStatusDie
- func (d *ExternalMetricStatusDie) DieSealFeedPtr(r *autoscalingv2.ExternalMetricStatus) *ExternalMetricStatusDie
- func (d *ExternalMetricStatusDie) DieSealRelease() autoscalingv2.ExternalMetricStatus
- func (d *ExternalMetricStatusDie) DieSealReleasePtr() *autoscalingv2.ExternalMetricStatus
- func (d *ExternalMetricStatusDie) DieStamp(fn func(r *autoscalingv2.ExternalMetricStatus)) *ExternalMetricStatusDie
- func (d *ExternalMetricStatusDie) DieStampAt(jp string, fn interface{}) *ExternalMetricStatusDie
- func (d *ExternalMetricStatusDie) DieWith(fns ...func(d *ExternalMetricStatusDie)) *ExternalMetricStatusDie
- func (d *ExternalMetricStatusDie) Metric(v autoscalingv2.MetricIdentifier) *ExternalMetricStatusDie
- func (d *ExternalMetricStatusDie) MetricDie(fn func(d *MetricIdentifierDie)) *ExternalMetricStatusDie
- type HPAScalingPolicyDie
- func (d *HPAScalingPolicyDie) DeepCopy() *HPAScalingPolicyDie
- func (d *HPAScalingPolicyDie) DieDiff(opts ...cmp.Option) string
- func (d *HPAScalingPolicyDie) DieFeed(r autoscalingv2.HPAScalingPolicy) *HPAScalingPolicyDie
- func (d *HPAScalingPolicyDie) DieFeedJSON(j []byte) *HPAScalingPolicyDie
- func (d *HPAScalingPolicyDie) DieFeedPtr(r *autoscalingv2.HPAScalingPolicy) *HPAScalingPolicyDie
- func (d *HPAScalingPolicyDie) DieFeedRawExtension(raw runtime.RawExtension) *HPAScalingPolicyDie
- func (d *HPAScalingPolicyDie) DieFeedYAML(y []byte) *HPAScalingPolicyDie
- func (d *HPAScalingPolicyDie) DieFeedYAMLFile(name string) *HPAScalingPolicyDie
- func (d *HPAScalingPolicyDie) DieImmutable(immutable bool) *HPAScalingPolicyDie
- func (d *HPAScalingPolicyDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *HPAScalingPolicyDie) DieRelease() autoscalingv2.HPAScalingPolicy
- func (d *HPAScalingPolicyDie) DieReleaseJSON() []byte
- func (d *HPAScalingPolicyDie) DieReleasePtr() *autoscalingv2.HPAScalingPolicy
- func (d *HPAScalingPolicyDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *HPAScalingPolicyDie) DieReleaseYAML() []byte
- func (d *HPAScalingPolicyDie) DieSeal() *HPAScalingPolicyDie
- func (d *HPAScalingPolicyDie) DieSealFeed(r autoscalingv2.HPAScalingPolicy) *HPAScalingPolicyDie
- func (d *HPAScalingPolicyDie) DieSealFeedPtr(r *autoscalingv2.HPAScalingPolicy) *HPAScalingPolicyDie
- func (d *HPAScalingPolicyDie) DieSealRelease() autoscalingv2.HPAScalingPolicy
- func (d *HPAScalingPolicyDie) DieSealReleasePtr() *autoscalingv2.HPAScalingPolicy
- func (d *HPAScalingPolicyDie) DieStamp(fn func(r *autoscalingv2.HPAScalingPolicy)) *HPAScalingPolicyDie
- func (d *HPAScalingPolicyDie) DieStampAt(jp string, fn interface{}) *HPAScalingPolicyDie
- func (d *HPAScalingPolicyDie) DieWith(fns ...func(d *HPAScalingPolicyDie)) *HPAScalingPolicyDie
- func (d *HPAScalingPolicyDie) PeriodSeconds(v int32) *HPAScalingPolicyDie
- func (d *HPAScalingPolicyDie) Type(v autoscalingv2.HPAScalingPolicyType) *HPAScalingPolicyDie
- func (d *HPAScalingPolicyDie) Value(v int32) *HPAScalingPolicyDie
- type HPAScalingRulesDie
- func (d *HPAScalingRulesDie) DeepCopy() *HPAScalingRulesDie
- func (d *HPAScalingRulesDie) DieDiff(opts ...cmp.Option) string
- func (d *HPAScalingRulesDie) DieFeed(r autoscalingv2.HPAScalingRules) *HPAScalingRulesDie
- func (d *HPAScalingRulesDie) DieFeedJSON(j []byte) *HPAScalingRulesDie
- func (d *HPAScalingRulesDie) DieFeedPtr(r *autoscalingv2.HPAScalingRules) *HPAScalingRulesDie
- func (d *HPAScalingRulesDie) DieFeedRawExtension(raw runtime.RawExtension) *HPAScalingRulesDie
- func (d *HPAScalingRulesDie) DieFeedYAML(y []byte) *HPAScalingRulesDie
- func (d *HPAScalingRulesDie) DieFeedYAMLFile(name string) *HPAScalingRulesDie
- func (d *HPAScalingRulesDie) DieImmutable(immutable bool) *HPAScalingRulesDie
- func (d *HPAScalingRulesDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *HPAScalingRulesDie) DieRelease() autoscalingv2.HPAScalingRules
- func (d *HPAScalingRulesDie) DieReleaseJSON() []byte
- func (d *HPAScalingRulesDie) DieReleasePtr() *autoscalingv2.HPAScalingRules
- func (d *HPAScalingRulesDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *HPAScalingRulesDie) DieReleaseYAML() []byte
- func (d *HPAScalingRulesDie) DieSeal() *HPAScalingRulesDie
- func (d *HPAScalingRulesDie) DieSealFeed(r autoscalingv2.HPAScalingRules) *HPAScalingRulesDie
- func (d *HPAScalingRulesDie) DieSealFeedPtr(r *autoscalingv2.HPAScalingRules) *HPAScalingRulesDie
- func (d *HPAScalingRulesDie) DieSealRelease() autoscalingv2.HPAScalingRules
- func (d *HPAScalingRulesDie) DieSealReleasePtr() *autoscalingv2.HPAScalingRules
- func (d *HPAScalingRulesDie) DieStamp(fn func(r *autoscalingv2.HPAScalingRules)) *HPAScalingRulesDie
- func (d *HPAScalingRulesDie) DieStampAt(jp string, fn interface{}) *HPAScalingRulesDie
- func (d *HPAScalingRulesDie) DieWith(fns ...func(d *HPAScalingRulesDie)) *HPAScalingRulesDie
- func (d *HPAScalingRulesDie) Policies(v ...autoscalingv2.HPAScalingPolicy) *HPAScalingRulesDie
- func (d *HPAScalingRulesDie) PoliciesDie(v ...*HPAScalingPolicyDie) *HPAScalingRulesDie
- func (d *HPAScalingRulesDie) SelectPolicy(v *autoscalingv2.ScalingPolicySelect) *HPAScalingRulesDie
- func (d *HPAScalingRulesDie) StabilizationWindowSeconds(v *int32) *HPAScalingRulesDie
- type HorizontalPodAutoscalerBehaviorDie
- func (d *HorizontalPodAutoscalerBehaviorDie) DeepCopy() *HorizontalPodAutoscalerBehaviorDie
- func (d *HorizontalPodAutoscalerBehaviorDie) DieDiff(opts ...cmp.Option) string
- func (d *HorizontalPodAutoscalerBehaviorDie) DieFeed(r autoscalingv2.HorizontalPodAutoscalerBehavior) *HorizontalPodAutoscalerBehaviorDie
- func (d *HorizontalPodAutoscalerBehaviorDie) DieFeedJSON(j []byte) *HorizontalPodAutoscalerBehaviorDie
- func (d *HorizontalPodAutoscalerBehaviorDie) DieFeedPtr(r *autoscalingv2.HorizontalPodAutoscalerBehavior) *HorizontalPodAutoscalerBehaviorDie
- func (d *HorizontalPodAutoscalerBehaviorDie) DieFeedRawExtension(raw runtime.RawExtension) *HorizontalPodAutoscalerBehaviorDie
- func (d *HorizontalPodAutoscalerBehaviorDie) DieFeedYAML(y []byte) *HorizontalPodAutoscalerBehaviorDie
- func (d *HorizontalPodAutoscalerBehaviorDie) DieFeedYAMLFile(name string) *HorizontalPodAutoscalerBehaviorDie
- func (d *HorizontalPodAutoscalerBehaviorDie) DieImmutable(immutable bool) *HorizontalPodAutoscalerBehaviorDie
- func (d *HorizontalPodAutoscalerBehaviorDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *HorizontalPodAutoscalerBehaviorDie) DieRelease() autoscalingv2.HorizontalPodAutoscalerBehavior
- func (d *HorizontalPodAutoscalerBehaviorDie) DieReleaseJSON() []byte
- func (d *HorizontalPodAutoscalerBehaviorDie) DieReleasePtr() *autoscalingv2.HorizontalPodAutoscalerBehavior
- func (d *HorizontalPodAutoscalerBehaviorDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *HorizontalPodAutoscalerBehaviorDie) DieReleaseYAML() []byte
- func (d *HorizontalPodAutoscalerBehaviorDie) DieSeal() *HorizontalPodAutoscalerBehaviorDie
- func (d *HorizontalPodAutoscalerBehaviorDie) DieSealFeed(r autoscalingv2.HorizontalPodAutoscalerBehavior) *HorizontalPodAutoscalerBehaviorDie
- func (d *HorizontalPodAutoscalerBehaviorDie) DieSealFeedPtr(r *autoscalingv2.HorizontalPodAutoscalerBehavior) *HorizontalPodAutoscalerBehaviorDie
- func (d *HorizontalPodAutoscalerBehaviorDie) DieSealRelease() autoscalingv2.HorizontalPodAutoscalerBehavior
- func (d *HorizontalPodAutoscalerBehaviorDie) DieSealReleasePtr() *autoscalingv2.HorizontalPodAutoscalerBehavior
- func (d *HorizontalPodAutoscalerBehaviorDie) DieStamp(fn func(r *autoscalingv2.HorizontalPodAutoscalerBehavior)) *HorizontalPodAutoscalerBehaviorDie
- func (d *HorizontalPodAutoscalerBehaviorDie) DieStampAt(jp string, fn interface{}) *HorizontalPodAutoscalerBehaviorDie
- func (d *HorizontalPodAutoscalerBehaviorDie) DieWith(fns ...func(d *HorizontalPodAutoscalerBehaviorDie)) *HorizontalPodAutoscalerBehaviorDie
- func (d *HorizontalPodAutoscalerBehaviorDie) ScaleDown(v *autoscalingv2.HPAScalingRules) *HorizontalPodAutoscalerBehaviorDie
- func (d *HorizontalPodAutoscalerBehaviorDie) ScaleDownDie(fn func(d *HPAScalingRulesDie)) *HorizontalPodAutoscalerBehaviorDie
- func (d *HorizontalPodAutoscalerBehaviorDie) ScaleUp(v *autoscalingv2.HPAScalingRules) *HorizontalPodAutoscalerBehaviorDie
- func (d *HorizontalPodAutoscalerBehaviorDie) ScaleUpDie(fn func(d *HPAScalingRulesDie)) *HorizontalPodAutoscalerBehaviorDie
- type HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) APIVersion(v string) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) DeepCopy() *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) DeepCopyObject() runtime.Object
- func (d *HorizontalPodAutoscalerDie) DieDefaultTypeMetadata() *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) DieDiff(opts ...cmp.Option) string
- func (d *HorizontalPodAutoscalerDie) DieFeed(r autoscalingv2.HorizontalPodAutoscaler) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) DieFeedJSON(j []byte) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) DieFeedPtr(r *autoscalingv2.HorizontalPodAutoscaler) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) DieFeedRawExtension(raw runtime.RawExtension) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) DieFeedYAML(y []byte) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) DieFeedYAMLFile(name string) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) DieImmutable(immutable bool) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *HorizontalPodAutoscalerDie) DieRelease() autoscalingv2.HorizontalPodAutoscaler
- func (d *HorizontalPodAutoscalerDie) DieReleaseJSON() []byte
- func (d *HorizontalPodAutoscalerDie) DieReleasePtr() *autoscalingv2.HorizontalPodAutoscaler
- func (d *HorizontalPodAutoscalerDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *HorizontalPodAutoscalerDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *HorizontalPodAutoscalerDie) DieReleaseYAML() []byte
- func (d *HorizontalPodAutoscalerDie) DieSeal() *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) DieSealFeed(r autoscalingv2.HorizontalPodAutoscaler) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) DieSealFeedPtr(r *autoscalingv2.HorizontalPodAutoscaler) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) DieSealRelease() autoscalingv2.HorizontalPodAutoscaler
- func (d *HorizontalPodAutoscalerDie) DieSealReleasePtr() *autoscalingv2.HorizontalPodAutoscaler
- func (d *HorizontalPodAutoscalerDie) DieStamp(fn func(r *autoscalingv2.HorizontalPodAutoscaler)) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) DieStampAt(jp string, fn interface{}) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) DieWith(fns ...func(d *HorizontalPodAutoscalerDie)) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) GetObjectKind() schema.ObjectKind
- func (d *HorizontalPodAutoscalerDie) Kind(v string) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) MarshalJSON() ([]byte, error)
- func (d *HorizontalPodAutoscalerDie) Metadata(v metav1.ObjectMeta) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) MetadataDie(fn func(d *v1.ObjectMetaDie)) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) Spec(v autoscalingv2.HorizontalPodAutoscalerSpec) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) SpecDie(fn func(d *HorizontalPodAutoscalerSpecDie)) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) Status(v autoscalingv2.HorizontalPodAutoscalerStatus) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) StatusDie(fn func(d *HorizontalPodAutoscalerStatusDie)) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) TypeMetadata(v metav1.TypeMeta) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) TypeMetadataDie(fn func(d *v1.TypeMetaDie)) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) UnmarshalJSON(b []byte) error
- type HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) Behavior(v *autoscalingv2.HorizontalPodAutoscalerBehavior) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) BehaviorDie(fn func(d *HorizontalPodAutoscalerBehaviorDie)) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) DeepCopy() *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) DieDiff(opts ...cmp.Option) string
- func (d *HorizontalPodAutoscalerSpecDie) DieFeed(r autoscalingv2.HorizontalPodAutoscalerSpec) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) DieFeedJSON(j []byte) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) DieFeedPtr(r *autoscalingv2.HorizontalPodAutoscalerSpec) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) DieFeedYAML(y []byte) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) DieFeedYAMLFile(name string) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) DieImmutable(immutable bool) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *HorizontalPodAutoscalerSpecDie) DieRelease() autoscalingv2.HorizontalPodAutoscalerSpec
- func (d *HorizontalPodAutoscalerSpecDie) DieReleaseJSON() []byte
- func (d *HorizontalPodAutoscalerSpecDie) DieReleasePtr() *autoscalingv2.HorizontalPodAutoscalerSpec
- func (d *HorizontalPodAutoscalerSpecDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *HorizontalPodAutoscalerSpecDie) DieReleaseYAML() []byte
- func (d *HorizontalPodAutoscalerSpecDie) DieSeal() *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) DieSealFeed(r autoscalingv2.HorizontalPodAutoscalerSpec) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) DieSealFeedPtr(r *autoscalingv2.HorizontalPodAutoscalerSpec) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) DieSealRelease() autoscalingv2.HorizontalPodAutoscalerSpec
- func (d *HorizontalPodAutoscalerSpecDie) DieSealReleasePtr() *autoscalingv2.HorizontalPodAutoscalerSpec
- func (d *HorizontalPodAutoscalerSpecDie) DieStamp(fn func(r *autoscalingv2.HorizontalPodAutoscalerSpec)) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) DieStampAt(jp string, fn interface{}) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) DieWith(fns ...func(d *HorizontalPodAutoscalerSpecDie)) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) MaxReplicas(v int32) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) Metrics(v ...autoscalingv2.MetricSpec) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) MetricsDie(v ...*MetricSpecDie) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) MinReplicas(v *int32) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) ScaleTargetRef(v autoscalingv2.CrossVersionObjectReference) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) ScaleTargetRefDie(fn func(d *CrossVersionObjectReferenceDie)) *HorizontalPodAutoscalerSpecDie
- type HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) Conditions(v ...autoscalingv2.HorizontalPodAutoscalerCondition) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) CurrentMetrics(v ...autoscalingv2.MetricStatus) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) CurrentMetricsDie(v ...*MetricStatusDie) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) CurrentReplicas(v int32) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DeepCopy() *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DesiredReplicas(v int32) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DieDiff(opts ...cmp.Option) string
- func (d *HorizontalPodAutoscalerStatusDie) DieFeed(r autoscalingv2.HorizontalPodAutoscalerStatus) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DieFeedJSON(j []byte) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DieFeedPtr(r *autoscalingv2.HorizontalPodAutoscalerStatus) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DieFeedYAML(y []byte) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DieFeedYAMLFile(name string) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DieImmutable(immutable bool) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *HorizontalPodAutoscalerStatusDie) DieRelease() autoscalingv2.HorizontalPodAutoscalerStatus
- func (d *HorizontalPodAutoscalerStatusDie) DieReleaseJSON() []byte
- func (d *HorizontalPodAutoscalerStatusDie) DieReleasePtr() *autoscalingv2.HorizontalPodAutoscalerStatus
- func (d *HorizontalPodAutoscalerStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *HorizontalPodAutoscalerStatusDie) DieReleaseYAML() []byte
- func (d *HorizontalPodAutoscalerStatusDie) DieSeal() *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DieSealFeed(r autoscalingv2.HorizontalPodAutoscalerStatus) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DieSealFeedPtr(r *autoscalingv2.HorizontalPodAutoscalerStatus) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DieSealRelease() autoscalingv2.HorizontalPodAutoscalerStatus
- func (d *HorizontalPodAutoscalerStatusDie) DieSealReleasePtr() *autoscalingv2.HorizontalPodAutoscalerStatus
- func (d *HorizontalPodAutoscalerStatusDie) DieStamp(fn func(r *autoscalingv2.HorizontalPodAutoscalerStatus)) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DieStampAt(jp string, fn interface{}) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DieWith(fns ...func(d *HorizontalPodAutoscalerStatusDie)) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) LastScaleTime(v *metav1.Time) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) ObservedGeneration(v *int64) *HorizontalPodAutoscalerStatusDie
- type MetricIdentifierDie
- func (d *MetricIdentifierDie) DeepCopy() *MetricIdentifierDie
- func (d *MetricIdentifierDie) DieDiff(opts ...cmp.Option) string
- func (d *MetricIdentifierDie) DieFeed(r autoscalingv2.MetricIdentifier) *MetricIdentifierDie
- func (d *MetricIdentifierDie) DieFeedJSON(j []byte) *MetricIdentifierDie
- func (d *MetricIdentifierDie) DieFeedPtr(r *autoscalingv2.MetricIdentifier) *MetricIdentifierDie
- func (d *MetricIdentifierDie) DieFeedRawExtension(raw runtime.RawExtension) *MetricIdentifierDie
- func (d *MetricIdentifierDie) DieFeedYAML(y []byte) *MetricIdentifierDie
- func (d *MetricIdentifierDie) DieFeedYAMLFile(name string) *MetricIdentifierDie
- func (d *MetricIdentifierDie) DieImmutable(immutable bool) *MetricIdentifierDie
- func (d *MetricIdentifierDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *MetricIdentifierDie) DieRelease() autoscalingv2.MetricIdentifier
- func (d *MetricIdentifierDie) DieReleaseJSON() []byte
- func (d *MetricIdentifierDie) DieReleasePtr() *autoscalingv2.MetricIdentifier
- func (d *MetricIdentifierDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *MetricIdentifierDie) DieReleaseYAML() []byte
- func (d *MetricIdentifierDie) DieSeal() *MetricIdentifierDie
- func (d *MetricIdentifierDie) DieSealFeed(r autoscalingv2.MetricIdentifier) *MetricIdentifierDie
- func (d *MetricIdentifierDie) DieSealFeedPtr(r *autoscalingv2.MetricIdentifier) *MetricIdentifierDie
- func (d *MetricIdentifierDie) DieSealRelease() autoscalingv2.MetricIdentifier
- func (d *MetricIdentifierDie) DieSealReleasePtr() *autoscalingv2.MetricIdentifier
- func (d *MetricIdentifierDie) DieStamp(fn func(r *autoscalingv2.MetricIdentifier)) *MetricIdentifierDie
- func (d *MetricIdentifierDie) DieStampAt(jp string, fn interface{}) *MetricIdentifierDie
- func (d *MetricIdentifierDie) DieWith(fns ...func(d *MetricIdentifierDie)) *MetricIdentifierDie
- func (d *MetricIdentifierDie) Name(v string) *MetricIdentifierDie
- func (d *MetricIdentifierDie) Selector(v *metav1.LabelSelector) *MetricIdentifierDie
- func (d *MetricIdentifierDie) SelectorDie(fn func(d *v1.LabelSelectorDie)) *MetricIdentifierDie
- type MetricSpecDie
- func (d *MetricSpecDie) ContainerResource(v *autoscalingv2.ContainerResourceMetricSource) *MetricSpecDie
- func (d *MetricSpecDie) ContainerResourceDie(fn func(d *ContainerResourceMetricSourceDie)) *MetricSpecDie
- func (d *MetricSpecDie) DeepCopy() *MetricSpecDie
- func (d *MetricSpecDie) DieDiff(opts ...cmp.Option) string
- func (d *MetricSpecDie) DieFeed(r autoscalingv2.MetricSpec) *MetricSpecDie
- func (d *MetricSpecDie) DieFeedJSON(j []byte) *MetricSpecDie
- func (d *MetricSpecDie) DieFeedPtr(r *autoscalingv2.MetricSpec) *MetricSpecDie
- func (d *MetricSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *MetricSpecDie
- func (d *MetricSpecDie) DieFeedYAML(y []byte) *MetricSpecDie
- func (d *MetricSpecDie) DieFeedYAMLFile(name string) *MetricSpecDie
- func (d *MetricSpecDie) DieImmutable(immutable bool) *MetricSpecDie
- func (d *MetricSpecDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *MetricSpecDie) DieRelease() autoscalingv2.MetricSpec
- func (d *MetricSpecDie) DieReleaseJSON() []byte
- func (d *MetricSpecDie) DieReleasePtr() *autoscalingv2.MetricSpec
- func (d *MetricSpecDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *MetricSpecDie) DieReleaseYAML() []byte
- func (d *MetricSpecDie) DieSeal() *MetricSpecDie
- func (d *MetricSpecDie) DieSealFeed(r autoscalingv2.MetricSpec) *MetricSpecDie
- func (d *MetricSpecDie) DieSealFeedPtr(r *autoscalingv2.MetricSpec) *MetricSpecDie
- func (d *MetricSpecDie) DieSealRelease() autoscalingv2.MetricSpec
- func (d *MetricSpecDie) DieSealReleasePtr() *autoscalingv2.MetricSpec
- func (d *MetricSpecDie) DieStamp(fn func(r *autoscalingv2.MetricSpec)) *MetricSpecDie
- func (d *MetricSpecDie) DieStampAt(jp string, fn interface{}) *MetricSpecDie
- func (d *MetricSpecDie) DieWith(fns ...func(d *MetricSpecDie)) *MetricSpecDie
- func (d *MetricSpecDie) External(v *autoscalingv2.ExternalMetricSource) *MetricSpecDie
- func (d *MetricSpecDie) ExternalDie(fn func(d *ExternalMetricSourceDie)) *MetricSpecDie
- func (d *MetricSpecDie) Object(v *autoscalingv2.ObjectMetricSource) *MetricSpecDie
- func (d *MetricSpecDie) ObjectDie(fn func(d *ObjectMetricSourceDie)) *MetricSpecDie
- func (d *MetricSpecDie) Pods(v *autoscalingv2.PodsMetricSource) *MetricSpecDie
- func (d *MetricSpecDie) PodsDie(fn func(d *PodsMetricSourceDie)) *MetricSpecDie
- func (d *MetricSpecDie) Resource(v *autoscalingv2.ResourceMetricSource) *MetricSpecDie
- func (d *MetricSpecDie) ResourceDie(fn func(d *ResourceMetricSourceDie)) *MetricSpecDie
- func (d *MetricSpecDie) Type(v autoscalingv2.MetricSourceType) *MetricSpecDie
- type MetricStatusDie
- func (d *MetricStatusDie) ContainerResource(v *autoscalingv2.ContainerResourceMetricStatus) *MetricStatusDie
- func (d *MetricStatusDie) ContainerResourceDie(fn func(d *ContainerResourceMetricStatusDie)) *MetricStatusDie
- func (d *MetricStatusDie) DeepCopy() *MetricStatusDie
- func (d *MetricStatusDie) DieDiff(opts ...cmp.Option) string
- func (d *MetricStatusDie) DieFeed(r autoscalingv2.MetricStatus) *MetricStatusDie
- func (d *MetricStatusDie) DieFeedJSON(j []byte) *MetricStatusDie
- func (d *MetricStatusDie) DieFeedPtr(r *autoscalingv2.MetricStatus) *MetricStatusDie
- func (d *MetricStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *MetricStatusDie
- func (d *MetricStatusDie) DieFeedYAML(y []byte) *MetricStatusDie
- func (d *MetricStatusDie) DieFeedYAMLFile(name string) *MetricStatusDie
- func (d *MetricStatusDie) DieImmutable(immutable bool) *MetricStatusDie
- func (d *MetricStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *MetricStatusDie) DieRelease() autoscalingv2.MetricStatus
- func (d *MetricStatusDie) DieReleaseJSON() []byte
- func (d *MetricStatusDie) DieReleasePtr() *autoscalingv2.MetricStatus
- func (d *MetricStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *MetricStatusDie) DieReleaseYAML() []byte
- func (d *MetricStatusDie) DieSeal() *MetricStatusDie
- func (d *MetricStatusDie) DieSealFeed(r autoscalingv2.MetricStatus) *MetricStatusDie
- func (d *MetricStatusDie) DieSealFeedPtr(r *autoscalingv2.MetricStatus) *MetricStatusDie
- func (d *MetricStatusDie) DieSealRelease() autoscalingv2.MetricStatus
- func (d *MetricStatusDie) DieSealReleasePtr() *autoscalingv2.MetricStatus
- func (d *MetricStatusDie) DieStamp(fn func(r *autoscalingv2.MetricStatus)) *MetricStatusDie
- func (d *MetricStatusDie) DieStampAt(jp string, fn interface{}) *MetricStatusDie
- func (d *MetricStatusDie) DieWith(fns ...func(d *MetricStatusDie)) *MetricStatusDie
- func (d *MetricStatusDie) External(v *autoscalingv2.ExternalMetricStatus) *MetricStatusDie
- func (d *MetricStatusDie) ExternalDie(fn func(d *ExternalMetricStatusDie)) *MetricStatusDie
- func (d *MetricStatusDie) Object(v *autoscalingv2.ObjectMetricStatus) *MetricStatusDie
- func (d *MetricStatusDie) ObjectDie(fn func(d *ObjectMetricStatusDie)) *MetricStatusDie
- func (d *MetricStatusDie) Pods(v *autoscalingv2.PodsMetricStatus) *MetricStatusDie
- func (d *MetricStatusDie) PodsDie(fn func(d *PodsMetricStatusDie)) *MetricStatusDie
- func (d *MetricStatusDie) Resource(v *autoscalingv2.ResourceMetricStatus) *MetricStatusDie
- func (d *MetricStatusDie) ResourceDie(fn func(d *ResourceMetricStatusDie)) *MetricStatusDie
- func (d *MetricStatusDie) Type(v autoscalingv2.MetricSourceType) *MetricStatusDie
- type MetricTargetDie
- func (d *MetricTargetDie) AverageUtilization(v *int32) *MetricTargetDie
- func (d *MetricTargetDie) AverageValue(v *resource.Quantity) *MetricTargetDie
- func (d *MetricTargetDie) AverageValueString(s string) *MetricTargetDie
- func (d *MetricTargetDie) DeepCopy() *MetricTargetDie
- func (d *MetricTargetDie) DieDiff(opts ...cmp.Option) string
- func (d *MetricTargetDie) DieFeed(r autoscalingv2.MetricTarget) *MetricTargetDie
- func (d *MetricTargetDie) DieFeedJSON(j []byte) *MetricTargetDie
- func (d *MetricTargetDie) DieFeedPtr(r *autoscalingv2.MetricTarget) *MetricTargetDie
- func (d *MetricTargetDie) DieFeedRawExtension(raw runtime.RawExtension) *MetricTargetDie
- func (d *MetricTargetDie) DieFeedYAML(y []byte) *MetricTargetDie
- func (d *MetricTargetDie) DieFeedYAMLFile(name string) *MetricTargetDie
- func (d *MetricTargetDie) DieImmutable(immutable bool) *MetricTargetDie
- func (d *MetricTargetDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *MetricTargetDie) DieRelease() autoscalingv2.MetricTarget
- func (d *MetricTargetDie) DieReleaseJSON() []byte
- func (d *MetricTargetDie) DieReleasePtr() *autoscalingv2.MetricTarget
- func (d *MetricTargetDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *MetricTargetDie) DieReleaseYAML() []byte
- func (d *MetricTargetDie) DieSeal() *MetricTargetDie
- func (d *MetricTargetDie) DieSealFeed(r autoscalingv2.MetricTarget) *MetricTargetDie
- func (d *MetricTargetDie) DieSealFeedPtr(r *autoscalingv2.MetricTarget) *MetricTargetDie
- func (d *MetricTargetDie) DieSealRelease() autoscalingv2.MetricTarget
- func (d *MetricTargetDie) DieSealReleasePtr() *autoscalingv2.MetricTarget
- func (d *MetricTargetDie) DieStamp(fn func(r *autoscalingv2.MetricTarget)) *MetricTargetDie
- func (d *MetricTargetDie) DieStampAt(jp string, fn interface{}) *MetricTargetDie
- func (d *MetricTargetDie) DieWith(fns ...func(d *MetricTargetDie)) *MetricTargetDie
- func (d *MetricTargetDie) Type(v autoscalingv2.MetricTargetType) *MetricTargetDie
- func (d *MetricTargetDie) Value(v *resource.Quantity) *MetricTargetDie
- func (d *MetricTargetDie) ValueString(s string) *MetricTargetDie
- type MetricValueStatusDie
- func (d *MetricValueStatusDie) AverageUtilization(v *int32) *MetricValueStatusDie
- func (d *MetricValueStatusDie) AverageValue(v *resource.Quantity) *MetricValueStatusDie
- func (d *MetricValueStatusDie) AverageValueString(s string) *MetricValueStatusDie
- func (d *MetricValueStatusDie) DeepCopy() *MetricValueStatusDie
- func (d *MetricValueStatusDie) DieDiff(opts ...cmp.Option) string
- func (d *MetricValueStatusDie) DieFeed(r autoscalingv2.MetricValueStatus) *MetricValueStatusDie
- func (d *MetricValueStatusDie) DieFeedJSON(j []byte) *MetricValueStatusDie
- func (d *MetricValueStatusDie) DieFeedPtr(r *autoscalingv2.MetricValueStatus) *MetricValueStatusDie
- func (d *MetricValueStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *MetricValueStatusDie
- func (d *MetricValueStatusDie) DieFeedYAML(y []byte) *MetricValueStatusDie
- func (d *MetricValueStatusDie) DieFeedYAMLFile(name string) *MetricValueStatusDie
- func (d *MetricValueStatusDie) DieImmutable(immutable bool) *MetricValueStatusDie
- func (d *MetricValueStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *MetricValueStatusDie) DieRelease() autoscalingv2.MetricValueStatus
- func (d *MetricValueStatusDie) DieReleaseJSON() []byte
- func (d *MetricValueStatusDie) DieReleasePtr() *autoscalingv2.MetricValueStatus
- func (d *MetricValueStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *MetricValueStatusDie) DieReleaseYAML() []byte
- func (d *MetricValueStatusDie) DieSeal() *MetricValueStatusDie
- func (d *MetricValueStatusDie) DieSealFeed(r autoscalingv2.MetricValueStatus) *MetricValueStatusDie
- func (d *MetricValueStatusDie) DieSealFeedPtr(r *autoscalingv2.MetricValueStatus) *MetricValueStatusDie
- func (d *MetricValueStatusDie) DieSealRelease() autoscalingv2.MetricValueStatus
- func (d *MetricValueStatusDie) DieSealReleasePtr() *autoscalingv2.MetricValueStatus
- func (d *MetricValueStatusDie) DieStamp(fn func(r *autoscalingv2.MetricValueStatus)) *MetricValueStatusDie
- func (d *MetricValueStatusDie) DieStampAt(jp string, fn interface{}) *MetricValueStatusDie
- func (d *MetricValueStatusDie) DieWith(fns ...func(d *MetricValueStatusDie)) *MetricValueStatusDie
- func (d *MetricValueStatusDie) Value(v *resource.Quantity) *MetricValueStatusDie
- func (d *MetricValueStatusDie) ValueString(s string) *MetricValueStatusDie
- type ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) DeepCopy() *ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) DescribedObject(v autoscalingv2.CrossVersionObjectReference) *ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) DescribedObjectDie(fn func(d *CrossVersionObjectReferenceDie)) *ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) DieDiff(opts ...cmp.Option) string
- func (d *ObjectMetricSourceDie) DieFeed(r autoscalingv2.ObjectMetricSource) *ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) DieFeedJSON(j []byte) *ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) DieFeedPtr(r *autoscalingv2.ObjectMetricSource) *ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) DieFeedRawExtension(raw runtime.RawExtension) *ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) DieFeedYAML(y []byte) *ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) DieFeedYAMLFile(name string) *ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) DieImmutable(immutable bool) *ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ObjectMetricSourceDie) DieRelease() autoscalingv2.ObjectMetricSource
- func (d *ObjectMetricSourceDie) DieReleaseJSON() []byte
- func (d *ObjectMetricSourceDie) DieReleasePtr() *autoscalingv2.ObjectMetricSource
- func (d *ObjectMetricSourceDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ObjectMetricSourceDie) DieReleaseYAML() []byte
- func (d *ObjectMetricSourceDie) DieSeal() *ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) DieSealFeed(r autoscalingv2.ObjectMetricSource) *ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) DieSealFeedPtr(r *autoscalingv2.ObjectMetricSource) *ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) DieSealRelease() autoscalingv2.ObjectMetricSource
- func (d *ObjectMetricSourceDie) DieSealReleasePtr() *autoscalingv2.ObjectMetricSource
- func (d *ObjectMetricSourceDie) DieStamp(fn func(r *autoscalingv2.ObjectMetricSource)) *ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) DieStampAt(jp string, fn interface{}) *ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) DieWith(fns ...func(d *ObjectMetricSourceDie)) *ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) Metric(v autoscalingv2.MetricIdentifier) *ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) MetricDie(fn func(d *MetricIdentifierDie)) *ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) Target(v autoscalingv2.MetricTarget) *ObjectMetricSourceDie
- func (d *ObjectMetricSourceDie) TargetDie(fn func(d *MetricTargetDie)) *ObjectMetricSourceDie
- type ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) Current(v autoscalingv2.MetricValueStatus) *ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) CurrentDie(fn func(d *MetricValueStatusDie)) *ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) DeepCopy() *ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) DescribedObject(v autoscalingv2.CrossVersionObjectReference) *ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) DescribedObjectDie(fn func(d *CrossVersionObjectReferenceDie)) *ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) DieDiff(opts ...cmp.Option) string
- func (d *ObjectMetricStatusDie) DieFeed(r autoscalingv2.ObjectMetricStatus) *ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) DieFeedJSON(j []byte) *ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) DieFeedPtr(r *autoscalingv2.ObjectMetricStatus) *ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) DieFeedYAML(y []byte) *ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) DieFeedYAMLFile(name string) *ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) DieImmutable(immutable bool) *ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ObjectMetricStatusDie) DieRelease() autoscalingv2.ObjectMetricStatus
- func (d *ObjectMetricStatusDie) DieReleaseJSON() []byte
- func (d *ObjectMetricStatusDie) DieReleasePtr() *autoscalingv2.ObjectMetricStatus
- func (d *ObjectMetricStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ObjectMetricStatusDie) DieReleaseYAML() []byte
- func (d *ObjectMetricStatusDie) DieSeal() *ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) DieSealFeed(r autoscalingv2.ObjectMetricStatus) *ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) DieSealFeedPtr(r *autoscalingv2.ObjectMetricStatus) *ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) DieSealRelease() autoscalingv2.ObjectMetricStatus
- func (d *ObjectMetricStatusDie) DieSealReleasePtr() *autoscalingv2.ObjectMetricStatus
- func (d *ObjectMetricStatusDie) DieStamp(fn func(r *autoscalingv2.ObjectMetricStatus)) *ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) DieStampAt(jp string, fn interface{}) *ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) DieWith(fns ...func(d *ObjectMetricStatusDie)) *ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) Metric(v autoscalingv2.MetricIdentifier) *ObjectMetricStatusDie
- func (d *ObjectMetricStatusDie) MetricDie(fn func(d *MetricIdentifierDie)) *ObjectMetricStatusDie
- type PodsMetricSourceDie
- func (d *PodsMetricSourceDie) DeepCopy() *PodsMetricSourceDie
- func (d *PodsMetricSourceDie) DieDiff(opts ...cmp.Option) string
- func (d *PodsMetricSourceDie) DieFeed(r autoscalingv2.PodsMetricSource) *PodsMetricSourceDie
- func (d *PodsMetricSourceDie) DieFeedJSON(j []byte) *PodsMetricSourceDie
- func (d *PodsMetricSourceDie) DieFeedPtr(r *autoscalingv2.PodsMetricSource) *PodsMetricSourceDie
- func (d *PodsMetricSourceDie) DieFeedRawExtension(raw runtime.RawExtension) *PodsMetricSourceDie
- func (d *PodsMetricSourceDie) DieFeedYAML(y []byte) *PodsMetricSourceDie
- func (d *PodsMetricSourceDie) DieFeedYAMLFile(name string) *PodsMetricSourceDie
- func (d *PodsMetricSourceDie) DieImmutable(immutable bool) *PodsMetricSourceDie
- func (d *PodsMetricSourceDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *PodsMetricSourceDie) DieRelease() autoscalingv2.PodsMetricSource
- func (d *PodsMetricSourceDie) DieReleaseJSON() []byte
- func (d *PodsMetricSourceDie) DieReleasePtr() *autoscalingv2.PodsMetricSource
- func (d *PodsMetricSourceDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *PodsMetricSourceDie) DieReleaseYAML() []byte
- func (d *PodsMetricSourceDie) DieSeal() *PodsMetricSourceDie
- func (d *PodsMetricSourceDie) DieSealFeed(r autoscalingv2.PodsMetricSource) *PodsMetricSourceDie
- func (d *PodsMetricSourceDie) DieSealFeedPtr(r *autoscalingv2.PodsMetricSource) *PodsMetricSourceDie
- func (d *PodsMetricSourceDie) DieSealRelease() autoscalingv2.PodsMetricSource
- func (d *PodsMetricSourceDie) DieSealReleasePtr() *autoscalingv2.PodsMetricSource
- func (d *PodsMetricSourceDie) DieStamp(fn func(r *autoscalingv2.PodsMetricSource)) *PodsMetricSourceDie
- func (d *PodsMetricSourceDie) DieStampAt(jp string, fn interface{}) *PodsMetricSourceDie
- func (d *PodsMetricSourceDie) DieWith(fns ...func(d *PodsMetricSourceDie)) *PodsMetricSourceDie
- func (d *PodsMetricSourceDie) Metric(v autoscalingv2.MetricIdentifier) *PodsMetricSourceDie
- func (d *PodsMetricSourceDie) MetricDie(fn func(d *MetricIdentifierDie)) *PodsMetricSourceDie
- func (d *PodsMetricSourceDie) Target(v autoscalingv2.MetricTarget) *PodsMetricSourceDie
- func (d *PodsMetricSourceDie) TargetDie(fn func(d *MetricTargetDie)) *PodsMetricSourceDie
- type PodsMetricStatusDie
- func (d *PodsMetricStatusDie) Current(v autoscalingv2.MetricValueStatus) *PodsMetricStatusDie
- func (d *PodsMetricStatusDie) CurrentDie(fn func(d *MetricValueStatusDie)) *PodsMetricStatusDie
- func (d *PodsMetricStatusDie) DeepCopy() *PodsMetricStatusDie
- func (d *PodsMetricStatusDie) DieDiff(opts ...cmp.Option) string
- func (d *PodsMetricStatusDie) DieFeed(r autoscalingv2.PodsMetricStatus) *PodsMetricStatusDie
- func (d *PodsMetricStatusDie) DieFeedJSON(j []byte) *PodsMetricStatusDie
- func (d *PodsMetricStatusDie) DieFeedPtr(r *autoscalingv2.PodsMetricStatus) *PodsMetricStatusDie
- func (d *PodsMetricStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *PodsMetricStatusDie
- func (d *PodsMetricStatusDie) DieFeedYAML(y []byte) *PodsMetricStatusDie
- func (d *PodsMetricStatusDie) DieFeedYAMLFile(name string) *PodsMetricStatusDie
- func (d *PodsMetricStatusDie) DieImmutable(immutable bool) *PodsMetricStatusDie
- func (d *PodsMetricStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *PodsMetricStatusDie) DieRelease() autoscalingv2.PodsMetricStatus
- func (d *PodsMetricStatusDie) DieReleaseJSON() []byte
- func (d *PodsMetricStatusDie) DieReleasePtr() *autoscalingv2.PodsMetricStatus
- func (d *PodsMetricStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *PodsMetricStatusDie) DieReleaseYAML() []byte
- func (d *PodsMetricStatusDie) DieSeal() *PodsMetricStatusDie
- func (d *PodsMetricStatusDie) DieSealFeed(r autoscalingv2.PodsMetricStatus) *PodsMetricStatusDie
- func (d *PodsMetricStatusDie) DieSealFeedPtr(r *autoscalingv2.PodsMetricStatus) *PodsMetricStatusDie
- func (d *PodsMetricStatusDie) DieSealRelease() autoscalingv2.PodsMetricStatus
- func (d *PodsMetricStatusDie) DieSealReleasePtr() *autoscalingv2.PodsMetricStatus
- func (d *PodsMetricStatusDie) DieStamp(fn func(r *autoscalingv2.PodsMetricStatus)) *PodsMetricStatusDie
- func (d *PodsMetricStatusDie) DieStampAt(jp string, fn interface{}) *PodsMetricStatusDie
- func (d *PodsMetricStatusDie) DieWith(fns ...func(d *PodsMetricStatusDie)) *PodsMetricStatusDie
- func (d *PodsMetricStatusDie) Metric(v autoscalingv2.MetricIdentifier) *PodsMetricStatusDie
- func (d *PodsMetricStatusDie) MetricDie(fn func(d *MetricIdentifierDie)) *PodsMetricStatusDie
- type ResourceMetricSourceDie
- func (d *ResourceMetricSourceDie) DeepCopy() *ResourceMetricSourceDie
- func (d *ResourceMetricSourceDie) DieDiff(opts ...cmp.Option) string
- func (d *ResourceMetricSourceDie) DieFeed(r autoscalingv2.ResourceMetricSource) *ResourceMetricSourceDie
- func (d *ResourceMetricSourceDie) DieFeedJSON(j []byte) *ResourceMetricSourceDie
- func (d *ResourceMetricSourceDie) DieFeedPtr(r *autoscalingv2.ResourceMetricSource) *ResourceMetricSourceDie
- func (d *ResourceMetricSourceDie) DieFeedRawExtension(raw runtime.RawExtension) *ResourceMetricSourceDie
- func (d *ResourceMetricSourceDie) DieFeedYAML(y []byte) *ResourceMetricSourceDie
- func (d *ResourceMetricSourceDie) DieFeedYAMLFile(name string) *ResourceMetricSourceDie
- func (d *ResourceMetricSourceDie) DieImmutable(immutable bool) *ResourceMetricSourceDie
- func (d *ResourceMetricSourceDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ResourceMetricSourceDie) DieRelease() autoscalingv2.ResourceMetricSource
- func (d *ResourceMetricSourceDie) DieReleaseJSON() []byte
- func (d *ResourceMetricSourceDie) DieReleasePtr() *autoscalingv2.ResourceMetricSource
- func (d *ResourceMetricSourceDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ResourceMetricSourceDie) DieReleaseYAML() []byte
- func (d *ResourceMetricSourceDie) DieSeal() *ResourceMetricSourceDie
- func (d *ResourceMetricSourceDie) DieSealFeed(r autoscalingv2.ResourceMetricSource) *ResourceMetricSourceDie
- func (d *ResourceMetricSourceDie) DieSealFeedPtr(r *autoscalingv2.ResourceMetricSource) *ResourceMetricSourceDie
- func (d *ResourceMetricSourceDie) DieSealRelease() autoscalingv2.ResourceMetricSource
- func (d *ResourceMetricSourceDie) DieSealReleasePtr() *autoscalingv2.ResourceMetricSource
- func (d *ResourceMetricSourceDie) DieStamp(fn func(r *autoscalingv2.ResourceMetricSource)) *ResourceMetricSourceDie
- func (d *ResourceMetricSourceDie) DieStampAt(jp string, fn interface{}) *ResourceMetricSourceDie
- func (d *ResourceMetricSourceDie) DieWith(fns ...func(d *ResourceMetricSourceDie)) *ResourceMetricSourceDie
- func (d *ResourceMetricSourceDie) Name(v corev1.ResourceName) *ResourceMetricSourceDie
- func (d *ResourceMetricSourceDie) Target(v autoscalingv2.MetricTarget) *ResourceMetricSourceDie
- func (d *ResourceMetricSourceDie) TargetDie(fn func(d *MetricTargetDie)) *ResourceMetricSourceDie
- type ResourceMetricStatusDie
- func (d *ResourceMetricStatusDie) Current(v autoscalingv2.MetricValueStatus) *ResourceMetricStatusDie
- func (d *ResourceMetricStatusDie) CurrentDie(fn func(d *MetricValueStatusDie)) *ResourceMetricStatusDie
- func (d *ResourceMetricStatusDie) DeepCopy() *ResourceMetricStatusDie
- func (d *ResourceMetricStatusDie) DieDiff(opts ...cmp.Option) string
- func (d *ResourceMetricStatusDie) DieFeed(r autoscalingv2.ResourceMetricStatus) *ResourceMetricStatusDie
- func (d *ResourceMetricStatusDie) DieFeedJSON(j []byte) *ResourceMetricStatusDie
- func (d *ResourceMetricStatusDie) DieFeedPtr(r *autoscalingv2.ResourceMetricStatus) *ResourceMetricStatusDie
- func (d *ResourceMetricStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *ResourceMetricStatusDie
- func (d *ResourceMetricStatusDie) DieFeedYAML(y []byte) *ResourceMetricStatusDie
- func (d *ResourceMetricStatusDie) DieFeedYAMLFile(name string) *ResourceMetricStatusDie
- func (d *ResourceMetricStatusDie) DieImmutable(immutable bool) *ResourceMetricStatusDie
- func (d *ResourceMetricStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ResourceMetricStatusDie) DieRelease() autoscalingv2.ResourceMetricStatus
- func (d *ResourceMetricStatusDie) DieReleaseJSON() []byte
- func (d *ResourceMetricStatusDie) DieReleasePtr() *autoscalingv2.ResourceMetricStatus
- func (d *ResourceMetricStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ResourceMetricStatusDie) DieReleaseYAML() []byte
- func (d *ResourceMetricStatusDie) DieSeal() *ResourceMetricStatusDie
- func (d *ResourceMetricStatusDie) DieSealFeed(r autoscalingv2.ResourceMetricStatus) *ResourceMetricStatusDie
- func (d *ResourceMetricStatusDie) DieSealFeedPtr(r *autoscalingv2.ResourceMetricStatus) *ResourceMetricStatusDie
- func (d *ResourceMetricStatusDie) DieSealRelease() autoscalingv2.ResourceMetricStatus
- func (d *ResourceMetricStatusDie) DieSealReleasePtr() *autoscalingv2.ResourceMetricStatus
- func (d *ResourceMetricStatusDie) DieStamp(fn func(r *autoscalingv2.ResourceMetricStatus)) *ResourceMetricStatusDie
- func (d *ResourceMetricStatusDie) DieStampAt(jp string, fn interface{}) *ResourceMetricStatusDie
- func (d *ResourceMetricStatusDie) DieWith(fns ...func(d *ResourceMetricStatusDie)) *ResourceMetricStatusDie
- func (d *ResourceMetricStatusDie) Name(v corev1.ResourceName) *ResourceMetricStatusDie
Constants ¶
This section is empty.
Variables ¶
var ContainerResourceMetricSourceBlank = (&ContainerResourceMetricSourceDie{}).DieFeed(autoscalingv2.ContainerResourceMetricSource{})
var ContainerResourceMetricStatusBlank = (&ContainerResourceMetricStatusDie{}).DieFeed(autoscalingv2.ContainerResourceMetricStatus{})
var CrossVersionObjectReferenceBlank = (&CrossVersionObjectReferenceDie{}).DieFeed(autoscalingv2.CrossVersionObjectReference{})
var ExternalMetricSourceBlank = (&ExternalMetricSourceDie{}).DieFeed(autoscalingv2.ExternalMetricSource{})
var ExternalMetricStatusBlank = (&ExternalMetricStatusDie{}).DieFeed(autoscalingv2.ExternalMetricStatus{})
var HPAScalingPolicyBlank = (&HPAScalingPolicyDie{}).DieFeed(autoscalingv2.HPAScalingPolicy{})
var HPAScalingRulesBlank = (&HPAScalingRulesDie{}).DieFeed(autoscalingv2.HPAScalingRules{})
var HorizontalPodAutoscalerBehaviorBlank = (&HorizontalPodAutoscalerBehaviorDie{}).DieFeed(autoscalingv2.HorizontalPodAutoscalerBehavior{})
var HorizontalPodAutoscalerBlank = (&HorizontalPodAutoscalerDie{}).DieFeed(autoscalingv2.HorizontalPodAutoscaler{})
var HorizontalPodAutoscalerSpecBlank = (&HorizontalPodAutoscalerSpecDie{}).DieFeed(autoscalingv2.HorizontalPodAutoscalerSpec{})
var HorizontalPodAutoscalerStatusBlank = (&HorizontalPodAutoscalerStatusDie{}).DieFeed(autoscalingv2.HorizontalPodAutoscalerStatus{})
var MetricIdentifierBlank = (&MetricIdentifierDie{}).DieFeed(autoscalingv2.MetricIdentifier{})
var MetricSpecBlank = (&MetricSpecDie{}).DieFeed(autoscalingv2.MetricSpec{})
var MetricStatusBlank = (&MetricStatusDie{}).DieFeed(autoscalingv2.MetricStatus{})
var MetricTargetBlank = (&MetricTargetDie{}).DieFeed(autoscalingv2.MetricTarget{})
var MetricValueStatusBlank = (&MetricValueStatusDie{}).DieFeed(autoscalingv2.MetricValueStatus{})
var ObjectMetricSourceBlank = (&ObjectMetricSourceDie{}).DieFeed(autoscalingv2.ObjectMetricSource{})
var ObjectMetricStatusBlank = (&ObjectMetricStatusDie{}).DieFeed(autoscalingv2.ObjectMetricStatus{})
var PodsMetricSourceBlank = (&PodsMetricSourceDie{}).DieFeed(autoscalingv2.PodsMetricSource{})
var PodsMetricStatusBlank = (&PodsMetricStatusDie{}).DieFeed(autoscalingv2.PodsMetricStatus{})
var ResourceMetricSourceBlank = (&ResourceMetricSourceDie{}).DieFeed(autoscalingv2.ResourceMetricSource{})
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 ¶
func (d *ContainerResourceMetricSourceDie) Container(v string) *ContainerResourceMetricSourceDie
container is the name of the container in the pods of the scaling target
func (*ContainerResourceMetricSourceDie) DeepCopy ¶
func (d *ContainerResourceMetricSourceDie) DeepCopy() *ContainerResourceMetricSourceDie
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 ¶
func (d *ContainerResourceMetricSourceDie) DieFeed(r autoscalingv2.ContainerResourceMetricSource) *ContainerResourceMetricSourceDie
DieFeed returns a new die with the provided resource.
func (*ContainerResourceMetricSourceDie) DieFeedJSON ¶
func (d *ContainerResourceMetricSourceDie) DieFeedJSON(j []byte) *ContainerResourceMetricSourceDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ContainerResourceMetricSourceDie) DieFeedPtr ¶
func (d *ContainerResourceMetricSourceDie) DieFeedPtr(r *autoscalingv2.ContainerResourceMetricSource) *ContainerResourceMetricSourceDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ContainerResourceMetricSourceDie) DieFeedRawExtension ¶
func (d *ContainerResourceMetricSourceDie) DieFeedRawExtension(raw runtime.RawExtension) *ContainerResourceMetricSourceDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ContainerResourceMetricSourceDie) DieFeedYAML ¶
func (d *ContainerResourceMetricSourceDie) DieFeedYAML(y []byte) *ContainerResourceMetricSourceDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ContainerResourceMetricSourceDie) DieFeedYAMLFile ¶
func (d *ContainerResourceMetricSourceDie) DieFeedYAMLFile(name string) *ContainerResourceMetricSourceDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ContainerResourceMetricSourceDie) DieImmutable ¶
func (d *ContainerResourceMetricSourceDie) DieImmutable(immutable bool) *ContainerResourceMetricSourceDie
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 ¶
func (d *ContainerResourceMetricSourceDie) DieRelease() autoscalingv2.ContainerResourceMetricSource
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 ¶
func (d *ContainerResourceMetricSourceDie) DieReleasePtr() *autoscalingv2.ContainerResourceMetricSource
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 ¶
func (d *ContainerResourceMetricSourceDie) DieSeal() *ContainerResourceMetricSourceDie
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 ¶
func (d *ContainerResourceMetricSourceDie) DieSealFeed(r autoscalingv2.ContainerResourceMetricSource) *ContainerResourceMetricSourceDie
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 ¶
func (d *ContainerResourceMetricSourceDie) DieSealFeedPtr(r *autoscalingv2.ContainerResourceMetricSource) *ContainerResourceMetricSourceDie
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 ¶
func (d *ContainerResourceMetricSourceDie) DieSealRelease() autoscalingv2.ContainerResourceMetricSource
DieSealRelease returns the sealed resource managed by the die.
func (*ContainerResourceMetricSourceDie) DieSealReleasePtr ¶
func (d *ContainerResourceMetricSourceDie) DieSealReleasePtr() *autoscalingv2.ContainerResourceMetricSource
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ContainerResourceMetricSourceDie) DieStamp ¶
func (d *ContainerResourceMetricSourceDie) DieStamp(fn func(r *autoscalingv2.ContainerResourceMetricSource)) *ContainerResourceMetricSourceDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ContainerResourceMetricSourceDie) DieStampAt ¶
func (d *ContainerResourceMetricSourceDie) DieStampAt(jp string, fn interface{}) *ContainerResourceMetricSourceDie
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 ¶
func (d *ContainerResourceMetricSourceDie) DieWith(fns ...func(d *ContainerResourceMetricSourceDie)) *ContainerResourceMetricSourceDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ContainerResourceMetricSourceDie) Name ¶
func (d *ContainerResourceMetricSourceDie) Name(v corev1.ResourceName) *ContainerResourceMetricSourceDie
name is the name of the resource in question.
func (*ContainerResourceMetricSourceDie) Target ¶
func (d *ContainerResourceMetricSourceDie) Target(v autoscalingv2.MetricTarget) *ContainerResourceMetricSourceDie
target specifies the target value for the given metric
func (*ContainerResourceMetricSourceDie) TargetDie ¶
func (d *ContainerResourceMetricSourceDie) TargetDie(fn func(d *MetricTargetDie)) *ContainerResourceMetricSourceDie
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 ¶
func (d *ContainerResourceMetricStatusDie) Container(v string) *ContainerResourceMetricStatusDie
container is the name of the container in the pods of the scaling target
func (*ContainerResourceMetricStatusDie) Current ¶
func (d *ContainerResourceMetricStatusDie) Current(v autoscalingv2.MetricValueStatus) *ContainerResourceMetricStatusDie
current contains the current value for the given metric
func (*ContainerResourceMetricStatusDie) CurrentDie ¶
func (d *ContainerResourceMetricStatusDie) CurrentDie(fn func(d *MetricValueStatusDie)) *ContainerResourceMetricStatusDie
CurrentDie mutates Current as a die.
current contains the current value for the given metric
func (*ContainerResourceMetricStatusDie) DeepCopy ¶
func (d *ContainerResourceMetricStatusDie) DeepCopy() *ContainerResourceMetricStatusDie
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 ¶
func (d *ContainerResourceMetricStatusDie) DieFeed(r autoscalingv2.ContainerResourceMetricStatus) *ContainerResourceMetricStatusDie
DieFeed returns a new die with the provided resource.
func (*ContainerResourceMetricStatusDie) DieFeedJSON ¶
func (d *ContainerResourceMetricStatusDie) DieFeedJSON(j []byte) *ContainerResourceMetricStatusDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ContainerResourceMetricStatusDie) DieFeedPtr ¶
func (d *ContainerResourceMetricStatusDie) DieFeedPtr(r *autoscalingv2.ContainerResourceMetricStatus) *ContainerResourceMetricStatusDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ContainerResourceMetricStatusDie) DieFeedRawExtension ¶
func (d *ContainerResourceMetricStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *ContainerResourceMetricStatusDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ContainerResourceMetricStatusDie) DieFeedYAML ¶
func (d *ContainerResourceMetricStatusDie) DieFeedYAML(y []byte) *ContainerResourceMetricStatusDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ContainerResourceMetricStatusDie) DieFeedYAMLFile ¶
func (d *ContainerResourceMetricStatusDie) DieFeedYAMLFile(name string) *ContainerResourceMetricStatusDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ContainerResourceMetricStatusDie) DieImmutable ¶
func (d *ContainerResourceMetricStatusDie) DieImmutable(immutable bool) *ContainerResourceMetricStatusDie
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 ¶
func (d *ContainerResourceMetricStatusDie) DieRelease() autoscalingv2.ContainerResourceMetricStatus
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 ¶
func (d *ContainerResourceMetricStatusDie) DieReleasePtr() *autoscalingv2.ContainerResourceMetricStatus
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 ¶
func (d *ContainerResourceMetricStatusDie) DieSeal() *ContainerResourceMetricStatusDie
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 ¶
func (d *ContainerResourceMetricStatusDie) DieSealFeed(r autoscalingv2.ContainerResourceMetricStatus) *ContainerResourceMetricStatusDie
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 ¶
func (d *ContainerResourceMetricStatusDie) DieSealFeedPtr(r *autoscalingv2.ContainerResourceMetricStatus) *ContainerResourceMetricStatusDie
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 ¶
func (d *ContainerResourceMetricStatusDie) DieSealRelease() autoscalingv2.ContainerResourceMetricStatus
DieSealRelease returns the sealed resource managed by the die.
func (*ContainerResourceMetricStatusDie) DieSealReleasePtr ¶
func (d *ContainerResourceMetricStatusDie) DieSealReleasePtr() *autoscalingv2.ContainerResourceMetricStatus
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ContainerResourceMetricStatusDie) DieStamp ¶
func (d *ContainerResourceMetricStatusDie) DieStamp(fn func(r *autoscalingv2.ContainerResourceMetricStatus)) *ContainerResourceMetricStatusDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ContainerResourceMetricStatusDie) DieStampAt ¶
func (d *ContainerResourceMetricStatusDie) DieStampAt(jp string, fn interface{}) *ContainerResourceMetricStatusDie
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 ¶
func (d *ContainerResourceMetricStatusDie) DieWith(fns ...func(d *ContainerResourceMetricStatusDie)) *ContainerResourceMetricStatusDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ContainerResourceMetricStatusDie) Name ¶
func (d *ContainerResourceMetricStatusDie) Name(v corev1.ResourceName) *ContainerResourceMetricStatusDie
name is the name of the resource in question.
type CrossVersionObjectReferenceDie ¶
type CrossVersionObjectReferenceDie struct {
// contains filtered or unexported fields
}
func (*CrossVersionObjectReferenceDie) APIVersion ¶
func (d *CrossVersionObjectReferenceDie) APIVersion(v string) *CrossVersionObjectReferenceDie
apiVersion is the API version of the referent
func (*CrossVersionObjectReferenceDie) DeepCopy ¶
func (d *CrossVersionObjectReferenceDie) DeepCopy() *CrossVersionObjectReferenceDie
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 ¶
func (d *CrossVersionObjectReferenceDie) DieFeed(r autoscalingv2.CrossVersionObjectReference) *CrossVersionObjectReferenceDie
DieFeed returns a new die with the provided resource.
func (*CrossVersionObjectReferenceDie) DieFeedJSON ¶
func (d *CrossVersionObjectReferenceDie) DieFeedJSON(j []byte) *CrossVersionObjectReferenceDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CrossVersionObjectReferenceDie) DieFeedPtr ¶
func (d *CrossVersionObjectReferenceDie) DieFeedPtr(r *autoscalingv2.CrossVersionObjectReference) *CrossVersionObjectReferenceDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CrossVersionObjectReferenceDie) DieFeedRawExtension ¶
func (d *CrossVersionObjectReferenceDie) DieFeedRawExtension(raw runtime.RawExtension) *CrossVersionObjectReferenceDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CrossVersionObjectReferenceDie) DieFeedYAML ¶
func (d *CrossVersionObjectReferenceDie) DieFeedYAML(y []byte) *CrossVersionObjectReferenceDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CrossVersionObjectReferenceDie) DieFeedYAMLFile ¶
func (d *CrossVersionObjectReferenceDie) DieFeedYAMLFile(name string) *CrossVersionObjectReferenceDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CrossVersionObjectReferenceDie) DieImmutable ¶
func (d *CrossVersionObjectReferenceDie) DieImmutable(immutable bool) *CrossVersionObjectReferenceDie
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 ¶
func (d *CrossVersionObjectReferenceDie) DieRelease() autoscalingv2.CrossVersionObjectReference
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 ¶
func (d *CrossVersionObjectReferenceDie) DieReleasePtr() *autoscalingv2.CrossVersionObjectReference
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 ¶
func (d *CrossVersionObjectReferenceDie) DieSeal() *CrossVersionObjectReferenceDie
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 ¶
func (d *CrossVersionObjectReferenceDie) DieSealFeed(r autoscalingv2.CrossVersionObjectReference) *CrossVersionObjectReferenceDie
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 ¶
func (d *CrossVersionObjectReferenceDie) DieSealFeedPtr(r *autoscalingv2.CrossVersionObjectReference) *CrossVersionObjectReferenceDie
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 ¶
func (d *CrossVersionObjectReferenceDie) DieSealRelease() autoscalingv2.CrossVersionObjectReference
DieSealRelease returns the sealed resource managed by the die.
func (*CrossVersionObjectReferenceDie) DieSealReleasePtr ¶
func (d *CrossVersionObjectReferenceDie) DieSealReleasePtr() *autoscalingv2.CrossVersionObjectReference
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*CrossVersionObjectReferenceDie) DieStamp ¶
func (d *CrossVersionObjectReferenceDie) DieStamp(fn func(r *autoscalingv2.CrossVersionObjectReference)) *CrossVersionObjectReferenceDie
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 ¶
func (d *CrossVersionObjectReferenceDie) DieWith(fns ...func(d *CrossVersionObjectReferenceDie)) *CrossVersionObjectReferenceDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*CrossVersionObjectReferenceDie) Kind ¶
func (d *CrossVersionObjectReferenceDie) Kind(v string) *CrossVersionObjectReferenceDie
kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (*CrossVersionObjectReferenceDie) Name ¶
func (d *CrossVersionObjectReferenceDie) Name(v string) *CrossVersionObjectReferenceDie
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 ¶
func (d *ExternalMetricSourceDie) DeepCopy() *ExternalMetricSourceDie
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 ¶
func (d *ExternalMetricSourceDie) DieFeed(r autoscalingv2.ExternalMetricSource) *ExternalMetricSourceDie
DieFeed returns a new die with the provided resource.
func (*ExternalMetricSourceDie) DieFeedJSON ¶
func (d *ExternalMetricSourceDie) DieFeedJSON(j []byte) *ExternalMetricSourceDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ExternalMetricSourceDie) DieFeedPtr ¶
func (d *ExternalMetricSourceDie) DieFeedPtr(r *autoscalingv2.ExternalMetricSource) *ExternalMetricSourceDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ExternalMetricSourceDie) DieFeedRawExtension ¶
func (d *ExternalMetricSourceDie) DieFeedRawExtension(raw runtime.RawExtension) *ExternalMetricSourceDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ExternalMetricSourceDie) DieFeedYAML ¶
func (d *ExternalMetricSourceDie) DieFeedYAML(y []byte) *ExternalMetricSourceDie
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 ¶
func (d *ExternalMetricSourceDie) DieRelease() autoscalingv2.ExternalMetricSource
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 ¶
func (d *ExternalMetricSourceDie) DieReleasePtr() *autoscalingv2.ExternalMetricSource
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 ¶
func (d *ExternalMetricSourceDie) DieSeal() *ExternalMetricSourceDie
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 ¶
func (d *ExternalMetricSourceDie) DieSealFeed(r autoscalingv2.ExternalMetricSource) *ExternalMetricSourceDie
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 ¶
func (d *ExternalMetricSourceDie) DieSealFeedPtr(r *autoscalingv2.ExternalMetricSource) *ExternalMetricSourceDie
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 ¶
func (d *ExternalMetricSourceDie) DieSealRelease() autoscalingv2.ExternalMetricSource
DieSealRelease returns the sealed resource managed by the die.
func (*ExternalMetricSourceDie) DieSealReleasePtr ¶
func (d *ExternalMetricSourceDie) DieSealReleasePtr() *autoscalingv2.ExternalMetricSource
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ExternalMetricSourceDie) DieStamp ¶
func (d *ExternalMetricSourceDie) DieStamp(fn func(r *autoscalingv2.ExternalMetricSource)) *ExternalMetricSourceDie
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 ¶
func (d *ExternalMetricSourceDie) DieWith(fns ...func(d *ExternalMetricSourceDie)) *ExternalMetricSourceDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ExternalMetricSourceDie) Metric ¶
func (d *ExternalMetricSourceDie) Metric(v autoscalingv2.MetricIdentifier) *ExternalMetricSourceDie
metric identifies the target metric by name and selector
func (*ExternalMetricSourceDie) MetricDie ¶
func (d *ExternalMetricSourceDie) MetricDie(fn func(d *MetricIdentifierDie)) *ExternalMetricSourceDie
MetricDie mutates Metric as a die.
metric identifies the target metric by name and selector
func (*ExternalMetricSourceDie) Target ¶
func (d *ExternalMetricSourceDie) Target(v autoscalingv2.MetricTarget) *ExternalMetricSourceDie
target specifies the target value for the given metric
func (*ExternalMetricSourceDie) TargetDie ¶
func (d *ExternalMetricSourceDie) TargetDie(fn func(d *MetricTargetDie)) *ExternalMetricSourceDie
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 ¶
func (d *ExternalMetricStatusDie) Current(v autoscalingv2.MetricValueStatus) *ExternalMetricStatusDie
current contains the current value for the given metric
func (*ExternalMetricStatusDie) CurrentDie ¶
func (d *ExternalMetricStatusDie) CurrentDie(fn func(d *MetricValueStatusDie)) *ExternalMetricStatusDie
CurrentDie mutates Current as a die.
current contains the current value for the given metric
func (*ExternalMetricStatusDie) DeepCopy ¶
func (d *ExternalMetricStatusDie) DeepCopy() *ExternalMetricStatusDie
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 ¶
func (d *ExternalMetricStatusDie) DieFeed(r autoscalingv2.ExternalMetricStatus) *ExternalMetricStatusDie
DieFeed returns a new die with the provided resource.
func (*ExternalMetricStatusDie) DieFeedJSON ¶
func (d *ExternalMetricStatusDie) DieFeedJSON(j []byte) *ExternalMetricStatusDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ExternalMetricStatusDie) DieFeedPtr ¶
func (d *ExternalMetricStatusDie) DieFeedPtr(r *autoscalingv2.ExternalMetricStatus) *ExternalMetricStatusDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ExternalMetricStatusDie) DieFeedRawExtension ¶
func (d *ExternalMetricStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *ExternalMetricStatusDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ExternalMetricStatusDie) DieFeedYAML ¶
func (d *ExternalMetricStatusDie) DieFeedYAML(y []byte) *ExternalMetricStatusDie
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 ¶
func (d *ExternalMetricStatusDie) DieRelease() autoscalingv2.ExternalMetricStatus
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 ¶
func (d *ExternalMetricStatusDie) DieReleasePtr() *autoscalingv2.ExternalMetricStatus
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 ¶
func (d *ExternalMetricStatusDie) DieSeal() *ExternalMetricStatusDie
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 ¶
func (d *ExternalMetricStatusDie) DieSealFeed(r autoscalingv2.ExternalMetricStatus) *ExternalMetricStatusDie
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 ¶
func (d *ExternalMetricStatusDie) DieSealFeedPtr(r *autoscalingv2.ExternalMetricStatus) *ExternalMetricStatusDie
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 ¶
func (d *ExternalMetricStatusDie) DieSealRelease() autoscalingv2.ExternalMetricStatus
DieSealRelease returns the sealed resource managed by the die.
func (*ExternalMetricStatusDie) DieSealReleasePtr ¶
func (d *ExternalMetricStatusDie) DieSealReleasePtr() *autoscalingv2.ExternalMetricStatus
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ExternalMetricStatusDie) DieStamp ¶
func (d *ExternalMetricStatusDie) DieStamp(fn func(r *autoscalingv2.ExternalMetricStatus)) *ExternalMetricStatusDie
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 ¶
func (d *ExternalMetricStatusDie) DieWith(fns ...func(d *ExternalMetricStatusDie)) *ExternalMetricStatusDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ExternalMetricStatusDie) Metric ¶
func (d *ExternalMetricStatusDie) Metric(v autoscalingv2.MetricIdentifier) *ExternalMetricStatusDie
metric identifies the target metric by name and selector
func (*ExternalMetricStatusDie) MetricDie ¶
func (d *ExternalMetricStatusDie) MetricDie(fn func(d *MetricIdentifierDie)) *ExternalMetricStatusDie
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 ¶
func (d *HPAScalingPolicyDie) DeepCopy() *HPAScalingPolicyDie
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 ¶
func (d *HPAScalingPolicyDie) DieFeed(r autoscalingv2.HPAScalingPolicy) *HPAScalingPolicyDie
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 ¶
func (d *HPAScalingPolicyDie) DieFeedPtr(r *autoscalingv2.HPAScalingPolicy) *HPAScalingPolicyDie
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 ¶
func (d *HPAScalingPolicyDie) DieRelease() autoscalingv2.HPAScalingPolicy
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 ¶
func (d *HPAScalingPolicyDie) DieReleasePtr() *autoscalingv2.HPAScalingPolicy
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 ¶
func (d *HPAScalingPolicyDie) DieSeal() *HPAScalingPolicyDie
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 ¶
func (d *HPAScalingPolicyDie) DieSealFeed(r autoscalingv2.HPAScalingPolicy) *HPAScalingPolicyDie
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 ¶
func (d *HPAScalingPolicyDie) DieSealFeedPtr(r *autoscalingv2.HPAScalingPolicy) *HPAScalingPolicyDie
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 ¶
func (d *HPAScalingPolicyDie) DieSealRelease() autoscalingv2.HPAScalingPolicy
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 ¶
func (d *HPAScalingPolicyDie) DieStamp(fn func(r *autoscalingv2.HPAScalingPolicy)) *HPAScalingPolicyDie
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 ¶
func (d *HPAScalingPolicyDie) Type(v autoscalingv2.HPAScalingPolicyType) *HPAScalingPolicyDie
type is used to specify the scaling policy.
func (*HPAScalingPolicyDie) Value ¶
func (d *HPAScalingPolicyDie) Value(v int32) *HPAScalingPolicyDie
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 ¶
func (d *HPAScalingRulesDie) DieFeed(r autoscalingv2.HPAScalingRules) *HPAScalingRulesDie
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 ¶
func (d *HPAScalingRulesDie) DieFeedPtr(r *autoscalingv2.HPAScalingRules) *HPAScalingRulesDie
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 ¶
func (d *HPAScalingRulesDie) DieRelease() autoscalingv2.HPAScalingRules
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 ¶
func (d *HPAScalingRulesDie) DieSealFeed(r autoscalingv2.HPAScalingRules) *HPAScalingRulesDie
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 ¶
func (d *HPAScalingRulesDie) DieSealFeedPtr(r *autoscalingv2.HPAScalingRules) *HPAScalingRulesDie
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 ¶
func (d *HPAScalingRulesDie) DieStamp(fn func(r *autoscalingv2.HPAScalingRules)) *HPAScalingRulesDie
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 ¶
func (d *HPAScalingRulesDie) Policies(v ...autoscalingv2.HPAScalingPolicy) *HPAScalingRulesDie
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 ¶
func (d *HPAScalingRulesDie) PoliciesDie(v ...*HPAScalingPolicyDie) *HPAScalingRulesDie
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 ¶
func (d *HPAScalingRulesDie) SelectPolicy(v *autoscalingv2.ScalingPolicySelect) *HPAScalingRulesDie
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 ¶
func (d *HorizontalPodAutoscalerBehaviorDie) DeepCopy() *HorizontalPodAutoscalerBehaviorDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*HorizontalPodAutoscalerBehaviorDie) DieDiff ¶
func (d *HorizontalPodAutoscalerBehaviorDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*HorizontalPodAutoscalerBehaviorDie) DieFeed ¶
func (d *HorizontalPodAutoscalerBehaviorDie) DieFeed(r autoscalingv2.HorizontalPodAutoscalerBehavior) *HorizontalPodAutoscalerBehaviorDie
DieFeed returns a new die with the provided resource.
func (*HorizontalPodAutoscalerBehaviorDie) DieFeedJSON ¶
func (d *HorizontalPodAutoscalerBehaviorDie) DieFeedJSON(j []byte) *HorizontalPodAutoscalerBehaviorDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*HorizontalPodAutoscalerBehaviorDie) DieFeedPtr ¶
func (d *HorizontalPodAutoscalerBehaviorDie) DieFeedPtr(r *autoscalingv2.HorizontalPodAutoscalerBehavior) *HorizontalPodAutoscalerBehaviorDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*HorizontalPodAutoscalerBehaviorDie) DieFeedRawExtension ¶
func (d *HorizontalPodAutoscalerBehaviorDie) DieFeedRawExtension(raw runtime.RawExtension) *HorizontalPodAutoscalerBehaviorDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*HorizontalPodAutoscalerBehaviorDie) DieFeedYAML ¶
func (d *HorizontalPodAutoscalerBehaviorDie) DieFeedYAML(y []byte) *HorizontalPodAutoscalerBehaviorDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*HorizontalPodAutoscalerBehaviorDie) DieFeedYAMLFile ¶
func (d *HorizontalPodAutoscalerBehaviorDie) DieFeedYAMLFile(name string) *HorizontalPodAutoscalerBehaviorDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*HorizontalPodAutoscalerBehaviorDie) DieImmutable ¶
func (d *HorizontalPodAutoscalerBehaviorDie) DieImmutable(immutable bool) *HorizontalPodAutoscalerBehaviorDie
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 ¶
func (d *HorizontalPodAutoscalerBehaviorDie) DieRelease() autoscalingv2.HorizontalPodAutoscalerBehavior
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 ¶
func (d *HorizontalPodAutoscalerBehaviorDie) DieReleasePtr() *autoscalingv2.HorizontalPodAutoscalerBehavior
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 ¶
func (d *HorizontalPodAutoscalerBehaviorDie) DieSeal() *HorizontalPodAutoscalerBehaviorDie
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 ¶
func (d *HorizontalPodAutoscalerBehaviorDie) DieSealFeed(r autoscalingv2.HorizontalPodAutoscalerBehavior) *HorizontalPodAutoscalerBehaviorDie
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 ¶
func (d *HorizontalPodAutoscalerBehaviorDie) DieSealFeedPtr(r *autoscalingv2.HorizontalPodAutoscalerBehavior) *HorizontalPodAutoscalerBehaviorDie
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 ¶
func (d *HorizontalPodAutoscalerBehaviorDie) DieSealRelease() autoscalingv2.HorizontalPodAutoscalerBehavior
DieSealRelease returns the sealed resource managed by the die.
func (*HorizontalPodAutoscalerBehaviorDie) DieSealReleasePtr ¶
func (d *HorizontalPodAutoscalerBehaviorDie) DieSealReleasePtr() *autoscalingv2.HorizontalPodAutoscalerBehavior
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*HorizontalPodAutoscalerBehaviorDie) DieStamp ¶
func (d *HorizontalPodAutoscalerBehaviorDie) DieStamp(fn func(r *autoscalingv2.HorizontalPodAutoscalerBehavior)) *HorizontalPodAutoscalerBehaviorDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*HorizontalPodAutoscalerBehaviorDie) DieStampAt ¶
func (d *HorizontalPodAutoscalerBehaviorDie) DieStampAt(jp string, fn interface{}) *HorizontalPodAutoscalerBehaviorDie
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 ¶
func (d *HorizontalPodAutoscalerBehaviorDie) DieWith(fns ...func(d *HorizontalPodAutoscalerBehaviorDie)) *HorizontalPodAutoscalerBehaviorDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*HorizontalPodAutoscalerBehaviorDie) ScaleDown ¶
func (d *HorizontalPodAutoscalerBehaviorDie) ScaleDown(v *autoscalingv2.HPAScalingRules) *HorizontalPodAutoscalerBehaviorDie
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 ¶
func (d *HorizontalPodAutoscalerBehaviorDie) ScaleDownDie(fn func(d *HPAScalingRulesDie)) *HorizontalPodAutoscalerBehaviorDie
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 ¶
func (d *HorizontalPodAutoscalerBehaviorDie) ScaleUp(v *autoscalingv2.HPAScalingRules) *HorizontalPodAutoscalerBehaviorDie
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 ¶
func (d *HorizontalPodAutoscalerBehaviorDie) ScaleUpDie(fn func(d *HPAScalingRulesDie)) *HorizontalPodAutoscalerBehaviorDie
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 ¶
func (d *HorizontalPodAutoscalerDie) APIVersion(v string) *HorizontalPodAutoscalerDie
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 ¶
func (d *HorizontalPodAutoscalerDie) DeepCopy() *HorizontalPodAutoscalerDie
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 ¶
func (d *HorizontalPodAutoscalerDie) DieFeed(r autoscalingv2.HorizontalPodAutoscaler) *HorizontalPodAutoscalerDie
DieFeed returns a new die with the provided resource.
func (*HorizontalPodAutoscalerDie) DieFeedJSON ¶
func (d *HorizontalPodAutoscalerDie) DieFeedJSON(j []byte) *HorizontalPodAutoscalerDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*HorizontalPodAutoscalerDie) DieFeedPtr ¶
func (d *HorizontalPodAutoscalerDie) DieFeedPtr(r *autoscalingv2.HorizontalPodAutoscaler) *HorizontalPodAutoscalerDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*HorizontalPodAutoscalerDie) DieFeedRawExtension ¶
func (d *HorizontalPodAutoscalerDie) DieFeedRawExtension(raw runtime.RawExtension) *HorizontalPodAutoscalerDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*HorizontalPodAutoscalerDie) DieFeedYAML ¶
func (d *HorizontalPodAutoscalerDie) DieFeedYAML(y []byte) *HorizontalPodAutoscalerDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*HorizontalPodAutoscalerDie) DieFeedYAMLFile ¶
func (d *HorizontalPodAutoscalerDie) DieFeedYAMLFile(name string) *HorizontalPodAutoscalerDie
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 ¶
func (d *HorizontalPodAutoscalerDie) DieRelease() autoscalingv2.HorizontalPodAutoscaler
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 ¶
func (d *HorizontalPodAutoscalerDie) DieReleasePtr() *autoscalingv2.HorizontalPodAutoscaler
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 ¶
func (d *HorizontalPodAutoscalerDie) DieSeal() *HorizontalPodAutoscalerDie
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 ¶
func (d *HorizontalPodAutoscalerDie) DieSealFeed(r autoscalingv2.HorizontalPodAutoscaler) *HorizontalPodAutoscalerDie
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 ¶
func (d *HorizontalPodAutoscalerDie) DieSealFeedPtr(r *autoscalingv2.HorizontalPodAutoscaler) *HorizontalPodAutoscalerDie
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 ¶
func (d *HorizontalPodAutoscalerDie) DieSealRelease() autoscalingv2.HorizontalPodAutoscaler
DieSealRelease returns the sealed resource managed by the die.
func (*HorizontalPodAutoscalerDie) DieSealReleasePtr ¶
func (d *HorizontalPodAutoscalerDie) DieSealReleasePtr() *autoscalingv2.HorizontalPodAutoscaler
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*HorizontalPodAutoscalerDie) DieStamp ¶
func (d *HorizontalPodAutoscalerDie) DieStamp(fn func(r *autoscalingv2.HorizontalPodAutoscaler)) *HorizontalPodAutoscalerDie
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 ¶
func (d *HorizontalPodAutoscalerDie) DieWith(fns ...func(d *HorizontalPodAutoscalerDie)) *HorizontalPodAutoscalerDie
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 ¶
func (d *HorizontalPodAutoscalerDie) Kind(v string) *HorizontalPodAutoscalerDie
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 ¶
func (d *HorizontalPodAutoscalerDie) Metadata(v metav1.ObjectMeta) *HorizontalPodAutoscalerDie
Metadata standard object's metadata.
func (*HorizontalPodAutoscalerDie) MetadataDie ¶
func (d *HorizontalPodAutoscalerDie) MetadataDie(fn func(d *v1.ObjectMetaDie)) *HorizontalPodAutoscalerDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*HorizontalPodAutoscalerDie) Spec ¶
func (d *HorizontalPodAutoscalerDie) Spec(v autoscalingv2.HorizontalPodAutoscalerSpec) *HorizontalPodAutoscalerDie
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 ¶
func (d *HorizontalPodAutoscalerDie) SpecDie(fn func(d *HorizontalPodAutoscalerSpecDie)) *HorizontalPodAutoscalerDie
SpecDie stamps the resource's spec field with a mutable die.
func (*HorizontalPodAutoscalerDie) Status ¶
func (d *HorizontalPodAutoscalerDie) Status(v autoscalingv2.HorizontalPodAutoscalerStatus) *HorizontalPodAutoscalerDie
status is the current information about the autoscaler.
func (*HorizontalPodAutoscalerDie) StatusDie ¶
func (d *HorizontalPodAutoscalerDie) StatusDie(fn func(d *HorizontalPodAutoscalerStatusDie)) *HorizontalPodAutoscalerDie
StatusDie stamps the resource's status field with a mutable die.
func (*HorizontalPodAutoscalerDie) TypeMetadata ¶
func (d *HorizontalPodAutoscalerDie) TypeMetadata(v metav1.TypeMeta) *HorizontalPodAutoscalerDie
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 ¶
func (d *HorizontalPodAutoscalerSpecDie) Behavior(v *autoscalingv2.HorizontalPodAutoscalerBehavior) *HorizontalPodAutoscalerSpecDie
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 ¶
func (d *HorizontalPodAutoscalerSpecDie) BehaviorDie(fn func(d *HorizontalPodAutoscalerBehaviorDie)) *HorizontalPodAutoscalerSpecDie
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 ¶
func (d *HorizontalPodAutoscalerSpecDie) DeepCopy() *HorizontalPodAutoscalerSpecDie
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 ¶
func (d *HorizontalPodAutoscalerSpecDie) DieFeed(r autoscalingv2.HorizontalPodAutoscalerSpec) *HorizontalPodAutoscalerSpecDie
DieFeed returns a new die with the provided resource.
func (*HorizontalPodAutoscalerSpecDie) DieFeedJSON ¶
func (d *HorizontalPodAutoscalerSpecDie) DieFeedJSON(j []byte) *HorizontalPodAutoscalerSpecDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*HorizontalPodAutoscalerSpecDie) DieFeedPtr ¶
func (d *HorizontalPodAutoscalerSpecDie) DieFeedPtr(r *autoscalingv2.HorizontalPodAutoscalerSpec) *HorizontalPodAutoscalerSpecDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*HorizontalPodAutoscalerSpecDie) DieFeedRawExtension ¶
func (d *HorizontalPodAutoscalerSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *HorizontalPodAutoscalerSpecDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*HorizontalPodAutoscalerSpecDie) DieFeedYAML ¶
func (d *HorizontalPodAutoscalerSpecDie) DieFeedYAML(y []byte) *HorizontalPodAutoscalerSpecDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*HorizontalPodAutoscalerSpecDie) DieFeedYAMLFile ¶
func (d *HorizontalPodAutoscalerSpecDie) DieFeedYAMLFile(name string) *HorizontalPodAutoscalerSpecDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*HorizontalPodAutoscalerSpecDie) DieImmutable ¶
func (d *HorizontalPodAutoscalerSpecDie) DieImmutable(immutable bool) *HorizontalPodAutoscalerSpecDie
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 ¶
func (d *HorizontalPodAutoscalerSpecDie) DieRelease() autoscalingv2.HorizontalPodAutoscalerSpec
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 ¶
func (d *HorizontalPodAutoscalerSpecDie) DieReleasePtr() *autoscalingv2.HorizontalPodAutoscalerSpec
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 ¶
func (d *HorizontalPodAutoscalerSpecDie) DieSeal() *HorizontalPodAutoscalerSpecDie
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 ¶
func (d *HorizontalPodAutoscalerSpecDie) DieSealFeed(r autoscalingv2.HorizontalPodAutoscalerSpec) *HorizontalPodAutoscalerSpecDie
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 ¶
func (d *HorizontalPodAutoscalerSpecDie) DieSealFeedPtr(r *autoscalingv2.HorizontalPodAutoscalerSpec) *HorizontalPodAutoscalerSpecDie
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 ¶
func (d *HorizontalPodAutoscalerSpecDie) DieSealRelease() autoscalingv2.HorizontalPodAutoscalerSpec
DieSealRelease returns the sealed resource managed by the die.
func (*HorizontalPodAutoscalerSpecDie) DieSealReleasePtr ¶
func (d *HorizontalPodAutoscalerSpecDie) DieSealReleasePtr() *autoscalingv2.HorizontalPodAutoscalerSpec
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*HorizontalPodAutoscalerSpecDie) DieStamp ¶
func (d *HorizontalPodAutoscalerSpecDie) DieStamp(fn func(r *autoscalingv2.HorizontalPodAutoscalerSpec)) *HorizontalPodAutoscalerSpecDie
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 ¶
func (d *HorizontalPodAutoscalerSpecDie) DieWith(fns ...func(d *HorizontalPodAutoscalerSpecDie)) *HorizontalPodAutoscalerSpecDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*HorizontalPodAutoscalerSpecDie) MaxReplicas ¶
func (d *HorizontalPodAutoscalerSpecDie) MaxReplicas(v int32) *HorizontalPodAutoscalerSpecDie
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 ¶
func (d *HorizontalPodAutoscalerSpecDie) Metrics(v ...autoscalingv2.MetricSpec) *HorizontalPodAutoscalerSpecDie
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 ¶
func (d *HorizontalPodAutoscalerSpecDie) MetricsDie(v ...*MetricSpecDie) *HorizontalPodAutoscalerSpecDie
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 ¶
func (d *HorizontalPodAutoscalerSpecDie) MinReplicas(v *int32) *HorizontalPodAutoscalerSpecDie
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 ¶
func (d *HorizontalPodAutoscalerSpecDie) ScaleTargetRef(v autoscalingv2.CrossVersionObjectReference) *HorizontalPodAutoscalerSpecDie
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 ¶
func (d *HorizontalPodAutoscalerSpecDie) ScaleTargetRefDie(fn func(d *CrossVersionObjectReferenceDie)) *HorizontalPodAutoscalerSpecDie
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 ¶
func (d *HorizontalPodAutoscalerStatusDie) Conditions(v ...autoscalingv2.HorizontalPodAutoscalerCondition) *HorizontalPodAutoscalerStatusDie
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 (d *HorizontalPodAutoscalerStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *HorizontalPodAutoscalerStatusDie
func (*HorizontalPodAutoscalerStatusDie) CurrentMetrics ¶
func (d *HorizontalPodAutoscalerStatusDie) CurrentMetrics(v ...autoscalingv2.MetricStatus) *HorizontalPodAutoscalerStatusDie
currentMetrics is the last read state of the metrics used by this autoscaler.
func (*HorizontalPodAutoscalerStatusDie) CurrentMetricsDie ¶
func (d *HorizontalPodAutoscalerStatusDie) CurrentMetricsDie(v ...*MetricStatusDie) *HorizontalPodAutoscalerStatusDie
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 ¶
func (d *HorizontalPodAutoscalerStatusDie) CurrentReplicas(v int32) *HorizontalPodAutoscalerStatusDie
currentReplicas is current number of replicas of pods managed by this autoscaler,
as last seen by the autoscaler.
func (*HorizontalPodAutoscalerStatusDie) DeepCopy ¶
func (d *HorizontalPodAutoscalerStatusDie) DeepCopy() *HorizontalPodAutoscalerStatusDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*HorizontalPodAutoscalerStatusDie) DesiredReplicas ¶
func (d *HorizontalPodAutoscalerStatusDie) DesiredReplicas(v int32) *HorizontalPodAutoscalerStatusDie
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 ¶
func (d *HorizontalPodAutoscalerStatusDie) DieFeed(r autoscalingv2.HorizontalPodAutoscalerStatus) *HorizontalPodAutoscalerStatusDie
DieFeed returns a new die with the provided resource.
func (*HorizontalPodAutoscalerStatusDie) DieFeedJSON ¶
func (d *HorizontalPodAutoscalerStatusDie) DieFeedJSON(j []byte) *HorizontalPodAutoscalerStatusDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*HorizontalPodAutoscalerStatusDie) DieFeedPtr ¶
func (d *HorizontalPodAutoscalerStatusDie) DieFeedPtr(r *autoscalingv2.HorizontalPodAutoscalerStatus) *HorizontalPodAutoscalerStatusDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*HorizontalPodAutoscalerStatusDie) DieFeedRawExtension ¶
func (d *HorizontalPodAutoscalerStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *HorizontalPodAutoscalerStatusDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*HorizontalPodAutoscalerStatusDie) DieFeedYAML ¶
func (d *HorizontalPodAutoscalerStatusDie) DieFeedYAML(y []byte) *HorizontalPodAutoscalerStatusDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*HorizontalPodAutoscalerStatusDie) DieFeedYAMLFile ¶
func (d *HorizontalPodAutoscalerStatusDie) DieFeedYAMLFile(name string) *HorizontalPodAutoscalerStatusDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*HorizontalPodAutoscalerStatusDie) DieImmutable ¶
func (d *HorizontalPodAutoscalerStatusDie) DieImmutable(immutable bool) *HorizontalPodAutoscalerStatusDie
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 ¶
func (d *HorizontalPodAutoscalerStatusDie) DieRelease() autoscalingv2.HorizontalPodAutoscalerStatus
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 ¶
func (d *HorizontalPodAutoscalerStatusDie) DieReleasePtr() *autoscalingv2.HorizontalPodAutoscalerStatus
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 ¶
func (d *HorizontalPodAutoscalerStatusDie) DieSeal() *HorizontalPodAutoscalerStatusDie
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 ¶
func (d *HorizontalPodAutoscalerStatusDie) DieSealFeed(r autoscalingv2.HorizontalPodAutoscalerStatus) *HorizontalPodAutoscalerStatusDie
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 ¶
func (d *HorizontalPodAutoscalerStatusDie) DieSealFeedPtr(r *autoscalingv2.HorizontalPodAutoscalerStatus) *HorizontalPodAutoscalerStatusDie
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 ¶
func (d *HorizontalPodAutoscalerStatusDie) DieSealRelease() autoscalingv2.HorizontalPodAutoscalerStatus
DieSealRelease returns the sealed resource managed by the die.
func (*HorizontalPodAutoscalerStatusDie) DieSealReleasePtr ¶
func (d *HorizontalPodAutoscalerStatusDie) DieSealReleasePtr() *autoscalingv2.HorizontalPodAutoscalerStatus
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*HorizontalPodAutoscalerStatusDie) DieStamp ¶
func (d *HorizontalPodAutoscalerStatusDie) DieStamp(fn func(r *autoscalingv2.HorizontalPodAutoscalerStatus)) *HorizontalPodAutoscalerStatusDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*HorizontalPodAutoscalerStatusDie) DieStampAt ¶
func (d *HorizontalPodAutoscalerStatusDie) DieStampAt(jp string, fn interface{}) *HorizontalPodAutoscalerStatusDie
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 ¶
func (d *HorizontalPodAutoscalerStatusDie) DieWith(fns ...func(d *HorizontalPodAutoscalerStatusDie)) *HorizontalPodAutoscalerStatusDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*HorizontalPodAutoscalerStatusDie) LastScaleTime ¶
func (d *HorizontalPodAutoscalerStatusDie) LastScaleTime(v *metav1.Time) *HorizontalPodAutoscalerStatusDie
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 ¶
func (d *HorizontalPodAutoscalerStatusDie) ObservedGeneration(v *int64) *HorizontalPodAutoscalerStatusDie
observedGeneration is the most recent generation observed by this autoscaler.
type MetricIdentifierDie ¶
type MetricIdentifierDie struct {
// contains filtered or unexported fields
}
func (*MetricIdentifierDie) DeepCopy ¶
func (d *MetricIdentifierDie) DeepCopy() *MetricIdentifierDie
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 ¶
func (d *MetricIdentifierDie) DieFeed(r autoscalingv2.MetricIdentifier) *MetricIdentifierDie
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 ¶
func (d *MetricIdentifierDie) DieFeedPtr(r *autoscalingv2.MetricIdentifier) *MetricIdentifierDie
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 ¶
func (d *MetricIdentifierDie) DieRelease() autoscalingv2.MetricIdentifier
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 ¶
func (d *MetricIdentifierDie) DieReleasePtr() *autoscalingv2.MetricIdentifier
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 ¶
func (d *MetricIdentifierDie) DieSeal() *MetricIdentifierDie
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 ¶
func (d *MetricIdentifierDie) DieSealFeed(r autoscalingv2.MetricIdentifier) *MetricIdentifierDie
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 ¶
func (d *MetricIdentifierDie) DieSealFeedPtr(r *autoscalingv2.MetricIdentifier) *MetricIdentifierDie
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 ¶
func (d *MetricIdentifierDie) DieSealRelease() autoscalingv2.MetricIdentifier
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 ¶
func (d *MetricIdentifierDie) DieStamp(fn func(r *autoscalingv2.MetricIdentifier)) *MetricIdentifierDie
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 ¶
func (d *MetricIdentifierDie) Name(v string) *MetricIdentifierDie
name is the name of the given metric
func (*MetricIdentifierDie) Selector ¶
func (d *MetricIdentifierDie) Selector(v *metav1.LabelSelector) *MetricIdentifierDie
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 ¶
func (d *MetricSpecDie) ContainerResource(v *autoscalingv2.ContainerResourceMetricSource) *MetricSpecDie
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 ¶
func (d *MetricSpecDie) DieFeed(r autoscalingv2.MetricSpec) *MetricSpecDie
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 ¶
func (d *MetricSpecDie) DieFeedPtr(r *autoscalingv2.MetricSpec) *MetricSpecDie
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 ¶
func (d *MetricSpecDie) DieSealFeed(r autoscalingv2.MetricSpec) *MetricSpecDie
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 ¶
func (d *MetricSpecDie) External(v *autoscalingv2.ExternalMetricSource) *MetricSpecDie
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 ¶
func (d *MetricSpecDie) Object(v *autoscalingv2.ObjectMetricSource) *MetricSpecDie
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 ¶
func (d *MetricSpecDie) Pods(v *autoscalingv2.PodsMetricSource) *MetricSpecDie
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 ¶
func (d *MetricSpecDie) Resource(v *autoscalingv2.ResourceMetricSource) *MetricSpecDie
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 ¶
func (d *MetricSpecDie) Type(v autoscalingv2.MetricSourceType) *MetricSpecDie
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 ¶
func (d *MetricStatusDie) ContainerResource(v *autoscalingv2.ContainerResourceMetricStatus) *MetricStatusDie
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 ¶
func (d *MetricStatusDie) DieFeed(r autoscalingv2.MetricStatus) *MetricStatusDie
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 ¶
func (d *MetricStatusDie) DieFeedPtr(r *autoscalingv2.MetricStatus) *MetricStatusDie
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 ¶
func (d *MetricStatusDie) DieSealFeed(r autoscalingv2.MetricStatus) *MetricStatusDie
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 ¶
func (d *MetricStatusDie) DieSealFeedPtr(r *autoscalingv2.MetricStatus) *MetricStatusDie
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 ¶
func (d *MetricStatusDie) External(v *autoscalingv2.ExternalMetricStatus) *MetricStatusDie
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 ¶
func (d *MetricStatusDie) Object(v *autoscalingv2.ObjectMetricStatus) *MetricStatusDie
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 ¶
func (d *MetricStatusDie) Pods(v *autoscalingv2.PodsMetricStatus) *MetricStatusDie
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 ¶
func (d *MetricStatusDie) Resource(v *autoscalingv2.ResourceMetricStatus) *MetricStatusDie
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 ¶
func (d *MetricStatusDie) Type(v autoscalingv2.MetricSourceType) *MetricStatusDie
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 ¶
func (d *MetricTargetDie) DieFeed(r autoscalingv2.MetricTarget) *MetricTargetDie
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 ¶
func (d *MetricTargetDie) DieFeedPtr(r *autoscalingv2.MetricTarget) *MetricTargetDie
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 ¶
func (d *MetricTargetDie) DieSealFeed(r autoscalingv2.MetricTarget) *MetricTargetDie
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 ¶
func (d *MetricTargetDie) DieSealFeedPtr(r *autoscalingv2.MetricTarget) *MetricTargetDie
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 ¶
func (d *MetricTargetDie) Type(v autoscalingv2.MetricTargetType) *MetricTargetDie
type represents whether the metric type is Utilization, Value, or AverageValue
func (*MetricTargetDie) Value ¶
func (d *MetricTargetDie) Value(v *resource.Quantity) *MetricTargetDie
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 ¶
func (d *MetricValueStatusDie) AverageValue(v *resource.Quantity) *MetricValueStatusDie
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 ¶
func (d *MetricValueStatusDie) DeepCopy() *MetricValueStatusDie
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 ¶
func (d *MetricValueStatusDie) DieFeed(r autoscalingv2.MetricValueStatus) *MetricValueStatusDie
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 ¶
func (d *MetricValueStatusDie) DieFeedPtr(r *autoscalingv2.MetricValueStatus) *MetricValueStatusDie
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 ¶
func (d *MetricValueStatusDie) DieRelease() autoscalingv2.MetricValueStatus
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 ¶
func (d *MetricValueStatusDie) DieReleasePtr() *autoscalingv2.MetricValueStatus
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 ¶
func (d *MetricValueStatusDie) DieSeal() *MetricValueStatusDie
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 ¶
func (d *MetricValueStatusDie) DieSealFeed(r autoscalingv2.MetricValueStatus) *MetricValueStatusDie
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 ¶
func (d *MetricValueStatusDie) DieSealFeedPtr(r *autoscalingv2.MetricValueStatus) *MetricValueStatusDie
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 ¶
func (d *MetricValueStatusDie) DieSealRelease() autoscalingv2.MetricValueStatus
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 ¶
func (d *MetricValueStatusDie) DieStamp(fn func(r *autoscalingv2.MetricValueStatus)) *MetricValueStatusDie
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 ¶
func (d *MetricValueStatusDie) Value(v *resource.Quantity) *MetricValueStatusDie
value is the current value of the metric (as a quantity).
func (*MetricValueStatusDie) ValueString ¶
func (d *MetricValueStatusDie) ValueString(s string) *MetricValueStatusDie
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 ¶
func (d *ObjectMetricSourceDie) DeepCopy() *ObjectMetricSourceDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ObjectMetricSourceDie) DescribedObject ¶
func (d *ObjectMetricSourceDie) DescribedObject(v autoscalingv2.CrossVersionObjectReference) *ObjectMetricSourceDie
describedObject specifies the descriptions of a object,such as kind,name apiVersion
func (*ObjectMetricSourceDie) DescribedObjectDie ¶
func (d *ObjectMetricSourceDie) DescribedObjectDie(fn func(d *CrossVersionObjectReferenceDie)) *ObjectMetricSourceDie
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 ¶
func (d *ObjectMetricSourceDie) DieFeed(r autoscalingv2.ObjectMetricSource) *ObjectMetricSourceDie
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 ¶
func (d *ObjectMetricSourceDie) DieFeedPtr(r *autoscalingv2.ObjectMetricSource) *ObjectMetricSourceDie
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 ¶
func (d *ObjectMetricSourceDie) DieRelease() autoscalingv2.ObjectMetricSource
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 ¶
func (d *ObjectMetricSourceDie) DieReleasePtr() *autoscalingv2.ObjectMetricSource
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 ¶
func (d *ObjectMetricSourceDie) DieSeal() *ObjectMetricSourceDie
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 ¶
func (d *ObjectMetricSourceDie) DieSealFeed(r autoscalingv2.ObjectMetricSource) *ObjectMetricSourceDie
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 ¶
func (d *ObjectMetricSourceDie) DieSealFeedPtr(r *autoscalingv2.ObjectMetricSource) *ObjectMetricSourceDie
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 ¶
func (d *ObjectMetricSourceDie) DieSealRelease() autoscalingv2.ObjectMetricSource
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 ¶
func (d *ObjectMetricSourceDie) DieStamp(fn func(r *autoscalingv2.ObjectMetricSource)) *ObjectMetricSourceDie
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 ¶
func (d *ObjectMetricSourceDie) DieWith(fns ...func(d *ObjectMetricSourceDie)) *ObjectMetricSourceDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ObjectMetricSourceDie) Metric ¶
func (d *ObjectMetricSourceDie) Metric(v autoscalingv2.MetricIdentifier) *ObjectMetricSourceDie
metric identifies the target metric by name and selector
func (*ObjectMetricSourceDie) MetricDie ¶
func (d *ObjectMetricSourceDie) MetricDie(fn func(d *MetricIdentifierDie)) *ObjectMetricSourceDie
MetricDie mutates Metric as a die.
metric identifies the target metric by name and selector
func (*ObjectMetricSourceDie) Target ¶
func (d *ObjectMetricSourceDie) Target(v autoscalingv2.MetricTarget) *ObjectMetricSourceDie
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 ¶
func (d *ObjectMetricStatusDie) Current(v autoscalingv2.MetricValueStatus) *ObjectMetricStatusDie
current contains the current value for the given metric
func (*ObjectMetricStatusDie) CurrentDie ¶
func (d *ObjectMetricStatusDie) CurrentDie(fn func(d *MetricValueStatusDie)) *ObjectMetricStatusDie
CurrentDie mutates Current as a die.
current contains the current value for the given metric
func (*ObjectMetricStatusDie) DeepCopy ¶
func (d *ObjectMetricStatusDie) DeepCopy() *ObjectMetricStatusDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ObjectMetricStatusDie) DescribedObject ¶
func (d *ObjectMetricStatusDie) DescribedObject(v autoscalingv2.CrossVersionObjectReference) *ObjectMetricStatusDie
DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
func (*ObjectMetricStatusDie) DescribedObjectDie ¶
func (d *ObjectMetricStatusDie) DescribedObjectDie(fn func(d *CrossVersionObjectReferenceDie)) *ObjectMetricStatusDie
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 ¶
func (d *ObjectMetricStatusDie) DieFeed(r autoscalingv2.ObjectMetricStatus) *ObjectMetricStatusDie
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 ¶
func (d *ObjectMetricStatusDie) DieFeedPtr(r *autoscalingv2.ObjectMetricStatus) *ObjectMetricStatusDie
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 ¶
func (d *ObjectMetricStatusDie) DieRelease() autoscalingv2.ObjectMetricStatus
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 ¶
func (d *ObjectMetricStatusDie) DieReleasePtr() *autoscalingv2.ObjectMetricStatus
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 ¶
func (d *ObjectMetricStatusDie) DieSeal() *ObjectMetricStatusDie
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 ¶
func (d *ObjectMetricStatusDie) DieSealFeed(r autoscalingv2.ObjectMetricStatus) *ObjectMetricStatusDie
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 ¶
func (d *ObjectMetricStatusDie) DieSealFeedPtr(r *autoscalingv2.ObjectMetricStatus) *ObjectMetricStatusDie
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 ¶
func (d *ObjectMetricStatusDie) DieSealRelease() autoscalingv2.ObjectMetricStatus
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 ¶
func (d *ObjectMetricStatusDie) DieStamp(fn func(r *autoscalingv2.ObjectMetricStatus)) *ObjectMetricStatusDie
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 ¶
func (d *ObjectMetricStatusDie) DieWith(fns ...func(d *ObjectMetricStatusDie)) *ObjectMetricStatusDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ObjectMetricStatusDie) Metric ¶
func (d *ObjectMetricStatusDie) Metric(v autoscalingv2.MetricIdentifier) *ObjectMetricStatusDie
metric identifies the target metric by name and selector
func (*ObjectMetricStatusDie) MetricDie ¶
func (d *ObjectMetricStatusDie) MetricDie(fn func(d *MetricIdentifierDie)) *ObjectMetricStatusDie
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 ¶
func (d *PodsMetricSourceDie) DeepCopy() *PodsMetricSourceDie
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 ¶
func (d *PodsMetricSourceDie) DieFeed(r autoscalingv2.PodsMetricSource) *PodsMetricSourceDie
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 ¶
func (d *PodsMetricSourceDie) DieFeedPtr(r *autoscalingv2.PodsMetricSource) *PodsMetricSourceDie
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 ¶
func (d *PodsMetricSourceDie) DieRelease() autoscalingv2.PodsMetricSource
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 ¶
func (d *PodsMetricSourceDie) DieReleasePtr() *autoscalingv2.PodsMetricSource
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 ¶
func (d *PodsMetricSourceDie) DieSeal() *PodsMetricSourceDie
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 ¶
func (d *PodsMetricSourceDie) DieSealFeed(r autoscalingv2.PodsMetricSource) *PodsMetricSourceDie
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 ¶
func (d *PodsMetricSourceDie) DieSealFeedPtr(r *autoscalingv2.PodsMetricSource) *PodsMetricSourceDie
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 ¶
func (d *PodsMetricSourceDie) DieSealRelease() autoscalingv2.PodsMetricSource
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 ¶
func (d *PodsMetricSourceDie) DieStamp(fn func(r *autoscalingv2.PodsMetricSource)) *PodsMetricSourceDie
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 ¶
func (d *PodsMetricSourceDie) Metric(v autoscalingv2.MetricIdentifier) *PodsMetricSourceDie
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 ¶
func (d *PodsMetricSourceDie) Target(v autoscalingv2.MetricTarget) *PodsMetricSourceDie
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 ¶
func (d *PodsMetricStatusDie) Current(v autoscalingv2.MetricValueStatus) *PodsMetricStatusDie
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 ¶
func (d *PodsMetricStatusDie) DeepCopy() *PodsMetricStatusDie
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 ¶
func (d *PodsMetricStatusDie) DieFeed(r autoscalingv2.PodsMetricStatus) *PodsMetricStatusDie
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 ¶
func (d *PodsMetricStatusDie) DieFeedPtr(r *autoscalingv2.PodsMetricStatus) *PodsMetricStatusDie
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 ¶
func (d *PodsMetricStatusDie) DieRelease() autoscalingv2.PodsMetricStatus
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 ¶
func (d *PodsMetricStatusDie) DieReleasePtr() *autoscalingv2.PodsMetricStatus
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 ¶
func (d *PodsMetricStatusDie) DieSeal() *PodsMetricStatusDie
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 ¶
func (d *PodsMetricStatusDie) DieSealFeed(r autoscalingv2.PodsMetricStatus) *PodsMetricStatusDie
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 ¶
func (d *PodsMetricStatusDie) DieSealFeedPtr(r *autoscalingv2.PodsMetricStatus) *PodsMetricStatusDie
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 ¶
func (d *PodsMetricStatusDie) DieSealRelease() autoscalingv2.PodsMetricStatus
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 ¶
func (d *PodsMetricStatusDie) DieStamp(fn func(r *autoscalingv2.PodsMetricStatus)) *PodsMetricStatusDie
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 ¶
func (d *PodsMetricStatusDie) Metric(v autoscalingv2.MetricIdentifier) *PodsMetricStatusDie
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 ¶
func (d *ResourceMetricSourceDie) DeepCopy() *ResourceMetricSourceDie
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 ¶
func (d *ResourceMetricSourceDie) DieFeed(r autoscalingv2.ResourceMetricSource) *ResourceMetricSourceDie
DieFeed returns a new die with the provided resource.
func (*ResourceMetricSourceDie) DieFeedJSON ¶
func (d *ResourceMetricSourceDie) DieFeedJSON(j []byte) *ResourceMetricSourceDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ResourceMetricSourceDie) DieFeedPtr ¶
func (d *ResourceMetricSourceDie) DieFeedPtr(r *autoscalingv2.ResourceMetricSource) *ResourceMetricSourceDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ResourceMetricSourceDie) DieFeedRawExtension ¶
func (d *ResourceMetricSourceDie) DieFeedRawExtension(raw runtime.RawExtension) *ResourceMetricSourceDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ResourceMetricSourceDie) DieFeedYAML ¶
func (d *ResourceMetricSourceDie) DieFeedYAML(y []byte) *ResourceMetricSourceDie
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 ¶
func (d *ResourceMetricSourceDie) DieRelease() autoscalingv2.ResourceMetricSource
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 ¶
func (d *ResourceMetricSourceDie) DieReleasePtr() *autoscalingv2.ResourceMetricSource
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 ¶
func (d *ResourceMetricSourceDie) DieSeal() *ResourceMetricSourceDie
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 ¶
func (d *ResourceMetricSourceDie) DieSealFeed(r autoscalingv2.ResourceMetricSource) *ResourceMetricSourceDie
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 ¶
func (d *ResourceMetricSourceDie) DieSealFeedPtr(r *autoscalingv2.ResourceMetricSource) *ResourceMetricSourceDie
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 ¶
func (d *ResourceMetricSourceDie) DieSealRelease() autoscalingv2.ResourceMetricSource
DieSealRelease returns the sealed resource managed by the die.
func (*ResourceMetricSourceDie) DieSealReleasePtr ¶
func (d *ResourceMetricSourceDie) DieSealReleasePtr() *autoscalingv2.ResourceMetricSource
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ResourceMetricSourceDie) DieStamp ¶
func (d *ResourceMetricSourceDie) DieStamp(fn func(r *autoscalingv2.ResourceMetricSource)) *ResourceMetricSourceDie
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 ¶
func (d *ResourceMetricSourceDie) DieWith(fns ...func(d *ResourceMetricSourceDie)) *ResourceMetricSourceDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ResourceMetricSourceDie) Name ¶
func (d *ResourceMetricSourceDie) Name(v corev1.ResourceName) *ResourceMetricSourceDie
name is the name of the resource in question.
func (*ResourceMetricSourceDie) Target ¶
func (d *ResourceMetricSourceDie) Target(v autoscalingv2.MetricTarget) *ResourceMetricSourceDie
target specifies the target value for the given metric
func (*ResourceMetricSourceDie) TargetDie ¶
func (d *ResourceMetricSourceDie) TargetDie(fn func(d *MetricTargetDie)) *ResourceMetricSourceDie
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 ¶
func (d *ResourceMetricStatusDie) Current(v autoscalingv2.MetricValueStatus) *ResourceMetricStatusDie
current contains the current value for the given metric
func (*ResourceMetricStatusDie) CurrentDie ¶
func (d *ResourceMetricStatusDie) CurrentDie(fn func(d *MetricValueStatusDie)) *ResourceMetricStatusDie
CurrentDie mutates Current as a die.
current contains the current value for the given metric
func (*ResourceMetricStatusDie) DeepCopy ¶
func (d *ResourceMetricStatusDie) DeepCopy() *ResourceMetricStatusDie
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 ¶
func (d *ResourceMetricStatusDie) DieFeed(r autoscalingv2.ResourceMetricStatus) *ResourceMetricStatusDie
DieFeed returns a new die with the provided resource.
func (*ResourceMetricStatusDie) DieFeedJSON ¶
func (d *ResourceMetricStatusDie) DieFeedJSON(j []byte) *ResourceMetricStatusDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ResourceMetricStatusDie) DieFeedPtr ¶
func (d *ResourceMetricStatusDie) DieFeedPtr(r *autoscalingv2.ResourceMetricStatus) *ResourceMetricStatusDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ResourceMetricStatusDie) DieFeedRawExtension ¶
func (d *ResourceMetricStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *ResourceMetricStatusDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ResourceMetricStatusDie) DieFeedYAML ¶
func (d *ResourceMetricStatusDie) DieFeedYAML(y []byte) *ResourceMetricStatusDie
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 ¶
func (d *ResourceMetricStatusDie) DieRelease() autoscalingv2.ResourceMetricStatus
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 ¶
func (d *ResourceMetricStatusDie) DieReleasePtr() *autoscalingv2.ResourceMetricStatus
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 ¶
func (d *ResourceMetricStatusDie) DieSeal() *ResourceMetricStatusDie
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 ¶
func (d *ResourceMetricStatusDie) DieSealFeed(r autoscalingv2.ResourceMetricStatus) *ResourceMetricStatusDie
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 ¶
func (d *ResourceMetricStatusDie) DieSealFeedPtr(r *autoscalingv2.ResourceMetricStatus) *ResourceMetricStatusDie
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 ¶
func (d *ResourceMetricStatusDie) DieSealRelease() autoscalingv2.ResourceMetricStatus
DieSealRelease returns the sealed resource managed by the die.
func (*ResourceMetricStatusDie) DieSealReleasePtr ¶
func (d *ResourceMetricStatusDie) DieSealReleasePtr() *autoscalingv2.ResourceMetricStatus
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ResourceMetricStatusDie) DieStamp ¶
func (d *ResourceMetricStatusDie) DieStamp(fn func(r *autoscalingv2.ResourceMetricStatus)) *ResourceMetricStatusDie
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 ¶
func (d *ResourceMetricStatusDie) DieWith(fns ...func(d *ResourceMetricStatusDie)) *ResourceMetricStatusDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ResourceMetricStatusDie) Name ¶
func (d *ResourceMetricStatusDie) Name(v corev1.ResourceName) *ResourceMetricStatusDie
name is the name of the resource in question.