Change all minio-io path to minio

master
Harshavardhana 10 years ago
parent e39de4f603
commit 8d06504068
  1. 8
      CONTRIBUTING.md
  2. 4
      Dockerfile
  3. 6
      Godeps/Godeps.json
  4. 4
      Godeps/_workspace/src/github.com/minio-io/check/README.md
  5. 2
      Godeps/_workspace/src/github.com/minio-io/check/benchmark_test.go
  6. 2
      Godeps/_workspace/src/github.com/minio-io/check/bootstrap_test.go
  7. 2
      Godeps/_workspace/src/github.com/minio-io/check/check_test.go
  8. 2
      Godeps/_workspace/src/github.com/minio-io/check/checkers_test.go
  9. 2
      Godeps/_workspace/src/github.com/minio-io/check/fixture_test.go
  10. 2
      Godeps/_workspace/src/github.com/minio-io/check/foundation_test.go
  11. 2
      Godeps/_workspace/src/github.com/minio-io/check/helpers_test.go
  12. 2
      Godeps/_workspace/src/github.com/minio-io/check/printer_test.go
  13. 2
      Godeps/_workspace/src/github.com/minio-io/check/run_test.go
  14. 10
      Godeps/_workspace/src/github.com/minio-io/cli/README.md
  15. 2
      Godeps/_workspace/src/github.com/minio-io/cli/app_test.go
  16. 2
      Godeps/_workspace/src/github.com/minio-io/cli/cli_test.go
  17. 2
      Godeps/_workspace/src/github.com/minio-io/cli/command_test.go
  18. 2
      Godeps/_workspace/src/github.com/minio-io/cli/context_test.go
  19. 2
      Godeps/_workspace/src/github.com/minio-io/cli/flag_test.go
  20. 6
      Makefile
  21. 2
      README.md
  22. 10
      main.go
  23. 6
      pkg/api/api_bucket_handlers.go
  24. 2
      pkg/api/api_generic_handlers.go
  25. 6
      pkg/api/api_object_handlers.go
  26. 2
      pkg/api/api_response.go
  27. 12
      pkg/api/api_router.go
  28. 12
      pkg/api/api_test.go
  29. 2
      pkg/api/config/config.go
  30. 4
      pkg/api/config/config_test.go
  31. 2
      pkg/api/headers.go
  32. 4
      pkg/api/logging/logging.go
  33. 4
      pkg/api/quota/bandwidth_cap.go
  34. 2
      pkg/api/quota/conn_limit.go
  35. 2
      pkg/api/quota/request_limit.go
  36. 2
      pkg/api/resources.go
  37. 8
      pkg/api/web/web.go
  38. 6
      pkg/erasure/CONTRIBUTING.md
  39. 2
      pkg/erasure/cauchy_test.go
  40. 2
      pkg/erasure/vandermonde_test.go
  41. 2
      pkg/iodine/iodine.go
  42. 2
      pkg/server/httpserver/httpserver.go
  43. 14
      pkg/server/server.go
  44. 2
      pkg/storage/donut/donut.go
  45. 2
      pkg/storage/donut/donut_bucket.go
  46. 4
      pkg/storage/donut/donut_bucket_internal.go
  47. 2
      pkg/storage/donut/donut_disk.go
  48. 4
      pkg/storage/donut/donut_encoder.go
  49. 2
      pkg/storage/donut/donut_node.go
  50. 2
      pkg/storage/donut/donut_rebalance.go
  51. 2
      pkg/storage/donut/donut_test.go
  52. 2
      pkg/storage/donut/management.go
  53. 2
      pkg/storage/donut/objectstorage.go
  54. 2
      pkg/storage/donut/objectstorage_internal.go
  55. 4
      pkg/storage/drivers/api_testsuite.go
  56. 8
      pkg/storage/drivers/donut/donut.go
  57. 4
      pkg/storage/drivers/donut/donut_test.go
  58. 4
      pkg/storage/drivers/memory/memory.go
  59. 4
      pkg/storage/drivers/memory/memory_test.go
  60. 4
      pkg/storage/drivers/mocks/Driver.go
  61. 4
      pkg/utils/cpu/cpu_test.go
  62. 4
      pkg/utils/crypto/keys/keys_test.go
  63. 4
      pkg/utils/crypto/md5/md5_test.go
  64. 2
      pkg/utils/crypto/sha1/sha1_darwin.go
  65. 2
      pkg/utils/crypto/sha1/sha1_linux.go
  66. 2
      pkg/utils/crypto/sha256/sha256_linux.go
  67. 2
      pkg/utils/crypto/sha512/sha512_linux.go
  68. 4
      pkg/utils/split/split_test.go

