minio

package
v0.0.0-...-315b7b0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAccessKey

func WithAccessKey(accessKey string) interfaces.StoreOption

func WithBucket

func WithBucket(bucket string) interfaces.StoreOption

func WithCredentials

func WithCredentials(accessKey, secretKey string) interfaces.StoreOption

func WithEndpoint

func WithEndpoint(endpoint string) interfaces.StoreOption

func WithLocation

func WithLocation(location string) interfaces.StoreOption

func WithSecretKey

func WithSecretKey(secretKey string) interfaces.StoreOption

Types

type Minio

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

func New

func New(options ...interfaces.StoreOption) (*Minio, error)

func (*Minio) Create

func (m *Minio) Create(key string, data interface{}) error

func (*Minio) Delete

func (m *Minio) Delete(key string) error

func (*Minio) List

func (m *Minio) List(params ...interface{}) (interface{}, error)

func (*Minio) Read

func (m *Minio) Read(key string) (interface{}, error)

func (*Minio) Update

func (m *Minio) Update(key string, data interface{}) error

Jump to

Keyboard shortcuts

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