Documentation ¶
Index ¶
- Constants
- Variables
- func GetContextWithAuth(ctx context.Context) context.Context
- func New(opt *Options) (http.Handler, error)
- type FlipDirection
- type ItemType
- type JSONInt
- type JSONString
- type LDAPAccountType
- type LoadFileResponse
- type NewShareOCSRequest
- type OCSPayload
- type OCSResponse
- type OCSShare
- type OCSShareeData
- type OCSShareeEntry
- type OCSShareeEntryValue
- type OCSShareeExact
- type Options
- type Permission
- type ResponseMeta
- type SaveFileResponse
- type ShareState
- type ShareType
- type WalkFunc
Constants ¶
View Source
const ( PermissionRead Permission = 1 PermissionReadWrite Permission = 15 ItemTypeFile ItemType = "file" ItemTypeFolder ItemType = "folder" )
Variables ¶
View Source
var SkipDir = errors.New("skip this directory")
Functions ¶
func GetContextWithAuth ¶ added in v0.0.2
Types ¶
type FlipDirection ¶ added in v0.0.2
type FlipDirection int
The FlipDirection type is used by the Flip option in DecodeOpts to indicate in which direction to flip an image.
const ( FlipVertical FlipDirection = 1 << iota FlipHorizontal )
FlipVertical and FlipHorizontal are two possible FlipDirections values to indicate in which direction an image will be flipped.
type JSONInt ¶ added in v0.0.2
func (*JSONInt) UnmarshalJSON ¶ added in v0.0.2
type JSONString ¶ added in v0.0.2
func (*JSONString) UnmarshalJSON ¶ added in v0.0.2
func (i *JSONString) UnmarshalJSON(data []byte) error
type LDAPAccountType ¶ added in v0.0.2
type LDAPAccountType string
var ( LDAPAccountTypePrimary LDAPAccountType = "primary" LDAPAccountTypeSecondary LDAPAccountType = "secondary" LDAPAccountTypeService LDAPAccountType = "service" LDAPAccountTypeEGroup LDAPAccountType = "egroup" LDAPAccountTypeUnixGroup LDAPAccountType = "unixgroup" LDAPAccountTypeUndefined LDAPAccountType = "undefined" )
type LoadFileResponse ¶ added in v0.0.2
type NewShareOCSRequest ¶ added in v0.0.2
type NewShareOCSRequest struct {}
type OCSPayload ¶ added in v0.0.2
type OCSPayload struct { Meta *ResponseMeta `json:"meta"` Data interface{} `json:"data"` }
type OCSResponse ¶ added in v0.0.2
type OCSResponse struct {
OCS *OCSPayload `json:"ocs"`
}
type OCSShare ¶ added in v0.0.2
type OCSShare struct {}
{ "id":"1", "share_type":3, "uid_owner":"admin", "displayname_owner":"admin", "permissions":1, "stime":1528476368, "parent":null, "expiration":null, "token":"wI9qedAsjltaihj", "uid_file_owner":"admin", "displayname_file_owner":"admin", "path":"\/Reverse cowgirl hotness.mp4", "item_type":"file", "mimetype":"video\/mp4", "storage_id":"home::admin", "storage":3, "item_source":82, "file_source":82, "file_parent":25, "file_target":"\/Reverse cowgirl hotness.mp4", "share_with":null, "share_with_displayname":null, "name":"Reverse cowgirl hotness.mp4 link", "url":"https:\/\/demo.owncloud.org\/s\/wI9qedAsjltaihj", "mail_send":0 }
type OCSShareeData ¶ added in v0.0.2
type OCSShareeData struct {}
type OCSShareeEntry ¶ added in v0.0.2
type OCSShareeEntry struct {}
type OCSShareeEntryValue ¶ added in v0.0.2
type OCSShareeEntryValue struct {}
type OCSShareeExact ¶ added in v0.0.2
type OCSShareeExact struct {}
type Options ¶ added in v0.0.2
type Options struct { Logger *zap.Logger TemporaryFolder string ChunksFolder string MaxUploadFileSize uint64 REVAHost string Router *mux.Router OwnCloudHomePrefix string RevaHomePrefix string OwnCloudPublicLinkPrefix string RevaPublicLinkPrefix string OwnCloudPersonalProjectsPrefix string RevaPersonalProjectsPrefix string CBOXGroupDaemonURI string CBOXGroupDaemonSecret string }
type Permission ¶ added in v0.0.2
type Permission int
type ResponseMeta ¶ added in v0.0.2
type SaveFileResponse ¶ added in v0.0.2
type ShareState ¶ added in v0.0.2
type ShareState int
Click to show internal directories.
Click to hide internal directories.