# Packages
Package mock_hatchery is a generated GoMock package.
# Functions
CheckWorkerModelRegister checks if a model has been registered, if not it raises an error on the API.
Create creates hatchery.
GetMetrics returns the metric stats measures.
ModelInterpolateSecrets interpolates secrets that can exists inside given model.
NewWorkerToken .
NewWorkerTokenV2 .
ParseArgs splits str on spaces into a slice of strings taking into account any quoting (using '' or "") even inside args, and any backslash-escaping even without quotes: `abc def` → ["abc", "def"] ` abc def ` → ["abc", "def"] ` '' "" ` → ["", ""] ` a'bc' d"e"f ` → ["abc", "def"] `'a\bc\'' "def" ` → ["abc'", "def"] ` abc\ def ` → ["abc def"].
ParseRequirementModel parses a requirement model than returns the image name and the environment variables.
SendSpawnInfo sends a spawnInfo.
WorkerPool returns all the worker owned by the hatchery h, registered or not on the CDS API.
# Constants
MemoryRegisterContainer is the RAM used for spawning a docker container for register a worker model.
# Structs
SpawnArguments contains arguments to func SpawnWorker.
WorkerJWTClaims is the specific claims format for Worker JWT.
WorkerJWTClaims is the specific claims format for Worker JWT.
# Interfaces
Interface describe an interface for each hatchery mode Init create new clients for different api SpawnWorker creates a new vm instance CanSpawn return wether or not hatchery can spawn model WorkersStartedByModel returns the number of instances of given model started but not necessarily register on CDS yet WorkersStarted returns the number of instances started but not necessarily register on CDS yet Hatchery returns hatchery instance Client returns cdsclient instance ModelType returns type of hatchery NeedRegistration return true if worker model need regsitration ID returns hatchery id.