tencent

package
v0.0.0-...-cae149e Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Config *Config
	Client *http.Client
}

func New

func New(conf *Config) *Client

func (Client) Delete

func (client Client) Delete(path string) error

func (Client) Get

func (client Client) Get(path string) (file *os.File, err error)

func (Client) GetEndpoint

func (client Client) GetEndpoint() string

func (Client) GetStream

func (client Client) GetStream(path string) (io.ReadCloser, error)

func (Client) GetURL

func (client Client) GetURL(path string) (string, error)

func (Client) List

func (client Client) List(path string) ([]*oss.Object, error)

todo not found api

func (Client) Put

func (client Client) Put(path string, body io.Reader) (*oss.Object, error)

func (Client) ToRelativePath

func (client Client) ToRelativePath(urlPath string) string

ToRelativePath process path to relative path

type Config

type Config struct {
	AppID     string
	AccessID  string
	AccessKey string
	Region    string
	Bucket    string
	ACL       string
	CORS      string
	Endpoint  string
}

Jump to

Keyboard shortcuts

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