Documentation ¶
Index ¶
- func IsKeyLoadError(err error) bool
- func IsManifestLoadError(err error) bool
- func MakeDatafilePath(ctx Context, filemeta Filemeta) string
- type Context
- type Datafile
- func (d Datafile) DecodeData() ([]byte, error)
- func (d Datafile) Equal(other Datafile) bool
- func (d Datafile) Id() []byte
- func (d Datafile) MatchesCurrent(filemeta Filemeta) bool
- func (d Datafile) Path() string
- func (d Datafile) Perm() int
- func (d Datafile) Serialize() []byte
- func (d Datafile) Write(filemeta Filemeta)
- type Filemeta
- type KeyLoadError
- type LgConfig
- type Manifest
- type ManifestLoadError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsKeyLoadError ¶ added in v0.6.0
func IsManifestLoadError ¶ added in v0.6.0
func MakeDatafilePath ¶
Types ¶
type Context ¶ added in v0.6.0
type Context struct { WorkingPath string // working dir ProjectPath string // path of the parent for .lockgit LockgitPath string // path to .lockgit DataPath string // path to .lockgit/data ConfigPath string // path to .lockgit/data/lgconfig Config LgConfig // Config data Key []byte // key bytes loaded from lgconfig (if key is present) }
func FromPath ¶ added in v0.6.0
Return a Context provided a base to begin traversal from. The context will be from the first .lockgit directory found
func (Context) ImportManifest ¶ added in v0.6.0
func (Context) ProjRelPath ¶ added in v0.6.1
type Datafile ¶
type Datafile struct {
// contains filtered or unexported fields
}
func (Datafile) DecodeData ¶
func (Datafile) MatchesCurrent ¶ added in v0.8.0
Tests if a potential Datafile update matches the one already in the vault
type KeyLoadError ¶ added in v0.6.0
type KeyLoadError struct {
// contains filtered or unexported fields
}
func (*KeyLoadError) Error ¶ added in v0.6.0
func (err *KeyLoadError) Error() string
type LgConfig ¶ added in v0.6.0
func NewLgConfig ¶ added in v0.6.0
func NewLgConfig() LgConfig
func ReadConfig ¶ added in v0.6.0
func (*LgConfig) AddPattern ¶ added in v0.7.0
func (LgConfig) FindPattern ¶ added in v0.7.0
func (*LgConfig) RemovePattern ¶ added in v0.7.0
type Manifest ¶
type Manifest struct { Files []Filemeta // contains filtered or unexported fields }
func ImportManifest ¶
type ManifestLoadError ¶ added in v0.6.0
type ManifestLoadError struct {
// contains filtered or unexported fields
}
func (*ManifestLoadError) Error ¶ added in v0.6.0
func (err *ManifestLoadError) Error() string
Click to show internal directories.
Click to hide internal directories.