Rename StoreBucket to CreateBucket

This commit is contained in:
Frederick F. Kautz IV
2015-03-11 20:14:40 -07:00
parent 8c6aa45458
commit 24d5018037
8 changed files with 34 additions and 32 deletions

View File

@@ -125,8 +125,8 @@ func (storage *Storage) StoreObject(bucket, key, contentType string, data io.Rea
return nil
}
// StoreBucket - create bucket in memory
func (storage *Storage) StoreBucket(bucketName string) error {
// CreateBucket - create bucket in memory
func (storage *Storage) CreateBucket(bucketName string) error {
storage.lock.Lock()
defer storage.lock.Unlock()
if !mstorage.IsValidBucket(bucketName) {