Documentation ¶
Index ¶
- type Change
- type Client
- func (cl *Client) Become(who string) error
- func (cl *Client) Cat(path string) (io.ReadCloser, error)
- func (cl *Client) ClearExplicitPins(prefix, from, to string) (int, error)
- func (cl *Client) Close() error
- func (cl *Client) ConfigAll() (map[string]string, error)
- func (cl *Client) ConfigGet(key string) (string, error)
- func (cl *Client) ConfigSet(key, value string) error
- func (cl *Client) Connect() error
- func (cl *Client) Copy(srcPath, dstPath string) error
- func (cl *Client) Disconnect() error
- func (cl *Client) Exists(path string) (bool, error)
- func (ctl *Client) Fetch(remote string) error
- func (cl *Client) GarbageCollect(aggressive bool) ([]*GarbageItem, error)
- func (cl *Client) History(path string) ([]*Change, error)
- func (cl *Client) Init(path, owner, password, backend string) error
- func (cl *Client) List(root string, maxDepth int) ([]StatInfo, error)
- func (cl *Client) ListExplicitPins(prefix, from, to string) ([]ExplicitPin, error)
- func (cl *Client) LocalAddr() net.Addr
- func (cl *Client) Log() ([]Commit, error)
- func (cl *Client) MakeCommit(msg string) error
- func (cl *Client) MakeDiff(local, remote, localRev, remoteRev string, needFetch bool) (*Diff, error)
- func (cl *Client) Mkdir(path string, createParents bool) error
- func (cl *Client) Mount(mountPath string) error
- func (cl *Client) Move(srcPath, dstPath string) error
- func (cl *Client) NetLocate(who, mask string, timeoutSec float64) (chan *LocateResult, error)
- func (cl *Client) OnlinePeers() ([]PeerStatus, error)
- func (cl *Client) Pin(path string) error
- func (cl *Client) Ping() error
- func (cl *Client) Quit() error
- func (cl *Client) RemoteAdd(remote Remote) error
- func (cl *Client) RemoteAddr() net.Addr
- func (cl *Client) RemoteClear() error
- func (cl *Client) RemoteLs() ([]Remote, error)
- func (cl *Client) RemotePing(who string) (float64, error)
- func (cl *Client) RemoteRm(name string) error
- func (cl *Client) RemoteSave(remotes []Remote) error
- func (cl *Client) Remove(path string) error
- func (cl *Client) Reset(path, rev string, force bool) error
- func (cl *Client) SetExplicitPins(prefix, from, to string) (int, error)
- func (cl *Client) Stage(localPath, repoPath string) error
- func (cl *Client) StageFromData(path string, r io.Reader) error
- func (cl *Client) Stat(path string) (*StatInfo, error)
- func (ctl *Client) Sync(remote string, needFetch bool) error
- func (cl *Client) Tag(rev, name string) error
- func (cl *Client) Touch(path string) error
- func (cl *Client) Unmount(mountPath string) error
- func (cl *Client) Unpin(path string) error
- func (cl *Client) Untag(name string) error
- func (cl *Client) Version() (*VersionInfo, error)
- func (cl *Client) Whoami() (*Whoami, error)
- type Commit
- type Diff
- type DiffPair
- type ExplicitPin
- type GarbageItem
- type LocateResult
- type PeerStatus
- type Remote
- type RemoteFolder
- type StatInfo
- type VersionInfo
- type Whoami
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a helper API that implements the rpc interface to brig and makes all data easily accessible from Go. Note that this layer is needed, so we could later support other languages.
func (*Client) ClearExplicitPins ¶
func (*Client) Disconnect ¶
func (*Client) GarbageCollect ¶
func (cl *Client) GarbageCollect(aggressive bool) ([]*GarbageItem, error)
func (*Client) ListExplicitPins ¶
func (cl *Client) ListExplicitPins(prefix, from, to string) ([]ExplicitPin, error)
func (*Client) MakeCommit ¶
func (*Client) NetLocate ¶
func (cl *Client) NetLocate(who, mask string, timeoutSec float64) (chan *LocateResult, error)
func (*Client) OnlinePeers ¶
func (cl *Client) OnlinePeers() ([]PeerStatus, error)
func (*Client) RemoteAddr ¶
Return info about the remote addr
func (*Client) RemoteClear ¶
func (*Client) RemoteSave ¶
func (*Client) SetExplicitPins ¶
func (*Client) Version ¶
func (cl *Client) Version() (*VersionInfo, error)
type ExplicitPin ¶
type LocateResult ¶
type PeerStatus ¶
type Remote ¶
type Remote struct { Name string `yaml:"Name"` Fingerprint string `yaml:"Fingerprint"` Folders []RemoteFolder `yaml:"Folders,omitempty,flow"` }
type RemoteFolder ¶
type VersionInfo ¶
Click to show internal directories.
Click to hide internal directories.