Documentation
¶
Index ¶
- type Client
- func (c *Client) Bin() string
- func (c *Client) Check(localPath, dest string) error
- func (c *Client) Copy(localPath, dest string) error
- func (c *Client) CopyDir(localDir, dest string) error
- func (c *Client) CopyFrom(remoteSrc, localDest string) error
- func (c *Client) IsReachable(remote string) bool
- func (c *Client) ListRemotes() ([]string, error)
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 wraps rclone command-line calls.
func NewClient ¶
NewClient creates a new rclone client. If rclonePath is empty, "rclone" is used (found via PATH).
func (*Client) Copy ¶
Copy uploads a local file to an rclone remote destination. dest should be like "gdrive:QuestMedia/device123/Videos/"
func (*Client) IsReachable ¶ added in v0.5.0
IsReachable checks if a remote destination is reachable with a short timeout.
func (*Client) ListRemotes ¶
ListRemotes returns configured rclone remotes.
Click to show internal directories.
Click to hide internal directories.