alioss

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OSS

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

func NewOSS

func NewOSS(conf oss.Conf) *OSS

func (*OSS) DeleteObject added in v0.0.10

func (m *OSS) DeleteObject(ctx context.Context, objectName string) error

func (*OSS) GetBucketName

func (m *OSS) GetBucketName() string

func (*OSS) GetObject

func (m *OSS) GetObject(ctx context.Context, objectName string, opts oss.GetObjectOption) (io.Reader, error)

func (*OSS) PresignedGetURL

func (m *OSS) PresignedGetURL(ctx context.Context, objectName string, expires time.Duration) (string, error)

func (*OSS) PresignedPutURL

func (m *OSS) PresignedPutURL(ctx context.Context, objectName string, expires time.Duration, etag, mimeType string, size int64) (string, error)

func (*OSS) PutObject

func (m *OSS) PutObject(ctx context.Context, objectName string, reader io.Reader, objectSize int64, contentType string) error

func (*OSS) StatObject

func (m *OSS) StatObject(ctx context.Context, objectName string) (oss.ObjectInfo, error)

Jump to

Keyboard shortcuts

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