Documentation ¶
Index ¶
- type Action
- type Config
- type DB
- func (s *DB) Close() error
- func (s *DB) GCRunningJobs() error
- func (s *DB) GetJob(id common.JobID) (common.Job, error)
- func (s *DB) GetTrigger(expr string) (string, error)
- func (s *DB) ListJobs(status common.JobStatus) (_ []common.Job, err error)
- func (s *DB) NewJob(triggerExprs []string, triggerVals []string, cmd string) (common.JobID, error)
- func (s *DB) SetTrigger(expr string, val string) error
- func (s *DB) SwapJobStatus(id common.JobID, oldStatus, newStatus common.JobStatus, statusMsg string) (ok bool, _ error)
- type GitTrigger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Triggers []GitTrigger `json:"triggers"` Run string `json:"run"` }
type Config ¶
type Config struct { PubKeyFile string `json:"pubkey_file"` StateDir string `json:"state_dir"` CacheDir string `json:"cache_dir"` ActionsDir string `json:"actions_dir"` GitCacheFor common.Duration `json:"cache_git_for"` ParallelDownloads int `json:"parallel_downloads"` }
func LoadConfig ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) GCRunningJobs ¶
type GitTrigger ¶
Click to show internal directories.
Click to hide internal directories.