goss

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 4 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 {
	Bucket *oss.Bucket
}

func NewClient

func NewClient(endpoint, accessKeyId, accessKeySecret, bucketName string) (*Client, error)

func (*Client) CompleteMultipartUpload

func (c *Client) CompleteMultipartUpload(imur oss.InitiateMultipartUploadResult,
	parts []oss.UploadPart, options ...oss.Option) (oss.CompleteMultipartUploadResult, error)

func (*Client) DeleteObject

func (c *Client) DeleteObject(key string) error

func (*Client) GetObject

func (c *Client) GetObject(key string) ([]byte, error)

func (*Client) GetObjectByRange

func (c *Client) GetObjectByRange(key string, offset int64, size int64) ([]byte, error)

func (*Client) GetObjectDetailedMeta

func (c *Client) GetObjectDetailedMeta(key string) (http.Header, error)

func (*Client) InitiateMultipartUpload

func (c *Client) InitiateMultipartUpload(key string) (oss.InitiateMultipartUploadResult, error)

func (*Client) IsObjectExist

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

func (*Client) PutObject

func (c *Client) PutObject(key string, content []byte) error

func (*Client) PutObjectByReader

func (c *Client) PutObjectByReader(key string, reader io.Reader) error

func (*Client) RemoveSubDir

func (c *Client) RemoveSubDir(key string) error

func (*Client) UploadPart

func (c *Client) UploadPart(imur oss.InitiateMultipartUploadResult, reader io.Reader,
	partSize int64, partNumber int, options ...oss.Option) (oss.UploadPart, error)

Jump to

Keyboard shortcuts

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