Documentation
¶
Overview ¶
Package filesystem provides Darwin filesystem adapters for ports.
Index ¶
- type DiagnosticStatusReader
- type DiagnosticStore
- func (*DiagnosticStore) Emit(context.Context, domain.RuntimeDiagnosticEventDraft) (domain.RuntimeDiagnosticEvent, error)
- func (*DiagnosticStore) Finalize(context.Context, ports.RuntimeDiagnosticFinalizeRequest) (ports.RuntimeDiagnosticFinalizeResult, error)
- func (*DiagnosticStore) PersistRaw(context.Context, ports.RuntimeDiagnosticRawRequest) (ports.RuntimeDiagnosticRawResult, error)
- func (*DiagnosticStore) ReplaceAttemptStatus(context.Context, ports.RuntimeDiagnosticAttemptStatus) error
- func (*DiagnosticStore) ReplaceInvocationStatus(context.Context, ports.RuntimeDiagnosticInvocationStatus) error
- func (*DiagnosticStore) ReplaceRunStatus(context.Context, ports.RuntimeDiagnosticRunStatus) error
- func (store *DiagnosticStore) URI() (ports.SafeRelativePath, bool)
- type DiagnosticStoreFactory
- type PublicationSchemaValidator
- type PublicationStore
- func (store *PublicationStore) AdoptStagedFinal(context.Context, ports.AdoptStagedFinalRequest) (ports.StageFinalResult, error)
- func (store *PublicationStore) CommitPreparedComposite(context.Context, ports.PreparedComposite) (ports.CompositeCommitResult, error)
- func (store *PublicationStore) InstallFinal(context.Context, ports.InstallFinalRequest) (ports.InstallFinalResult, error)
- func (store *PublicationStore) IssueReviewID(context.Context, ports.IssueReviewIDRequest) (ports.IssuedReviewID, error)
- func (store *PublicationStore) ObserveRun(context.Context, ports.ObserveRunRequest) (ports.PublicationObservation, error)
- func (store *PublicationStore) PersistAuxiliaryArtifact(context.Context, ports.PersistAuxiliaryArtifactRequest) (ports.PersistAuxiliaryArtifactResult, error)
- func (store *PublicationStore) PersistValidatedCandidate(context.Context, ports.PersistValidatedCandidateRequest) (ports.PersistValidatedCandidateResult, error)
- func (store *PublicationStore) PrepareComposite(context.Context, ports.PrepareCompositeRequest) (ports.PreparedComposite, error)
- func (store *PublicationStore) ReadAuxiliaryArtifact(context.Context, ports.ReadAuxiliaryArtifactRequest) (ports.ImmutablePublicationArtifact, error)
- func (store *PublicationStore) ReadCommittedSnapshot(context.Context, ports.ReadCommittedSnapshotRequest) (ports.CommittedPublicationSnapshot, error)
- func (store *PublicationStore) ReplaceMutable(context.Context, ports.MutableReplaceRequest) (ports.MutableReplaceResult, error)
- func (store *PublicationStore) ResolveRun(context.Context, ports.ResolvePublicationRunRequest) (ports.PublicationRun, error)
- func (store *PublicationStore) StageFinal(context.Context, ports.StageFinalRequest) (ports.StageFinalResult, error)
- func (store *PublicationStore) WithNextPublicationEpoch(context.Context, ports.AnchoredRoot, func(context.Context, uint64) error) error
- func (store *PublicationStore) WriteCorruptionDiagnostic(context.Context, ports.CorruptionDiagnosticRequest) (ports.CorruptionDiagnosticResult, error)
- type ReviewIDGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiagnosticStatusReader ¶ added in v0.1.3
type DiagnosticStatusReader struct{}
DiagnosticStatusReader exposes only the bounded diagnostic run status. Raw provider streams and event logs remain outside the public query boundary.
func NewDiagnosticStatusReader ¶ added in v0.1.3
func NewDiagnosticStatusReader() *DiagnosticStatusReader
func (*DiagnosticStatusReader) ReadRunStatus ¶ added in v0.1.3
func (*DiagnosticStatusReader) ReadRunStatus(context.Context, ports.AnchoredRoot, domain.RunID) (ports.RuntimeDiagnosticRunStatus, error)
type DiagnosticStore ¶
type DiagnosticStore struct {
// contains filtered or unexported fields
}
func (*DiagnosticStore) Emit ¶
func (*DiagnosticStore) Emit(context.Context, domain.RuntimeDiagnosticEventDraft) (domain.RuntimeDiagnosticEvent, error)
func (*DiagnosticStore) Finalize ¶
func (*DiagnosticStore) Finalize(context.Context, ports.RuntimeDiagnosticFinalizeRequest) (ports.RuntimeDiagnosticFinalizeResult, error)
func (*DiagnosticStore) PersistRaw ¶
func (*DiagnosticStore) PersistRaw(context.Context, ports.RuntimeDiagnosticRawRequest) (ports.RuntimeDiagnosticRawResult, error)
func (*DiagnosticStore) ReplaceAttemptStatus ¶
func (*DiagnosticStore) ReplaceAttemptStatus(context.Context, ports.RuntimeDiagnosticAttemptStatus) error
func (*DiagnosticStore) ReplaceInvocationStatus ¶
func (*DiagnosticStore) ReplaceInvocationStatus(context.Context, ports.RuntimeDiagnosticInvocationStatus) error
func (*DiagnosticStore) ReplaceRunStatus ¶
func (*DiagnosticStore) ReplaceRunStatus(context.Context, ports.RuntimeDiagnosticRunStatus) error
func (*DiagnosticStore) URI ¶
func (store *DiagnosticStore) URI() (ports.SafeRelativePath, bool)
type DiagnosticStoreFactory ¶
type DiagnosticStoreFactory struct {
// contains filtered or unexported fields
}
func NewDiagnosticStoreFactory ¶
func NewDiagnosticStoreFactory(writer ports.SecureFileWriter, clock ports.Clock) (*DiagnosticStoreFactory, error)
func (*DiagnosticStoreFactory) Open ¶
func (*DiagnosticStoreFactory) Open(context.Context, ports.RuntimeDiagnosticOpenRequest) (ports.RuntimeDiagnosticSink, error)
type PublicationSchemaValidator ¶
type PublicationSchemaValidator interface {
Validate(context.Context, ports.AssetID, []byte) error
}
PublicationSchemaValidator validates the two consumer-owned publication schemas. The concrete JSON Schema adapter satisfies this interface directly.
type PublicationStore ¶
type PublicationStore struct {
// contains filtered or unexported fields
}
PublicationStore is the Darwin durable publication authority. All filesystem access is serialized through the process-wide mutex and an on-disk flock.
func NewPublicationStore ¶
func NewPublicationStore( validator PublicationSchemaValidator, clock ports.Clock, ids ReviewIDGenerator, writer ports.SecureFileWriter, ) (*PublicationStore, error)
NewPublicationStore constructs a durable publication adapter. It performs no filesystem I/O; roots are validated by each operation's PublicationRun.
func (*PublicationStore) AdoptStagedFinal ¶
func (store *PublicationStore) AdoptStagedFinal(context.Context, ports.AdoptStagedFinalRequest) (ports.StageFinalResult, error)
func (*PublicationStore) CommitPreparedComposite ¶
func (store *PublicationStore) CommitPreparedComposite(context.Context, ports.PreparedComposite) (ports.CompositeCommitResult, error)
func (*PublicationStore) InstallFinal ¶
func (store *PublicationStore) InstallFinal(context.Context, ports.InstallFinalRequest) (ports.InstallFinalResult, error)
func (*PublicationStore) IssueReviewID ¶
func (store *PublicationStore) IssueReviewID(context.Context, ports.IssueReviewIDRequest) (ports.IssuedReviewID, error)
func (*PublicationStore) ObserveRun ¶
func (store *PublicationStore) ObserveRun(context.Context, ports.ObserveRunRequest) (ports.PublicationObservation, error)
func (*PublicationStore) PersistAuxiliaryArtifact ¶
func (store *PublicationStore) PersistAuxiliaryArtifact(context.Context, ports.PersistAuxiliaryArtifactRequest) (ports.PersistAuxiliaryArtifactResult, error)
func (*PublicationStore) PersistValidatedCandidate ¶
func (store *PublicationStore) PersistValidatedCandidate(context.Context, ports.PersistValidatedCandidateRequest) (ports.PersistValidatedCandidateResult, error)
func (*PublicationStore) PrepareComposite ¶
func (store *PublicationStore) PrepareComposite(context.Context, ports.PrepareCompositeRequest) (ports.PreparedComposite, error)
func (*PublicationStore) ReadAuxiliaryArtifact ¶
func (store *PublicationStore) ReadAuxiliaryArtifact(context.Context, ports.ReadAuxiliaryArtifactRequest) (ports.ImmutablePublicationArtifact, error)
func (*PublicationStore) ReadCommittedSnapshot ¶
func (store *PublicationStore) ReadCommittedSnapshot(context.Context, ports.ReadCommittedSnapshotRequest) (ports.CommittedPublicationSnapshot, error)
func (*PublicationStore) ReplaceMutable ¶
func (store *PublicationStore) ReplaceMutable(context.Context, ports.MutableReplaceRequest) (ports.MutableReplaceResult, error)
func (*PublicationStore) ResolveRun ¶
func (store *PublicationStore) ResolveRun(context.Context, ports.ResolvePublicationRunRequest) (ports.PublicationRun, error)
func (*PublicationStore) StageFinal ¶
func (store *PublicationStore) StageFinal(context.Context, ports.StageFinalRequest) (ports.StageFinalResult, error)
func (*PublicationStore) WithNextPublicationEpoch ¶
func (store *PublicationStore) WithNextPublicationEpoch(context.Context, ports.AnchoredRoot, func(context.Context, uint64) error) error
func (*PublicationStore) WriteCorruptionDiagnostic ¶
func (store *PublicationStore) WriteCorruptionDiagnostic(context.Context, ports.CorruptionDiagnosticRequest) (ports.CorruptionDiagnosticResult, error)