alioss

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 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 ossconf.Conf) *OSS

func (*OSS) GetBucketName

func (m *OSS) GetBucketName() string

func (*OSS) GetObject added in v0.0.5

func (m *OSS) GetObject(ctx context.Context, objectName string, opts ossconf.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 added in v0.0.5

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) (ossconf.ObjectInfo, error)

Jump to

Keyboard shortcuts

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