v1

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CrossVersionObjectReferenceBlank = (&CrossVersionObjectReferenceDie{}).DieFeed(autoscalingv1.CrossVersionObjectReference{})
View Source
var HorizontalPodAutoscalerBlank = (&HorizontalPodAutoscalerDie{}).DieFeed(autoscalingv1.HorizontalPodAutoscaler{})
View Source
var HorizontalPodAutoscalerSpecBlank = (&HorizontalPodAutoscalerSpecDie{}).DieFeed(autoscalingv1.HorizontalPodAutoscalerSpec{})
View Source
var HorizontalPodAutoscalerStatusBlank = (&HorizontalPodAutoscalerStatusDie{}).DieFeed(autoscalingv1.HorizontalPodAutoscalerStatus{})

Functions

This section is empty.

Types

type CrossVersionObjectReferenceDie

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

func (*CrossVersionObjectReferenceDie) APIVersion

apiVersion is the API version of the referent

func (*CrossVersionObjectReferenceDie) DeepCopy

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

func (*CrossVersionObjectReferenceDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*CrossVersionObjectReferenceDie) DieFeedJSON added in v0.8.0

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

func (*CrossVersionObjectReferenceDie) DieFeedPtr

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

func (*CrossVersionObjectReferenceDie) DieFeedRawExtension added in v0.5.0

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

func (*CrossVersionObjectReferenceDie) DieFeedYAML added in v0.8.0

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

func (*CrossVersionObjectReferenceDie) DieFeedYAMLFile added in v0.8.0

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

func (*CrossVersionObjectReferenceDie) DieImmutable

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

func (*CrossVersionObjectReferenceDie) DieRelease

DieRelease returns the resource managed by the die.

func (*CrossVersionObjectReferenceDie) DieReleaseJSON added in v0.8.0

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

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

func (*CrossVersionObjectReferenceDie) DieReleasePtr

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

func (*CrossVersionObjectReferenceDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*CrossVersionObjectReferenceDie) DieReleaseYAML added in v0.8.0

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

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

func (*CrossVersionObjectReferenceDie) DieStamp

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

func (*CrossVersionObjectReferenceDie) DieStampAt added in v0.8.0

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 added in v0.9.0

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

func (*CrossVersionObjectReferenceDie) Name

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

type HorizontalPodAutoscalerDie

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

func (*HorizontalPodAutoscalerDie) APIVersion added in v0.5.0

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

func (*HorizontalPodAutoscalerDie) DeepCopy

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

func (*HorizontalPodAutoscalerDie) DeepCopyObject

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

func (*HorizontalPodAutoscalerDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*HorizontalPodAutoscalerDie) DieFeedJSON added in v0.8.0

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

func (*HorizontalPodAutoscalerDie) DieFeedPtr

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

func (*HorizontalPodAutoscalerDie) DieFeedRawExtension added in v0.5.0

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

func (*HorizontalPodAutoscalerDie) DieFeedYAML added in v0.8.0

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

func (*HorizontalPodAutoscalerDie) DieFeedYAMLFile added in v0.8.0

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

DieRelease returns the resource managed by the die.

func (*HorizontalPodAutoscalerDie) DieReleaseJSON added in v0.8.0

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

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

func (*HorizontalPodAutoscalerDie) DieReleasePtr

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

func (*HorizontalPodAutoscalerDie) DieReleaseRawExtension added in v0.5.0

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 added in v0.8.0

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

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

func (*HorizontalPodAutoscalerDie) DieStamp

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

func (*HorizontalPodAutoscalerDie) DieStampAt added in v0.8.0

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 added in v0.9.0

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 added in v0.5.0

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

func (*HorizontalPodAutoscalerDie) MarshalJSON

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

func (*HorizontalPodAutoscalerDie) MetadataDie

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

func (*HorizontalPodAutoscalerDie) SpecDie

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

func (*HorizontalPodAutoscalerDie) Status

status is the current information about the autoscaler.

func (*HorizontalPodAutoscalerDie) StatusDie

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

func (*HorizontalPodAutoscalerDie) UnmarshalJSON

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

type HorizontalPodAutoscalerSpecDie

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

func (*HorizontalPodAutoscalerSpecDie) DeepCopy

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

func (*HorizontalPodAutoscalerSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*HorizontalPodAutoscalerSpecDie) DieFeedJSON added in v0.8.0

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

func (*HorizontalPodAutoscalerSpecDie) DieFeedPtr

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

func (*HorizontalPodAutoscalerSpecDie) DieFeedRawExtension added in v0.5.0

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

func (*HorizontalPodAutoscalerSpecDie) DieFeedYAML added in v0.8.0

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

func (*HorizontalPodAutoscalerSpecDie) DieFeedYAMLFile added in v0.8.0

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

func (*HorizontalPodAutoscalerSpecDie) DieImmutable

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

func (*HorizontalPodAutoscalerSpecDie) DieRelease

DieRelease returns the resource managed by the die.

func (*HorizontalPodAutoscalerSpecDie) DieReleaseJSON added in v0.8.0

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

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

func (*HorizontalPodAutoscalerSpecDie) DieReleasePtr

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

func (*HorizontalPodAutoscalerSpecDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*HorizontalPodAutoscalerSpecDie) DieReleaseYAML added in v0.8.0

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

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

func (*HorizontalPodAutoscalerSpecDie) DieStamp

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

func (*HorizontalPodAutoscalerSpecDie) DieStampAt added in v0.8.0

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 added in v0.9.0

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

func (*HorizontalPodAutoscalerSpecDie) MaxReplicas

maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.

func (*HorizontalPodAutoscalerSpecDie) MinReplicas

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

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

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

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

available.

func (*HorizontalPodAutoscalerSpecDie) ScaleTargetRef

reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption

and will set the desired number of pods by using its Scale subresource.

func (*HorizontalPodAutoscalerSpecDie) ScaleTargetRefDie

func (*HorizontalPodAutoscalerSpecDie) TargetCPUUtilizationPercentage

func (d *HorizontalPodAutoscalerSpecDie) TargetCPUUtilizationPercentage(v *int32) *HorizontalPodAutoscalerSpecDie

targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods;

if not specified the default autoscaling policy will be used.

type HorizontalPodAutoscalerStatusDie

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

func (*HorizontalPodAutoscalerStatusDie) CurrentCPUUtilizationPercentage

func (d *HorizontalPodAutoscalerStatusDie) CurrentCPUUtilizationPercentage(v *int32) *HorizontalPodAutoscalerStatusDie

currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU,

e.g. 70 means that an average pod is using now 70% of its requested CPU.

func (*HorizontalPodAutoscalerStatusDie) CurrentReplicas

currentReplicas is the current number of replicas of pods managed by this autoscaler.

func (*HorizontalPodAutoscalerStatusDie) DeepCopy

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

func (*HorizontalPodAutoscalerStatusDie) DesiredReplicas

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

func (*HorizontalPodAutoscalerStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*HorizontalPodAutoscalerStatusDie) DieFeedJSON added in v0.8.0

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

func (*HorizontalPodAutoscalerStatusDie) DieFeedPtr

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

func (*HorizontalPodAutoscalerStatusDie) DieFeedRawExtension added in v0.5.0

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

func (*HorizontalPodAutoscalerStatusDie) DieFeedYAML added in v0.8.0

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

func (*HorizontalPodAutoscalerStatusDie) DieFeedYAMLFile added in v0.8.0

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

func (*HorizontalPodAutoscalerStatusDie) DieImmutable

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

func (*HorizontalPodAutoscalerStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*HorizontalPodAutoscalerStatusDie) DieReleaseJSON added in v0.8.0

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

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

func (*HorizontalPodAutoscalerStatusDie) DieReleasePtr

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

func (*HorizontalPodAutoscalerStatusDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*HorizontalPodAutoscalerStatusDie) DieReleaseYAML added in v0.8.0

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

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

func (*HorizontalPodAutoscalerStatusDie) DieStamp

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

func (*HorizontalPodAutoscalerStatusDie) DieStampAt added in v0.8.0

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 added in v0.9.0

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

func (*HorizontalPodAutoscalerStatusDie) LastScaleTime

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

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

func (*HorizontalPodAutoscalerStatusDie) ObservedGeneration

observedGeneration is the most recent generation observed by this autoscaler.

Jump to

Keyboard shortcuts

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