mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Initial work for xml list objects
This commit is contained in:
@@ -2,7 +2,6 @@ package storage
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"io"
|
||||
)
|
||||
|
||||
@@ -10,6 +9,8 @@ type Storage struct {
|
||||
data map[string][]byte
|
||||
}
|
||||
|
||||
type ObjectMetadata struct{}
|
||||
|
||||
type GenericError struct {
|
||||
bucket string
|
||||
path string
|
||||
@@ -42,6 +43,10 @@ func (storage *Storage) StoreObject(bucket string, object string, data io.Reader
|
||||
}
|
||||
}
|
||||
|
||||
func (storage *Storage) ListObjects(bucket, prefix string, count int) []ObjectMetadata {
|
||||
return []ObjectMetadata{}
|
||||
}
|
||||
|
||||
func Start() (chan<- string, <-chan error, *Storage) {
|
||||
ctrlChannel := make(chan string)
|
||||
errorChannel := make(chan error)
|
||||
@@ -52,8 +57,5 @@ func Start() (chan<- string, <-chan error, *Storage) {
|
||||
}
|
||||
|
||||
func start(ctrlChannel <-chan string, errorChannel chan<- error) {
|
||||
errorChannel <- errors.New("STORAGE MSG")
|
||||
errorChannel <- errors.New("STORAGE MSG")
|
||||
errorChannel <- errors.New("STORAGE MSG")
|
||||
close(errorChannel)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user