Documentation
¶
Index ¶
- func CancelTask(id uuid.UUID) error
- func DeleteArchive(id uuid.UUID) error
- func DeleteJob(id uuid.UUID) error
- func DeleteRetentionPolicy(id uuid.UUID) error
- func DeleteSchedule(id uuid.UUID) error
- func DeleteStore(id uuid.UUID) error
- func DeleteTarget(id uuid.UUID) error
- func IsPausedJob(id uuid.UUID) (bool, error)
- func PauseJob(id uuid.UUID) error
- func RestoreArchive(id uuid.UUID, targetJSON string) error
- func RunJob(id uuid.UUID, ownerJSON string) error
- func UnpauseJob(id uuid.UUID) error
- type Archive
- type ArchiveFilter
- type Job
- type JobFilter
- type RetentionPoliciesFilter
- type RetentionPolicy
- func CreateRetentionPolicy(contentJSON string) (RetentionPolicy, error)
- func GetRetentionPolicies(filter RetentionPoliciesFilter) ([]RetentionPolicy, error)
- func GetRetentionPolicy(id uuid.UUID) (RetentionPolicy, error)
- func UpdateRetentionPolicy(id uuid.UUID, contentJSON string) (RetentionPolicy, error)
- type Schedule
- type ScheduleFilter
- type Store
- type StoreFilter
- type Target
- type TargetFilter
- type Task
- type TaskFilter
- type URL
- func (u *URL) AddParameter(key string, value interface{}) error
- func (u *URL) Delete(out interface{}) error
- func (u *URL) Get(out interface{}) error
- func (u *URL) MaybeAddParameter(key string, value interface{}) error
- func (u *URL) Post(out interface{}, data string) error
- func (u *URL) Put(out interface{}, data string) error
- func (u *URL) Request(out interface{}, req *http.Request) error
- func (u *URL) String() string
- type YesNo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelTask ¶
func DeleteArchive ¶
func DeleteRetentionPolicy ¶
func DeleteSchedule ¶
func DeleteStore ¶
func DeleteTarget ¶
func UnpauseJob ¶
Types ¶
type Archive ¶
type Archive struct {
UUID string `json:"uuid"`
StoreKey string `json:"key"`
TakenAt Timestamp `json:"taken_at"`
ExpiresAt Timestamp `json:"expires_at"`
Status string `json:"status"`
Notes string `json:"notes"`
TargetUUID string `json:"target_uuid"`
TargetPlugin string `json:"target_plugin"`
TargetEndpoint string `json:"target_endpoint"`
StoreUUID string `json:"store_uuid"`
StorePlugin string `json:"store_plugin"`
StoreEndpoint string `json:"store_endpoint"`
}
func GetArchives ¶
func GetArchives(filter ArchiveFilter) ([]Archive, error)
type ArchiveFilter ¶
type Job ¶
type Job struct {
UUID string `json:"uuid"`
Name string `json:"name"`
Summary string `json:"summary"`
RetentionName string `json:"retention_name"`
RetentionUUID string `json:"retention_uuid"`
Expiry int `json:"expiry"`
ScheduleName string `json:"schedule_name"`
ScheduleUUID string `json:"schedule_uuid"`
Schedule string `json:"schedule"`
Paused bool `json:"paused"`
StoreUUID string `json:"store_uuid"`
StorePlugin string `json:"store_plugin"`
StoreEndpoint string `json:"store_endpoint"`
TargetUUID string `json:"target_uuid"`
TargetPlugin string `json:"target_plugin"`
TargetEndpoint string `json:"target_endpoint"`
Agent string `json:"agent"`
}
type RetentionPoliciesFilter ¶
type RetentionPoliciesFilter struct {
Unused YesNo
}
type RetentionPolicy ¶
type RetentionPolicy struct {
UUID string `json:"uuid"`
Name string `json:"name"`
Summary string `json:"summary"`
Expires uint `json:"expires"`
}
func CreateRetentionPolicy ¶
func CreateRetentionPolicy(contentJSON string) (RetentionPolicy, error)
func GetRetentionPolicies ¶
func GetRetentionPolicies(filter RetentionPoliciesFilter) ([]RetentionPolicy, error)
func GetRetentionPolicy ¶
func GetRetentionPolicy(id uuid.UUID) (RetentionPolicy, error)
func UpdateRetentionPolicy ¶
func UpdateRetentionPolicy(id uuid.UUID, contentJSON string) (RetentionPolicy, error)
type Schedule ¶
type Schedule struct {
UUID string `json:"uuid"`
Name string `json:"name"`
Summary string `json:"summary"`
When string `json:"when"`
}
func CreateSchedule ¶
func GetSchedules ¶
func GetSchedules(filter ScheduleFilter) ([]Schedule, error)
type ScheduleFilter ¶
type ScheduleFilter struct {
Unused YesNo
}
type Store ¶
type Store struct {
UUID string `json:"uuid"`
Name string `json:"name"`
Summary string `json:"summary"`
Plugin string `json:"plugin"`
Endpoint string `json:"endpoint"`
}
func CreateStore ¶
func GetStores ¶
func GetStores(filter StoreFilter) ([]Store, error)
type StoreFilter ¶
type Target ¶
type Target struct {
UUID string `json:"uuid"`
Name string `json:"name"`
Summary string `json:"summary"`
Plugin string `json:"plugin"`
Endpoint string `json:"endpoint"`
Agent string `json:"agent"`
}
func CreateTarget ¶
func GetTargets ¶
func GetTargets(filter TargetFilter) ([]Target, error)
type TargetFilter ¶
type Task ¶
type Task struct {
UUID string `json:"uuid"`
Owner string `json:"owner"`
Op string `json:"type"`
JobUUID string `json:"job_uuid"`
ArchiveUUID string `json:"archive_uuid"`
Status string `json:"status"`
StartedAt Timestamp `json:"started_at"`
StoppedAt Timestamp `json:"stopped_at"`
TimeoutAt Timestamp `json:"timeout_at"`
Log string `json:"log"`
}
func GetTasks ¶
func GetTasks(filter TaskFilter) ([]Task, error)
type TaskFilter ¶
type URL ¶
type URL struct {
// contains filtered or unexported fields
}
func (*URL) AddParameter ¶
func (*URL) MaybeAddParameter ¶
Click to show internal directories.
Click to hide internal directories.