file

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DATADIR = ".datasync"
View Source
const HISTORY_FILE = ".datasync"
View Source
const VERSION_FILE = ".datasync_version"

Variables

This section is empty.

Functions

func DataDir

func DataDir() (string, error)

func FindCurrentDir added in v0.1.0

func FindCurrentDir() (string, error)

func GetCurrentVersion added in v1.1.0

func GetCurrentVersion(args []string) (data.VersionType, error)

func MakeTempDir

func MakeTempDir() (string, error)

func MoveFile added in v1.1.0

func MoveFile(sourcePath, destPath string) error

func MoveVersionToRemote added in v0.1.0

func MoveVersionToRemote(version data.VersionType)

func NewUUID added in v1.1.0

func NewUUID() (string, error)

func ReadLocalDataSyncFile added in v0.1.0

func ReadLocalDataSyncFile() data.DataSyncType

func ReadRemoteDataSyncFile added in v0.1.0

func ReadRemoteDataSyncFile() data.DataSyncType

func ReadVersionFile

func ReadVersionFile() string

func UpdateVersionFile

func UpdateVersionFile(versionId string) error

func WriteLocalDataSyncFile added in v0.1.0

func WriteLocalDataSyncFile(d data.DataSyncType) error

func WriteRemoteDataSyncFile added in v0.1.0

func WriteRemoteDataSyncFile(d data.DataSyncType) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL