filesystem

package
v0.1.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package filesystem provides Darwin filesystem adapters for ports.

Index

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

type DiagnosticStore

type DiagnosticStore struct {
	// contains filtered or unexported fields
}

func (*DiagnosticStore) ReplaceAttemptStatus

func (*DiagnosticStore) ReplaceInvocationStatus

func (*DiagnosticStore) ReplaceRunStatus

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)

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. Mutations are serialized by the project-local 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 (*PublicationStore) CommitPreparedComposite

func (*PublicationStore) InstallFinal

func (*PublicationStore) IssueReviewID

func (*PublicationStore) ObserveRun

func (*PublicationStore) PrepareComposite

func (*PublicationStore) ReplaceMutable

func (*PublicationStore) ResolveRun

func (*PublicationStore) StageFinal

func (*PublicationStore) WithNextPublicationEpoch

func (store *PublicationStore) WithNextPublicationEpoch(context.Context, ports.AnchoredRoot, func(context.Context, uint64) error) error

type ReviewIDGenerator

type ReviewIDGenerator interface {
	NewReviewID(time.Time) (domain.ReviewID, error)
}

ReviewIDGenerator is the narrow identity dependency required by publication.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL