Documentation
¶
Index ¶
- func CompareHashes(src, dst string) (string, string, error)
- func Copy(src string, dst string) error
- func GetHashFromFile(path string) (string, error)
- func GetHashFromPath(path string) (string, error)
- func GetHashFromTarget(target config.Target) (string, error)
- func IsTargetInDestination(target config.Target) bool
- type Syncer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHashFromFile ¶
Get a sha256 from a single file
Used in conjunction with
GetHashFromPath() and GetHashFromTarget()
To check which files to copy over when syncing
func GetHashFromPath ¶
The same as
GetHashFromTarget(config.Target)
But doesn't require the use of config.Target
func GetHashFromTarget ¶
This version relies on 3rd party packages and a virtual filesystem ¶
Get a general checksum of a whole directory, which is derived from the files in it
func IsTargetInDestination ¶ added in v0.0.2
Types ¶
type Syncer ¶
type Syncer struct {
// contains filtered or unexported fields
}
func (*Syncer) CheckChanges ¶
if there is a change, return true
Click to show internal directories.
Click to hide internal directories.