Documentation ¶
Index ¶
- func New(kubeconfigPath string, namespace string) (scalertypes.ResourceScaler, error)
- type ResourceScaler
- func (r *ResourceScaler) GetConfig() (*scalertypes.ResourceScalerConfig, error)
- func (r *ResourceScaler) GetResources() ([]scalertypes.Resource, error)
- func (r *ResourceScaler) ResolveServiceName(resource scalertypes.Resource) (string, error)
- func (r *ResourceScaler) SetScale(resources []scalertypes.Resource, scale int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(kubeconfigPath string, namespace string) (scalertypes.ResourceScaler, error)
Types ¶
type ResourceScaler ¶
type ResourceScaler struct{}
func (*ResourceScaler) GetConfig ¶
func (r *ResourceScaler) GetConfig() (*scalertypes.ResourceScalerConfig, error)
func (*ResourceScaler) GetResources ¶
func (r *ResourceScaler) GetResources() ([]scalertypes.Resource, error)
func (*ResourceScaler) ResolveServiceName ¶
func (r *ResourceScaler) ResolveServiceName(resource scalertypes.Resource) (string, error)
func (*ResourceScaler) SetScale ¶
func (r *ResourceScaler) SetScale(resources []scalertypes.Resource, scale int) error
Click to show internal directories.
Click to hide internal directories.