working on List

This commit is contained in:
bel
2019-06-21 17:13:18 -06:00
parent 6ac77d247e
commit ade973d19d
13 changed files with 178 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ package storage
import (
"bytes"
"errors"
"io/ioutil"
"strings"
@@ -17,6 +18,10 @@ func NewMinio(addr, user, pass string) (*Minio, error) {
return &Minio{db: db}, err
}
func (m *Minio) List(ns []string, limits ...string) ([]string, error) {
return nil, errors.New("not impl")
}
func (m *Minio) Get(key string, ns ...string) ([]byte, error) {
namespace := resolveNamespace(ns)
obj, err := m.db.GetObject(namespace, key, minio.GetObjectOptions{})