models

package
v0.0.0-...-998ab5e Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2016 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericReq

type GenericReq struct {
	Action           string   `json:"action" binding:"Required"`
	OnlyFoldreferers bool     `json:"onlyFolders"`    // list
	Path             string   `json:"path"`           // ALL
	Items            []string `json:"items"`          // API v1.5+ List of Items for Copy/Move/Remove/changePermissions/compress/downloadMultiple
	Item             string   `json:"item"`           // API v1.5+ Rename
	NewPath          string   `json:"newPath"`        // move/rename, copy
	NewItemPath      string   `json:newItemPath`      // API v1.5+ Reanme Action
	Content          string   `json:"content"`        // edit
	SingleFilename   string   `json:"singleFilename"` // API v1.5+ Copy
	Perms            string   `json:"perms"`          // changepermissions
	PermsCode        string   `json:"permsCode"`      // changepermissions
	Recursive        bool     `json:"recursive"`      // changepermissions
	Destination      string   `json:"destination"`    // compress, extract
	SourceFile       string   `json:"sourceFile"`     // extract
	Preview          bool     `json:"preview"`        // download
}

type GenericResp

type GenericResp struct {
	Result GenericRespBody `json:"result" binding:"Required"`
}

type GenericRespBody

type GenericRespBody struct {
	Success bool   `json:"success"`
	Error   string `json:"error"`
}

type GetContentResp

type GetContentResp struct {
	Result string `json:"result" binding:"Required"`
}

type Item

type Item struct {
	// contains filtered or unexported fields
}

type ListDirEntry

type ListDirEntry struct {
	Name   string `json:"name" binding:"Required"`
	Rights string `json:"rights" binding:"Required"`
	Size   string `json:"size" binding:"Required"`
	Date   string `json:"date" binding:"Required"`
	Type   string `json:"type" binding:"Required"`
}

type ListDirResp

type ListDirResp struct {
	Result []ListDirEntry `json:"result" binding:"Required"`
}

Jump to

Keyboard shortcuts

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