Versions in this module Expand all Collapse all v0 v0.2.0 Mar 15, 2024 Changes in this version + func MergeAndSave(config config.Config, newState *State) error + type Job struct + CompletedAt int64 + Delete bool + Droplet do.Droplet + ID int64 + Name string + StartedAt int64 + Status JobStatus + UpdatedAt int64 type State + func (s *State) CancelRunningJob(config config.Config, jobID int64) error + func (s *State) GetLatestCompletedJob() (*Job, error) v0.1.2 Jan 12, 2024 Changes in this version type JobInfo + Name string v0.1.1 Nov 30, 2023 v0.1.0 Oct 6, 2023 Changes in this version + func GetJobIdsByInstance(config config.Config, bucketName string) (map[int64][]int64, error) + func MergeStates(existingState, newState *State) + func UpdateState(config config.Config, bucketName string, newState *State) error + type JobInfo struct + CompletedAt int64 + Delete bool + Droplet do.Droplet + ID int64 + StartedAt int64 + Status JobStatus + UpdatedAt int64 + func GetLatestCompletedJob(bucketName string, state *State) (*JobInfo, error) + type JobStatus string + const Cancelled + const Completed + const Failed + const Provisioning + const Running + const Timedout + type State struct + Jobs []JobInfo + func GetState(config config.Config, bucketName string) (*State, error) + func (s *State) CancelRunningJobs(config config.Config, bucketName string) error + func (s *State) CreateJob(job JobInfo) + func (s *State) DeleteJob(jobID int64) + func (s *State) GetJob(jobID int64) *JobInfo + func (s *State) GetLatestJob() *JobInfo