@ -1,8 +1,8 @@
### Setup your Minio Github Repository ### Setup your Minio Github Repository
Fork [Minio upstream](https://github.com/Minio-io/minio/fork) source repository to your own personal repository. Copy the URL and pass it to ``go get`` command. Go uses git to clone a copy into your project workspace folder. Fork [Minio upstream](https://github.com/Minio-io/minio/fork) source repository to your own personal repository. Copy the URL and pass it to ``go get`` command. Go uses git to clone a copy into your project workspace folder.
```sh ```sh
$ mkdir -p $GOPATH/src/github.com/minio-io $ mkdir -p $GOPATH/src/github.com/minio
$ cd $GOPATH/src/github.com/minio-io $ cd $GOPATH/src/github.com/minio
$ git clone https://github.com/$USER_ID/minio $ git clone https://github.com/$USER_ID/minio
$ cd minio $ cd minio
``` ```
@ -23,8 +23,8 @@ Building Libraries
### Setting up git remote as ``upstream`` ### Setting up git remote as ``upstream``
```sh ```sh
$ cd $GOPATH/src/github.com/minio-io/minio $ cd $GOPATH/src/github.com/minio/minio
$ git remote add upstream https://github.com/minio-io/minio $ git remote add upstream https://github.com/minio/minio
$ git fetch upstream $ git fetch upstream
$ git merge upstream/master $ git merge upstream/master
... ...

@ -20,9 +20,9 @@ RUN curl -O -s https://storage.googleapis.com/golang/${GOLANG_TARBALL} && \
tar -xzf ${GOLANG_TARBALL} -C ${GOROOT%*go*} && \ tar -xzf ${GOLANG_TARBALL} -C ${GOROOT%*go*} && \
rm ${GOLANG_TARBALL} rm ${GOLANG_TARBALL}
ADD . ${GOPATH}/src/github.com/minio-io/minio ADD . ${GOPATH}/src/github.com/minio/minio
RUN cd ${GOPATH}/src/github.com/minio-io/minio && \ RUN cd ${GOPATH}/src/github.com/minio/minio && \
make make
RUN apt-get remove -y build-essential curl git && \ RUN apt-get remove -y build-essential curl git && \

6
Godeps/Godeps.json generated vendored

@ -1,5 +1,5 @@
{ {
"ImportPath": "github.com/minio-io/minio", "ImportPath": "github.com/minio/minio",
"GoVersion": "go1.4.2", "GoVersion": "go1.4.2",
"Packages": [ "Packages": [
"./..." "./..."
@ -18,11 +18,11 @@
"Rev": "660d31f8602b95058fed6833debf113e85350868" "Rev": "660d31f8602b95058fed6833debf113e85350868"
}, },
{ {
"ImportPath": "github.com/minio-io/check", "ImportPath": "github.com/minio/check",
"Rev": "bc4e66da8cd7ff58a4b9b84301f906352b8f2c94" "Rev": "bc4e66da8cd7ff58a4b9b84301f906352b8f2c94"
}, },
{ {
"ImportPath": "github.com/minio-io/cli", "ImportPath": "github.com/minio/cli",
"Comment": "1.2.0-110-g111d644", "Comment": "1.2.0-110-g111d644",
"Rev": "111d6445d384505978aaf5b218ce96d163b73c57" "Rev": "111d6445d384505978aaf5b218ce96d163b73c57"
}, },

@ -3,11 +3,11 @@ Instructions
Install the package with: Install the package with:
go get github.com/minio-io/check go get github.com/minio/check
Import it with: Import it with:
import "github.com/minio-io/check" import "github.com/minio/check"
and use _check_ as the package name inside the code. and use _check_ as the package name inside the code.

@ -3,7 +3,7 @@
package check_test package check_test
import ( import (
. "github.com/minio-io/check" . "github.com/minio/check"
"time" "time"
) )

@ -14,7 +14,7 @@ package check_test
import ( import (
"fmt" "fmt"
"github.com/minio-io/check" "github.com/minio/check"
"strings" "strings"
) )

@ -12,7 +12,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/minio-io/check" "github.com/minio/check"
) )
// We count the number of suites run at least to get a vague hint that the // We count the number of suites run at least to get a vague hint that the

@ -2,7 +2,7 @@ package check_test
import ( import (
"errors" "errors"
"github.com/minio-io/check" "github.com/minio/check"
"reflect" "reflect"
"runtime" "runtime"
) )

@ -3,7 +3,7 @@
package check_test package check_test
import ( import (
. "github.com/minio-io/check" . "github.com/minio/check"
) )
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------

@ -8,7 +8,7 @@ package check_test
import ( import (
"fmt" "fmt"
"github.com/minio-io/check" "github.com/minio/check"
"log" "log"
"os" "os"
"regexp" "regexp"

@ -4,7 +4,7 @@
package check_test package check_test
import ( import (
"github.com/minio-io/check" "github.com/minio/check"
"os" "os"
"reflect" "reflect"
"runtime" "runtime"

@ -1,7 +1,7 @@
package check_test package check_test
import ( import (
. "github.com/minio-io/check" . "github.com/minio/check"
) )
var _ = Suite(&PrinterS{}) var _ = Suite(&PrinterS{})

@ -4,7 +4,7 @@ package check_test
import ( import (
"errors" "errors"
. "github.com/minio-io/check" . "github.com/minio/check"
"os" "os"
"sync" "sync"
) )

@ -2,7 +2,7 @@
cli.go is simple, fast, and fun package for building command line apps in Go. The goal is to enable developers to write fast and distributable command line applications in an expressive way. - This is a fork of ``github.com/codegangsta/cli`` until our patches get merge upstream cli.go is simple, fast, and fun package for building command line apps in Go. The goal is to enable developers to write fast and distributable command line applications in an expressive way. - This is a fork of ``github.com/codegangsta/cli`` until our patches get merge upstream
You can view the API docs here: You can view the API docs here:
http://godoc.org/github.com/minio-io/cli http://godoc.org/github.com/minio/cli
## Overview ## Overview
Command line apps are usually so tiny that there is absolutely no reason why your code should *not* be self-documenting. Things like generating help text and parsing command flags should not hinder productivity when writing a command line app. Command line apps are usually so tiny that there is absolutely no reason why your code should *not* be self-documenting. Things like generating help text and parsing command flags should not hinder productivity when writing a command line app.
@ -14,7 +14,7 @@ Make sure you have a working Go environment (go 1.1 is *required*). [See the ins
To install `cli.go`, simply run: To install `cli.go`, simply run:
``` ```
$ go get github.com/minio-io/cli $ go get github.com/minio/cli
``` ```
Make sure your `PATH` includes to the `$GOPATH/bin` directory so your commands can be easily used: Make sure your `PATH` includes to the `$GOPATH/bin` directory so your commands can be easily used:
@ -30,7 +30,7 @@ package main
import ( import (
"os" "os"
"github.com/minio-io/cli" "github.com/minio/cli"
) )
func main() { func main() {
@ -45,7 +45,7 @@ package main
import ( import (
"os" "os"
"github.com/minio-io/cli" "github.com/minio/cli"
) )
func main() { func main() {
@ -73,7 +73,7 @@ package main
import ( import (
"os" "os"
"github.com/minio-io/cli" "github.com/minio/cli"
) )
func main() { func main() {

@ -6,7 +6,7 @@ import (
"os" "os"
"testing" "testing"
"github.com/minio-io/cli" "github.com/minio/cli"
) )
func ExampleApp() { func ExampleApp() {

@ -3,7 +3,7 @@ package cli_test
import ( import (
"os" "os"
"github.com/minio-io/cli" "github.com/minio/cli"
) )
func Example() { func Example() {

@ -4,7 +4,7 @@ import (
"flag" "flag"
"testing" "testing"
"github.com/minio-io/cli" "github.com/minio/cli"
) )
func TestCommandDoNotIgnoreFlags(t *testing.T) { func TestCommandDoNotIgnoreFlags(t *testing.T) {

@ -5,7 +5,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/minio-io/cli" "github.com/minio/cli"
) )
func TestNewContext(t *testing.T) { func TestNewContext(t *testing.T) {

@ -7,7 +7,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/minio-io/cli" "github.com/minio/cli"
) )
var boolFlagTests = []struct { var boolFlagTests = []struct {

@ -6,10 +6,10 @@ checkdeps:
checkgopath: checkgopath:
@echo "Checking if project is at ${GOPATH}" @echo "Checking if project is at ${GOPATH}"
@for mcpath in $(echo ${GOPATH} | sed 's/:/\n/g' | grep -v Godeps); do if [ ! -d ${mcpath}/src/github.com/minio-io/minio ]; then echo "Project not found in ${mcpath}, please follow instructions provided at https://github.com/Minio-io/minio/blob/master/CONTRIBUTING.md#setup-your-minio-github-repository" && exit 1; fi done @for mcpath in $(echo ${GOPATH} | sed 's/:/\n/g' | grep -v Godeps); do if [ ! -d ${mcpath}/src/github.com/minio/minio ]; then echo "Project not found in ${mcpath}, please follow instructions provided at https://github.com/Minio-io/minio/blob/master/CONTRIBUTING.md#setup-your-minio-github-repository" && exit 1; fi done
getdeps: checkdeps checkgopath getdeps: checkdeps checkgopath
@go get github.com/minio-io/godep && echo "Installed godep:" @go get github.com/minio/godep && echo "Installed godep:"
@go get github.com/golang/lint/golint && echo "Installed golint:" @go get github.com/golang/lint/golint && echo "Installed golint:"
@go get golang.org/x/tools/cmd/vet && echo "Installed vet:" @go get golang.org/x/tools/cmd/vet && echo "Installed vet:"
@go get github.com/fzipp/gocyclo && echo "Installed gocyclo:" @go get github.com/fzipp/gocyclo && echo "Installed gocyclo:"
@ -49,7 +49,7 @@ minio: pre-build build-all test-all
install: minio install: minio
@echo "Installing minio:" @echo "Installing minio:"
@godep go install -a -ldflags "-X main.BuildDate `date --universal '+%FT%T.%N%:z'`" github.com/minio-io/minio @godep go install -a -ldflags "-X main.BuildDate `date --universal '+%FT%T.%N%:z'`" github.com/minio/minio
save: restore save: restore
@godep save ./... @godep save ./...

@ -3,7 +3,7 @@
Minio is an open source object storage released under [Apache license v2](./LICENSE) . It uses ``Rubberband Erasure`` coding to dynamically protect the data. Minio is an open source object storage released under [Apache license v2](./LICENSE) . It uses ``Rubberband Erasure`` coding to dynamically protect the data.
Minio's design is inspired by Amazon's S3 for its API and Facebook's Haystack for its immutable data structure. Minio's design is inspired by Amazon's S3 for its API and Facebook's Haystack for its immutable data structure.
[![GoDoc](https://godoc.org/github.com/minio-io/minio?status.svg)](https://godoc.org/github.com/minio-io/minio) [![Build Status](https://travis-ci.org/minio-io/minio.svg)](https://travis-ci.org/minio-io/minio) [![GoDoc](https://godoc.org/github.com/minio/minio?status.svg)](https://godoc.org/github.com/minio/minio) [![Build Status](https://travis-ci.org/minio/minio.svg)](https://travis-ci.org/minio/minio)
### Join Community ### Join Community
* Community hangout on Gitter [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Minio-io/minio?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) * Community hangout on Gitter [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Minio-io/minio?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

@ -27,11 +27,11 @@ import (
"time" "time"
"github.com/dustin/go-humanize" "github.com/dustin/go-humanize"
"github.com/minio-io/cli" "github.com/minio/cli"
"github.com/minio-io/minio/pkg/featureflags" "github.com/minio/minio/pkg/featureflags"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
"github.com/minio-io/minio/pkg/server" "github.com/minio/minio/pkg/server"
"github.com/minio-io/minio/pkg/server/httpserver" "github.com/minio/minio/pkg/server/httpserver"
) )
var globalDebugFlag = false var globalDebugFlag = false

@ -21,9 +21,9 @@ import (
"strconv" "strconv"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
"github.com/minio-io/minio/pkg/storage/drivers" "github.com/minio/minio/pkg/storage/drivers"
"github.com/minio-io/minio/pkg/utils/log" "github.com/minio/minio/pkg/utils/log"
) )
func (server *minioAPI) isValidOp(w http.ResponseWriter, req *http.Request, acceptsContentType contentType) bool { func (server *minioAPI) isValidOp(w http.ResponseWriter, req *http.Request, acceptsContentType contentType) bool {

@ -22,7 +22,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/minio-io/minio/pkg/api/config" "github.com/minio/minio/pkg/api/config"
) )
type timeHandler struct { type timeHandler struct {

@ -24,9 +24,9 @@ import (
"encoding/xml" "encoding/xml"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
"github.com/minio-io/minio/pkg/storage/drivers" "github.com/minio/minio/pkg/storage/drivers"
"github.com/minio-io/minio/pkg/utils/log" "github.com/minio/minio/pkg/utils/log"
) )
const ( const (

@ -21,7 +21,7 @@ import (
"sort" "sort"
"strconv" "strconv"
"github.com/minio-io/minio/pkg/storage/drivers" "github.com/minio/minio/pkg/storage/drivers"
) )
// Reply date format // Reply date format

@ -21,12 +21,12 @@ import (
"net/http" "net/http"
router "github.com/gorilla/mux" router "github.com/gorilla/mux"
"github.com/minio-io/minio/pkg/api/config" "github.com/minio/minio/pkg/api/config"
"github.com/minio-io/minio/pkg/api/logging" "github.com/minio/minio/pkg/api/logging"
"github.com/minio-io/minio/pkg/api/quota" "github.com/minio/minio/pkg/api/quota"
"github.com/minio-io/minio/pkg/featureflags" "github.com/minio/minio/pkg/featureflags"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
"github.com/minio-io/minio/pkg/storage/drivers" "github.com/minio/minio/pkg/storage/drivers"
) )
// private use // private use

@ -32,14 +32,14 @@ import (
"net/http" "net/http"
"net/http/httptest" "net/http/httptest"
"github.com/minio-io/minio/pkg/featureflags" "github.com/minio/minio/pkg/featureflags"
"github.com/minio-io/minio/pkg/storage/drivers" "github.com/minio/minio/pkg/storage/drivers"
"github.com/minio-io/minio/pkg/storage/drivers/donut" "github.com/minio/minio/pkg/storage/drivers/donut"
"github.com/minio-io/minio/pkg/storage/drivers/memory" "github.com/minio/minio/pkg/storage/drivers/memory"
"github.com/minio-io/minio/pkg/storage/drivers/mocks" "github.com/minio/minio/pkg/storage/drivers/mocks"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
. "github.com/minio-io/check" . "github.com/minio/check"
) )
func Test(t *testing.T) { TestingT(t) } func Test(t *testing.T) { TestingT(t) }

@ -24,7 +24,7 @@ import (
"path" "path"
"sync" "sync"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
) )
// Config context // Config context

@ -23,8 +23,8 @@ import (
"sync" "sync"
"testing" "testing"
. "github.com/minio-io/check" . "github.com/minio/check"
"github.com/minio-io/minio/pkg/utils/crypto/keys" "github.com/minio/minio/pkg/utils/crypto/keys"
) )
type MySuite struct{} type MySuite struct{}

@ -24,7 +24,7 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/minio-io/minio/pkg/storage/drivers" "github.com/minio/minio/pkg/storage/drivers"
) )
// No encoder interface exists, so we create one. // No encoder interface exists, so we create one.

@ -24,8 +24,8 @@ import (
"os" "os"
"time" "time"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
"github.com/minio-io/minio/pkg/utils/log" "github.com/minio/minio/pkg/utils/log"
) )
type logHandler struct { type logHandler struct {

@ -25,8 +25,8 @@ import (
"sync" "sync"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
"github.com/minio-io/minio/pkg/utils/log" "github.com/minio/minio/pkg/utils/log"
) )
// bandwidthQuotaHandler // bandwidthQuotaHandler

@ -21,7 +21,7 @@ import (
"net/http" "net/http"
"sync" "sync"
"github.com/minio-io/minio/pkg/utils/log" "github.com/minio/minio/pkg/utils/log"
) )
// requestLimitHandler // requestLimitHandler

@ -22,7 +22,7 @@ import (
"net/http" "net/http"
"time" "time"
"github.com/minio-io/minio/pkg/utils/log" "github.com/minio/minio/pkg/utils/log"
) )
// requestLimitHandler // requestLimitHandler

@ -20,7 +20,7 @@ import (
"net/url" "net/url"
"strconv" "strconv"
"github.com/minio-io/minio/pkg/storage/drivers" "github.com/minio/minio/pkg/storage/drivers"
) )
// parse bucket url queries // parse bucket url queries

@ -23,10 +23,10 @@ import (
"path" "path"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/minio-io/minio/pkg/api/config" "github.com/minio/minio/pkg/api/config"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
"github.com/minio-io/minio/pkg/utils/crypto/keys" "github.com/minio/minio/pkg/utils/crypto/keys"
"github.com/minio-io/minio/pkg/utils/log" "github.com/minio/minio/pkg/utils/log"
) )
const ( const (

@ -1,10 +1,10 @@
### Setup your Erasure Github Repository ### Setup your Erasure Github Repository
Fork [Erasure upstream](https://github.com/minio-io/erasure/fork) source repository to your own personal repository. Copy the URL and pass it to ``go get`` command. Go uses git to clone a copy into your project workspace folder. Fork [Erasure upstream](https://github.com/minio/erasure/fork) source repository to your own personal repository. Copy the URL and pass it to ``go get`` command. Go uses git to clone a copy into your project workspace folder.
```sh ```sh
$ git clone https://github.com/$USER_ID/erasure $ git clone https://github.com/$USER_ID/erasure
$ cd erasure $ cd erasure
$ mkdir -p ${GOPATH}/src/github.com/minio-io $ mkdir -p ${GOPATH}/src/github.com/minio
$ ln -s ${PWD} $GOPATH/src/github.com/minio-io/ $ ln -s ${PWD} $GOPATH/src/github.com/minio/
``` ```
### Compiling Erasure from source ### Compiling Erasure from source

@ -20,7 +20,7 @@ import (
"bytes" "bytes"
"testing" "testing"
. "github.com/minio-io/check" . "github.com/minio/check"
) )
type MySuite struct{} type MySuite struct{}

@ -19,7 +19,7 @@ package erasure
import ( import (
"bytes" "bytes"
. "github.com/minio-io/check" . "github.com/minio/check"
) )
func corruptChunks(chunks [][]byte, errorIndex []int) [][]byte { func corruptChunks(chunks [][]byte, errorIndex []int) [][]byte {

@ -225,6 +225,6 @@ func init() {
_, iodineFile, _, _ := runtime.Caller(0) _, iodineFile, _, _ := runtime.Caller(0)
iodineFile = path.Dir(iodineFile) // trim iodine.go iodineFile = path.Dir(iodineFile) // trim iodine.go
iodineFile = path.Dir(iodineFile) // trim iodine iodineFile = path.Dir(iodineFile) // trim iodine
iodineFile = path.Dir(iodineFile) // trim minio-io iodineFile = path.Dir(iodineFile) // trim minio
gopath = path.Dir(iodineFile) + "/" // trim github.com gopath = path.Dir(iodineFile) + "/" // trim github.com
} }

@ -19,7 +19,7 @@ package httpserver
import ( import (
"net/http" "net/http"
"github.com/minio-io/minio/pkg/utils/log" "github.com/minio/minio/pkg/utils/log"
) )
// Config - http server config // Config - http server config

@ -22,13 +22,13 @@ import (
"reflect" "reflect"
"time" "time"
"github.com/minio-io/minio/pkg/api" "github.com/minio/minio/pkg/api"
"github.com/minio-io/minio/pkg/api/web" "github.com/minio/minio/pkg/api/web"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
"github.com/minio-io/minio/pkg/server/httpserver" "github.com/minio/minio/pkg/server/httpserver"
"github.com/minio-io/minio/pkg/storage/drivers/donut" "github.com/minio/minio/pkg/storage/drivers/donut"
"github.com/minio-io/minio/pkg/storage/drivers/memory" "github.com/minio/minio/pkg/storage/drivers/memory"
"github.com/minio-io/minio/pkg/utils/log" "github.com/minio/minio/pkg/utils/log"
) )
// MemoryFactory is used to build memory api servers // MemoryFactory is used to build memory api servers

@ -19,7 +19,7 @@ package donut
import ( import (
"errors" "errors"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
) )
// donut struct internal data // donut struct internal data

@ -29,7 +29,7 @@ import (
"crypto/md5" "crypto/md5"
"encoding/hex" "encoding/hex"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
) )
// internal struct carrying bucket specific information // internal struct carrying bucket specific information

@ -29,8 +29,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
"github.com/minio-io/minio/pkg/utils/split" "github.com/minio/minio/pkg/utils/split"
) )
/// This file contains all the internal functions used by Bucket interface /// This file contains all the internal functions used by Bucket interface

@ -24,7 +24,7 @@ import (
"io/ioutil" "io/ioutil"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
) )
// internal disk struct // internal disk struct

@ -20,8 +20,8 @@ import (
"errors" "errors"
"strconv" "strconv"
encoding "github.com/minio-io/minio/pkg/erasure" encoding "github.com/minio/minio/pkg/erasure"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
) )
// encoder internal struct // encoder internal struct

@ -19,7 +19,7 @@ package donut
import ( import (
"errors" "errors"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
) )
// node struct internal // node struct internal

@ -21,7 +21,7 @@ import (
"os" "os"
"strings" "strings"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
) )
// Rebalance - // Rebalance -

@ -28,7 +28,7 @@ import (
"testing" "testing"
"time" "time"
. "github.com/minio-io/check" . "github.com/minio/check"
) )
func Test(t *testing.T) { TestingT(t) } func Test(t *testing.T) { TestingT(t) }

@ -5,7 +5,7 @@ import (
"errors" "errors"
"path" "path"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
) )
// Heal - heal a donut and fix bad data blocks // Heal - heal a donut and fix bad data blocks

@ -24,7 +24,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
) )
// MakeBucket - make a new bucket // MakeBucket - make a new bucket

@ -25,7 +25,7 @@ import (
"path" "path"
"strings" "strings"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
) )
/// This file contains all the internal functions used by Object interface /// This file contains all the internal functions used by Object interface

