s3

package
v0.0.0-...-6bcd878 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 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 Client

type Client interface {
	Upload(ctx context.Context, bucket, path string, file io.Reader, size int64) error
	Download(ctx context.Context, bucket, path string) (io.ReadCloser, error)
}

type MinioClient

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

func NewMinioClient

func NewMinioClient(endpoint, accessKeyID, secretAccessKey string, useSSL bool) (*MinioClient, error)

func (*MinioClient) Download

func (m *MinioClient) Download(ctx context.Context, bucket, path string) (io.ReadCloser, error)

func (*MinioClient) Upload

func (m *MinioClient) Upload(ctx context.Context, bucket, path string, file io.Reader, size int64) error

Jump to

Keyboard shortcuts

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