bookkeeping

package
v0.0.0-...-3f59448 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package bookkeeping helps persist documents state to disk

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommandInterimState

func GetCommandInterimState(log log.T, commandID, instanceID, locationFolder string) message.CommandState

GetCommandInterimState returns CommandState object after reading file <commandID> from locationFolder under defaultLogDir/instanceID

func GetDocumentInfo

func GetDocumentInfo(log log.T, commandID, instanceID, locationFolder string) message.DocumentInfo

GetDocumentInfo returns the document info for the specified commandID

func GetPluginState

func GetPluginState(log log.T, pluginID, commandID, instanceID, locationFolder string) message.PluginState

GetPluginState returns PluginState after reading fileName from given locationFolder under defaultLogDir/instanceID

func MoveCommandState

func MoveCommandState(log log.T, commandID, instanceID, srcLocationFolder, dstLocationFolder string)

MoveCommandState moves the CommandState object

func PersistData

func PersistData(log log.T, commandID, instanceID, locationFolder string, object interface{})

PersistData stores the given object in the file-system in pretty Json indented format This will override the contents of an already existing file

func PersistDocumentInfo

func PersistDocumentInfo(log log.T, docInfo message.DocumentInfo, commandID, instanceID, locationFolder string)

PersistDocumentInfo stores the given PluginState in file-system in pretty Json indented format This will override the contents of an already existing file

func PersistPluginState

func PersistPluginState(log log.T, pluginState message.PluginState, pluginID, commandID, instanceID, locationFolder string)

PersistPluginState stores the given PluginState in file-system in pretty Json indented format This will override the contents of an already existing file

func RemoveData

func RemoveData(log log.T, commandID, instanceID, locationFolder string)

RemoveData deletes the fileName from locationFolder under defaultLogDir/instanceID

Types

This section is empty.

Jump to

Keyboard shortcuts

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