Documentation
¶
Index ¶
- type DBInstance
- type DoctorResult
- type Event
- type EventType
- type FlushIssue
- type FlushRequest
- type FlushResult
- type FlushService
- type GraphAffectedResult
- type GraphFileImpact
- type Instance
- type InstanceSummary
- type LogEvent
- type NodeState
- type NodeStatus
- type ProcessRef
- type RunConfig
- type RunMode
- type RunResult
- type StatusResult
- type SupervisorRef
- type SupervisorStatus
- type UpgradeResult
- type VersionResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBInstance ¶
type DBInstance struct {
Name string `json:"name"`
URL string `json:"url,omitempty"`
Host string `json:"host,omitempty"`
Port int `json:"port,omitempty"`
User string `json:"user,omitempty"`
Password string `json:"password,omitempty"`
Image string `json:"image,omitempty"`
ContainerName string `json:"containerName,omitempty"`
VolumeName string `json:"volumeName,omitempty"`
SnapshotRoot string `json:"snapshotRoot,omitempty"`
}
type DoctorResult ¶
type DoctorResult struct {
Worktree string `json:"worktree"`
InstanceID string `json:"instanceId,omitempty"`
Project string `json:"project,omitempty"`
Target string `json:"target,omitempty"`
CLIScope string `json:"cliScope,omitempty"`
ChecksPassed bool `json:"checksPassed"`
Checks []string `json:"checks"`
Warnings []string `json:"warnings,omitempty"`
}
type Event ¶
type Event struct {
TS string `json:"ts"`
Type EventType `json:"type"`
InstanceID string `json:"instanceId,omitempty"`
Worktree string `json:"worktree,omitempty"`
Target string `json:"target,omitempty"`
Task string `json:"task,omitempty"`
Mode RunMode `json:"mode,omitempty"`
State NodeState `json:"state,omitempty"`
PreviousState NodeState `json:"previousState,omitempty"`
Stream string `json:"stream,omitempty"`
Line string `json:"line,omitempty"`
CacheKey string `json:"cacheKey,omitempty"`
PID int `json:"pid,omitempty"`
Files []string `json:"files,omitempty"`
AffectedTasks []string `json:"affectedTasks,omitempty"`
PromptID string `json:"promptId,omitempty"`
PromptKind string `json:"promptKind,omitempty"`
Prompt string `json:"prompt,omitempty"`
Error string `json:"error,omitempty"`
Success *bool `json:"success,omitempty"`
}
type EventType ¶
type EventType string
const ( EventRunStarted EventType = "run_started" EventRunFinished EventType = "run_finished" EventWatchCycleStart EventType = "watch_cycle_started" EventWatchCycleDone EventType = "watch_cycle_finished" EventInstanceUpdated EventType = "instance_updated" EventTaskState EventType = "task_state_changed" EventLogLine EventType = "log_line" EventCacheHit EventType = "cache_hit" EventCacheMiss EventType = "cache_miss" EventProcessExited EventType = "process_exited" EventInteractionReq EventType = "interaction_requested" EventInteractionAck EventType = "interaction_answered" EventInteractionStop EventType = "interaction_cancelled" )
type FlushIssue ¶
type FlushRequest ¶
type FlushResult ¶
type FlushResult struct {
RequestID string `json:"requestId"`
InstanceID string `json:"instanceId"`
Worktree string `json:"worktree"`
Project string `json:"project,omitempty"`
Target string `json:"target"`
Mode RunMode `json:"mode"`
Started bool `json:"started"`
Synced bool `json:"synced"`
Success bool `json:"success"`
TimedOut bool `json:"timedOut,omitempty"`
DurationMs int64 `json:"durationMs"`
UpdatedAt time.Time `json:"updatedAt,omitempty"`
Nodes []NodeStatus `json:"nodes,omitempty"`
Services []FlushService `json:"services,omitempty"`
Issues []FlushIssue `json:"issues,omitempty"`
}
type FlushService ¶
type GraphAffectedResult ¶
type GraphAffectedResult struct {
Files []string `json:"files"`
DirectlyAffected []string `json:"directlyAffected"`
Downstream []string `json:"downstream"`
Explanations []GraphFileImpact `json:"explanations,omitempty"`
UnmatchedFiles []string `json:"unmatchedFiles,omitempty"`
}
type GraphFileImpact ¶
type Instance ¶
type Instance struct {
ID string `json:"id"`
Label string `json:"label"`
Worktree string `json:"worktree"`
CreatedAt time.Time `json:"createdAt"`
Ports map[string]int `json:"ports"`
Env map[string]string `json:"env"`
DB DBInstance `json:"db"`
Processes map[string]ProcessRef `json:"processes"`
Supervisor SupervisorRef `json:"supervisor,omitempty"`
LastRun RunConfig `json:"lastRun,omitempty"`
}
type InstanceSummary ¶
type NodeState ¶
type NodeState string
const ( StatePending NodeState = "pending" StateReady NodeState = "ready" StateRunning NodeState = "running" StateCached NodeState = "cached" StateDone NodeState = "done" StateFailed NodeState = "failed" StateMigrationNeeded NodeState = "migration_needed" StateCanceled NodeState = "canceled" StateStopped NodeState = "stopped" StateDirty NodeState = "dirty" StateSkipped NodeState = "skipped" )
type NodeStatus ¶
type ProcessRef ¶
type RunResult ¶
type RunResult struct {
Target string `json:"target"`
Mode RunMode `json:"mode"`
InstanceID string `json:"instanceId"`
Success bool `json:"success"`
DurationMs int64 `json:"durationMs"`
FailedNode string `json:"failedNode,omitempty"`
CacheHits []string `json:"cacheHits"`
StartedAt string `json:"startedAt"`
FinishedAt string `json:"finishedAt"`
}
type StatusResult ¶
type StatusResult struct {
InstanceID string `json:"instanceId"`
Worktree string `json:"worktree,omitempty"`
Target string `json:"target"`
Mode RunMode `json:"mode,omitempty"`
UpdatedAt time.Time `json:"updatedAt,omitempty"`
Ports map[string]int `json:"ports,omitempty"`
DB DBInstance `json:"db,omitempty"`
URLs map[string]string `json:"urls,omitempty"`
Supervisor *SupervisorStatus `json:"supervisor,omitempty"`
Nodes []NodeStatus `json:"nodes"`
}
type SupervisorRef ¶
type SupervisorStatus ¶
type UpgradeResult ¶
Click to show internal directories.
Click to hide internal directories.