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) (*model.Document, error)
UploadDocument(parentId string, sourceDocPath string) (*model.Document, error)
MoveEntry(src, dstDir *model.Node, name string) (*model.Node, error)
DeleteEntry(node *model.Node) error
Nuke() error
}
func CreateApiCtx ¶
func CreateApiCtx(http *transport.HttpClientCtx) (ctx ApiCtx, isSync15 bool, err error)
CreateApiCtx initializes an instance of ApiCtx
type UserToken ¶ added in v0.0.16
type UserToken struct {
Scopes string
*jwt.StandardClaims
}
Click to show internal directories.
Click to hide internal directories.