miniostorage

package
v0.0.0-...-ad2729a Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteObject

type DeleteObject struct {
	BucketName string
	ObjectName string
}

type MinioStorage

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

func (*MinioStorage) DeleteObject

func (s *MinioStorage) DeleteObject(ctx context.Context, u *DeleteObject) error

func (*MinioStorage) GetAllObjectNames

func (s *MinioStorage) GetAllObjectNames(ctx context.Context, bucketName string) ([]string, error)

func (*MinioStorage) UploadObject

func (s *MinioStorage) UploadObject(ctx context.Context, u *UploadObject) (string, error)

type ObjectStorage

type ObjectStorage interface {
	// contains filtered or unexported methods
}

func NewMinioStorage

func NewMinioStorage(minioURL string, minioUser string, minioPassword string, ssl bool) (ObjectStorage, error)

type UploadObject

type UploadObject struct {
	BucketName  string
	ObjectName  string
	Data        []byte
	Size        int64
	ContentType string
}

Jump to

Keyboard shortcuts

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