Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler syncs config from the API and manages cron-scheduled backups.
func New ¶
func New(client *api.Client, resticBinary, agentID string, cfg *config.AgentConfig, syncInterval time.Duration) *Scheduler
New creates a scheduler.
func (*Scheduler) HandleCommand ¶ added in v0.5.0
HandleCommand processes a command received from the WebSocket server. Commands are dispatched from the server (dashboard/API) to the agent in real time.
func (*Scheduler) SetWSClient ¶ added in v0.5.0
SetWSClient sets the WebSocket client used for real-time progress streaming.
Click to show internal directories.
Click to hide internal directories.