Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Close()
- func (c *Client) CreateDir(projectID, projectName, path string) (dataDirID string, err error)
- func (c *Client) CreateProject(projectName string) (*Project, error)
- func (c *Client) IndexProject(path string) error
- func (c *Client) LoadFromRemote(path string) error
- func (c *Client) Login(user, apikey string) error
- func (c *Client) Logout() error
- func (c *Client) LookupProject()
- func (c *Client) RestartFileUpload(dataFileID, path string) (bytesUploaded int64, err error)
- func (c *Client) StatProject(projectName string) (*ProjectStat, error)
- func (c *Client) UploadDirectory(projectID, dataDirID string, path string) ([]DataFileUpload, error)
- func (c *Client) UploadNewFile(projectID, dataDirID, path string) (bytesUploaded int64, dataFileID string, err error)
- func (c *Client) UploadNewProject(path string) error
- type DataFileUpload
- type Project
- type ProjectStat
Constants ¶
This section is empty.
Variables ¶
var ErrBadResponseType = fmt.Errorf("unexpected response type")
ErrBadResponseType is an error where the server sent us a response we do not recognize.
var ( // ErrPathsDiffer the expected and received paths differ. ErrPathsDiffer = errors.New("paths differ") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { marshaling.MarshalUnmarshaler // contains filtered or unexported fields }
Client represents a client connection to the sever.
func (*Client) CreateProject ¶
CreateProject creates a project on the server.
func (*Client) IndexProject ¶
IndexProject placeholder - asks the server for the current view of the project and compares it with the local view.
func (*Client) LoadFromRemote ¶
LoadFromRemote placeholder.
func (*Client) RestartFileUpload ¶
RestartFileUpload restarts a partially completed upload.
func (*Client) StatProject ¶
func (c *Client) StatProject(projectName string) (*ProjectStat, error)
StatProject sends a request to the server to get its view of the project.
func (*Client) UploadDirectory ¶
func (c *Client) UploadDirectory(projectID, dataDirID string, path string) ([]DataFileUpload, error)
UploadDirectory uploads a directory. ** Not Implemented and may be removed. **
func (*Client) UploadNewFile ¶
func (c *Client) UploadNewFile(projectID, dataDirID, path string) (bytesUploaded int64, dataFileID string, err error)
UploadNewFile uploads a new file to the server.
func (*Client) UploadNewProject ¶
UploadNewProject uploads all files in a project.
type DataFileUpload ¶
type DataFileUpload struct { ProjectID string DataDirID string DataFileID string Path string Size int64 Checksum string BytesUploaded int64 Err error }
DataFileUpload tracks a particular upload request.