Documentation ¶
Index ¶
- func AgentBootstrap(c *gin.Context)
- func AgentHeartbeat(c *gin.Context)
- func AgentPostback(c *gin.Context)
- func Auth(c *gin.Context)
- func CreateHostCron(c *gin.Context)
- func DeleteHost(c *gin.Context)
- func DeleteHostCron(c *gin.Context)
- func DeleteHostJob(c *gin.Context)
- func GetHost(c *gin.Context)
- func GetHostCron(c *gin.Context)
- func GetHostCrons(c *gin.Context)
- func GetHostJob(c *gin.Context)
- func GetHostJobs(c *gin.Context)
- func GetHosts(c *gin.Context)
- func GetSettings(c *gin.Context)
- func Health(c *gin.Context)
- func Heartbeat()
- func Home(c *gin.Context)
- func Info(c *gin.Context)
- func Metrics() http.Handler
- func Ready(c *gin.Context)
- func Setup(c *gin.Context)
- func UpdateHostCron(c *gin.Context)
- func UpdateHostJob(c *gin.Context)
- func UpdateSettings(c *gin.Context)
- type Host
- type HostCron
- type Workers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Host ¶
type Host struct { ID string `json:"id"` Hostname string `json:"hostname"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` OnlineAgents int `json:"onlineAgents"` }
Host type
type HostCron ¶
type HostCron struct { ID string `json:"id"` Name string `json:"name"` Request model.Request `json:"request"` Interval int `json:"interval"` IntervalType string `json:"intervalType"` LastRun time.Time `json:"lastRun"` SuccessJobs int `json:"successJobs"` FailedJobs int `json:"failedJobs"` PendingJobs int `json:"pendingJobs"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
HostCron type
type Workers ¶
type Workers struct {
// contains filtered or unexported fields
}
Workers type
func (*Workers) BroadcastRequests ¶
func (w *Workers) BroadcastRequests()
BroadcastRequests sends a tower request to workers
func (*Workers) HandleWorkload ¶
func (w *Workers) HandleWorkload() <-chan module.BackupMessage
HandleWorkload handles all incoming requests from tower
func (*Workers) NotifyTower ¶
func (w *Workers) NotifyTower(notifyChannel <-chan module.BackupMessage)
NotifyTower notifies tower
func (*Workers) ProcessAction ¶
func (w *Workers) ProcessAction(notifyChannel chan<- module.BackupMessage, wg *sync.WaitGroup)
ProcessAction process incoming request from the tower
Click to show internal directories.
Click to hide internal directories.