oss_client

package
v0.0.0-...-53d016b Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: Apache-2.0 Imports: 5 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 {
	// contains filtered or unexported fields
}

func C

func C() *Client

func (*Client) Config

func (t *Client) Config(c *OssClientConfig) *Client

func (*Client) Delete

func (t *Client) Delete(key string) error

delete oss file

func (*Client) Get

func (t *Client) Get(key string) ([]byte, error)

get file content

func (*Client) GetObjectMd5

func (t *Client) GetObjectMd5(key string) (string, error)

get file md5 from oss object ETag

func (*Client) Put

func (t *Client) Put(filePath, key string) error

upload local file to oss http://t.Endpoint/key

type OssClientConfig

type OssClientConfig struct {
	Endpoint     string
	AccessKey    string
	AccessSecret string
	Bucket       string
}

Jump to

Keyboard shortcuts

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