Documentation ¶
Index ¶
- Constants
- func DataDirPath(ctxt context.Context) string
- func DirExists(path string) bool
- func DotDirPath(ctxt context.Context) string
- func FileExists(path string) bool
- func GetDirs(root string) ([]string, error)
- func GrapplicationDatasetDirPath(ctxt context.Context, datasetName string) (string, error)
- func GrapplicationDgrzDirPath(ctxt context.Context) (string, error)
- func GrapplicationDirPath(ctxt context.Context) (string, error)
- func GrapplicationExist(ctxt context.Context, grappDirPath string) bool
- func GrapplicationObjectsDirPath(ctxt context.Context) (string, error)
- func GrapplicationRefsDirPath(ctxt context.Context) (string, error)
- func GrapplicationRefsHeadsDirPath(ctxt context.Context) (string, error)
- func IndexFilePath(ctxt context.Context) (string, error)
- func Touch(path string) error
- func WriteCommitHashToCurrentBranchHeadFile(ctxt context.Context, grappDirPath string, commitHash string) error
- func WriteHeadFile(ctxt context.Context, grappDirPath string, branchName string) error
- func WriteToFileAtomic(readerFunc func() (io.Reader, error), path string) (int64, error)
Constants ¶
View Source
const DgrzDirName = ".dgrz"
BASE GRAP DIR FOR ALL STATE FILES
View Source
const DirLockFileName = ".__dirlock__"
View Source
const GrapplicationIdFileName = "ID"
View Source
const HeadFileName = "HEAD"
View Source
const HeadsDirName = "heads"
View Source
const IPFSAPIPortCounterFileName = ".ipfs-api-port-counter"
View Source
const IndexFileName = ".index"
View Source
const IndexFormatVersion = uint32(1)
View Source
const JSONLDDocumentName = ".document.jsonld"
View Source
const LOCK_FILE_SUFFIX = ".lock"
View Source
const MasterBranchName = "main"
View Source
const ObjectsDirName = "objects" // where file objects are cached
View Source
const RefsDirName = "refs"
View Source
const ResourceCacheSignature = "RESC"
Variables ¶
This section is empty.
Functions ¶
func DataDirPath ¶
func DotDirPath ¶
func FileExists ¶
func WriteHeadFile ¶
func WriteToFileAtomic ¶
Writes contents of Reader object to 'path' atomically i.e. no other writers can write at the same time. An attempt for other writers to do so simultaneously will result inn a 'TryAgain' error being returned RETURNS PathError or TryAgain error types
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.