Documentation
¶
Overview ¶
Package setupstore persists per-app setup scripts (encrypted at rest) and the run ledger (plan §9). The script set + the run idempotence are keyed by the full script_set_checksum so a confirmation is void on any byte change and on_first_deploy runs exactly once per checksum.
Index ¶
- type Store
- func (s *Store) Delete(ctx context.Context, slug string) error
- func (s *Store) DeleteApp(ctx context.Context, slug string) error
- func (s *Store) Get(slug string) (sandbox.ScriptSet, bool, error)
- func (s *Store) HasSuccessfulRun(slug, checksum string) bool
- func (s *Store) RecordRunFinish(ctx context.Context, id int64, outcome string, exit int)
- func (s *Store) RecordRunStart(ctx context.Context, slug, checksum, actor string) int64
- func (s *Store) Save(ctx context.Context, slug string, ss sandbox.ScriptSet, autoDeploy bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store persists setup scripts + runs.
func (*Store) DeleteApp ¶
DeleteApp removes an app's setup script AND its run ledger. Used by the app-delete teardown (the plain Delete only drops the script).
func (*Store) HasSuccessfulRun ¶
HasSuccessfulRun reports whether (slug, checksum) already ran successfully — the on_first_deploy idempotence key (plan §7).
func (*Store) RecordRunFinish ¶
RecordRunFinish finalizes a run row.
func (*Store) RecordRunStart ¶
RecordRunStart inserts a run row and returns its id.