dropbox

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2016 License: ISC Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account added in v0.0.9

type Account struct {
	Country       string `json:"country"`
	DisplayName   string `json:"display_name"`
	Email         string `json:"email"`
	EmailVerified bool   `json:"email_verified"`
	IsPaired      bool   `json:"is_paired"`
	Locale        string `json:"locale"`
	NameDetails   struct {
		FamiliarName string `json:"familiar_name"`
		GivenName    string `json:"given_name"`
		Surname      string `json:"surname"`
	} `json:"name_details"`
	QuotaInfo struct {
		Datastores int `json:"datastores"`
		Normal     int `json:"normal"`
		Quota      int `json:"quota"`
		Shared     int `json:"shared"`
	} `json:"quota_info"`
	ReferralLink string      `json:"referral_link"`
	Team         interface{} `json:"team"`
	UID          int         `json:"uid"`
}

type AccountCall added in v0.0.9

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

func (*AccountCall) Do added in v0.0.9

func (c *AccountCall) Do() (*Account, error)

type GetCall

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

func (*GetCall) Do

func (c *GetCall) Do() (io.ReadCloser, error)

func (*GetCall) Path

func (c *GetCall) Path(path string) *GetCall

type List

type List struct {
	Bytes       int64          `json:"bytes"`
	Contents    []*ListContent `json:"contents"`
	Hash        string         `json:"hash"`
	Icon        string         `json:"icon"`
	IsDir       bool           `json:"is_dir"`
	Path        string         `json:"path"`
	Root        string         `json:"root"`
	Size        string         `json:"size"`
	ThumbExists bool           `json:"thumb_exists"`
}

type ListCall

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

func (*ListCall) Do

func (c *ListCall) Do() (*List, error)

func (*ListCall) Path

func (c *ListCall) Path(path string) *ListCall

type ListContent

type ListContent struct {
	Bytes       int64  `json:"bytes"`
	Icon        string `json:"icon"`
	IsDir       bool   `json:"is_dir"`
	Modified    string `json:"modified"`
	Path        string `json:"path"`
	Rev         string `json:"rev"`
	Revision    int64  `json:"revision"`
	Root        string `json:"root"`
	Size        string `json:"size"`
	ThumbExists bool   `json:"thumb_exists"`
}

type Service

type Service struct {
	BasePath    *url.URL
	ContentPath *url.URL
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

func (*Service) Account added in v0.0.9

func (s *Service) Account() *AccountCall

func (*Service) Get

func (s *Service) Get() *GetCall

func (*Service) List

func (s *Service) List() *ListCall

Jump to

Keyboard shortcuts

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