Removing more dead code
This commit is contained in:
@@ -24,12 +24,6 @@ import (
|
||||
"github.com/minio-io/minio/pkg/iodine"
|
||||
)
|
||||
|
||||
// Alias for S3 hosts, saved in mc json configuration file
|
||||
type mcAlias struct {
|
||||
Name string // Any alphanumeric string /^[a-zA-Z0-9-_]+$/
|
||||
URL string // Eg.: https://s3.amazonaws.com/
|
||||
}
|
||||
|
||||
// validAliasURL: use net/url.Parse to validate
|
||||
var validAliasName = regexp.MustCompile("^[a-zA-Z][a-zA-Z0-9-]+$")
|
||||
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"net/url"
|
||||
|
||||
"github.com/minio-io/cli"
|
||||
)
|
||||
|
||||
@@ -165,22 +163,6 @@ EXAMPLES:
|
||||
}
|
||||
)
|
||||
|
||||
type object struct {
|
||||
scheme string // protocol type: possible values are http, https, nil
|
||||
host string
|
||||
// Bucket name can also be a DNS name. "." is allowed, with certain restrictions.
|
||||
// Read more at http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html
|
||||
bucket string
|
||||
key string
|
||||
url *url.URL
|
||||
}
|
||||
|
||||
type cmdArgs struct {
|
||||
quiet bool
|
||||
source object
|
||||
destination object
|
||||
}
|
||||
|
||||
var options = []cli.Command{
|
||||
cpCmd,
|
||||
lsCmd,
|
||||
|
||||
@@ -21,7 +21,3 @@ var (
|
||||
globalQuietFlag = false // Quiet flag set via command line
|
||||
globalDebugFlag = false // Debug flag set via command line
|
||||
)
|
||||
|
||||
const (
|
||||
globalMaxKeys = 1000 // Maximum number of keys to fetch per request
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user