Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthHttpCtx ¶
func AuthHttpCtx(reAuth, nonInteractive bool) *transport.HttpClientCtx
Types ¶
type ApiCtx ¶
type ApiCtx interface { Filetree() *filetree.FileTreeCtx FetchDocument(docId, dstPath string) error CreateDir(parentId, name string, notify bool) (*model.Document, error) UploadDocument(parentId string, sourceDocPath string, notify bool) (*model.Document, error) MoveEntry(src, dstDir *model.Node, name string) (*model.Node, error) DeleteEntry(node *model.Node) error SyncComplete() error Nuke() error Refresh() error }
func CreateApiCtx ¶
func CreateApiCtx(httpCtx *transport.HttpClientCtx, syncVerison SyncVersion) (ctx ApiCtx, err error)
CreateApiCtx initializes an instance of ApiCtx
type SyncVersion ¶
type SyncVersion int
const ( Version10 SyncVersion = 10 Version15 SyncVersion = 15 )
func (SyncVersion) String ¶
func (s SyncVersion) String() string
Click to show internal directories.
Click to hide internal directories.