synofs

package module
v0.0.0-...-a744ab6 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {
	Error   ClientError `json:"error"`
	Success bool        `json:"success"`
}

type APITime

type APITime struct {
	AccessTime   int `json:"atime"`
	CreationTime int `json:"crtime"`
	ChangeTime   int `json:"ctime"`
	ModifiedTime int `json:"mtime"`
}

type Additional

type Additional struct {
	Type string  `json:"type"`
	Size int64   `json:"size"`
	Time APITime `json:"time"`
}

type Client

type Client struct {
	Auth   *authService
	List   *listService
	Upload *uploadService
	// contains filtered or unexported fields
}

func New

func New(address string) *Client

func NewWithHTTP

func NewWithHTTP(address string, httpClient *http.Client) *Client

type ClientError

type ClientError struct {
	API  string
	Code int `json:"code"`
}

func (ClientError) Error

func (e ClientError) Error() string

type ListFile

type ListFile struct {
	IsDir      bool       `json:"isdir"`
	Name       string     `json:"name"`
	Path       string     `json:"path"`
	Additional Additional `json:"additional"`
}

type ListShare

type ListShare struct {
	IsDir bool   `json:"isdir"`
	Name  string `json:"name"`
	Path  string `json:"path"`
}

Jump to

Keyboard shortcuts

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