Documentation
¶
Index ¶
- Constants
- Variables
- func GetContextWithAuth(ctx context.Context) context.Context
- func New(opt *Options) (http.Handler, error)
- 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 ¶
Types ¶
type JSONInt ¶
func (*JSONInt) UnmarshalJSON ¶
type JSONString ¶
func (*JSONString) UnmarshalJSON ¶
func (i *JSONString) UnmarshalJSON(data []byte) error
type LDAPAccountType ¶
type LDAPAccountType string
var ( LDAPAccountTypePrimary LDAPAccountType = "primary" LDAPAccountTypeSecondary LDAPAccountType = "secondary" LDAPAccountTypeService LDAPAccountType = "service" LDAPAccountTypeEGroup LDAPAccountType = "egroup" LDAPAccountTypeUnixGroup LDAPAccountType = "unixgroup" LDAPAccountTypeUndefined LDAPAccountType = "undefined" )
type LoadFileResponse ¶
type NewShareOCSRequest ¶
type NewShareOCSRequest struct {
}
type OCSPayload ¶
type OCSPayload struct {
Meta *ResponseMeta `json:"meta"`
Data interface{} `json:"data"`
}
type OCSResponse ¶
type OCSResponse struct {
OCS *OCSPayload `json:"ocs"`
}
type OCSShare ¶
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 ¶
type OCSShareeData struct {
}
type OCSShareeEntry ¶
type OCSShareeEntry struct {
}
type OCSShareeEntryValue ¶
type OCSShareeEntryValue struct {
}
type OCSShareeExact ¶
type OCSShareeExact struct {
}
type Permission ¶
type Permission int
type ResponseMeta ¶
type SaveFileResponse ¶
type ShareState ¶
type ShareState int
Click to show internal directories.
Click to hide internal directories.