Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BuiltinScalingProviders = map[string]ScalingProviderFactory{ "aws": aws.NewAwsScalingProvider, }
BuiltinScalingProviders tracks the available scaling providers. The provider name is the name used when configuring nodes for autoscaling.
Functions ¶
func NewScalingProvider ¶
func NewScalingProvider(workerPool *structs.WorkerPool) (structs.ScalingProvider, error)
NewScalingProvider is the entry point method for processing the scaling provider configuration in worker pool nodes, finding the correct factory method and setting up the scaling provider.
Types ¶
type ScalingProviderFactory ¶
type ScalingProviderFactory func( conf *structs.WorkerPool) (structs.ScalingProvider, error)
ScalingProviderFactory is a factory method type for instantiating a new instance of a scaling provider.
Click to show internal directories.
Click to hide internal directories.