alioss

package
v0.0.0-...-3ada85e Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOss

func NewOss(endpoints, accessKeyId, accessKeySecret, bucketName string, isDelete bool) (client standard.Oss, err error)

Types

type Client

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

func (*Client) DeleteObject

func (c *Client) DeleteObject(dstPath string) (err error)

func (*Client) DeleteObjects

func (c *Client) DeleteObjects(dstPaths []string, options ...standard.Option) (output standard.DeleteObjectsResult, err error)

func (*Client) GetObject

func (c *Client) GetObject(dstPath string, options ...standard.Option) (ouput []byte, err error)

func (*Client) GetObjectToFile

func (c *Client) GetObjectToFile(dstPath, srcPath string, options ...standard.Option) error

func (*Client) IsObjectExist

func (c *Client) IsObjectExist(dstPath string) (bool, error)

func (*Client) ListObjects

func (c *Client) ListObjects(options ...standard.Option) (standard.ListObjectsResult, error)

func (*Client) PutObject

func (c *Client) PutObject(dstPath string, reader io.Reader, options ...standard.Option) error

func (*Client) PutObjectFromFile

func (c *Client) PutObjectFromFile(dstPath, srcPath string, options ...standard.Option) (err error)

func (*Client) SignURL

func (c *Client) SignURL(dstPath string, method string, expiredInSec int64, options ...standard.Option) (string, error)

Jump to

Keyboard shortcuts

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