six_cloud

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SixFile

type SixFile struct {
	Identity       string `json:"identity"`
	ETag           string `json:"hash"`
	UserIdentity   int64  `json:"userIdentity"`
	Path           string `json:"path"`
	Name           string `json:"name"`
	Size           int64  `json:"size"`
	CreateTime     int64  `json:"ctime"`
	Mime           string `json:"mime"`
	ParentIdentity string `json:"parent"`
	IsDir          bool   `json:"directory"`
	// contains filtered or unexported fields
}

func (*SixFile) GetChildren

func (file *SixFile) GetChildren() []*SixFile

func (*SixFile) GetDownloadAddress

func (file *SixFile) GetDownloadAddress() (string, error)

func (*SixFile) GetLocalTree

func (file *SixFile) GetLocalTree(localPath string) map[string]*SixFile

type SixUser

type SixUser struct {
	Username   string
	Identity   int64
	UsedSpace  int64
	TotalSpace int64

	Client *models.SixHttpClient
}

func LoginWithAccessToken

func LoginWithAccessToken(token string) (*SixUser, error)

func LoginWithUsernameOrPhone

func LoginWithUsernameOrPhone(value, password string) (*SixUser, error)

func (*SixUser) GetDownloadAddressByPath

func (user *SixUser) GetDownloadAddressByPath(path string) (string, error)

func (*SixUser) GetFilesByPath

func (user *SixUser) GetFilesByPath(path string) ([]*SixFile, error)

Jump to

Keyboard shortcuts

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