ossclient

package
v0.3.37 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 8 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 NewClient

func NewClient(typ Type, endPoint string, accessId string, accessSecret string) (*Client, error)

func (*Client) CreateBucket

func (this *Client) CreateBucket(name string) error

func (*Client) DeleteObject

func (this *Client) DeleteObject(bucketName, name string) error

func (*Client) GetObject

func (this *Client) GetObject(bucketName, name string) ([]byte, error)

func (*Client) GetObjectToFile

func (this *Client) GetObjectToFile(bucketName, name string, localPath string) error

func (*Client) PutObject

func (this *Client) PutObject(bucketName, name string, data []byte) error

func (*Client) PutObjectFromFile

func (this *Client) PutObjectFromFile(bucketName, name string, localFile string) error

func (*Client) RemoveBucket

func (this *Client) RemoveBucket(name string) error

type Type

type Type protocol.Enum
const (
	ALIYUN_OSS Type = 1
	MINIO      Type = 2
)

Jump to

Keyboard shortcuts

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