Documentation ¶
Index ¶
- type Client
- func (client Client) Delete(path string) error
- func (client Client) Get(path string) (file *os.File, err error)
- func (client *Client) GetAPIList(app string) error
- func (client Client) GetEndpoint() string
- func (client Client) GetStream(path string) (io.ReadCloser, error)
- func (client Client) GetURL(path string) (get_url string, err error)
- func (client Client) List(path string) (objects []*oss.Object, err error)
- func (client *Client) Login(application string) error
- func (client *Client) Put(urlPath string, reader io.Reader) (r *oss.Object, err error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Config *Config SID string SynoToken string AppAPIList map[string]map[string]interface{} FullAPIList map[string]map[string]interface{} }
Client Synology NAS storage
func (*Client) GetAPIList ¶
func (Client) GetEndpoint ¶
GetEndpoint get endpoint, FileSystem's endpoint is /
func (Client) GetStream ¶
func (client Client) GetStream(path string) (io.ReadCloser, error)
GetStream get file as stream
Click to show internal directories.
Click to hide internal directories.