Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) Commit() error
- func (c *Client) CreateFile(p string, data string) error
- func (c *Client) CreateFolder(p string) error
- func (c *Client) Exists(p string) bool
- func (c *Client) GetPath(uuid string) (string, error)
- func (c *Client) GetUuid(p string) (string, error)
- func (c *Client) JoinPath(elem ...string) string
- func (c *Client) ListDir(p string) []string
- func (c *Client) ListPaths() ([]string, error)
- func (c *Client) ReadFile(p string) (FileEntry, error)
- func (c *Client) ReadFileContent(p string) (string, error)
- func (c *Client) Remove(p string) error
- func (c *Client) Rename(oldPath, newPath string) error
- func (c *Client) StatUUID(uuid string) (FileEntry, error)
- func (c *Client) WriteFile(p string, data string) error
- type FileEntry
- type GetFilesRequest
- type GetFilesResponse
- type UpdateChange
- type UpdateFileRequest
- type UpdateResult
Constants ¶
View Source
const ( IdxType = 0 IdxName = 1 IdxLocation = 2 IdxData = 3 IdxCreated = 8 IdxEdited = 9 IdxSize = 11 IdxUUID = 13 )
View Source
const BaseURL = "https://api.rotur.dev"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CreateFolder ¶
type GetFilesRequest ¶
type GetFilesRequest struct {
UUIDs []string `json:"uuids"`
}
type GetFilesResponse ¶
type UpdateChange ¶
type UpdateFileRequest ¶
type UpdateFileRequest struct {
Updates []UpdateChange `json:"updates"`
}
type UpdateResult ¶
type UpdateResult struct {
Payload string `json:"payload"`
}
Click to show internal directories.
Click to hide internal directories.