Versions in this module Expand all Collapse all v0 v0.3.0 Aug 11, 2026 v0.2.0 Jul 16, 2026 Changes in this version + func Exists(fs opctx.FS, path string) (bool, error) + func FindOrphanLockFiles(fs opctx.FS, lockDir string, ...) ([]string, error) + func LockPath(lockDir, componentName string) (string, error) + func ReadAllAtCommit(repo *gogit.Repository, commitHash string, lockRelDir string) (map[string]ComponentLock, error) + func Remove(fs opctx.FS, path string) error + func ValidateUpstreamCommit(fs opctx.FS, lockDir, componentName, configUpstreamCommit string) (string, error) + type ComponentLock struct + ImportCommit string + InputFingerprint string + ManualBump int + ResolutionInputHash string + UpstreamCommit string + Version int + func Load(fs opctx.FS, path string) (*ComponentLock, error) + func New() *ComponentLock + func Parse(data []byte) (*ComponentLock, error) + func ShowAtCommit(repo *gogit.Repository, commitHash string, lockFileRelPath string) (ComponentLock, error) + func (lock *ComponentLock) Save(fs opctx.FS, path string) error + type LockReader interface + Exists func(componentName string) (bool, error) + Get func(componentName string) (*ComponentLock, error) + LockDir func() string + ValidateConsistency func(components map[string]projectconfig.ComponentConfig, checkOrphans bool) (missingOrStale, orphans []string, err error) + type LockWriter interface + GetOrNew func(componentName string) (*ComponentLock, error) + Remove func(componentName string) error + Save func(componentName string, lock *ComponentLock) error + type Store struct + func NewStore(fs opctx.FS, lockDir string) *Store + func (s *Store) Exists(componentName string) (bool, error) + func (s *Store) FindOrphanLockFiles(components map[string]projectconfig.ComponentConfig) ([]string, error) + func (s *Store) Get(componentName string) (*ComponentLock, error) + func (s *Store) GetOrNew(componentName string) (*ComponentLock, error) + func (s *Store) LockDir() string + func (s *Store) PruneOrphans(components map[string]projectconfig.ComponentConfig) (int, error) + func (s *Store) Remove(componentName string) error + func (s *Store) Save(componentName string, lock *ComponentLock) error + func (s *Store) ValidateConsistency(components map[string]projectconfig.ComponentConfig, checkOrphans bool) (missingOrStale, orphans []string, err error)