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.
type Lockfile ¶
type Lockfile struct {
Generated time.Time `yaml:"generated"`
Plugins map[string]PluginLock `yaml:"plugins"`
Version int `yaml:"lockfile_version"`
}
Lockfile represents the YAML structure of a lockfile.
func FromEntity ¶
FromEntity converts a domain lockfile to YAML representation.
type PluginLock ¶
type PluginLock struct {
Fetched time.Time `yaml:"fetched,omitempty"`
Modified time.Time `yaml:"modified,omitempty"`
Requested string `yaml:"requested"`
Resolved string `yaml:"resolved"`
Source string `yaml:"source"`
Digest string `yaml:"sha256"`
}
PluginLock represents a pinned plugin version in YAML.
Click to show internal directories.
Click to hide internal directories.