1
0
mirror of https://github.com/minio/mc.git synced 2025-04-18 10:04:03 +03:00

Adds missing codebase MinIO and min.io changes (#2745)

This commit is contained in:
ebozduman 2019-04-16 22:31:54 -07:00 committed by kannappanr
parent 68a9eeae18
commit 83a9d8b91d
173 changed files with 392 additions and 392 deletions

View File

@ -6,10 +6,10 @@
#
# For explanation on this file format: man git-shortlog
Anand Babu (AB) Periasamy <ab@minio.io> Anand Babu (AB) Periasamy <abperiasamy@users.noreply.github.com>
Anand Babu (AB) Periasamy <ab@minio.io> <ab@unlocksmith.org>
Anand Babu (AB) Periasamy <ab@min.io> Anand Babu (AB) Periasamy <abperiasamy@users.noreply.github.com>
Anand Babu (AB) Periasamy <ab@min.io> <ab@unlocksmith.org>
Anis Elleuch <vadmeste@gmail.com>
Frederick F. Kautz IV <fkautz@minio.io> <fkautz@alumni.cmu.edu>
Harshavardhana <harsha@minio.io> <harsha@harshavardhana.net>
Krishna Srinivas <krishna@minio.io> <krishna.srinivas@gmail.com>
Frederick F. Kautz IV <fkautz@min.io> <fkautz@alumni.cmu.edu>
Harshavardhana <harsha@min.io> <harsha@harshavardhana.net>
Krishna Srinivas <krishna@min.io> <krishna.srinivas@gmail.com>
Bosky <bosky@helpshift.com>

View File

@ -1,6 +1,6 @@
FROM golang:1.12-alpine
LABEL maintainer="Minio Inc <dev@minio.io>"
LABEL maintainer="MinIO Inc <dev@min.io>"
ENV GOPATH /go
ENV CGO_ENABLED 0

View File

@ -1,11 +1,11 @@
FROM alpine:3.9
MAINTAINER Minio Inc <dev@minio.io>
MAINTAINER MinIO Inc <dev@min.io>
RUN \
apk add --no-cache ca-certificates && \
apk add --no-cache --virtual .build-deps curl && \
curl https://dl.minio.io/client/mc/release/linux-amd64/mc > /usr/bin/mc && \
curl https://dl.min.io/client/mc/release/linux-amd64/mc > /usr/bin/mc && \
chmod +x /usr/bin/mc && apk del .build-deps
ENTRYPOINT ["mc"]

View File

@ -46,7 +46,7 @@ spelling:
@${GOPATH}/bin/misspell -error `find pkg/`
@${GOPATH}/bin/misspell -error `find docs/`
# Builds minio, runs the verifiers then runs the tests.
# Builds MinIO, runs the verifiers then runs the tests.
check: test
test: verifiers build
@echo "Running unit tests"
@ -55,15 +55,15 @@ test: verifiers build
@(env bash $(PWD)/functional-tests.sh)
coverage: build
@echo "Running all coverage for minio"
@echo "Running all coverage for MinIO"
@(env bash $(PWD)/buildscripts/go-coverage.sh)
# Builds minio locally.
# Builds MinIO locally.
build: checks
@echo "Building minio binary to './mc'"
@echo "Building MinIO binary to './mc'"
@GO111MODULE=on GO_FLAGS="" CGO_ENABLED=0 go build -tags kqueue --ldflags $(BUILD_LDFLAGS) -o $(PWD)/mc
# Builds minio and installs it to $GOPATH/bin.
# Builds MinIO and installs it to $GOPATH/bin.
install: build
@echo "Installing mc binary to '$(GOPATH)/bin/mc'"
@mkdir -p $(GOPATH)/bin && cp -uf $(PWD)/mc $(GOPATH)/bin/mc

8
NOTICE
View File

@ -1,9 +1,9 @@
Minio Client (C) 2014, 2015 Minio, Inc.
MinIO Client (C) 2014, 2015 MinIO, Inc.
This product includes software developed at Minio, Inc.
(https://minio.io/).
This product includes software developed at MinIO, Inc.
(https://min.io/).
The Minio project contains unmodified/modified subcomponents too with
The MinIO project contains unmodified/modified subcomponents too with
separate copyright notices and license terms. Your use of the source
code for the these subcomponents is subject to the terms and conditions
of the following licenses.

View File

@ -21,7 +21,7 @@ rm remove objects
event manage object notifications
watch watch for object events
policy manage anonymous access to objects
admin manage minio servers
admin manage MinIO servers
session manage saved sessions for cp command
config manage mc configuration file
update check for a new software update
@ -62,11 +62,11 @@ mc --help
### Binary Download
| Platform | Architecture | URL |
| ---------- | -------- |------|
|GNU/Linux|64-bit Intel|https://dl.minio.io/client/mc/release/linux-amd64/mc |
||64-bit PPC|https://dl.minio.io/client/mc/release/linux-ppc64le/mc |
|GNU/Linux|64-bit Intel|https://dl.min.io/client/mc/release/linux-amd64/mc |
||64-bit PPC|https://dl.min.io/client/mc/release/linux-ppc64le/mc |
```sh
wget https://dl.minio.io/client/mc/release/linux-amd64/mc
wget https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x mc
./mc --help
```
@ -75,7 +75,7 @@ chmod +x mc
### Binary Download
| Platform | Architecture | URL |
| ---------- | -------- |------|
|Microsoft Windows|64-bit Intel|https://dl.minio.io/client/mc/release/windows-amd64/mc.exe |
|Microsoft Windows|64-bit Intel|https://dl.min.io/client/mc/release/windows-amd64/mc.exe |
```sh
mc.exe --help
@ -156,11 +156,11 @@ mc config host add gcs https://storage.googleapis.com BKIKJAA5BMMU2RHO6IBB V8f1
NOTE: Google Cloud Storage only supports Legacy Signature Version 2, so you have to pick - S3v2
## Test Your Setup
`mc` is pre-configured with https://play.minio.io:9000, aliased as "play". It is a hosted MinIO server for testing and development purpose. To test Amazon S3, simply replace "play" with "s3" or the alias you used at the time of setup.
`mc` is pre-configured with https://play.min.io:9000, aliased as "play". It is a hosted MinIO server for testing and development purpose. To test Amazon S3, simply replace "play" with "s3" or the alias you used at the time of setup.
*Example:*
List all buckets from https://play.minio.io:9000
List all buckets from https://play.min.io:9000
```sh
mc ls play

View File

@ -58,7 +58,7 @@ mc --help
### 下载二进制文件
| 平台 | CPU架构 | URL |
| ---------- | -------- |------|
|GNU/Linux|64-bit Intel|https://dl.minio.io/client/mc/release/linux-amd64/mc |
|GNU/Linux|64-bit Intel|https://dl.min.io/client/mc/release/linux-amd64/mc |
```sh
chmod +x mc
@ -69,7 +69,7 @@ chmod +x mc
### 下载二进制文件
| 平台 | CPU架构 | URL |
| ---------- | -------- |------|
|Microsoft Windows|64-bit Intel|https://dl.minio.io/client/mc/release/windows-amd64/mc.exe |
|Microsoft Windows|64-bit Intel|https://dl.min.io/client/mc/release/windows-amd64/mc.exe |
```sh
mc.exe --help
@ -121,11 +121,11 @@ mc config host add gcs https://storage.googleapis.com BKIKJAA5BMMU2RHO6IBB V8f1
注意Google云存储只支持旧版签名版本V2所以你需要选择S3v2。
## 验证
`mc`预先配置了云存储服务URLhttps://play.minio.io:9000别名“play”。它是一个用于研发和测试的MinIO服务。如果想测试Amazon S3,你可以将“play”替换为“s3”。
`mc`预先配置了云存储服务URLhttps://play.min.io:9000别名“play”。它是一个用于研发和测试的MinIO服务。如果想测试Amazon S3,你可以将“play”替换为“s3”。
*示例:*
列出https://play.minio.io:9000上的所有存储桶。
列出https://play.min.io:9000上的所有存储桶。
```sh
mc ls play

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
# Minio Client, (C) 2015, 2016, 2017, 2018, 2019 Minio, Inc.
# MinIO Client, (C) 2015, 2016, 2017, 2018, 2019 MinIO, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@ -97,7 +97,7 @@ assert_is_supported_os() {
assert_check_golang_env() {
if ! which go >/dev/null 2>&1; then
echo "Cannot find go binary in your PATH configuration, please refer to Go installation document at https://docs.minio.io/docs/how-to-install-golang"
echo "Cannot find go binary in your PATH configuration, please refer to Go installation document at https://docs.min.io/docs/how-to-install-golang"
exit 1
fi

View File

@ -1,7 +1,7 @@
// +build ignore
/*
* Minio Client (C) 2014, 2015, 2016, 2017, 2018 Minio, Inc.
* MinIO Client (C) 2014, 2015, 2016, 2017, 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

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

View File

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

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2017 Minio, Inc.
* MinIO Client (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -24,7 +24,7 @@ import (
var adminConfigGetCmd = cli.Command{
Name: "get",
Usage: "get config of a minio server/cluster",
Usage: "get config of a MinIO server/cluster",
Before: setGlobalsFromContext,
Action: mainAdminConfigGet,
Flags: globalFlags,
@ -38,7 +38,7 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Get server configuration of a Minio server/cluster.
1. Get server configuration of a MinIO server/cluster.
$ {{.HelpName}} play/
`,
@ -82,7 +82,7 @@ func mainAdminConfigGet(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new Minio Admin Client
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Cannot get a configured admin connection.")

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2017 Minio, Inc.
* MinIO Client (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -28,7 +28,7 @@ import (
var adminConfigSetCmd = cli.Command{
Name: "set",
Usage: "set new config file to a minio server/cluster.",
Usage: "set new config file to a MinIO server/cluster.",
Before: setGlobalsFromContext,
Action: mainAdminConfigSet,
Flags: globalFlags,
@ -42,7 +42,7 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Set server configuration of a Minio server/cluster.
1. Set server configuration of a MinIO server/cluster.
$ cat myconfig | {{.HelpName}} myminio/
`,
@ -59,12 +59,12 @@ func (u configSetMessage) String() (msg string) {
// Print the general set config status
if u.setConfigStatus {
msg += console.Colorize("SetConfigSuccess",
"Setting new Minio configuration file has been successful.\n")
"Setting new MinIO configuration file has been successful.\n")
msg += console.Colorize("SetConfigSuccess",
"Please restart your server with `mc admin service restart`.\n")
} else {
msg += console.Colorize("SetConfigFailure",
"Setting new Minio configuration file has failed.\n")
"Setting new MinIO configuration file has failed.\n")
}
return
}
@ -103,7 +103,7 @@ func mainAdminConfigSet(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new Minio Admin Client
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Cannot get a configured admin connection.")

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2017, 2018 Minio, Inc.
* MinIO Client (C) 2017, 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2016, 2017, 2018 Minio, Inc.
* MinIO Client (C) 2016, 2017, 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -42,8 +42,8 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Set new **admin** credential of a Minio server represented by its alias 'alias'.
$ {{.HelpName}} alias/ minio minio123
1. Set new **admin** credential of a MinIO server represented by its alias 'alias'.
$ {{.HelpName}} alias minio minio123
`,
}
@ -65,15 +65,15 @@ func mainAdminCreds(ctx *cli.Context) error {
args := ctx.Args()
// TODO: if accessKey and secretKey are not supplied we should
// display the existing credential. This needs GetCredential
// support from Minio server.
// support from MinIO server.
aliasedURL := args.First()
accessKey, secretKey := args.Get(1), args.Get(2)
// Create a new Minio Admin Client
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Cannot get a configured admin connection.")
// Change the credential of the specified Minio server
// Change the credential of the specified MinIO server
e := client.SetAdminCredentials(accessKey, secretKey)
fatalIf(probe.NewError(e), "Unable to set new credential to '"+aliasedURL+"'.")

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2018 Minio, Inc.
* MinIO Client (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2018 Minio, Inc.
* MinIO Client (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2017, 2018 Minio, Inc.
* MinIO Client (C) 2017, 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -63,7 +63,7 @@ var adminHealFlags = []cli.Flag{
var adminHealCmd = cli.Command{
Name: "heal",
Usage: "heal disks, buckets and objects on minio server",
Usage: "heal disks, buckets and objects on MinIO server",
Action: mainAdminHeal,
Before: setGlobalsFromContext,
Flags: append(adminHealFlags, globalFlags...),
@ -83,10 +83,10 @@ SCAN MODES:
deep : Heal objects which are missing on one or more disks. Also heal objects with silent data corruption.
EXAMPLES:
1. To format newly replaced disks in a Minio server with alias 'play'
1. To format newly replaced disks in a MinIO server with alias 'play'
$ {{.HelpName}} play
2. Heal 'testbucket' in a Minio server with alias 'play'
2. Heal 'testbucket' in a MinIO server with alias 'play'
$ {{.HelpName}} play/testbucket/
3. Heal all objects under 'dir' prefix
@ -155,7 +155,7 @@ func mainAdminHeal(ctx *cli.Context) error {
console.SetColor("HealUpdateUI", color.New(color.FgYellow, color.Bold))
console.SetColor("HealStopped", color.New(color.FgGreen, color.Bold))
// Create a new Minio Admin Client
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
if err != nil {
fatalIf(err.Trace(aliasedURL), "Cannot initialize admin client.")

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2016, 2017, 2018 Minio, Inc.
* MinIO Client (C) 2016, 2017, 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -38,7 +38,7 @@ var (
var adminInfoCmd = cli.Command{
Name: "info",
Usage: "display minio server information",
Usage: "display MinIO server information",
Action: mainAdminInfo,
Before: setGlobalsFromContext,
Flags: append(adminInfoFlags, globalFlags...),
@ -52,7 +52,7 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Get server information of the 'play' Minio server.
1. Get server information of the 'play' MinIO server.
$ {{.HelpName}} play/
`,
@ -219,7 +219,7 @@ func mainAdminInfo(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new Minio Admin Client
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Cannot get a configured admin connection.")

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2016, 2017 Minio, Inc.
* MinIO Client (C) 2016, 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -24,7 +24,7 @@ var (
var adminCmd = cli.Command{
Name: "admin",
Usage: "manage minio servers",
Usage: "manage MinIO servers",
Action: mainAdmin,
HideHelpCommand: true,
Before: setGlobalsFromContext,

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2019 Minio, Inc.
* MinIO Client (C) 2019 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -134,7 +134,7 @@ func mainAdminMonitor(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new minio admin client
// Create a new MinIO admin client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Cannot get a configured admin connection.")
@ -164,7 +164,7 @@ func mainAdminMonitor(ctx *cli.Context) error {
}
return nil
}
// Fetch info of all CPU loads (all minio server instances)
// Fetch info of all CPU loads (all MinIO server instances)
cpuLoads, e := client.ServerCPULoadInfo()
if err := processErr(e); err != nil {
// exit immediately if error encountered

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2018 Minio, Inc.
* MinIO Client (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -39,7 +39,7 @@ USAGE:
{{.HelpName}} TARGET POLICYNAME POLICYFILE
POLICYNAME:
Name of the canned policy on Minio server.
Name of the canned policy on MinIO server.
POLICYFILE:
Name of the policy file associated with the policy name.
@ -108,7 +108,7 @@ func mainAdminPolicyAdd(ctx *cli.Context) error {
policy, e := ioutil.ReadFile(args.Get(2))
fatalIf(probe.NewError(e).Trace(args...), "Unable to get policy")
// Create a new Minio Admin Client
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Cannot get a configured admin connection.")

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2018 Minio, Inc.
* MinIO Client (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -36,16 +36,16 @@ USAGE:
{{.HelpName}} TARGET POLICYNAME
POLICYNAME:
Name of the canned policy on Minio server.
Name of the canned policy on MinIO server.
FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. List all policies on Minio server.
1. List all policies on MinIO server.
$ {{.HelpName}} myminio
2. List only one policy on Minio server.
2. List only one policy on MinIO server.
$ {{.HelpName}} myminio writeonly
`,
}
@ -68,7 +68,7 @@ func mainAdminPolicyList(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new Minio Admin Client
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Cannot get a configured admin connection.")

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2018 Minio, Inc.
* MinIO Client (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -36,13 +36,13 @@ USAGE:
{{.HelpName}} TARGET POLICYNAME
POLICYNAME:
Name of the canned policy on Minio server.
Name of the canned policy on MinIO server.
FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Remove 'writeonly' policy on Minio server.
1. Remove 'writeonly' policy on MinIO server.
$ {{.HelpName}} myminio writeonly
`,
}
@ -64,7 +64,7 @@ func mainAdminPolicyRemove(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new Minio Admin Client
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Cannot get a configured admin connection.")

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2018 Minio, Inc.
* MinIO Client (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2018 Minio, Inc.
* MinIO Client (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -95,7 +95,7 @@ func mainAdminProfileStart(ctx *cli.Context) error {
profilerType := ctx.String("type")
// Create a new Minio Admin Client
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
if err != nil {
fatalIf(err.Trace(aliasedURL), "Cannot initialize admin client.")

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2018 Minio, Inc.
* MinIO Client (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -91,7 +91,7 @@ func mainAdminProfileStop(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new Minio Admin Client
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
if err != nil {
fatalIf(err.Trace(aliasedURL), "Cannot initialize admin client.")

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2018 Minio, Inc.
* MinIO Client (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2016 Minio, Inc.
* MinIO Client (C) 2016 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -29,7 +29,7 @@ import (
var adminServiceRestartCmd = cli.Command{
Name: "restart",
Usage: "restart minio server",
Usage: "restart MinIO server",
Action: mainAdminServiceRestart,
Before: setGlobalsFromContext,
Flags: globalFlags,
@ -43,7 +43,7 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Restart Minio server represented by its alias 'play'.
1. Restart MinIO server represented by its alias 'play'.
$ {{.HelpName}} play/
`,
@ -114,7 +114,7 @@ func mainAdminServiceRestart(ctx *cli.Context) error {
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Cannot get a configured admin connection.")
// Restart the specified Minio server
// Restart the specified MinIO server
fatalIf(probe.NewError(client.ServiceSendAction(
madmin.ServiceActionValueRestart)), "Cannot restart server.")
@ -127,7 +127,7 @@ func mainAdminServiceRestart(ctx *cli.Context) error {
// Sleep for 6 seconds and then check if the server is online.
time.Sleep(6 * time.Second)
// Fetch the service status of the specified Minio server
// Fetch the service status of the specified MinIO server
_, e := client.ServiceStatus()
if e != nil {

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2016, 2017 Minio, Inc.
* MinIO Client (C) 2016, 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -34,7 +34,7 @@ var (
var adminServiceStatusCmd = cli.Command{
Name: "status",
Usage: "get the status of minio server",
Usage: "get the status of MinIO server",
Action: mainAdminServiceStatus,
Before: setGlobalsFromContext,
Flags: append(adminServiceStatusFlags, globalFlags...),
@ -48,7 +48,7 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Check if the 'play' Minio server is online and show its uptime.
1. Check if the 'play' MinIO server is online and show its uptime.
$ {{.HelpName}} play/
`,
}
@ -107,11 +107,11 @@ func mainAdminServiceStatus(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new Minio Admin Client
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Cannot get a configured admin connection.")
// Fetch the service status of the specified Minio server
// Fetch the service status of the specified MinIO server
st, e := client.ServiceStatus()
// Check the availability of the server: online or offline. A server is considered

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2018 Minio, Inc.
* MinIO Client (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -27,7 +27,7 @@ import (
var adminServiceStopCmd = cli.Command{
Name: "stop",
Usage: "stop minio server",
Usage: "stop MinIO server",
Action: mainAdminServiceStop,
Before: setGlobalsFromContext,
Flags: globalFlags,
@ -41,7 +41,7 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Stop Minio server represented by its alias 'play'.
1. Stop MinIO server represented by its alias 'play'.
$ {{.HelpName}} play/
`,
@ -88,7 +88,7 @@ func mainAdminServiceStop(ctx *cli.Context) error {
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Cannot get a configured admin connection.")
// Stop the specified Minio server
// Stop the specified MinIO server
pErr := client.ServiceSendAction(madmin.ServiceActionValueStop)
fatalIf(probe.NewError(pErr), "Cannot stop server.")

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2016, 2017, 2018 Minio, Inc.
* MinIO Client (C) 2016, 2017, 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -20,7 +20,7 @@ import "github.com/minio/cli"
var adminServiceCmd = cli.Command{
Name: "service",
Usage: "stop, restart or get status of minio server",
Usage: "stop, restart or get status of MinIO server",
Action: mainAdminService,
Before: setGlobalsFromContext,
Flags: globalFlags,

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2019 Minio, Inc.
* MinIO Client (C) 2019 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -110,7 +110,7 @@ func mainAdminTopLocks(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new Minio Admin Client
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Cannot get a configured admin connection.")

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2019 Minio, Inc.
* MinIO Client (C) 2019 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2018 Minio, Inc.
* MinIO Client (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -36,13 +36,13 @@ USAGE:
{{.HelpName}} TARGET USERNAME POLICYNAME
POLICYNAME:
Name of the canned policy created on Minio server.
Name of the canned policy created on MinIO server.
FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Set a policy 'writeonly' to 'foobar' on Minio server.
1. Set a policy 'writeonly' to 'foobar' on MinIO server.
$ {{.HelpName}} myminio foobar writeonly
`,
}
@ -64,7 +64,7 @@ func mainAdminUserPolicy(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new Minio Admin Client
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Cannot get a configured admin connection.")

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2018 Minio, Inc.
* MinIO Client (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -37,13 +37,13 @@ USAGE:
{{.HelpName}} TARGET ACCESSKEY SECRETKEY POLICYNAME
POLICYNAME:
Name of the policy available on Minio server.
Name of the policy available on MinIO server.
FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Add a new user 'foobar' to Minio server with policy 'writeonly'.
1. Add a new user 'foobar' to MinIO server with policy 'writeonly'.
$ set -o history
$ {{.HelpName}} myminio foobar foo12345 writeonly
$ set +o history
@ -112,7 +112,7 @@ func mainAdminUserAdd(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new Minio Admin Client
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Cannot get a configured admin connection.")

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2018 Minio, Inc.
* MinIO Client (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -40,7 +40,7 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Disable a user 'foobar' on Minio server.
1. Disable a user 'foobar' on MinIO server.
$ {{.HelpName}} myminio foobar
`,
}
@ -62,7 +62,7 @@ func mainAdminUserDisable(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new Minio Admin Client
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Cannot get a configured admin connection.")

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2018 Minio, Inc.
* MinIO Client (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -40,7 +40,7 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Enable a disabled user 'foobar' on Minio server.
1. Enable a disabled user 'foobar' on MinIO server.
$ {{.HelpName}} myminio foobar
`,
}
@ -62,7 +62,7 @@ func mainAdminUserEnable(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new Minio Admin Client
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Cannot get a configured admin connection.")

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2018 Minio, Inc.
* MinIO Client (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -39,7 +39,7 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. List all users on Minio server.
1. List all users on MinIO server.
$ {{.HelpName}} myminio
`,
}
@ -65,7 +65,7 @@ func mainAdminUserList(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new Minio Admin Client
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Cannot get a configured admin connection.")

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2018 Minio, Inc.
* MinIO Client (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -39,7 +39,7 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Remove a user 'foobar' on Minio server.
1. Remove a user 'foobar' on MinIO server.
$ {{.HelpName}} myminio foobar
`,
}
@ -61,7 +61,7 @@ func mainAdminUserRemove(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new Minio Admin Client
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Cannot get a configured admin connection.")

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2018 Minio, Inc.
* MinIO Client (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

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

View File

@ -1,5 +1,5 @@
/*
* Minio Client, (C) 2015, 2016, 2017 Minio, Inc.
* MinIO Client, (C) 2015, 2016, 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2017 Minio, Inc.
* MinIO Client (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2016 Minio, Inc.
* MinIO Client (C) 2016 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -44,7 +44,7 @@ func isCertsDirExists() bool {
return true
}
// createCertsDir - create minio client certs folder
// createCertsDir - create MinIO Client certs folder
func createCertsDir() *probe.Error {
p, err := getCertsDir()
if err != nil {
@ -84,7 +84,7 @@ func isCAsDirExists() bool {
return true
}
// createCAsDir - create minio client CAs folder
// createCAsDir - create MinIO Client CAs folder
func createCAsDir() *probe.Error {
p, err := getCAsDir()
if err != nil {
@ -96,7 +96,7 @@ func createCAsDir() *probe.Error {
return nil
}
// mustGetCAFiles - get the list of the CA certificates stored in minio config dir
// mustGetCAFiles - get the list of the CA certificates stored in MinIO config dir
func mustGetCAFiles() (caCerts []string) {
CAsDir := mustGetCAsDir()
caFiles, _ := ioutil.ReadDir(CAsDir)
@ -115,7 +115,7 @@ func mustGetSystemCertPool() *x509.CertPool {
return pool
}
// loadRootCAs fetches CA files provided in minio config and adds them to globalRootCAs
// loadRootCAs fetches CA files provided in MinIO config and adds them to globalRootCAs
// Currently under Windows, there is no way to load system + user CAs at the same time
func loadRootCAs() {
caFiles := mustGetCAFiles()

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2017 Minio, Inc.
* MinIO Client (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -63,7 +63,7 @@ func newAdminFactory() func(config *Config) (*madmin.AdminClient, *probe.Error)
var api *madmin.AdminClient
var found bool
if api, found = clientCache[confSum]; !found {
// Not found. Instantiate a new minio
// Not found. Instantiate a new MinIO
var e error
api, e = madmin.New(hostName, config.AccessKey, config.SecretKey, useTLS)
if e != nil {
@ -99,7 +99,7 @@ func newAdminFactory() func(config *Config) (*madmin.AdminClient, *probe.Error)
// Set app info.
api.SetAppInfo(config.AppName, config.AppVersion)
// Cache the new minio client with hash of config as key.
// Cache the new MinIO Client with hash of config as key.
clientCache[confSum] = api
}

View File

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

View File

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

View File

@ -1,7 +1,7 @@
// +build darwin
/*
* Minio Client (C) 2017 Minio, Inc.
* MinIO Client (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fs except in compliance with the License.

View File

@ -1,7 +1,7 @@
// +build freebsd
/*
* Minio Client (C) 2017 Minio, Inc.
* MinIO Client (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fs except in compliance with the License.

View File

@ -1,7 +1,7 @@
// +build linux
/*
* Minio Client (C) 2015, 2016, 2017 Minio, Inc.
* MinIO Client (C) 2015, 2016, 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fs except in compliance with the License.

View File

@ -1,7 +1,7 @@
// +build solaris openbsd
/*
* Minio Client (C) 2015, 2016, 2017 Minio, Inc.
* MinIO Client (C) 2015, 2016, 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fs except in compliance with the License.

View File

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

View File

@ -1,7 +1,7 @@
// +build windows
/*
* Minio Client (C) 2017 Minio, Inc.
* MinIO Client (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fs except in compliance with the License.

View File

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

View File

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

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2015, 2016, 2017, 2018 Minio, Inc.
* MinIO Client (C) 2015, 2016, 2017, 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -141,7 +141,7 @@ func newFactory() func(config *Config) (Client, *probe.Error) {
if strings.ToUpper(config.Signature) == "S3V2" {
creds = credentials.NewStaticV2(config.AccessKey, config.SecretKey, "")
}
// Not found. Instantiate a new minio
// Not found. Instantiate a new MinIO
var e error
options := minio.Options{
@ -217,7 +217,7 @@ func newFactory() func(config *Config) (Client, *probe.Error) {
// Set app info.
api.SetAppInfo(config.AppName, config.AppVersion)
// Cache the new minio client with hash of config as key.
// Cache the new MinIO Client with hash of config as key.
clientCache[confSum] = api
}

View File

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

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2015 Minio, Inc.
* MinIO Client (C) 2015 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -42,7 +42,7 @@ type clientURLType int
// enum types
const (
objectStorage = iota // Minio and S3 compatible cloud storage
objectStorage = iota // MinIO and S3 compatible cloud storage
fileSystem // POSIX compatible file systems
)

View File

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

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2015 Minio, Inc.
* MinIO Client (C) 2015 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -23,7 +23,7 @@ import (
"time"
"github.com/minio/mc/pkg/probe"
minio "github.com/minio/minio-go"
"github.com/minio/minio-go"
"github.com/minio/minio-go/pkg/encrypt"
)

View File

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

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2019 Minio, Inc.
* MinIO Client (C) 2019 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2015 Minio, Inc.
* MinIO Client (C) 2015 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -144,7 +144,7 @@ func fixConfigV6ForHosts() {
// If host entry does not contain "http(s)", introduce a new entry and delete the old one.
if host == "s3.amazonaws.com" || host == "storage.googleapis.com" ||
host == "localhost:9000" || host == "127.0.0.1:9000" ||
host == "play.minio.io:9000" || host == "dl.minio.io:9000" {
host == "play.min.io:9000" || host == "dl.min.io:9000" {
console.Infoln("Found broken host entries, replacing " + host + " with https://" + host + ".")
url.Host = host
url.Scheme = "https"

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2017 Minio, Inc.
* MinIO Client (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2017 Minio, Inc.
* MinIO Client (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2017 Minio, Inc.
* MinIO Client (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2017 Minio, Inc.
* MinIO Client (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2014, 2015 Minio, Inc.
* MinIO Client (C) 2014, 2015 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -18,7 +18,7 @@ package cmd
import "github.com/minio/cli"
// Configure minio client
// Configure MinIO Client
//
// ----
// NOTE: that the configure command only writes values to the config file.
@ -35,7 +35,7 @@ var (
var configCmd = cli.Command{
Name: "config",
Usage: "configure minio client",
Usage: "configure MinIO client",
Action: mainConfig,
Before: setGlobalsFromContext,
HideHelpCommand: true,

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2015 Minio, Inc.
* MinIO Client (C) 2015 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -401,7 +401,7 @@ func migrateConfigV6ToV7() {
}
// Migrate config version `7` to `8'. Remove hosts
// 'play.minio.io:9002' and 'dl.minio.io:9000'.
// 'play.min.io:9002' and 'dl.min.io:9000'.
func migrateConfigV7ToV8() {
if !isMcConfigExists() {
return

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2015 Minio, Inc.
* MinIO Client (C) 2015 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -184,7 +184,7 @@ func newConfigV7() *configV7 {
}
func (c *configV7) loadDefaults() {
// Minio server running locally.
// MinIO server running locally.
c.setHost("local", hostConfigV7{
URL: "http://localhost:9000",
AccessKey: "",
@ -208,25 +208,25 @@ func (c *configV7) loadDefaults() {
API: "S3v2",
})
// Minio anonymous server for demo.
// MinIO anonymous server for demo.
c.setHost("play", hostConfigV7{
URL: "https://play.minio.io:9000",
URL: "https://play.min.io:9000",
AccessKey: "",
SecretKey: "",
API: "S3v4",
})
// Minio demo server with public secret and access keys.
// MinIO demo server with public secret and access keys.
c.setHost("player", hostConfigV7{
URL: "https://play.minio.io:9002",
URL: "https://play.min.io:9002",
AccessKey: "Q3AM3UQ867SPQQA43P2F",
SecretKey: "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG",
API: "S3v4",
})
// Minio public download service.
// MinIO public download service.
c.setHost("dl", hostConfigV7{
URL: "https://dl.minio.io:9000",
URL: "https://dl.min.io:9000",
AccessKey: "",
SecretKey: "",
API: "S3v4",
@ -271,7 +271,7 @@ func (c *configV8) setHost(alias string, cfg hostConfigV8) {
// load default values for missing entries.
func (c *configV8) loadDefaults() {
// Minio server running locally.
// MinIO server running locally.
c.setHost("local", hostConfigV8{
URL: "http://localhost:9000",
AccessKey: "",
@ -295,9 +295,9 @@ func (c *configV8) loadDefaults() {
API: "S3v2",
})
// Minio anonymous server for demo.
// MinIO anonymous server for demo.
c.setHost("play", hostConfigV8{
URL: "https://play.minio.io:9000",
URL: "https://play.min.io:9000",
AccessKey: "Q3AM3UQ867SPQQA43P2F",
SecretKey: "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG",
API: "S3v4",

View File

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

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2016 Minio, Inc.
* MinIO Client (C) 2016 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2015 Minio, Inc.
* MinIO Client (C) 2015 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -67,7 +67,7 @@ func (c *configV9) setHost(alias string, cfg hostConfigV9) {
// load default values for missing entries.
func (c *configV9) loadDefaults() {
// Minio server running locally.
// MinIO server running locally.
c.setHost("local", hostConfigV9{
URL: "http://localhost:9000",
AccessKey: "",
@ -94,9 +94,9 @@ func (c *configV9) loadDefaults() {
Lookup: "dns",
})
// Minio anonymous server for demo.
// MinIO anonymous server for demo.
c.setHost("play", hostConfigV9{
URL: "https://play.minio.io:9000",
URL: "https://play.min.io:9000",
AccessKey: "Q3AM3UQ867SPQQA43P2F",
SecretKey: "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG",
API: "S3v4",

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2015 Minio, Inc.
* MinIO Client (C) 2015 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -30,7 +30,7 @@ func validateConfigVersion(config *configV9) (bool, string) {
return true, ""
}
// Verifies the config file of the Minio Client
// Verifies the config file of the MinIO Client
func validateConfigFile(config *configV9) (bool, []string) {
ok, err := validateConfigVersion(config)
var validationSuccessful = true

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2015 Minio, Inc.
* MinIO Client (C) 2015 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -32,12 +32,12 @@ import (
// mcCustomConfigDir contains the whole path to config dir. Only access via get/set functions.
var mcCustomConfigDir string
// setMcConfigDir - set a custom minio client config folder.
// setMcConfigDir - set a custom MinIO Client config folder.
func setMcConfigDir(configDir string) {
mcCustomConfigDir = configDir
}
// getMcConfigDir - construct minio client config folder.
// getMcConfigDir - construct MinIO Client config folder.
func getMcConfigDir() (string, *probe.Error) {
if mcCustomConfigDir != "" {
return mcCustomConfigDir, nil
@ -56,7 +56,7 @@ func getMcConfigDir() (string, *probe.Error) {
return configDir, nil
}
// mustGetMcConfigDir - construct minio client config folder or fail
// mustGetMcConfigDir - construct MinIO Client config folder or fail
func mustGetMcConfigDir() (configDir string) {
configDir, err := getMcConfigDir()
fatalIf(err.Trace(), "Unable to get mcConfigDir.")
@ -64,7 +64,7 @@ func mustGetMcConfigDir() (configDir string) {
return configDir
}
// createMcConfigDir - create minio client config folder
// createMcConfigDir - create MinIO Client config folder
func createMcConfigDir() *probe.Error {
p, err := getMcConfigDir()
if err != nil {
@ -76,7 +76,7 @@ func createMcConfigDir() *probe.Error {
return nil
}
// getMcConfigPath - construct minio client configuration path
// getMcConfigPath - construct MinIO Client configuration path
func getMcConfigPath() (string, *probe.Error) {
if mcCustomConfigDir != "" {
return filepath.Join(mcCustomConfigDir, globalMCConfigFile), nil

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2018 Minio, Inc.
* MinIO Client (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2014, 2015 Minio, Inc.
* MinIO Client (C) 2014, 2015 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -92,19 +92,19 @@ EXAMPLES:
1. Copy a list of objects from local file system to Amazon S3 cloud storage.
$ {{.HelpName}} Music/*.ogg s3/jukebox/
2. Copy a folder recursively from Minio cloud storage to Amazon S3 cloud storage.
2. Copy a folder recursively from MinIO cloud storage to Amazon S3 cloud storage.
$ {{.HelpName}} --recursive play/mybucket/burningman2011/ s3/mybucket/
3. Copy multiple local folders recursively to Minio cloud storage.
3. Copy multiple local folders recursively to MinIO cloud storage.
$ {{.HelpName}} --recursive backup/2014/ backup/2015/ play/archive/
4. Copy a bucket recursively from aliased Amazon S3 cloud storage to local filesystem on Windows.
$ {{.HelpName}} --recursive s3\documents\2014\ C:\Backups\2014
5. Copy files older than 7 days and 10 hours from Minio cloud storage to Amazon S3 cloud storage.
5. Copy files older than 7 days and 10 hours from MinIO cloud storage to Amazon S3 cloud storage.
$ {{.HelpName}} --older-than 7d10h play/mybucket/burningman2011/ s3/mybucket/
6. Copy files newer than 7 days and 10 hours from Minio cloud storage to a local path.
6. Copy files newer than 7 days and 10 hours from MinIO cloud storage to a local path.
$ {{.HelpName}} --newer-than 7d10h play/mybucket/burningman2011/ ~/latest/
7. Copy an object with name containing unicode characters to Amazon S3 cloud storage.
@ -113,13 +113,13 @@ EXAMPLES:
8. Copy a local folder with space separated characters to Amazon S3 cloud storage.
$ {{.HelpName}} --recursive 'workdir/documents/May 2014/' s3/miniocloud
9. Copy a folder with encrypted objects recursively from Amazon S3 to Minio cloud storage.
9. Copy a folder with encrypted objects recursively from Amazon S3 to MinIO cloud storage.
$ {{.HelpName}} --recursive --encrypt-key "s3/documents/=32byteslongsecretkeymustbegiven1,myminio/documents/=32byteslongsecretkeymustbegiven2" s3/documents/ myminio/documents/
10. Copy a list of objects from local file system to Minio cloud storage with specified metadata.
10. Copy a list of objects from local file system to MinIO cloud storage with specified metadata.
$ {{.HelpName}} --attr key1=value1,key2=value2 Music/*.mp4 play/mybucket/
11. Copy a folder recursively from Minio cloud storage to Amazon S3 cloud storage with specified metadata.
11. Copy a folder recursively from MinIO cloud storage to Amazon S3 cloud storage with specified metadata.
$ {{.HelpName}} --attr key1=value1,key2=value2 --recursive play/mybucket/burningman2011/ s3/mybucket/
`,

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2019 Minio, Inc.
* MinIO Client (C) 2019 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2017 Minio, Inc.
* MinIO Client (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

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

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2016 Minio, Inc.
* MinIO Client (C) 2016 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2016 Minio, Inc.
* MinIO Client (C) 2016 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2016 Minio, Inc.
* MinIO Client (C) 2016 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2016 Minio, Inc.
* MinIO Client (C) 2016 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2017 Minio, Inc.
* MinIO Client (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2017 Minio, Inc.
* MinIO Client (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2017 Minio, Inc.
* MinIO Client (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

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

View File

@ -1,7 +1,7 @@
// +build !windows
/*
* Minio Client (C) 2015 Minio, Inc.
* MinIO Client (C) 2015 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fs except in compliance with the License.

View File

@ -1,7 +1,7 @@
// +build windows
/*
* Minio Client (C) 2015 Minio, Inc.
* MinIO Client (C) 2015 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fs except in compliance with the License.

View File

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

View File

@ -1,5 +1,5 @@
/*
* Minio Client, (C) 2018 Minio, Inc.
* MinIO Client, (C) 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2017 Minio, Inc.
* MinIO Client (C) 2017 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Minio Client (C) 2014-2019 Minio, Inc.
* MinIO Client (C) 2014-2019 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

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

Some files were not shown because too many files have changed in this diff Show More