Documentation
¶
Index ¶
- Variables
- func LazyQueueStateReconciliation()
- func NumSchedulableAgents() int
- func QueueStateReconciliation()
- func RemoveAgentByID(projectId string)
- func RequestFileDownload(fileIDs ...uuid.UUID)
- func ScheduleJobs(jobIds []string) ([]string, error)
- func Setup() error
- func StopJob(job db.Job, reason string)
- type AgentConnection
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 ScheduleJobs ¶
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) RequestFileDelete ¶
func (a *AgentConnection) RequestFileDelete(fileID string) error
func (*AgentConnection) RequestFileDownload ¶
func (a *AgentConnection) RequestFileDownload(fileIDs ...uuid.UUID) error
Click to show internal directories.
Click to hide internal directories.