@ -26,8 +26,8 @@ import (
"time" "time"
"github.com/minio-io/check" "github.com/minio/check"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
) )
// APITestSuite - collection of API tests // APITestSuite - collection of API tests

@ -31,10 +31,10 @@ import (
"errors" "errors"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
"github.com/minio-io/minio/pkg/storage/donut" "github.com/minio/minio/pkg/storage/donut"
"github.com/minio-io/minio/pkg/storage/drivers" "github.com/minio/minio/pkg/storage/drivers"
"github.com/minio-io/minio/pkg/utils/log" "github.com/minio/minio/pkg/utils/log"
) )
// donutDriver - creates a new single disk drivers driver using donut // donutDriver - creates a new single disk drivers driver using donut

@ -21,8 +21,8 @@ import (
"os" "os"
"testing" "testing"
. "github.com/minio-io/check" . "github.com/minio/check"
"github.com/minio-io/minio/pkg/storage/drivers" "github.com/minio/minio/pkg/storage/drivers"
) )
func Test(t *testing.T) { TestingT(t) } func Test(t *testing.T) { TestingT(t) }

@ -35,8 +35,8 @@ import (
"math/rand" "math/rand"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
"github.com/minio-io/minio/pkg/storage/drivers" "github.com/minio/minio/pkg/storage/drivers"
) )
// memoryDriver - local variables // memoryDriver - local variables

