Documentation
¶
Index ¶
- type PostgresStore
- func (s *PostgresStore) AcknowledgeArtifactReleased(ctx context.Context, id string, at time.Time) (model.ArtifactRecord, error)
- func (s *PostgresStore) ClaimAttempt(ctx context.Context, runID, nodeID string, at, lease time.Time) (model.Attempt, bool, error)
- func (s *PostgresStore) Close() error
- func (s *PostgresStore) CommitFailure(ctx context.Context, r, n, a string, at time.Time, msg string) (bool, error)
- func (s *PostgresStore) CommitRetry(ctx context.Context, r, n, a string, at time.Time, msg string, fail int, ...) (bool, error)
- func (s *PostgresStore) CommitSuccess(ctx context.Context, r, n, a string, at time.Time, o json.RawMessage) (bool, error)
- func (s *PostgresStore) CreateRunForGraph(ctx context.Context, g string, input json.RawMessage) (model.RunRecord, error)
- func (s *PostgresStore) DeleteExecutionBinding(ctx context.Context, task, revision string) (bool, error)
- func (s *PostgresStore) ListActiveRunIDs(ctx context.Context) ([]string, error)
- func (s *PostgresStore) ListArtifacts(ctx context.Context, runID string) ([]model.ArtifactRecord, error)
- func (s *PostgresStore) ListAttempts(ctx context.Context, runID string, node *string) ([]model.Attempt, error)
- func (s *PostgresStore) ListTaskContractHeadsByOwner(ctx context.Context, owner string) ([]model.TaskContractHead, error)
- func (s *PostgresStore) LoadAttempt(ctx context.Context, id string) (model.Attempt, error)
- func (s *PostgresStore) LoadExecutionBinding(ctx context.Context, task, revision string) (model.ExecutionBinding, error)
- func (s *PostgresStore) LoadGraph(ctx context.Context, r string) (model.GraphDefinition, error)
- func (s *PostgresStore) LoadGraphHead(ctx context.Context, n string) (string, error)
- func (s *PostgresStore) LoadRun(ctx context.Context, id string) (model.Run, error)
- func (s *PostgresStore) LoadRunRecord(ctx context.Context, id string) (model.RunRecord, error)
- func (s *PostgresStore) LoadTaskContract(ctx context.Context, task, revision string) (model.TaskContract, error)
- func (s *PostgresStore) LoadTaskContractHead(ctx context.Context, task string) (model.TaskContractHead, error)
- func (s *PostgresStore) PublishPackage(ctx context.Context, p store.PublishPackageParams) (store.PublishPackageResult, error)
- func (s *PostgresStore) PublishTaskContract(ctx context.Context, p store.PublishTaskContractParams) (model.TaskContract, error)
- func (s *PostgresStore) RegisterGraph(ctx context.Context, p store.RegisterGraphParams) (model.GraphDefinition, error)
- func (s *PostgresStore) RenewAttempt(ctx context.Context, id string, lease time.Time) (bool, error)
- func (s *PostgresStore) RetryNode(ctx context.Context, runID, nodeID string) (bool, error)
- func (s *PostgresStore) SaveExecutionBinding(ctx context.Context, b model.ExecutionBinding) (model.ExecutionBinding, error)
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresStore ¶
type PostgresStore struct {
// contains filtered or unexported fields
}
func (*PostgresStore) AcknowledgeArtifactReleased ¶
func (s *PostgresStore) AcknowledgeArtifactReleased(ctx context.Context, id string, at time.Time) (model.ArtifactRecord, error)
func (*PostgresStore) ClaimAttempt ¶
func (*PostgresStore) Close ¶
func (s *PostgresStore) Close() error
func (*PostgresStore) CommitFailure ¶
func (*PostgresStore) CommitRetry ¶
func (*PostgresStore) CommitSuccess ¶
func (s *PostgresStore) CommitSuccess(ctx context.Context, r, n, a string, at time.Time, o json.RawMessage) (bool, error)
func (*PostgresStore) CreateRunForGraph ¶
func (s *PostgresStore) CreateRunForGraph(ctx context.Context, g string, input json.RawMessage) (model.RunRecord, error)
func (*PostgresStore) DeleteExecutionBinding ¶
func (*PostgresStore) ListActiveRunIDs ¶
func (s *PostgresStore) ListActiveRunIDs(ctx context.Context) ([]string, error)
func (*PostgresStore) ListArtifacts ¶
func (s *PostgresStore) ListArtifacts(ctx context.Context, runID string) ([]model.ArtifactRecord, error)
func (*PostgresStore) ListAttempts ¶
func (*PostgresStore) ListTaskContractHeadsByOwner ¶
func (s *PostgresStore) ListTaskContractHeadsByOwner(ctx context.Context, owner string) ([]model.TaskContractHead, error)
func (*PostgresStore) LoadAttempt ¶
func (*PostgresStore) LoadExecutionBinding ¶
func (s *PostgresStore) LoadExecutionBinding(ctx context.Context, task, revision string) (model.ExecutionBinding, error)
func (*PostgresStore) LoadGraph ¶
func (s *PostgresStore) LoadGraph(ctx context.Context, r string) (model.GraphDefinition, error)
func (*PostgresStore) LoadGraphHead ¶
func (*PostgresStore) LoadRunRecord ¶
func (*PostgresStore) LoadTaskContract ¶
func (s *PostgresStore) LoadTaskContract(ctx context.Context, task, revision string) (model.TaskContract, error)
func (*PostgresStore) LoadTaskContractHead ¶
func (s *PostgresStore) LoadTaskContractHead(ctx context.Context, task string) (model.TaskContractHead, error)
func (*PostgresStore) PublishPackage ¶
func (s *PostgresStore) PublishPackage(ctx context.Context, p store.PublishPackageParams) (store.PublishPackageResult, error)
func (*PostgresStore) PublishTaskContract ¶
func (s *PostgresStore) PublishTaskContract(ctx context.Context, p store.PublishTaskContractParams) (model.TaskContract, error)
func (*PostgresStore) RegisterGraph ¶
func (s *PostgresStore) RegisterGraph(ctx context.Context, p store.RegisterGraphParams) (model.GraphDefinition, error)
func (*PostgresStore) RenewAttempt ¶
func (*PostgresStore) SaveExecutionBinding ¶
func (s *PostgresStore) SaveExecutionBinding(ctx context.Context, b model.ExecutionBinding) (model.ExecutionBinding, error)
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider owns the PostgreSQL pool. Each scoped store establishes its tenant with transaction-local state before executing application SQL.
func OpenProvider ¶
OpenProvider opens a migration-capable provider. Use it with a database owner during deployment or local development.
func OpenRestrictedProvider ¶
OpenRestrictedProvider opens the runtime provider without schema DDL. The database must already be migrated and the role must remain subject to RLS.
func (*Provider) DefaultStore ¶
Click to show internal directories.
Click to hide internal directories.