alioss

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: BSD-3-Clause Imports: 7 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) GetObjectName

func (m *OSS) GetObjectName(prefix, fileName string) string

func (*OSS) GetStoragePath

func (m *OSS) GetStoragePath(prefix, fileName string) string

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) 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