@ -20,8 +20,8 @@ import (
"testing" "testing"
"time" "time"
. "github.com/minio-io/check" . "github.com/minio/check"
"github.com/minio-io/minio/pkg/storage/drivers" "github.com/minio/minio/pkg/storage/drivers"
) )
func Test(t *testing.T) { TestingT(t) } func Test(t *testing.T) { TestingT(t) }

@ -4,8 +4,8 @@ import (
"bytes" "bytes"
"io" "io"
"github.com/minio-io/minio/pkg/iodine" "github.com/minio/minio/pkg/iodine"
"github.com/minio-io/minio/pkg/storage/drivers" "github.com/minio/minio/pkg/storage/drivers"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
) )

@ -23,8 +23,8 @@ import (
"strings" "strings"
"testing" "testing"
. "github.com/minio-io/check" . "github.com/minio/check"
"github.com/minio-io/minio/pkg/utils/cpu" "github.com/minio/minio/pkg/utils/cpu"
) )
func Test(t *testing.T) { TestingT(t) } func Test(t *testing.T) { TestingT(t) }

@ -19,8 +19,8 @@ package keys_test
import ( import (
"testing" "testing"
. "github.com/minio-io/check" . "github.com/minio/check"
"github.com/minio-io/minio/pkg/utils/crypto/keys" "github.com/minio/minio/pkg/utils/crypto/keys"
) )
func Test(t *testing.T) { TestingT(t) } func Test(t *testing.T) { TestingT(t) }

