Documentation
¶
Index ¶
- Constants
- func GenerateExecID(planName string) string
- func LoadPlanFile(path string) (*model.Plan, error)
- func PlanChecksumShort(plan *model.Plan) string
- type ExecEntry
- type ExecMetadata
- type ExecState
- type ExecutionCounts
- type ExecutionLink
- type JobState
- type PlanEntry
- type Store
- func (s *Store) CreateExecution(execID string, plan *model.Plan) (string, error)
- func (s *Store) EnsureDirs() error
- func (s *Store) ExecDir() string
- func (s *Store) ExecPath(execID string) string
- func (s *Store) GC(maxCount int, maxAgeDays int, dryRun bool) ([]string, error)
- func (s *Store) ListExecutions() ([]ExecEntry, error)
- func (s *Store) ListPlans() ([]PlanEntry, error)
- func (s *Store) LoadMetadata(execID string) (*ExecMetadata, error)
- func (s *Store) LoadState(execID string) (*ExecState, error)
- func (s *Store) LogDir(execID, jobID string) string
- func (s *Store) LogPath(execID, jobID, stepID string) string
- func (s *Store) MetadataPath(execID string) string
- func (s *Store) MigrateLegacyState(workDir string) (bool, error)
- func (s *Store) PlanDir() string
- func (s *Store) ResolveExecID(ref string) (string, error)
- func (s *Store) ResolvePlanRef(ref string) (string, error)
- func (s *Store) SaveMetadata(execID string, meta *ExecMetadata) error
- func (s *Store) SavePlan(plan *model.Plan, name string) error
- func (s *Store) SaveState(execID string, st *ExecState) error
- func (s *Store) StatePath(execID string) string
Constants ¶
View Source
const ( OrunDir = ".orun" PlansDir = "plans" ExecDir = "executions" LogsDir = "logs" LatestName = "latest" StateName = "state.json" ManifestName = "manifest.json" MetadataName = "metadata.json" )
Variables ¶
This section is empty.
Functions ¶
func GenerateExecID ¶
func PlanChecksumShort ¶
Types ¶
type ExecMetadata ¶
type ExecMetadata struct {
ExecID string `json:"execId"`
PlanID string `json:"planId"`
PlanName string `json:"planName"`
StartedAt string `json:"startedAt"`
FinishedAt string `json:"finishedAt,omitempty"`
Status string `json:"status"`
Trigger string `json:"trigger"`
User string `json:"user"`
DryRun bool `json:"dryRun"`
JobTotal int `json:"jobTotal"`
JobDone int `json:"jobDone"`
JobFailed int `json:"jobFailed"`
Links []ExecutionLink `json:"links,omitempty"`
}
type ExecutionCounts ¶
func SummarizeExecutionState ¶
func SummarizeExecutionState(st *ExecState) ExecutionCounts
type ExecutionLink ¶
type Store ¶
type Store struct {
BaseDir string
}
func (*Store) CreateExecution ¶
func (*Store) EnsureDirs ¶
func (*Store) ListExecutions ¶
func (*Store) LoadMetadata ¶
func (s *Store) LoadMetadata(execID string) (*ExecMetadata, error)
func (*Store) MetadataPath ¶
func (*Store) SaveMetadata ¶
func (s *Store) SaveMetadata(execID string, meta *ExecMetadata) error
Click to show internal directories.
Click to hide internal directories.