Initial work for xml list objects

This commit is contained in:
Frederick F. Kautz IV
2015-01-20 16:08:14 -08:00
parent 5a4f472638
commit 53190e1210
6 changed files with 148 additions and 10 deletions

View File

@@ -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)
}