Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Client is a CDS Client Client sdk.HTTPClient )
Functions ¶
func Born ¶
func Born(h Interface, api, token string, provision int, requestSecondsTimeout int, insecureSkipVerifyTLS bool)
Born creates hatchery
func CheckRequirement ¶
func CheckRequirement(r sdk.Requirement) (bool, error)
CheckRequirement checks binary requirement in path
Types ¶
type Interface ¶
type Interface interface { Init() error KillWorker(worker sdk.Worker) error SpawnWorker(model *sdk.Model, req []sdk.Requirement) error CanSpawn(model *sdk.Model, req []sdk.Requirement) bool WorkerStarted(model *sdk.Model) int Hatchery() *sdk.Hatchery ID() int64 }
Interface describe an interface for each hatchery mode (mesos, local)
Click to show internal directories.
Click to hide internal directories.