scheduler

package
v0.11.3-dev2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunBasicScaler

func RunBasicScaler(
	environmentID string,
	providers []*resource.ResourceProvider,
	consumers []resource.ResourceConsumer,
	providerManager resource.ProviderManager,
) (*models.ScalerRunInfo, error)

Types

type EnvironmentScaler

type EnvironmentScaler interface {
	Scale(environmentID string) (*models.ScalerRunInfo, error)
	ScheduleRun(environmentID string, delay time.Duration)
}

type L0EnvironmentScaler

type L0EnvironmentScaler struct {
	// contains filtered or unexported fields
}

func (*L0EnvironmentScaler) Scale

func (r *L0EnvironmentScaler) Scale(environmentID string) (*models.ScalerRunInfo, error)

func (*L0EnvironmentScaler) ScheduleRun

func (r *L0EnvironmentScaler) ScheduleRun(environmentID string, delay time.Duration)

Directories

Path Synopsis
Package mock_scheduler is a generated GoMock package.
Package mock_scheduler is a generated GoMock package.
mock_resource
Package mock_resource is a generated GoMock package.
Package mock_resource is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL