Documentation ¶
Index ¶
- Variables
- func AppendFile(absPath string, data []byte) bool
- func CountFiles(absPath string) int
- func EventPath(root, name string, version int) string
- func EventsPath(root, name string) string
- func Exists(absPath string) bool
- func ListDirectory(absPath string, ascending bool) []string
- func MetadataPath(root, name string) string
- func NotifyServiceReady()
- func NotifyServiceStopping()
- func ReadFileFully(absPath string) (bool, []byte)
- func RootPath(root string) string
- func SnapshotPath(root, name string, version int) string
- func SnapshotsPath(root, name string) string
- func TouchFile(absPath string) bool
- func UpdateFile(absPath string, data []byte) bool
- func WriteFile(absPath string, data []byte) bool
- type LogFormat
Constants ¶
This section is empty.
Variables ¶
JSON fascade for abstraction of json marshalling and unmarhalling
Functions ¶
func AppendFile ¶
AppendFile appens data given absolute path to a file, creates it if it does not exist
func CountFiles ¶
CountFiles returns number of items in directory
func ListDirectory ¶
ListDirectory returns sorted slice of item names in given absolute path default sorting is ascending
func MetadataPath ¶
MetadataPath returns filepath for given metadata
func NotifyServiceReady ¶
func NotifyServiceReady()
NotifyServiceReady notify underlying os that service is ready
func NotifyServiceStopping ¶
func NotifyServiceStopping()
NotifyServiceStopping notify underlying os that service is stopping
func ReadFileFully ¶
ReadFileFully reads whole file given absolute path
func SnapshotPath ¶
SnapshotPath returns filepath for given snapshot
func SnapshotsPath ¶
SnapshotsPath returns filepath for snapshots
func UpdateFile ¶
UpdateFile rewrite file with data given absolute path to a file if that file exist