Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scaler ¶
type Scaler struct { scaleclient.ScalesGetter // contains filtered or unexported fields }
Scaler is a convenient wrapper of ScalesGetter which provides a helper method to get the scale of any scale target.
func NewScaler ¶
func NewScaler(scalesGetter scaleclient.ScalesGetter, restMapper apimeta.RESTMapper) *Scaler
NewScaler creates a new Scaler with the given scales getter and rest mapper.
func (*Scaler) GetScale ¶
func (s *Scaler) GetScale(ctx context.Context, namespace string, scaleTargetRef k8sautoscalingv2.CrossVersionObjectReference) (*k8sautoscalingv1.Scale, schema.GroupResource, error)
GetScale return the scale as well as the group-resource of the specified scale target.
Click to show internal directories.
Click to hide internal directories.