oss

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: BSD-3-Clause Imports: 6 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)
	GetBucketName() string
	GetObjectName(prefix, fileName string) string
	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