Change minio-io to minio

This commit is contained in:
Harshavardhana
2015-05-11 16:24:26 -07:00
parent 8535172a95
commit e4a77c7391
63 changed files with 122 additions and 122 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
### Setup your mc Github Repository
Fork [mc upstream](https://github.com/minio-io/mc/fork) source repository to your own personal repository.
Fork [mc upstream](https://github.com/minio/mc/fork) source repository to your own personal repository.
```sh
$ git clone https://github.com/$USER_ID/mc
$ cd mc
+5 -5
View File
@@ -1,5 +1,5 @@
{
"ImportPath": "github.com/minio-io/mc",
"ImportPath": "github.com/minio/mc",
"GoVersion": "go1.4",
"Packages": [
"./..."
@@ -22,20 +22,20 @@
"Rev": "c06d8730d42f16f3e8dddc236c7d69c0952a8a2c"
},
{
"ImportPath": "github.com/minio-io/check",
"ImportPath": "github.com/minio/check",
"Rev": "bc4e66da8cd7ff58a4b9b84301f906352b8f2c94"
},
{
"ImportPath": "github.com/minio-io/cli",
"ImportPath": "github.com/minio/cli",
"Comment": "1.2.0-110-g111d644",
"Rev": "111d6445d384505978aaf5b218ce96d163b73c57"
},
{
"ImportPath": "github.com/minio-io/minio/pkg/iodine",
"ImportPath": "github.com/minio/minio/pkg/iodine",
"Rev": "1d4bc0c34e0c0ceb6606dab4e99288df0166c3d1"
},
{
"ImportPath": "github.com/minio-io/minio/pkg/utils/log",
"ImportPath": "github.com/minio/minio/pkg/utils/log",
"Rev": "1d4bc0c34e0c0ceb6606dab4e99288df0166c3d1"
},
{
+2 -2
View File
@@ -3,11 +3,11 @@ Instructions
Install the package with:
go get github.com/minio-io/check
go get github.com/minio/check
Import it with:
import "github.com/minio-io/check"
import "github.com/minio/check"
and use _check_ as the package name inside the code.
+1 -1
View File
@@ -3,7 +3,7 @@
package check_test
import (
. "github.com/minio-io/check"
. "github.com/minio/check"
"time"
)
+1 -1
View File
@@ -14,7 +14,7 @@ package check_test
import (
"fmt"
"github.com/minio-io/check"
"github.com/minio/check"
"strings"
)
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"testing"
"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
+1 -1
View File
@@ -2,7 +2,7 @@ package check_test
import (
"errors"
"github.com/minio-io/check"
"github.com/minio/check"
"reflect"
"runtime"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package check_test
import (
. "github.com/minio-io/check"
. "github.com/minio/check"
)
// -----------------------------------------------------------------------
+1 -1
View File
@@ -8,7 +8,7 @@ package check_test
import (
"fmt"
"github.com/minio-io/check"
"github.com/minio/check"
"log"
"os"
"regexp"
+1 -1
View File
@@ -4,7 +4,7 @@
package check_test
import (
"github.com/minio-io/check"
"github.com/minio/check"
"os"
"reflect"
"runtime"
+1 -1
View File
@@ -1,7 +1,7 @@
package check_test
import (
. "github.com/minio-io/check"
. "github.com/minio/check"
)
var _ = Suite(&PrinterS{})
+1 -1
View File
@@ -4,7 +4,7 @@ package check_test
import (
"errors"
. "github.com/minio-io/check"
. "github.com/minio/check"
"os"
"sync"
)
+5 -5
View File
@@ -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
You can view the API docs here:
http://godoc.org/github.com/minio-io/cli
http://godoc.org/github.com/minio/cli
## 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.
@@ -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:
```
$ 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:
@@ -30,7 +30,7 @@ package main
import (
"os"
"github.com/minio-io/cli"
"github.com/minio/cli"
)
func main() {
@@ -45,7 +45,7 @@ package main
import (
"os"
"github.com/minio-io/cli"
"github.com/minio/cli"
)
func main() {
@@ -73,7 +73,7 @@ package main
import (
"os"
"github.com/minio-io/cli"
"github.com/minio/cli"
)
func main() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"os"
"testing"
"github.com/minio-io/cli"
"github.com/minio/cli"
)
func ExampleApp() {
+1 -1
View File
@@ -3,7 +3,7 @@ package cli_test
import (
"os"
"github.com/minio-io/cli"
"github.com/minio/cli"
)
func Example() {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"flag"
"testing"
"github.com/minio-io/cli"
"github.com/minio/cli"
)
func TestCommandDoNotIgnoreFlags(t *testing.T) {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/minio-io/cli"
"github.com/minio/cli"
)
func TestNewContext(t *testing.T) {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/minio-io/cli"
"github.com/minio/cli"
)
var boolFlagTests = []struct {
+1 -1
View File
@@ -226,6 +226,6 @@ func init() {
_, iodineFile, _, _ := runtime.Caller(0)
iodineFile = path.Dir(iodineFile) // trim iodine.go
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
}
+3 -3
View File
@@ -7,10 +7,10 @@ checkdeps:
checkgopath:
@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/mc ]; 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/mc ]; 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
@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 golang.org/x/tools/cmd/vet && echo "Installed vet:"
@go get github.com/fzipp/gocyclo && echo "Installed gocyclo:"
@@ -60,7 +60,7 @@ env:
install: test-all
@echo "Installing mc:"
@godep go install -a -ldflags "-X main.BuildDate `date -u '+%FT%T.%N%:z'`" github.com/minio-io/mc
@godep go install -a -ldflags "-X main.BuildDate `date -u '+%FT%T.%N%:z'`" github.com/minio/mc
@mkdir -p $(HOME)/.mc
clean:
+3 -3
View File
@@ -2,13 +2,13 @@
mc - Minio Client command for filesystems and object Storage. "mc" has features to resume partial downloads, progress bar, network reconnect and checksum verification. It is written in golang and released under [Apache license v2](./LICENSE).
[![GoDoc](https://godoc.org/github.com/minio-io/mc?status.svg)](https://godoc.org/github.com/minio-io/mc)
[![Build Status](https://travis-ci.org/minio-io/mc.svg)](https://travis-ci.org/minio-io/mc)
[![GoDoc](https://godoc.org/github.com/minio/mc?status.svg)](https://godoc.org/github.com/minio/mc)
[![Build Status](https://travis-ci.org/minio/mc.svg)](https://travis-ci.org/minio/mc)
## Install from Source
```go
# go get github.com/minio-io/mc
# go get github.com/minio/mc
```
## Join Community
+1 -1
View File
@@ -21,7 +21,7 @@ import (
"regexp"
"strings"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/minio/pkg/iodine"
)
// validAliasURL: use net/url.Parse to validate
+4 -4
View File
@@ -20,10 +20,10 @@ import (
"fmt"
"time"
"github.com/minio-io/cli"
"github.com/minio-io/mc/pkg/client"
"github.com/minio-io/mc/pkg/console"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/cli"
"github.com/minio/mc/pkg/client"
"github.com/minio/mc/pkg/console"
"github.com/minio/minio/pkg/iodine"
)
func runAccessCmd(ctx *cli.Context) {
+3 -3
View File
@@ -23,9 +23,9 @@ import (
"io"
"os"
"github.com/minio-io/cli"
"github.com/minio-io/mc/pkg/console"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/cli"
"github.com/minio/mc/pkg/console"
"github.com/minio/minio/pkg/iodine"
)
func runCatCmd(ctx *cli.Context) {
+2 -2
View File
@@ -21,8 +21,8 @@ import (
"time"
"github.com/cheggaaa/pb"
"github.com/minio-io/mc/pkg/console"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/mc/pkg/console"
"github.com/minio/minio/pkg/iodine"
)
// isValidRetry - check if we should retry for the given error sequence
+4 -4
View File
@@ -19,10 +19,10 @@ package main
import (
"strings"
"github.com/minio-io/cli"
"github.com/minio-io/mc/pkg/console"
"github.com/minio-io/mc/pkg/quick"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/cli"
"github.com/minio/mc/pkg/console"
"github.com/minio/mc/pkg/quick"
"github.com/minio/minio/pkg/iodine"
)
// runConfigCmd is the handle for "mc config" sub-command
+3 -3
View File
@@ -19,9 +19,9 @@ package main
import (
"strings"
"github.com/minio-io/cli"
"github.com/minio-io/mc/pkg/console"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/cli"
"github.com/minio/mc/pkg/console"
"github.com/minio/minio/pkg/iodine"
)
func runCopyCmd(ctx *cli.Context) {
+3 -3
View File
@@ -21,9 +21,9 @@ import (
"strings"
"time"
"github.com/minio-io/cli"
"github.com/minio-io/mc/pkg/console"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/cli"
"github.com/minio/mc/pkg/console"
"github.com/minio/minio/pkg/iodine"
)
// runListCmd - is a handler for mc ls command
+4 -4
View File
@@ -20,10 +20,10 @@ import (
"fmt"
"time"
"github.com/minio-io/cli"
"github.com/minio-io/mc/pkg/client"
"github.com/minio-io/mc/pkg/console"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/cli"
"github.com/minio/mc/pkg/client"
"github.com/minio/mc/pkg/console"
"github.com/minio/minio/pkg/iodine"
)
// runMakeBucketCmd is the handler for mc mb command
+2 -2
View File
@@ -20,8 +20,8 @@ import (
"fmt"
"strings"
"github.com/minio-io/cli"
"github.com/minio-io/mc/pkg/console"
"github.com/minio/cli"
"github.com/minio/mc/pkg/console"
)
// List of commands
+3 -3
View File
@@ -19,9 +19,9 @@ package main
import (
"strings"
"github.com/minio-io/cli"
"github.com/minio-io/mc/pkg/console"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/cli"
"github.com/minio/mc/pkg/console"
"github.com/minio/minio/pkg/iodine"
)
func runSyncCmd(ctx *cli.Context) {
+3 -3
View File
@@ -20,9 +20,9 @@ import (
"runtime"
"time"
"github.com/minio-io/cli"
"github.com/minio-io/mc/pkg/console"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/cli"
"github.com/minio/mc/pkg/console"
"github.com/minio/minio/pkg/iodine"
)
const (
+3 -3
View File
@@ -29,9 +29,9 @@ import (
"net"
"github.com/cheggaaa/pb"
. "github.com/minio-io/check"
"github.com/minio-io/mc/pkg/quick"
"github.com/minio-io/minio/pkg/iodine"
. "github.com/minio/check"
"github.com/minio/mc/pkg/quick"
"github.com/minio/minio/pkg/iodine"
)
func Test(t *testing.T) { TestingT(t) }
+4 -4
View File
@@ -20,10 +20,10 @@ import (
"io"
"path/filepath"
"github.com/minio-io/mc/pkg/client"
"github.com/minio-io/mc/pkg/client/fs"
"github.com/minio-io/mc/pkg/client/s3"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/mc/pkg/client"
"github.com/minio/mc/pkg/client/fs"
"github.com/minio/mc/pkg/client/s3"
"github.com/minio/minio/pkg/iodine"
)
// getSourceReader -
+2 -2
View File
@@ -22,8 +22,8 @@ import (
"path"
"runtime"
"github.com/minio-io/mc/pkg/quick"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/mc/pkg/quick"
"github.com/minio/minio/pkg/iodine"
)
type configV1 struct {
+1 -1
View File
@@ -19,7 +19,7 @@ package main
import (
"io"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/minio/pkg/iodine"
)
type sourceReader struct {
+2 -2
View File
@@ -22,8 +22,8 @@ import (
"path/filepath"
"strings"
"github.com/minio-io/mc/pkg/client"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/mc/pkg/client"
"github.com/minio/minio/pkg/iodine"
)
/// mc cp related URL processing code
+1 -1
View File
@@ -21,7 +21,7 @@ import (
"os"
"github.com/cheggaaa/pb"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/minio/pkg/iodine"
)
/// mc cp - related internal functions
+1 -1
View File
@@ -5,7 +5,7 @@ mc - Minio Client for S3 Compatible Object Storage released under [Apache licens
## Install
```
# go get github.com/minio-io/mc
# go get github.com/minio/mc
```
## Usage
+2 -2
View File
@@ -21,8 +21,8 @@ import (
"path/filepath"
"strings"
"github.com/minio-io/mc/pkg/client"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/mc/pkg/client"
"github.com/minio/minio/pkg/iodine"
)
type hostConfig struct {
+3 -3
View File
@@ -23,9 +23,9 @@ import (
"time"
"github.com/dustin/go-humanize"
"github.com/minio-io/mc/pkg/client"
"github.com/minio-io/mc/pkg/console"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/mc/pkg/client"
"github.com/minio/mc/pkg/console"
"github.com/minio/minio/pkg/iodine"
)
/// LS - related internal functions
+3 -3
View File
@@ -25,9 +25,9 @@ import (
"time"
"github.com/cheggaaa/pb"
"github.com/minio-io/cli"
"github.com/minio-io/mc/pkg/console"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/cli"
"github.com/minio/mc/pkg/console"
"github.com/minio/minio/pkg/iodine"
)
// Check for the environment early on and gracefully report.
+1 -1
View File
@@ -19,7 +19,7 @@ package client
import (
"testing"
. "github.com/minio-io/check"
. "github.com/minio/check"
)
func Test(t *testing.T) { TestingT(t) }
+2 -2
View File
@@ -27,8 +27,8 @@ import (
"io/ioutil"
"github.com/minio-io/mc/pkg/client"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/mc/pkg/client"
"github.com/minio/minio/pkg/iodine"
)
type fsClient struct {
+2 -2
View File
@@ -25,8 +25,8 @@ import (
"os"
"path/filepath"
"github.com/minio-io/mc/pkg/client"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/mc/pkg/client"
"github.com/minio/minio/pkg/iodine"
)
// CreateObject - upload new object to bucket
+2 -2
View File
@@ -27,8 +27,8 @@ import (
"path/filepath"
"testing"
. "github.com/minio-io/check"
"github.com/minio-io/mc/pkg/client"
. "github.com/minio/check"
"github.com/minio/mc/pkg/client"
)
func Test(t *testing.T) { TestingT(t) }
+1 -1
View File
@@ -23,7 +23,7 @@ import (
"net/url"
"strings"
. "github.com/minio-io/check"
. "github.com/minio/check"
)
type reqAndExpected struct {
+2 -2
View File
@@ -21,8 +21,8 @@ import (
"net/http"
"github.com/minio-io/mc/pkg/client"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/mc/pkg/client"
"github.com/minio/minio/pkg/iodine"
)
func isValidBucketACL(acl string) bool {
+1 -1
View File
@@ -16,7 +16,7 @@
package s3
import "github.com/minio-io/mc/pkg/client"
import "github.com/minio/mc/pkg/client"
/// Bucket API operations
+2 -2
View File
@@ -22,8 +22,8 @@ import (
"strconv"
"time"
"github.com/minio-io/mc/pkg/client"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/mc/pkg/client"
"github.com/minio/minio/pkg/iodine"
)
func (c *s3Client) getMetadata(bucket, object string) (content *client.Content, err error) {
+2 -2
View File
@@ -28,8 +28,8 @@ import (
"strings"
"time"
"github.com/minio-io/mc/pkg/client"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/mc/pkg/client"
"github.com/minio/minio/pkg/iodine"
)
func (c *s3Client) listInGoRoutine(contentCh chan client.ContentOnChannel) {
+3 -3
View File
@@ -26,9 +26,9 @@ import (
"testing"
"time"
. "github.com/minio-io/check"
"github.com/minio-io/mc/pkg/client"
"github.com/minio-io/minio/pkg/iodine"
. "github.com/minio/check"
"github.com/minio/mc/pkg/client"
"github.com/minio/minio/pkg/iodine"
)
func Test(t *testing.T) { TestingT(t) }
+1 -1
View File
@@ -20,7 +20,7 @@ import (
"net/http"
"net/url"
"github.com/minio-io/mc/pkg/client"
"github.com/minio/mc/pkg/client"
)
// New returns an initialized s3Client structure.
+2 -2
View File
@@ -20,8 +20,8 @@ import (
"errors"
"net/http"
"github.com/minio-io/mc/pkg/client"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/mc/pkg/client"
"github.com/minio/minio/pkg/iodine"
)
// HTTPTracer provides callback hook mechanism for HTTP transport.
+2 -2
View File
@@ -23,8 +23,8 @@ import (
"net/http"
"github.com/minio-io/mc/pkg/client"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/mc/pkg/client"
"github.com/minio/minio/pkg/iodine"
)
/// Object API operations
+2 -2
View File
@@ -24,8 +24,8 @@ import (
"net/http"
"strings"
"github.com/minio-io/mc/pkg/client"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/mc/pkg/client"
"github.com/minio/minio/pkg/iodine"
)
/// Object Operations PUT - keeping this in a separate file for readability
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"time"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/minio/pkg/iodine"
)
func (c *s3Client) isValidQueryURL(queryURL string) bool {
+2 -2
View File
@@ -22,8 +22,8 @@ import (
"net/http"
"net/http/httputil"
"github.com/minio-io/mc/pkg/console"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/mc/pkg/console"
"github.com/minio/minio/pkg/iodine"
)
// Trace - tracing structure
+1 -1
View File
@@ -25,7 +25,7 @@ import (
"path/filepath"
"github.com/fatih/color"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/minio/pkg/iodine"
)
// NoDebugPrint defines if the input should be printed or not. By default it's set to true.
+1 -1
View File
@@ -20,7 +20,7 @@ import (
"runtime"
"testing"
. "github.com/minio-io/check"
. "github.com/minio/check"
)
func Test(t *testing.T) { TestingT(t) }
+1 -1
View File
@@ -30,7 +30,7 @@ import (
"sync"
"github.com/fatih/structs"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/minio/pkg/iodine"
)
// Config - generic config interface functions
+1 -1
View File
@@ -22,7 +22,7 @@ import (
"os"
"testing"
. "github.com/minio-io/check"
. "github.com/minio/check"
)
func Test(t *testing.T) { TestingT(t) }
+2 -2
View File
@@ -20,8 +20,8 @@ import (
"net/url"
"strings"
"github.com/minio-io/mc/pkg/client"
"github.com/minio-io/minio/pkg/iodine"
"github.com/minio/mc/pkg/client"
"github.com/minio/minio/pkg/iodine"
)
// re-usable constants