minio_storage

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMinioHandler

func NewMinioHandler(log logger.Logger, storages map[string]config.Storage) (mapStorages map[string]storage.Storage)

Types

type Config

type Config interface {
	GetEndpoint() string
	GetAccessKey() string
	GetSecretAccessKey() string
	GetBucketName() string
}

type MinioHandler

type MinioHandler struct {
	// contains filtered or unexported fields
}

func (*MinioHandler) PreSignedGetObject

func (m *MinioHandler) PreSignedGetObject(ctx context.Context, input *domain.GetObjectRequest) (*url.URL, error)

func (*MinioHandler) PutMultipartObject

func (m *MinioHandler) PutMultipartObject(ctx context.Context, input *domain.PutObjectRequest) error

Jump to

Keyboard shortcuts

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