1
0
mirror of https://github.com/minio/mc.git synced 2025-11-13 12:22:45 +03:00

minio client becomes modern copy

This commit is contained in:
Anand Babu (AB) Periasamy
2015-04-11 17:09:44 -07:00
parent 87370b3cf6
commit e7a2699ab2
32 changed files with 56 additions and 71 deletions

2
NOTICE
View File

@@ -1,4 +1,4 @@
Minimalist Object Storage, (C) 2014,2015 Minio, Inc. Modern Copy, (C) 2014,2015 Minio, Inc.
This product includes software developed at Minio, Inc. This product includes software developed at Minio, Inc.
(http://minio.io/). (http://minio.io/).

View File

@@ -1,10 +1,10 @@
# Minio Client # Modern Copy
mc - Minio Client for S3 Compatible Object Storage released under [Apache license v2](./LICENSE). mc - Modern copy 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](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](http://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](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](http://godoc.org/github.com/minio-io/mc) [![Build Status](https://travis-ci.org/minio-io/mc.svg)](https://travis-ci.org/minio-io/mc)
## Download & Install ## Install from Source
```go ```go
# go get github.com/minio-io/mc # go get github.com/minio-io/mc
@@ -18,18 +18,3 @@ mc - Minio Client for S3 Compatible Object Storage released under [Apache licens
[Contribute to mc](./CONTRIBUTING.md) [Contribute to mc](./CONTRIBUTING.md)
### Supported platforms
| Name | Supported |
| ------------- | ------------- |
| Linux | Yes |
| Windows | Yes |
| Mac OSX | Yes |
### Supported architectures
| Arch | Supported |
| ------------- | ------------- |
| x86-64 | Yes |
| arm64 | Not yet|
| i386 | Not yet |

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2014, 2015 Minio, Inc. * Modern Copy, (C) 2014, 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2014,2015 Minio, Inc. * Modern Copy, (C) 2014,2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2014,2015 Minio, Inc. * Modern Copy, (C) 2014,2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2014,2015 Minio, Inc. * Modern Copy, (C) 2014,2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2014,2015 Minio, Inc. * Modern Copy, (C) 2014,2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -23,14 +23,14 @@ import (
// List of commands // List of commands
var ( var (
cpCmd = cli.Command{ cpCmd = cli.Command{
Name: "cp", Name: "cp",
Usage: "copy objects and files", Usage: "Copy objects and files",
Description: "Copy files and objects recursively between Amazon S3, Minio Object Storage and Filesystem", // Description: "Copy files and objects recursively across object storage and filesystems",
Action: doCopyCmd, Action: doCopyCmd,
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.BoolFlag{ cli.BoolFlag{
Name: "recursive, r", Name: "recursive, r",
Usage: "recursively crawls a given directory or bucket", Usage: "Recursively crawl a given directory or bucket",
}, },
}, },
CustomHelpTemplate: `NAME: CustomHelpTemplate: `NAME:
@@ -59,10 +59,10 @@ EXAMPLES:
} }
lsCmd = cli.Command{ lsCmd = cli.Command{
Name: "ls", Name: "ls",
Usage: "list files and objects", Usage: "List files and objects",
Description: `List files and objects recursively between Amazon S3, Minio Object Storage and Filesystem`, // Description: `List files and objects recursively on object storage and fileystems`,
Action: doListCmd, Action: doListCmd,
CustomHelpTemplate: `NAME: CustomHelpTemplate: `NAME:
mc {{.Name}} - {{.Usage}} mc {{.Name}} - {{.Usage}}
@@ -91,10 +91,10 @@ EXAMPLES:
} }
mbCmd = cli.Command{ mbCmd = cli.Command{
Name: "mb", Name: "mb",
Usage: "makes a bucket", Usage: "Make a bucket",
Description: `Creates a bucket on Amazon S3, Minio Object Storage and Filesystem`, // Description: `Create a bucket on object storage or a folder on filesystem`,
Action: doMakeBucketCmd, Action: doMakeBucketCmd,
CustomHelpTemplate: `NAME: CustomHelpTemplate: `NAME:
mc {{.Name}} - {{.Usage}} mc {{.Name}} - {{.Usage}}
@@ -121,10 +121,10 @@ EXAMPLES:
configCmd = cli.Command{ configCmd = cli.Command{
Name: "config", Name: "config",
Usage: "Generate configuration \"" + mustGetMcConfigPath() + "\" file.", Usage: "Generate configuration \"" + mustGetMcConfigPath() + "\" file.",
Description: `Configure minio client configuration. // Description: Configure minio client configuration.
//
NOTE: that the configure command only writes values to the config file. // NOTE: that the configure command only writes values to the config file.
It does not use any configuration values from the environment variables.`, // It does not use any configuration values from the environment variables.`,
Action: doConfigCmd, Action: doConfigCmd,
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.StringFlag{ cli.StringFlag{
@@ -150,13 +150,13 @@ EXAMPLES:
} }
updateCmd = cli.Command{ updateCmd = cli.Command{
Name: "update", Name: "update",
Usage: "Check if new updates are available at http://minio.io", Usage: "Check for new software updates",
Description: "", Description: "",
Action: doUpdateCmd, Action: doUpdateCmd,
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.BoolFlag{ cli.BoolFlag{
Name: "yes, y", Name: "yes, y",
Usage: "download and update local binary", Usage: "Download and update local binary",
}, },
}, },
} }
@@ -174,11 +174,11 @@ var (
flags = []cli.Flag{ flags = []cli.Flag{
cli.BoolFlag{ cli.BoolFlag{
Name: "debug", Name: "debug",
Usage: "enable HTTP tracing", Usage: "Enable HTTP tracing",
}, },
cli.BoolFlag{ cli.BoolFlag{
Name: "quiet, q", Name: "quiet, q",
Usage: "disable chatty output, such as the progress bar", Usage: "Disable chatty output, such as the progress bar",
}, },
} }
) )

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

2
doc.go
View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2014,2015 Minio, Inc. * Modern Copy, (C) 2014,2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2014,2015 Minio, Inc. * Modern Copy, (C) 2014,2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2014, 2015 Minio, Inc. * Modern Copy, (C) 2014, 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -87,7 +87,7 @@ func getSystemData() map[string]string {
func main() { func main() {
app := cli.NewApp() app := cli.NewApp()
app.Usage = "Minio Client for S3 Compatible Object Storage" app.Usage = "Modern Copy for object storage and filesystems"
app.Version = mcGitCommitHash app.Version = mcGitCommitHash
app.Commands = options app.Commands = options
app.Flags = flags app.Flags = flags

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fs except in compliance with the License. * you may not use this fs except in compliance with the License.

View File

@@ -21,7 +21,7 @@ limitations under the License.
// ---------------------------------------- // // ---------------------------------------- //
/* /*
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -21,7 +21,7 @@ limitations under the License.
// ---------------------------------------- // // ---------------------------------------- //
/* /*
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -21,7 +21,7 @@ limitations under the License.
// ---------------------------------------- // // ---------------------------------------- //
/* /*
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -21,7 +21,7 @@ limitations under the License.
// ---------------------------------------- // // ---------------------------------------- //
/* /*
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -21,7 +21,7 @@ limitations under the License.
// ---------------------------------------- // // ---------------------------------------- //
/* /*
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -21,7 +21,7 @@ limitations under the License.
// ---------------------------------------- // // ---------------------------------------- //
/* /*
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2014,2015 Minio, Inc. * Modern Copy, (C) 2014,2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,7 +1,7 @@
/* /*
* qdb - Quick way to implement a configuration file * qdb - Quick way to implement a configuration file
* *
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,7 +1,7 @@
/* /*
* QConfig - Quick way to implement a configuration file * QConfig - Quick way to implement a configuration file
* *
* Minimalist Object Storage, (C) 2015 Minio, Inc. * Modern Copy, (C) 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Minimalist Object Storage, (C) 2014, 2015 Minio, Inc. * Modern Copy, (C) 2014, 2015 Minio, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.