scheduler

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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