Versions in this module Expand all Collapse all v0 v0.5.6 Oct 21, 2022 v0.5.5 Oct 21, 2022 Changes in this version + type AutoScalerOptions struct + GroupKind schema.GroupKind + Namespace string + ScaleInterval Duration + type DLXOptions struct + ListenAddress string + MultiTargetStrategy MultiTargetStrategy + Namespace string + ResourceReadinessTimeout Duration + TargetNameHeader string + TargetPathHeader string + TargetPort int + type Duration struct + func (d *Duration) UnmarshalJSON(b []byte) error + func (d Duration) MarshalJSON() ([]byte, error) + type MultiTargetStrategy string + const MultiTargetStrategyCanary + const MultiTargetStrategyPrimary + const MultiTargetStrategyRandom + type Resource struct + LastScaleEvent *ScaleEvent + LastScaleEventTime *time.Time + Name string + Namespace string + ScaleResources []ScaleResource + func (r Resource) String() string + type ResourceScaler interface + GetConfig func() (*ResourceScalerConfig, error) + GetResources func() ([]Resource, error) + ResolveServiceName func(Resource) (string, error) + SetScale func([]Resource, int) error + type ResourceScalerConfig struct + AutoScalerOptions AutoScalerOptions + DLXOptions DLXOptions + KubeconfigPath string + type ScaleEvent string + const ResourceUpdatedScaleEvent + const ScaleFromZeroCompletedScaleEvent + const ScaleFromZeroStartedScaleEvent + const ScaleToZeroCompletedScaleEvent + const ScaleToZeroStartedScaleEvent + func ParseScaleEvent(scaleEventStr string) (ScaleEvent, error) + type ScaleResource struct + MetricName string + Threshold int + WindowSize Duration + func (sr ScaleResource) GetKubernetesMetricName() string + func (sr ScaleResource) String() string