Documentation
¶
Index ¶
Constants ¶
View Source
const ( MethodDeploy = "Deploy" MethodRestart = "Restart" MethodTerminate = "Terminate" )
Commands supported by the scheduler.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// Method is the method name.
Method string `json:"method"`
// Args are the method arguments.
Args cbor.RawMessage `json:"args"`
}
Command is a command to be executed on a specific instance by the scheduler.
type DeployRequest ¶
type DeployRequest struct {
// Deployment is the deployment to deploy.
Deployment roflmarket.Deployment `json:"deployment"`
// WipeStorage is a flag indicating whether persistent storage should be wiped.
WipeStorage bool `json:"wipe_storage"`
}
DeployRequest is a deployment request.
type RestartRequest ¶
type RestartRequest struct {
// WipeStorage is a flag indicating whether persistent storage should be wiped.
WipeStorage bool `json:"wipe_storage"`
}
RestartRequest is an instance restart request.
type TerminateRequest ¶
type TerminateRequest struct {
// WipeStorage is a flag indicating whether persistent storage should be wiped.
WipeStorage bool `json:"wipe_storage"`
}
TerminateRequest is an instance termination request.
Click to show internal directories.
Click to hide internal directories.