Documentation
¶
Index ¶
- Variables
- type CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) APIVersion(v string) *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) DeepCopy() *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) DieFeed(r autoscalingv1.CrossVersionObjectReference) *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) DieFeedJSON(j []byte) *CrossVersionObjectReferenceDie
- func (d *CrossVersionObjectReferenceDie) DieFeedPtr(r *autoscalingv1.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) DieRelease() autoscalingv1.CrossVersionObjectReference
- func (d *CrossVersionObjectReferenceDie) DieReleaseJSON() []byte
- func (d *CrossVersionObjectReferenceDie) DieReleasePtr() *autoscalingv1.CrossVersionObjectReference
- func (d *CrossVersionObjectReferenceDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CrossVersionObjectReferenceDie) DieReleaseYAML() []byte
- func (d *CrossVersionObjectReferenceDie) DieStamp(fn func(r *autoscalingv1.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 HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) APIVersion(v string) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) DeepCopy() *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) DeepCopyObject() runtime.Object
- func (d *HorizontalPodAutoscalerDie) DieFeed(r autoscalingv1.HorizontalPodAutoscaler) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) DieFeedJSON(j []byte) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) DieFeedPtr(r *autoscalingv1.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) DieRelease() autoscalingv1.HorizontalPodAutoscaler
- func (d *HorizontalPodAutoscalerDie) DieReleaseJSON() []byte
- func (d *HorizontalPodAutoscalerDie) DieReleasePtr() *autoscalingv1.HorizontalPodAutoscaler
- func (d *HorizontalPodAutoscalerDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *HorizontalPodAutoscalerDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *HorizontalPodAutoscalerDie) DieReleaseYAML() []byte
- func (d *HorizontalPodAutoscalerDie) DieStamp(fn func(r *autoscalingv1.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) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) Spec(v autoscalingv1.HorizontalPodAutoscalerSpec) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) SpecDie(fn func(d *HorizontalPodAutoscalerSpecDie)) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) Status(v autoscalingv1.HorizontalPodAutoscalerStatus) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) StatusDie(fn func(d *HorizontalPodAutoscalerStatusDie)) *HorizontalPodAutoscalerDie
- func (d *HorizontalPodAutoscalerDie) UnmarshalJSON(b []byte) error
- type HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) DeepCopy() *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) DieFeed(r autoscalingv1.HorizontalPodAutoscalerSpec) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) DieFeedJSON(j []byte) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) DieFeedPtr(r *autoscalingv1.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) DieRelease() autoscalingv1.HorizontalPodAutoscalerSpec
- func (d *HorizontalPodAutoscalerSpecDie) DieReleaseJSON() []byte
- func (d *HorizontalPodAutoscalerSpecDie) DieReleasePtr() *autoscalingv1.HorizontalPodAutoscalerSpec
- func (d *HorizontalPodAutoscalerSpecDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *HorizontalPodAutoscalerSpecDie) DieReleaseYAML() []byte
- func (d *HorizontalPodAutoscalerSpecDie) DieStamp(fn func(r *autoscalingv1.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) MinReplicas(v *int32) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) ScaleTargetRef(v autoscalingv1.CrossVersionObjectReference) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) ScaleTargetRefDie(fn func(d *CrossVersionObjectReferenceDie)) *HorizontalPodAutoscalerSpecDie
- func (d *HorizontalPodAutoscalerSpecDie) TargetCPUUtilizationPercentage(v *int32) *HorizontalPodAutoscalerSpecDie
- type HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) CurrentCPUUtilizationPercentage(v *int32) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) CurrentReplicas(v int32) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DeepCopy() *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DesiredReplicas(v int32) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DieFeed(r autoscalingv1.HorizontalPodAutoscalerStatus) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DieFeedJSON(j []byte) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) DieFeedPtr(r *autoscalingv1.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) DieRelease() autoscalingv1.HorizontalPodAutoscalerStatus
- func (d *HorizontalPodAutoscalerStatusDie) DieReleaseJSON() []byte
- func (d *HorizontalPodAutoscalerStatusDie) DieReleasePtr() *autoscalingv1.HorizontalPodAutoscalerStatus
- func (d *HorizontalPodAutoscalerStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *HorizontalPodAutoscalerStatusDie) DieReleaseYAML() []byte
- func (d *HorizontalPodAutoscalerStatusDie) DieStamp(fn func(r *autoscalingv1.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 *apismetav1.Time) *HorizontalPodAutoscalerStatusDie
- func (d *HorizontalPodAutoscalerStatusDie) ObservedGeneration(v *int64) *HorizontalPodAutoscalerStatusDie
Constants ¶
This section is empty.
Variables ¶
var CrossVersionObjectReferenceBlank = (&CrossVersionObjectReferenceDie{}).DieFeed(autoscalingv1.CrossVersionObjectReference{})
var HorizontalPodAutoscalerBlank = (&HorizontalPodAutoscalerDie{}).DieFeed(autoscalingv1.HorizontalPodAutoscaler{})
var HorizontalPodAutoscalerSpecBlank = (&HorizontalPodAutoscalerSpecDie{}).DieFeed(autoscalingv1.HorizontalPodAutoscalerSpec{})
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 ¶
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) DieFeed ¶
func (d *CrossVersionObjectReferenceDie) DieFeed(r autoscalingv1.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 *autoscalingv1.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) DieRelease ¶
func (d *CrossVersionObjectReferenceDie) DieRelease() autoscalingv1.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() *autoscalingv1.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) DieStamp ¶
func (d *CrossVersionObjectReferenceDie) DieStamp(fn func(r *autoscalingv1.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 HorizontalPodAutoscalerDie ¶
type HorizontalPodAutoscalerDie struct { metav1.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) DieFeed ¶
func (d *HorizontalPodAutoscalerDie) DieFeed(r autoscalingv1.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 *autoscalingv1.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) DieRelease ¶
func (d *HorizontalPodAutoscalerDie) DieRelease() autoscalingv1.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() *autoscalingv1.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) DieStamp ¶
func (d *HorizontalPodAutoscalerDie) DieStamp(fn func(r *autoscalingv1.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) MetadataDie ¶
func (d *HorizontalPodAutoscalerDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *HorizontalPodAutoscalerDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*HorizontalPodAutoscalerDie) Spec ¶
func (d *HorizontalPodAutoscalerDie) Spec(v autoscalingv1.HorizontalPodAutoscalerSpec) *HorizontalPodAutoscalerDie
spec defines the behaviour of 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 autoscalingv1.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) UnmarshalJSON ¶
func (d *HorizontalPodAutoscalerDie) UnmarshalJSON(b []byte) error
type HorizontalPodAutoscalerSpecDie ¶
type HorizontalPodAutoscalerSpecDie struct {
// contains filtered or unexported fields
}
func (*HorizontalPodAutoscalerSpecDie) DeepCopy ¶
func (d *HorizontalPodAutoscalerSpecDie) DeepCopy() *HorizontalPodAutoscalerSpecDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*HorizontalPodAutoscalerSpecDie) DieFeed ¶
func (d *HorizontalPodAutoscalerSpecDie) DieFeed(r autoscalingv1.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 *autoscalingv1.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) DieRelease ¶
func (d *HorizontalPodAutoscalerSpecDie) DieRelease() autoscalingv1.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() *autoscalingv1.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) DieStamp ¶
func (d *HorizontalPodAutoscalerSpecDie) DieStamp(fn func(r *autoscalingv1.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 pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
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 autoscalingv1.CrossVersionObjectReference) *HorizontalPodAutoscalerSpecDie
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 (d *HorizontalPodAutoscalerSpecDie) ScaleTargetRefDie(fn func(d *CrossVersionObjectReferenceDie)) *HorizontalPodAutoscalerSpecDie
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 ¶
func (d *HorizontalPodAutoscalerStatusDie) CurrentReplicas(v int32) *HorizontalPodAutoscalerStatusDie
currentReplicas is the current number of replicas of pods managed by this 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.
func (*HorizontalPodAutoscalerStatusDie) DieFeed ¶
func (d *HorizontalPodAutoscalerStatusDie) DieFeed(r autoscalingv1.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 *autoscalingv1.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) DieRelease ¶
func (d *HorizontalPodAutoscalerStatusDie) DieRelease() autoscalingv1.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() *autoscalingv1.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) DieStamp ¶
func (d *HorizontalPodAutoscalerStatusDie) DieStamp(fn func(r *autoscalingv1.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 *apismetav1.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.