minio

package
v0.0.0-...-8dc6894 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewListQuery

func NewListQuery(query string) *listQuery

func NewSingleQuery

func NewSingleQuery(query, param, regexString string) *singleQuery

Types

type Ministore

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

func New

func New(ctx context.Context, cfg config.ConnCfg) (*Ministore, error)

New creates new instance of mstore

func (*Ministore) GetMultiple

func (m *Ministore) GetMultiple(ctx context.Context, v Valider, objName string) ([]byte, error)

func (*Ministore) GetSingle

func (m *Ministore) GetSingle(ctx context.Context, v Valider, objName string) ([]byte, error)

func (*Ministore) List

func (m *Ministore) List(ctx context.Context, prefix string) ([]io.ReadSeeker, error)

TODO fix this implementation as this is an absolute perf hit.

func (*Ministore) Migrate

func (m *Ministore) Migrate(ctx context.Context, datapath string) error

func (*Ministore) MigrateImages

func (m *Ministore) MigrateImages(ctx context.Context, datapath string) error

func (*Ministore) Open

func (m *Ministore) Open(ctx context.Context, name string) (io.ReadSeeker, error)

func (*Ministore) Put

func (m *Ministore) Put(ctx context.Context, name string, obj io.Reader) (int64, error)

Put will 'put' the object under the name to minio store since the object name is prefixed by the ID of both its campaign and support-role it should be easily queried.

func (*Ministore) Remove

func (m *Ministore) Remove(name string) error

type Valider

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

Jump to

Keyboard shortcuts

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