api

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2018 License: GPL-3.0 Imports: 14 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthHttpCtx

func AuthHttpCtx() *transport.HttpClientCtx

func DocumentsFileTree

func DocumentsFileTree(http *transport.HttpClientCtx) *filetree.FileTreeCtx

Types

type ApiCtx

type ApiCtx struct {
	Http     *transport.HttpClientCtx
	Filetree *filetree.FileTreeCtx
}

func CreateApiCtx

func CreateApiCtx(http *transport.HttpClientCtx) *ApiCtx

func (*ApiCtx) CreateDir

func (ctx *ApiCtx) CreateDir(parentId, name string) (model.Document, error)

func (*ApiCtx) DeleteEntry

func (ctx *ApiCtx) DeleteEntry(node *model.Node) error

func (*ApiCtx) FetchDocument

func (ctx *ApiCtx) FetchDocument(docId, dstPath string) error

func (*ApiCtx) MoveEntry

func (ctx *ApiCtx) MoveEntry(src, dstDir *model.Node, name string) (*model.Node, error)

func (*ApiCtx) UploadDocument

func (ctx *ApiCtx) UploadDocument(parent string, pdfpath string) (*model.Document, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL