Documentation
¶
Index ¶
- func DirDiff(ctx context.Context, store entities.CASStore, a, b entities.Hash) <-chan DiffActionErr
- func ReadStatus(root string) (binding.WorkspaceStatus, error)
- func SetupEmptyGitRepos(casfs bindcas.CASFS, root, workDir, gitDir, objectsDir string) error
- type ActiveWS
- func (m *ActiveWS) GetStatus() *binding.WorkspaceStatus
- func (m *ActiveWS) PutWSSnapshot(ctx context.Context, wsSnap *binding.WSSnapshot, prevHash entities.Hash) error
- func (m *ActiveWS) RemoveStatusFile()
- func (m *ActiveWS) Stop()
- func (m *ActiveWS) Sync(ctx context.Context)
- func (m *ActiveWS) WriteStatus() error
- type DiffAction
- type DiffActionErr
- type SnapDiff
- type Workspaces
- func (s *Workspaces) Clone(name string, newWS string) error
- func (s *Workspaces) FetchSnapshotByHash(ctx context.Context, hash entities.Hash) (*binding.WSSnapshot, error)
- func (s *Workspaces) FetchWSSnapshot(ctx context.Context, wsName string) (*binding.WSSnapshot, error)
- func (s *Workspaces) List() (map[string]entities.Hash, error)
- func (s *Workspaces) PutSnapshotHash(wsName string, hash, prevHash entities.Hash) error
- func (s *Workspaces) PutWSSnapshot(ctx context.Context, wsName string, wsSnap *binding.WSSnapshot, ...) error
- func (s *Workspaces) Remove(wsName string, prevHash entities.Hash) error
- func (s *Workspaces) Resolve(paths []string) error
- func (s *Workspaces) SnapshotHash(wsName string) (entities.Hash, error)
- func (s *Workspaces) StatusFromPath(path string) (binding.WorkspaceStatus, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadStatus ¶
func ReadStatus(root string) (binding.WorkspaceStatus, error)
Types ¶
type ActiveWS ¶
func NewActive ¶
func NewActive(wsName, path string, wsSnap *binding.WSSnapshot, ws *Workspaces, mntDaemon binding.MountDaemon, casfs bindcas.CASFS) *ActiveWS
func (*ActiveWS) GetStatus ¶
func (m *ActiveWS) GetStatus() *binding.WorkspaceStatus
func (*ActiveWS) PutWSSnapshot ¶
func (*ActiveWS) RemoveStatusFile ¶
func (m *ActiveWS) RemoveStatusFile()
func (*ActiveWS) WriteStatus ¶
type DiffAction ¶
type DiffActionErr ¶
type DiffActionErr = struct {
DiffAction
Err error
}
type Workspaces ¶
func NewWorkspaces ¶
func NewWorkspaces(store entities.CASStore, cacheman *client.Client) *Workspaces
func (*Workspaces) FetchSnapshotByHash ¶
func (s *Workspaces) FetchSnapshotByHash(ctx context.Context, hash entities.Hash) (*binding.WSSnapshot, error)
func (*Workspaces) FetchWSSnapshot ¶
func (s *Workspaces) FetchWSSnapshot(ctx context.Context, wsName string) (*binding.WSSnapshot, error)
func (*Workspaces) PutSnapshotHash ¶
func (s *Workspaces) PutSnapshotHash(wsName string, hash, prevHash entities.Hash) error
func (*Workspaces) PutWSSnapshot ¶
func (s *Workspaces) PutWSSnapshot(ctx context.Context, wsName string, wsSnap *binding.WSSnapshot, prevHash entities.Hash) error
func (*Workspaces) Remove ¶
func (s *Workspaces) Remove(wsName string, prevHash entities.Hash) error
func (*Workspaces) Resolve ¶
func (s *Workspaces) Resolve(paths []string) error
func (*Workspaces) SnapshotHash ¶
func (s *Workspaces) SnapshotHash(wsName string) (entities.Hash, error)
func (*Workspaces) StatusFromPath ¶
func (s *Workspaces) StatusFromPath(path string) (binding.WorkspaceStatus, error)
Click to show internal directories.
Click to hide internal directories.