Documentation
¶
Index ¶
- func New(ctx context.Context, invoker dexec.ComponentInvoker, ...) (reportstore.Client, error)
- func NewAuditSink(store *Store) reportingsvc.AuditSink
- func WithInternalAccess(ctx context.Context) context.Context
- type Store
- func (s *Store) AdoptReportRunAndContextCAS(ctx context.Context, run *reportrunmodel.Record, expectedRunRevision int64, ...) error
- func (s *Store) ClaimJob(ctx context.Context, jobID string, startedAt time.Time) (*reportjobmodel.Record, error)
- func (s *Store) CompleteJobWithArtifact(ctx context.Context, jobID string, artifact *reportartifactmodel.Record, ...) (*reportjobmodel.Record, error)
- func (s *Store) CreateJob(ctx context.Context, job *reportjobmodel.Record) error
- func (s *Store) CreateReportRun(ctx context.Context, run *reportrunmodel.Record) error
- func (s *Store) CreateSharedArtifact(ctx context.Context, artifact *reportshareartifactmodel.Record) error
- func (s *Store) DeleteSharedArtifact(ctx context.Context, artifactID string) error
- func (s *Store) FailJob(ctx context.Context, jobID, errorText string, diagnostics []byte, ...) (*reportjobmodel.Record, error)
- func (s *Store) GetArtifact(ctx context.Context, artifactID string) (*reportartifactmodel.Record, error)
- func (s *Store) GetConversationReportContext(ctx context.Context, conversationID string) (*reportcontextmodel.Record, error)
- func (s *Store) GetJob(ctx context.Context, jobID string) (*reportjobmodel.Record, error)
- func (s *Store) GetReportRun(ctx context.Context, reportRunID string) (*reportrunmodel.Record, error)
- func (s *Store) GetReportRunByRequestID(ctx context.Context, uiRunRequestID string) (*reportrunmodel.Record, error)
- func (s *Store) GetSharedArtifact(ctx context.Context, artifactID string) (*reportshareartifactmodel.Record, error)
- func (s *Store) ListArtifacts(ctx context.Context) ([]*reportartifactmodel.Record, error)
- func (s *Store) ListJobs(ctx context.Context) ([]*reportjobmodel.Record, error)
- func (s *Store) ListSharedArtifacts(ctx context.Context) ([]*reportshareartifactmodel.Record, error)
- func (s *Store) PutArtifact(ctx context.Context, artifact *reportartifactmodel.Record) error
- func (s *Store) PutConversationReportContextCAS(ctx context.Context, record *reportcontextmodel.Record, expectedRevision int64) error
- func (s *Store) ReconcileRunningJobs(ctx context.Context, staleBefore, reconciledAt time.Time, errorText string) ([]*reportjobmodel.Record, error)
- func (s *Store) SubmitJobFromRun(ctx context.Context, candidate *reportjobmodel.Record) (*reportjobmodel.Record, bool, error)
- func (s *Store) UpdateJob(ctx context.Context, job *reportjobmodel.Record) error
- func (s *Store) UpdateReportRunCAS(ctx context.Context, run *reportrunmodel.Record, expectedRevision int64) error
- func (s *Store) UpdateSharedArtifact(ctx context.Context, artifact *reportshareartifactmodel.Record) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(ctx context.Context, invoker dexec.ComponentInvoker, stateStore workspace.StateStore, fallback reportstore.Client) (reportstore.Client, error)
func NewAuditSink ¶
func NewAuditSink(store *Store) reportingsvc.AuditSink
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AdoptReportRunAndContextCAS ¶ added in v0.1.23
func (s *Store) AdoptReportRunAndContextCAS(ctx context.Context, run *reportrunmodel.Record, expectedRunRevision int64, record *reportcontextmodel.Record, expectedContextRevision int64) error
AdoptReportRunAndContextCAS binds the completed manual run and advances the conversation pointer in one SQL transaction.
func (*Store) CompleteJobWithArtifact ¶ added in v0.1.23
func (*Store) CreateReportRun ¶ added in v0.1.23
CreateReportRun persists a new owner-scoped browser materialization.
func (*Store) CreateSharedArtifact ¶
func (*Store) DeleteSharedArtifact ¶ added in v0.1.23
DeleteSharedArtifact removes an owned shared reporting artifact.
func (*Store) GetArtifact ¶
func (*Store) GetConversationReportContext ¶ added in v0.1.23
func (s *Store) GetConversationReportContext(ctx context.Context, conversationID string) (*reportcontextmodel.Record, error)
GetConversationReportContext loads the active run pointer for an exact owner+conversation pair.
func (*Store) GetReportRun ¶ added in v0.1.23
func (s *Store) GetReportRun(ctx context.Context, reportRunID string) (*reportrunmodel.Record, error)
GetReportRun loads a browser run in the authenticated owner scope.
func (*Store) GetReportRunByRequestID ¶ added in v0.1.23
func (s *Store) GetReportRunByRequestID(ctx context.Context, uiRunRequestID string) (*reportrunmodel.Record, error)
GetReportRunByRequestID resolves a transport retry in owner scope.
func (*Store) GetSharedArtifact ¶
func (*Store) ListArtifacts ¶
func (*Store) ListSharedArtifacts ¶
func (*Store) PutArtifact ¶
func (*Store) PutConversationReportContextCAS ¶ added in v0.1.23
func (s *Store) PutConversationReportContextCAS(ctx context.Context, record *reportcontextmodel.Record, expectedRevision int64) error
PutConversationReportContextCAS creates revision one from expected zero or updates an exact existing revision.
func (*Store) ReconcileRunningJobs ¶ added in v0.1.23
func (*Store) SubmitJobFromRun ¶ added in v0.1.23
func (s *Store) SubmitJobFromRun(ctx context.Context, candidate *reportjobmodel.Record) (*reportjobmodel.Record, bool, error)
func (*Store) UpdateReportRunCAS ¶ added in v0.1.23
func (s *Store) UpdateReportRunCAS(ctx context.Context, run *reportrunmodel.Record, expectedRevision int64) error
UpdateReportRunCAS replaces a run only when its owner and revision match.