fleet

package
v0.0.0-...-5e2eff2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrJobAlreadyScheduled = errors.New("job already scheduled to start")
View Source
var ErrJobDoesntExist = errors.New("job doesn't exist")
View Source
var ErrNoAgentsOnline = errors.New("no agents online")

Functions

func LazyQueueStateReconciliation

func LazyQueueStateReconciliation()

func NumSchedulableAgents

func NumSchedulableAgents() int

func QueueStateReconciliation

func QueueStateReconciliation()

func RemoveAgentByID

func RemoveAgentByID(projectId string)

func RequestFileDownload

func RequestFileDownload(fileIDs ...uuid.UUID)

func ScheduleJobs

func ScheduleJobs(jobIds []string) ([]string, error)

func Setup

func Setup() error

func StopJob

func StopJob(job db.Job, reason string)

Types

type AgentConnection

type AgentConnection struct {
	// contains filtered or unexported fields
}

func RegisterAgentFromWebsocket

func RegisterAgentFromWebsocket(conn *websocket.Conn, agentId string) *AgentConnection

func (*AgentConnection) Handle

func (a *AgentConnection) Handle() error

func (*AgentConnection) MarkDisconnected

func (a *AgentConnection) MarkDisconnected()

func (*AgentConnection) RequestFileDelete

func (a *AgentConnection) RequestFileDelete(fileID string) error

func (*AgentConnection) RequestFileDownload

func (a *AgentConnection) RequestFileDownload(fileIDs ...uuid.UUID) error

Jump to

Keyboard shortcuts

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