Documentation
¶
Index ¶
- func AcquirePathLock(sourcePath string) func()
- func ReadRevision(dataMountPath, sourcePath string, sourceType config.SourceType) (string, error)
- func RemoveRevision(dataMountPath, sourcePath string, sourceType config.SourceType) error
- func WriteRevision(dataMountPath, sourcePath string, sourceType config.SourceType, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcquirePathLock ¶
func AcquirePathLock(sourcePath string) func()
AcquirePathLock serializes access to cached source contents for one repository path.
func ReadRevision ¶
func ReadRevision(dataMountPath, sourcePath string, sourceType config.SourceType) (string, error)
ReadRevision returns the immutable revision recorded for a cached source directory.
func RemoveRevision ¶
func RemoveRevision(dataMountPath, sourcePath string, sourceType config.SourceType) error
RemoveRevision invalidates the recorded revision before cached source contents are replaced.
func WriteRevision ¶
func WriteRevision(dataMountPath, sourcePath string, sourceType config.SourceType, revision string) error
WriteRevision atomically records the immutable revision represented by a cached source directory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.