Documentation ¶
Index ¶
- Constants
- func SetBasicAuth(username, password string)
- func SetTokenAuth(t *Token)
- type Acls
- type Node
- func (n *Node) AclAdd(acl, users string) (err error)
- func (n *Node) AclChown(user string) (err error)
- func (n *Node) AclRemove(acl, users string) (err error)
- func (n *Node) Create(opts Opts) (err error)
- func (n *Node) Download(opts Opts) (download io.Reader, err error)
- func (n *Node) Get() (err error)
- func (n *Node) PP()
- func (n *Node) PrettyPrint()
- func (n *Node) String() string
- func (n *Node) Update(opts Opts) (err error)
- func (n *Node) UploadPart(part string, r io.Reader, size int64) (err error)
- type OLP
- type Opts
- type Token
- type Trans
- type User
- type WAcl
- type WNode
- type Wrapper
Constants ¶
View Source
const MB = int64(1048576)
Variables ¶
This section is empty.
Functions ¶
func SetBasicAuth ¶
func SetBasicAuth(username, password string)
func SetTokenAuth ¶
func SetTokenAuth(t *Token)
Types ¶
type Node ¶
func (*Node) PrettyPrint ¶
func (n *Node) PrettyPrint()
type Token ¶
type Token struct { AccessToken string `json:"access_token"` ExpiresIn int `json:"expires_in"` UserName string `json:"user_name"` }
func OAuthToken ¶
func (*Token) ExpiresInDays ¶
Click to show internal directories.
Click to hide internal directories.