file

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOss

func NewOss(cdnName string, bucket 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) (output []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) (resp string, err error)

todo can't sign

Jump to

Keyboard shortcuts

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