Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
Daemon runs scheduled jobs
type Job ¶
type Job struct {
ID string `json:"id"`
Name string `json:"name"`
Schedule string `json:"schedule"` // Cron expression
Namespace string `json:"namespace"`
Auto bool `json:"auto"` // Auto-discovery
Upload string `json:"upload,omitempty"`
Enabled bool `json:"enabled"`
RunCount int `json:"runCount"`
LastRun time.Time `json:"lastRun,omitempty"`
Created time.Time `json:"created"`
}
Job represents a scheduled support bundle collection job
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles job operations
func (*Manager) CreateJob ¶
func (m *Manager) CreateJob(name, schedule, namespace string, auto bool, upload string) (*Job, error)
CreateJob creates a new scheduled job
Click to show internal directories.
Click to hide internal directories.