provider

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientProvider

type ClientProvider interface {

	// Name returns the human readable name for the provider.
	Name() string

	// ScaleIn will trigger a scaling in event of the provider. When implementing this function, it
	// should handle only provider interactions as well as manging activity update event based on
	// what occurs. When calling this function, all safety checks should have been completed to
	// ensure no policy parameters are violated. The passed target should be used to identify the
	// node in a way that the provider can understand.
	ScaleIn(req *state.ScalingRequest, target string) error

	// ScaleOut will trigger a scaling out event of the provider. When implementing this function,
	// it should handle only provider interactions as well as manging activity update event based
	// on what occurs. When calling this function, all safety checks should have been completed to
	// ensure no policy parameters are violated.
	ScaleOut(req *state.ScalingRequest) error
}

ClientProvider is the interface that needs to be implemented by providers which are responsible scaling Nomad client machines.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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