package
0.55.1
Repository: https://github.com/ovh/cds.git
Documentation: pkg.go.dev

# 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.
No description provided by the author
No description provided by the author
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.
No description provided by the author
SendSpawnInfo sends a spawnInfo.
WorkerPool returns all the worker owned by the hatchery h, registered or not on the CDS API.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MemoryRegisterContainer is the RAM used for spawning a docker container for register a worker model.
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
Client is a CDS Client.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SpawnArguments contains arguments to func SpawnWorker.
No description provided by the author
No description provided by the author
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.
No description provided by the author
No description provided by the author