Documentation
¶
Index ¶
- Constants
- func GenerateRunID() string
- func HashString(s string) string
- func JournalMap(run *PersistedRun) map[int]JournalEntry
- func PersistScript(name, runID, script string) string
- func SaveRun(state *PersistedRun)
- type AgentOptions
- type AgentRequest
- type AgentSnapshot
- type Events
- type JournalEntry
- type ManagedRun
- type Manager
- type Meta
- type MetaPhase
- type Options
- type PersistedRun
- type Result
- type RunStatus
- type RunSummary
- type Runner
- type Snapshot
- type Usage
Constants ¶
View Source
const ( MaxConcurrency = 16 MaxAgentsPerRun = 1000 MaxFanoutItems = 4096 )
Variables ¶
This section is empty.
Functions ¶
func GenerateRunID ¶
func GenerateRunID() string
func HashString ¶
func JournalMap ¶
func JournalMap(run *PersistedRun) map[int]JournalEntry
func PersistScript ¶
func SaveRun ¶
func SaveRun(state *PersistedRun)
Types ¶
type AgentOptions ¶
type AgentRequest ¶
type AgentSnapshot ¶
type JournalEntry ¶
type ManagedRun ¶
type Manager ¶
type Manager struct {
OnSettle func(run RunSummary)
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) List ¶
func (m *Manager) List() []RunSummary
type Meta ¶
type PersistedRun ¶
type PersistedRun struct {
RunID string `json:"runId"`
Name string `json:"name"`
ScriptPath string `json:"scriptPath,omitempty"`
Status string `json:"status"`
Args any `json:"args,omitempty"`
Journal []JournalEntry `json:"journal"`
Result any `json:"result,omitempty"`
Error string `json:"error,omitempty"`
StartedAt int64 `json:"startedAt"`
FinishedAt int64 `json:"finishedAt,omitempty"`
}
func LoadRun ¶
func LoadRun(runID string) *PersistedRun
type Result ¶
type RunSummary ¶
Click to show internal directories.
Click to hide internal directories.