minio

package
v0.0.0-...-b4fed4d Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingEndPoint    error = errors.New("missing endpoint info in metadata")
	ErrClientNotExist     error = errors.New("specific client not exist")
	ErrInvalidConfig      error = errors.New("invalid minio oss config")
	ErrNotSpecifyEndPoint error = errors.New("not specify endpoint in metadata")
)

Functions

func NewMinioOss

func NewMinioOss() file.File

Types

type MinioMetaData

type MinioMetaData struct {
	Region          string `json:"region"`
	EndPoint        string `json:"endpoint"`
	AccessKeyID     string `json:"accessKeyID"`
	AccessKeySecret string `json:"accessKeySecret"`
	SSL             bool   `json:"SSL"`
}

type MinioOss

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

func (*MinioOss) Del

func (m *MinioOss) Del(ctx context.Context, st *file.DelRequest) error

func (*MinioOss) Get

func (m *MinioOss) Get(ctx context.Context, st *file.GetFileStu) (io.ReadCloser, error)

func (*MinioOss) Init

func (m *MinioOss) Init(ctx context.Context, config *file.FileConfig) error

func (*MinioOss) List

func (m *MinioOss) List(ctx context.Context, st *file.ListRequest) (*file.ListResp, error)

func (*MinioOss) Put

func (m *MinioOss) Put(ctx context.Context, st *file.PutFileStu) error

func (*MinioOss) Stat

Jump to

Keyboard shortcuts

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