@ -5,8 +5,8 @@ import (
"encoding/hex" "encoding/hex"
"testing" "testing"
. "github.com/minio-io/check" . "github.com/minio/check"
"github.com/minio-io/minio/pkg/utils/crypto/md5" "github.com/minio/minio/pkg/utils/crypto/md5"
) )
func Test(t *testing.T) { TestingT(t) } func Test(t *testing.T) { TestingT(t) }

@ -14,7 +14,7 @@ import (
"hash" "hash"
"io" "io"
"github.com/minio-io/minio/pkg/utils/cpu" "github.com/minio/minio/pkg/utils/cpu"
) )
// The size of a SHA1 checksum in bytes. // The size of a SHA1 checksum in bytes.

@ -14,7 +14,7 @@ import (
"hash" "hash"
"io" "io"
"github.com/minio-io/minio/pkg/utils/cpu" "github.com/minio/minio/pkg/utils/cpu"
) )
// The size of a SHA1 checksum in bytes. // The size of a SHA1 checksum in bytes.

@ -14,7 +14,7 @@ import (
"hash" "hash"
"io" "io"
"github.com/minio-io/minio/pkg/utils/cpu" "github.com/minio/minio/pkg/utils/cpu"
) )
// The size of a SHA256 checksum in bytes. // The size of a SHA256 checksum in bytes.

@ -15,7 +15,7 @@ import (
"hash" "hash"
"io" "io"
"github.com/minio-io/minio/pkg/utils/cpu" "github.com/minio/minio/pkg/utils/cpu"
) )
// The size of a SHA512 checksum in bytes. // The size of a SHA512 checksum in bytes.

@ -24,8 +24,8 @@ import (
"strconv" "strconv"
"testing" "testing"
. "github.com/minio-io/check" . "github.com/minio/check"
"github.com/minio-io/minio/pkg/utils/split" "github.com/minio/minio/pkg/utils/split"
) )
type MySuite struct{} type MySuite struct{}

Loading…
Cancel
Save