Some necessary cleanup

- Rename 'fs' as 'file' for brevity
  - Rename 'inmemory' as 'memory' for brevity
  - Change everywhere else
This commit is contained in:
Harshavardhana
2015-03-16 11:46:16 -07:00
parent 772d3bc3d4
commit 15f68972a5
12 changed files with 34 additions and 34 deletions

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package fs
package file
import (
"os"

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package fs
package file
import (
"os"

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package fs
package file
import (
"bufio"
@@ -26,7 +26,7 @@ import (
mstorage "github.com/minio-io/minio/pkg/storage"
)
// Storage - fs local variables
// Storage - file local variables
type Storage struct {
root string
lock *sync.Mutex

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package fs
package file
import (
"os"

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package fs
package file
import (
"io"

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package fs
package file
import (
"os"

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package fs
package file
import (
"io/ioutil"
@@ -35,7 +35,7 @@ var _ = Suite(&MySuite{})
func (s *MySuite) TestAPISuite(c *C) {
var storageList []string
create := func() mstorage.Storage {
path, err := ioutil.TempDir(os.TempDir(), "minio-fs-")
path, err := ioutil.TempDir(os.TempDir(), "minio-file-")
c.Check(err, IsNil)
storageList = append(storageList, path)
_, _, store := Start(path)

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package inmemory
package memory
import (
"bufio"
@@ -48,7 +48,7 @@ type storedObject struct {
data []byte
}
// Start inmemory object server
// Start memory object server
func Start() (chan<- string, <-chan error, *Storage) {
ctrlChannel := make(chan string)
errorChannel := make(chan error)

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package inmemory
package memory
import (
"testing"