Documentation
¶
Overview ¶
Package jobs exclusively owns job definitions and their files.
Index ¶
- func CheckAvailable(dir, name string) error
- func Create(dir string, j Job) error
- func Encode(j Job) (string, error)
- func Exists(dir, name string) (bool, error)
- func ReadPrompt(dir string, j Job) (string, error)
- func Remove(dir, name string) error
- func ValidateName(name string) error
- func Write(dir string, j Job) error
- type Entry
- type Job
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAvailable ¶
CheckAvailable rejects both an exact collision and a case variant before a dry run or a real create, consistently on case-sensitive and insensitive disks.
func ValidateName ¶
Types ¶
type Entry ¶
type Job ¶
type Job struct {
Name string `toml:"-" json:"name"`
Schedule string `toml:"schedule" json:"schedule"`
Timezone string `toml:"timezone" json:"timezone"`
Runner string `toml:"runner" json:"runner"`
Prompt string `toml:"prompt,omitempty" json:"prompt,omitempty"`
PromptFile string `toml:"prompt_file,omitempty" json:"prompt_file,omitempty"`
Repo string `toml:"repo,omitempty" json:"repo,omitempty"`
Base string `toml:"base,omitempty" json:"base,omitempty"`
Args []string `toml:"args,omitempty" json:"args"`
Command []string `toml:"command,omitempty" json:"command,omitempty"`
Timeout string `toml:"timeout" json:"timeout"`
Expect string `toml:"expect,omitempty" json:"expect,omitempty"`
Memory bool `toml:"memory" json:"memory"`
Catchup string `toml:"catchup" json:"catchup"`
CreatedBy string `toml:"created_by" json:"created_by"`
}
func ReadForRun ¶
ReadForRun defers prompt-file availability checks to preflight, so failures receive a blocked_config ledger row rather than disappearing as usage errors.