Versions in this module Expand all Collapse all v0 v0.9.0 Nov 29, 2019 v0.8.0 Nov 7, 2018 Changes in this version type Datafile + func (d Datafile) Equal(other Datafile) bool + func (d Datafile) Id() []byte + func (d Datafile) MatchesCurrent(filemeta Filemeta) bool type Filemeta + Id []byte + func (f Filemeta) IdString() string v0.7.1 Nov 3, 2018 v0.7.0 Nov 2, 2018 Changes in this version type LgConfig + Patterns []string + func (c *LgConfig) AddPattern(pattern string) bool + func (c *LgConfig) RemovePattern(pattern string) bool + func (c LgConfig) FindPattern(path string) int v0.6.1 Oct 31, 2018 Changes in this version type Context + func (c Context) ProjRelPath(absPath string) string v0.6.0 Oct 30, 2018 Changes in this version + func IsKeyLoadError(err error) bool + func IsManifestLoadError(err error) bool + type Context struct + Config LgConfig + ConfigPath string + DataPath string + Key []byte + LockgitPath string + ProjectPath string + WorkingPath string + func FromPath(path string) (Context, error) + func (c Context) ImportManifest() (Manifest, error) + func (c Context) RelPath(absPath string) string + type KeyLoadError struct + func (err *KeyLoadError) Error() string + type LgConfig struct + Id string + Ver int + func NewLgConfig() LgConfig + func ReadConfig(ctx Context) (LgConfig, error) + func (config LgConfig) Write(path string) + type ManifestLoadError struct + func (err *ManifestLoadError) Error() string v0.5.1 Oct 25, 2018 Changes in this version + func MakeDatafilePath(ctx context.Context, filemeta Filemeta) string + type Datafile struct + Data string + Path string + Perm int + Ver int + func NewDatafile(ctx context.Context, path string) (Datafile, error) + func ReadDatafile(ctx context.Context, filemeta Filemeta) (Datafile, error) + func (d Datafile) DecodeData() ([]byte, error) + func (d Datafile) Hash() []byte + func (d Datafile) MatchesHash(hash []byte) bool + func (d Datafile) Serialize() []byte + func (d Datafile) Write(ctx context.Context, filemeta Filemeta) + type Filemeta struct + AbsPath string + RelPath string + Sha []byte + func NewFilemeta(absPath string, datafile Datafile) Filemeta + func (f Filemeta) ShaString() string + func (f Filemeta) String() string + type Manifest struct + Files []Filemeta + func ImportManifest(ctx context.Context) Manifest + func (m *Manifest) Add(filemeta Filemeta) + func (m Manifest) Export() + func (m Manifest) Find(projRelPath string) int