Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSymlink ¶
CreateSymlink creates a symlink from target to source
func MigrateToSource ¶
MigrateToSource moves files from target to source, then creates symlink
func SyncTarget ¶
SyncTarget performs the sync operation for a single target
Types ¶
type TargetStatus ¶
type TargetStatus int
TargetStatus represents the state of a target
const ( StatusUnknown TargetStatus = iota StatusLinked // Target is a symlink pointing to source StatusNotExist // Target doesn't exist StatusHasFiles // Target exists with files (needs migration) StatusConflict // Target is a symlink pointing elsewhere StatusBroken // Target is a broken symlink )
func CheckStatus ¶
func CheckStatus(targetPath, sourcePath string) TargetStatus
CheckStatus checks the status of a target
func (TargetStatus) String ¶
func (s TargetStatus) String() string
Click to show internal directories.
Click to hide internal directories.