Documentation
¶
Overview ¶
Package state owns ggvalet's transactional operational state.
Index ¶
- Constants
- func Digest(v any) string
- type Operation
- type PlanRun
- type PlanStep
- type Receipt
- type Store
- func (s *Store) Begin(ctx context.Context, op Operation) (string, error)
- func (s *Store) Close() error
- func (s *Store) Complete(ctx context.Context, id, status, detail string) error
- func (s *Store) ExportJSONL(ctx context.Context, w io.Writer) error
- func (s *Store) ImportLegacy(ctx context.Context, path string) error
- func (s *Store) Receipts(ctx context.Context) ([]Receipt, error)
- func (s *Store) Run(ctx context.Context, id string) (PlanRun, []PlanStep, error)
- func (s *Store) SetRunStatus(ctx context.Context, id, status, detail string) error
- func (s *Store) SetStep(ctx context.Context, runID, stepID, status string, remoteID, remoteIID int, ...) error
- func (s *Store) StartRun(ctx context.Context, targetKey, provider string, planJSON []byte, ...) (string, error)
Constants ¶
View Source
const ( StatusPending = "pending" StatusRunning = "running" StatusSucceeded = "succeeded" StatusFailed = "failed" StatusBlocked = "blocked" StatusUncertain = "uncertain" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Operation ¶
type Operation struct {
Provider, Host, Action, Resource, Target, InputDigest string
}
Click to show internal directories.
Click to hide internal directories.