Documentation ¶
Index ¶
- type AutoscalerClient
- type HPAClient
- func (hc *HPAClient) CreateOrUpdateAutoscaler(ctx context.Context, workload client.Object, labels map[string]string, ...) (string, error)
- func (hc *HPAClient) DeleteAutoscaler(ctx context.Context, obj client.Object) error
- func (hc *HPAClient) GetList(ctx context.Context, labelSelector labels.Selector, namespace string, ...) ([]client.Object, error)
- func (hc *HPAClient) GetMaxReplicaCount(obj client.Object) int32
- func (hc *HPAClient) GetName() string
- func (hc *HPAClient) GetScaleTargetName(obj client.Object) string
- func (hc *HPAClient) GetType() client.Object
- type HPAClientV2
- func (hc *HPAClientV2) CreateOrUpdateAutoscaler(ctx context.Context, workload client.Object, labels map[string]string, ...) (string, error)
- func (hc *HPAClientV2) DeleteAutoscaler(ctx context.Context, obj client.Object) error
- func (hc *HPAClientV2) GetList(ctx context.Context, labelSelector labels.Selector, namespace string, ...) ([]client.Object, error)
- func (hc *HPAClientV2) GetMaxReplicaCount(obj client.Object) int32
- func (hc *HPAClientV2) GetName() string
- func (hc *HPAClientV2) GetScaleTargetName(obj client.Object) string
- func (hc *HPAClientV2) GetType() client.Object
- type ScaledobjectClient
- func (soc *ScaledobjectClient) CreateOrUpdateAutoscaler(ctx context.Context, workload client.Object, labels map[string]string, ...) (string, error)
- func (soc *ScaledobjectClient) DeleteAutoscaler(ctx context.Context, obj client.Object) error
- func (soc *ScaledobjectClient) GetList(ctx context.Context, labelSelector labels.Selector, namespace string, ...) ([]client.Object, error)
- func (soc *ScaledobjectClient) GetMaxReplicaCount(obj client.Object) int32
- func (soc *ScaledobjectClient) GetName() string
- func (soc *ScaledobjectClient) GetScaleTargetName(obj client.Object) string
- func (soc *ScaledobjectClient) GetType() client.Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoscalerClient ¶
type AutoscalerClient interface { CreateOrUpdateAutoscaler(ctx context.Context, workload client.Object, labels map[string]string, max int32, min int32, targetCPUUtilization int32) (string, error) DeleteAutoscaler(ctx context.Context, obj client.Object) error GetType() client.Object GetList(ctx context.Context, labelSelector labels.Selector, namespace string, fieldSelector fields.Selector) ([]client.Object, error) GetMaxReplicaCount(obj client.Object) int32 GetScaleTargetName(obj client.Object) string GetName() string }
type HPAClient ¶
type HPAClient struct {
// contains filtered or unexported fields
}
func NewHPAClient ¶
func (*HPAClient) CreateOrUpdateAutoscaler ¶
func (*HPAClient) DeleteAutoscaler ¶
func (*HPAClient) GetMaxReplicaCount ¶
func (*HPAClient) GetScaleTargetName ¶
type HPAClientV2 ¶
type HPAClientV2 struct {
// contains filtered or unexported fields
}
func NewHPAClientV2 ¶
func NewHPAClientV2(k8sClient client.Client) *HPAClientV2
func (*HPAClientV2) CreateOrUpdateAutoscaler ¶
func (*HPAClientV2) DeleteAutoscaler ¶
func (*HPAClientV2) GetMaxReplicaCount ¶
func (hc *HPAClientV2) GetMaxReplicaCount(obj client.Object) int32
func (*HPAClientV2) GetName ¶
func (hc *HPAClientV2) GetName() string
func (*HPAClientV2) GetScaleTargetName ¶
func (hc *HPAClientV2) GetScaleTargetName(obj client.Object) string
func (*HPAClientV2) GetType ¶
func (hc *HPAClientV2) GetType() client.Object
type ScaledobjectClient ¶
type ScaledobjectClient struct {
// contains filtered or unexported fields
}
func NewScaledobjectClient ¶
func NewScaledobjectClient(k8sClient client.Client, enableEventAutoscaler *bool) *ScaledobjectClient
func (*ScaledobjectClient) CreateOrUpdateAutoscaler ¶
func (*ScaledobjectClient) DeleteAutoscaler ¶
func (*ScaledobjectClient) GetMaxReplicaCount ¶
func (soc *ScaledobjectClient) GetMaxReplicaCount(obj client.Object) int32
func (*ScaledobjectClient) GetName ¶
func (soc *ScaledobjectClient) GetName() string
func (*ScaledobjectClient) GetScaleTargetName ¶
func (soc *ScaledobjectClient) GetScaleTargetName(obj client.Object) string
func (*ScaledobjectClient) GetType ¶
func (soc *ScaledobjectClient) GetType() client.Object
Click to show internal directories.
Click to hide internal directories.