minio

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(endpoint string,
	accessKeyID string,
	secretAccessKey string,
	useSSL bool,
	bucketName string,
	location string,
) blobstore.Store

Types

type Minio

type Minio struct {
	Endpoint        string
	AccessKeyID     string
	SecretAccessKey string
	BucketName      string
	Location        string
	TempPath        string
	UseSSL          bool
	MinioClient     *minio.Client
}

func (*Minio) Close

func (m *Minio) Close() error

func (*Minio) Delete

func (m *Minio) Delete(ctx context.Context, sha256 string) error

func (*Minio) Init

func (m *Minio) Init(ctx context.Context) error

func (*Minio) Load

func (m *Minio) Load(ctx context.Context, sha256 string) (io.ReadSeeker, error)

func (*Minio) Store

func (m *Minio) Store(ctx context.Context, sha256 string, body []byte) error

Jump to

Keyboard shortcuts

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