oss

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeMinio  = "minio"
	TypeAlioss = "alioss"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Oss

type Oss interface {
	PresignedPutURL(ctx context.Context, objectName string, expires time.Duration, etag, mimeType string, size int64) (string, error)
	PresignedGetURL(ctx context.Context, objectName string, expires time.Duration) (string, error)
	StatObject(ctx context.Context, objectName string) (ossconf.ObjectInfo, error)
	PutObject(ctx context.Context, objectName string, reader io.Reader, objectSize int64, contentType string) error
	GetBucketName() string
	GetObjectName(prefix, fileName string) string
	GetObject(ctx context.Context, objectName string, opts ossconf.GetObjectOption) (io.Reader, error)
	GetStoragePath(prefix, fileName string) string
}

func NewOss

func NewOss(conf ossconf.Conf) Oss

Directories

Path Synopsis
impl

Jump to

Keyboard shortcuts

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