auctioncellrep

package
v0.0.0-...-82c1071 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCellUnhealthy = errors.New("internal cell healthcheck failed")
View Source
var ErrPreloadedRootFSNotFound = errors.New("preloaded rootfs path not found")

Functions

func GenerateGuid

func GenerateGuid() (string, error)

func PathForRootFS

func PathForRootFS(rootFS string, stackPathMap rep.StackPathMap) (string, error)

Types

type AuctionCellClient

type AuctionCellClient interface {
	State(logger lager.Logger) (rep.CellState, bool, error)
	Perform(logger lager.Logger, work rep.Work) (rep.Work, error)
	Reset() error
}

type AuctionCellRep

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

func New

func New(
	cellID string,
	preloadedStackPathMap rep.StackPathMap,
	arbitraryRootFSes []string,
	zone string,
	generateInstanceGuid func() (string, error),
	client executor.Client,
	evacuationReporter evacuation_context.EvacuationReporter,
	placementTags []string,
	optionalPlacementTags []string,
) *AuctionCellRep

func (*AuctionCellRep) Perform

func (a *AuctionCellRep) Perform(logger lager.Logger, work rep.Work) (rep.Work, error)

func (*AuctionCellRep) Reset

func (a *AuctionCellRep) Reset() error

func (*AuctionCellRep) State

func (a *AuctionCellRep) State(logger lager.Logger) (rep.CellState, bool, error)

State currently does not return tasks or lrp rootfs, because the auctioneer currently does not need them.

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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