minio

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_PUBLIC_POLICY = `` /* 159-byte string literal not displayed */
View Source
const MINIO_DEFAULT_SERVE_ADDRESS = "http://127.0.0.1:9000/"

Variables

This section is empty.

Functions

func CreateMINIOInstance

func CreateMINIOInstance(minioConfig *MINIOConfig) *minio.Client

Types

type MINIOConfig

type MINIOConfig struct {
	AccessKeyID     string
	AccessKeySecret string
	Endpoint        string
	BucketName      string
	SSLEnabled      bool
	UploadTimeout   time.Duration
}

func NewSystemMINIOConfigByGlobalConfig

func NewSystemMINIOConfigByGlobalConfig(config *config.Config) *MINIOConfig

func NewTeamMINIOConfigByGlobalConfig

func NewTeamMINIOConfigByGlobalConfig(config *config.Config) *MINIOConfig

type S3Drive

type S3Drive struct {
	Instance *minio.Client
	Config   *MINIOConfig
}

func NewS3Drive

func NewS3Drive(minioConfig *MINIOConfig) *S3Drive

func (*S3Drive) GetPreSignedPutURL

func (s3Drive *S3Drive) GetPreSignedPutURL(fileName string) (string, error)

Jump to

Keyboard shortcuts

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