filesystem

package
v0.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package filesystem provides file-based repositories for the infrastructure layer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileLockfileRepository

type FileLockfileRepository struct{}

FileLockfileRepository implements ports.LockfileRepository using the local filesystem.

func NewFileLockfileRepository

func NewFileLockfileRepository() *FileLockfileRepository

NewFileLockfileRepository creates a new FileLockfileRepository.

func (*FileLockfileRepository) Exists

func (r *FileLockfileRepository) Exists(ctx context.Context, path string) (bool, error)

Exists checks if a lockfile exists at the given path.

func (*FileLockfileRepository) Load

Load reads a lockfile from the given path.

func (*FileLockfileRepository) Save

func (r *FileLockfileRepository) Save(ctx context.Context, lockfile *entities.Lockfile, path string) error

Save writes a lockfile to the given path.

Jump to

Keyboard shortcuts

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