oss

package
v0.0.0-...-9b663ca Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMinioAddress

func GetMinioAddress() string

func GetMinioClient

func GetMinioClient() *minio.Client

GetMinioClient get S3 OSS by http

func GetOSSPrefixByScheme

func GetOSSPrefixByScheme(sheme string) string

GetOSSPrefix ..

func GetSecureMinioAddress

func GetSecureMinioAddress() string

func GetSecureMinioClient

func GetSecureMinioClient() *minio.Client

GetSecureMinioClient get S3 OSS by https

func InitMinioBuckets

func InitMinioBuckets()

InitMinioBuckets ..

func OSSPrefix

func OSSPrefix() string

GetOSSPrefix ..

func SecureOSSPrefix

func SecureOSSPrefix() string

GetSecureOSSPrefix ..

Types

type ObjectURL

type ObjectURL struct {
	PresignedURL string
	Path         string
	PublicURL    string
}

func GetPresignedURL

func GetPresignedURL(ctx context.Context, bucketName, objectName, scheme string) (bool, ObjectURL, error)

GetPresignedURL ..

Jump to

Keyboard shortcuts

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