mirror of
https://github.com/minio/minio.git
synced 2026-11-18 23:00:19 +00:00
Implement commands
Commands implemented
$ minio put <objectname> <file>
$ minio encode <objectname>
$ minio get <objectname>
$ minio list
TODO :
$ minio init
$ minio verify
...
...
This commit is contained in:
1 parent
e3af681cc1
commit
3ec5c2fb8f
16 files changed
+312
-479
No files matched your search
@@ -80,7 +80,7 @@ func NewStorage(rootDir string, slice int) (storage.ObjectStorage, error) {
|
||||
func (storage *appendStorage) Get(objectPath string) (io.Reader, error) {
|
||||
header, ok := storage.objects[objectPath]
|
||||
if ok == false {
|
||||
return nil, nil
|
||||
return nil, errors.New("Object not found")
|
||||
}
|
||||
|
||||
offset := header.Offset
|
||||
|
||||
Reference in new issue
Block a user