Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
EnvironmentHealthInterval string `json:"environmentHealthInterval"`
EventCleanupInterval string `json:"eventCleanupInterval"`
AnalyticsHeartbeatInterval string `json:"analyticsHeartbeatInterval"`
AutoUpdateInterval string `json:"autoUpdateInterval"`
PollingInterval string `json:"pollingInterval"`
ScheduledPruneInterval string `json:"scheduledPruneInterval"`
GitopsSyncInterval string `json:"gitopsSyncInterval"`
VulnerabilityScanInterval string `json:"vulnerabilityScanInterval"`
}
Config represents the configured intervals (in minutes) for Arcane background jobs.
All fields are in minutes. This makes conversion to time.Duration straightforward in the backend.
type JobListResponse ¶
JobListResponse contains all jobs and system mode information.
type JobPrerequisite ¶
type JobPrerequisite struct {
SettingKey string `json:"settingKey"`
Label string `json:"label"`
IsMet bool `json:"isMet"`
SettingsURL string `json:"settingsUrl,omitempty"`
}
JobPrerequisite represents a requirement that must be met for a job to run.
type JobRunRequest ¶
type JobRunRequest struct {
JobID string `json:"jobId" path:"jobId" minLength:"1"`
}
JobRunRequest is the request to manually run a job.
type JobRunResponse ¶
JobRunResponse is the response after manually triggering a job.
type JobStatus ¶
type JobStatus struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Category string `json:"category"`
Schedule string `json:"schedule"`
NextRun *time.Time `json:"nextRun,omitempty"`
Enabled bool `json:"enabled"`
ManagerOnly bool `json:"managerOnly"`
IsContinuous bool `json:"isContinuous"`
CanRunManually bool `json:"canRunManually"`
Prerequisites []JobPrerequisite `json:"prerequisites"`
SettingsKey string `json:"settingsKey,omitempty"`
}
JobStatus represents the current status and metadata for a background job.
type Update ¶
type Update struct {
EnvironmentHealthInterval *string `json:"environmentHealthInterval,omitempty"`
EventCleanupInterval *string `json:"eventCleanupInterval,omitempty"`
AnalyticsHeartbeatInterval *string `json:"analyticsHeartbeatInterval,omitempty"`
AutoUpdateInterval *string `json:"autoUpdateInterval,omitempty"`
PollingInterval *string `json:"pollingInterval,omitempty"`
ScheduledPruneInterval *string `json:"scheduledPruneInterval,omitempty"`
GitopsSyncInterval *string `json:"gitopsSyncInterval,omitempty"`
VulnerabilityScanInterval *string `json:"vulnerabilityScanInterval,omitempty"`
}
Update is used to update job schedule intervals (in minutes).
Any nil field is ignored.
Click to show internal directories.
Click to hide internal directories.