storage

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const EventsFile = "events.jsonl"
View Source
const PlanFile = "plan.json"
View Source
const PolicyFile = "policy.yaml"
View Source
const RoadyDir = ".roady"
View Source
const SpecFile = "spec.yaml"
View Source
const SpecLockFile = "spec.lock.json"
View Source
const StateFile = "state.json"
View Source
const UsageFile = "usage.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type FilesystemRepository

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

func NewFilesystemRepository

func NewFilesystemRepository(root string) *FilesystemRepository

func (*FilesystemRepository) Initialize

func (r *FilesystemRepository) Initialize() error

func (*FilesystemRepository) IsInitialized

func (r *FilesystemRepository) IsInitialized() bool

func (*FilesystemRepository) LoadEvents

func (r *FilesystemRepository) LoadEvents() ([]domain.Event, error)

func (*FilesystemRepository) LoadPlan

func (r *FilesystemRepository) LoadPlan() (*planning.Plan, error)

func (*FilesystemRepository) LoadPolicy

func (r *FilesystemRepository) LoadPolicy() (*domain.PolicyConfig, error)

func (*FilesystemRepository) LoadSpec

func (r *FilesystemRepository) LoadSpec() (*spec.ProductSpec, error)

func (*FilesystemRepository) LoadSpecLock

func (r *FilesystemRepository) LoadSpecLock() (*spec.ProductSpec, error)

func (*FilesystemRepository) LoadState

func (*FilesystemRepository) LoadUsage

func (r *FilesystemRepository) LoadUsage() (*domain.UsageStats, error)

func (*FilesystemRepository) RecordEvent

func (r *FilesystemRepository) RecordEvent(event domain.Event) error

func (*FilesystemRepository) ResolvePath

func (r *FilesystemRepository) ResolvePath(filename string) (string, error)

ResolvePath ensures the path is within the .roady directory and prevents traversal.

func (*FilesystemRepository) SavePlan

func (r *FilesystemRepository) SavePlan(p *planning.Plan) error

func (*FilesystemRepository) SavePolicy

func (r *FilesystemRepository) SavePolicy(cfg *domain.PolicyConfig) error

func (*FilesystemRepository) SaveSpec

func (r *FilesystemRepository) SaveSpec(s *spec.ProductSpec) error

func (*FilesystemRepository) SaveSpecLock

func (r *FilesystemRepository) SaveSpecLock(s *spec.ProductSpec) error

func (*FilesystemRepository) SaveState

func (*FilesystemRepository) UpdateUsage

func (r *FilesystemRepository) UpdateUsage(stats domain.UsageStats) error

Jump to

Keyboard shortcuts

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