minio

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: May 3, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoAccessKey = errors.New("No Access Key Defined")

	ErrNoSecretKey = errors.New("No Secret Key Defined")

	ErrNoBucketFound = errors.New("No Bucket found")

	ErrNoMinioHostFound = errors.New("No minio host found")

	ErrMismatchPutObject = errors.New("Mismatch with data written against data input")
)

Functions

func NewStore

func NewStore(config *Config) (unistore.Store, error)

Types

type Config

type Config struct {
	UseSSL       bool
	Host         string
	AccessKeyEnv string
	SecretKeyEnv string
	BucketName   string
}

type Store

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

func (*Store) Delete

func (store *Store) Delete(path string) error

func (*Store) DoesPathExist

func (store *Store) DoesPathExist(inPath string) bool

func (*Store) GetData

func (store *Store) GetData(path string) ([]byte, error)

GetData retrieves the data present in the abstract path

func (*Store) GetModifiedTime

func (store *Store) GetModifiedTime(path string) (time.Time, error)

func (*Store) ListItems

func (store *Store) ListItems(basePath *string, filter filter.Filter) ([]string, error)

func (*Store) PutData

func (store *Store) PutData(path string, data []byte) error

func (*Store) Validate

func (store *Store) Validate() error

Jump to

Keyboard shortcuts

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