Documentation
¶
Index ¶
- func AuthHttpCtx(reAuth, nonInteractive bool) *transport.HttpClientCtx
- func DocumentsFileTree(http *transport.HttpClientCtx) (*filetree.FileTreeCtx, error)
- type ApiCtx
- func (ctx *ApiCtx) CreateDir(parentId, name string) (model.Document, error)
- func (ctx *ApiCtx) DeleteEntry(node *model.Node) error
- func (ctx *ApiCtx) FetchDocument(docId, dstPath string) error
- func (ctx *ApiCtx) MoveEntry(src, dstDir *model.Node, name string) (*model.Node, error)
- func (ctx *ApiCtx) UploadDocument(parentId string, sourceDocPath string) (*model.Document, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthHttpCtx ¶
func AuthHttpCtx(reAuth, nonInteractive bool) *transport.HttpClientCtx
func DocumentsFileTree ¶
func DocumentsFileTree(http *transport.HttpClientCtx) (*filetree.FileTreeCtx, error)
DocumentsFileTree reads your remote documents and builds a file tree structure to represent them
Types ¶
type ApiCtx ¶
type ApiCtx struct { Http *transport.HttpClientCtx Filetree *filetree.FileTreeCtx }
An ApiCtx allows you interact with the remote reMarkable API
func CreateApiCtx ¶
func CreateApiCtx(http *transport.HttpClientCtx) (*ApiCtx, error)
CreateApiCtx initializes an instance of ApiCtx
func (*ApiCtx) CreateDir ¶
CreateDir creates a remote directory with a given name under the parentId directory
func (*ApiCtx) DeleteEntry ¶
DeleteEntry removes an entry: either an empty directory or a file
func (*ApiCtx) FetchDocument ¶
FetchDocument downloads a document given its ID and saves it locally into dstPath
Click to show internal directories.
Click to hide internal directories.