hostmover

package
v0.0.0-...-a69e935 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 12 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostMover

type HostMover interface {
	// MoveHosts moves hosts from source Pool to destination Pool
	MoveHosts(ctx context.Context,
		srcPool string,
		desiredSrcPoolHosts int32,
		destPool string,
		desiredDestPoolHosts int32) error
}

HostMover provides abstraction to move host across pools

func NewHostMover

func NewHostMover(
	manager manager.HostPoolManager,
	hostInfoOps ormobjects.HostInfoOps,
	driver goalstate.Driver,
	scope tally.Scope,
	resmgrClient resmgrsvc.ResourceManagerServiceYARPCClient,
) HostMover

NewHostMover creates the HostMover object

type Metrics

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

Metrics tracks various metrics at task state level.

func NewMetrics

func NewMetrics(scope tally.Scope) *Metrics

NewMetrics returns a new Metrics struct, with all metrics initialized and rooted at the given tally.Scope

Jump to

Keyboard shortcuts

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