Rebrand: Hanzo S3 CLI -- remove all MinIO branding

- Replace copyright headers: "MinIO, Inc." -> "Hanzo AI, Inc." across 411+ Go files
- Replace "MinIO Object Storage stack" -> "Hanzo S3 stack" in all file headers
- Replace all user-facing "MinIO" references -> "Hanzo S3" in Usage, help text, examples
- Replace example alias "myminio" -> "mys3" throughout
- Replace example endpoints play.min.io -> s3.hanzo.ai, dl.min.io -> s3.hanzo.ai
- Replace doc URLs min.io -> hanzo.space
- Rewrite README.md/README_zh_CN.md: product is "Hanzo S3 CLI" (the s3 command)
- Update CONTRIBUTING.md, CONFLICT.md, NOTICE, code_of_conduct.md
- Update all Dockerfiles: labels, entrypoints, image refs -> ghcr.io/hanzos3/cli
- Update Makefile: build output, docker tags, install paths -> s3
- Update docker-buildx.sh: image tags -> ghcr.io/hanzos3/cli
- DO NOT change go.mod module path or import paths (github.com/minio/mc preserved)
- DO NOT change Go identifiers, SDK types, or wire protocol constants
- All unit tests pass
This commit is contained in:
Zach Kelling
2026-02-21 14:19:07 -08:00
parent 77f82e18b5
commit 0ba7019bf7
431 changed files with 1842 additions and 1813 deletions
+6 -8
View File
@@ -1,11 +1,9 @@
## mc (MinIO Client) v/s Midnight Commander (mc)
## s3 (Hanzo S3 CLI) name conflicts
There has been some amount of [requests](https://github.com/minio/mc/issues?q=is%3Aissue+midnight+commander+is%3Aclosed) on renaming this project to avoid the conflict with Midnight Commander for Unix distributions. We struggled with this, it is harder to find a name sweeter and shorter than `mc` for MinIO Client.
Besides `mc` is a single static binary and can reside inside your application and is fully self contained. Midnight Commander (mc) is a free software clone of Norton Commander (nc). MinIO and Midnight shares no code or ideas. Only their abbreviation matches.
Package managers are free to choose a different name if they like. One such solution [pointed out](https://github.com/minio/mc/issues/873#issuecomment-267583013) by one of our community members.
The `s3` command name may conflict with other tools on your system. If you experience conflicts, you can rename the binary:
```
mv ./mc ./mcli
```
mv ./s3 ./hanzos3
```
The `s3` binary is a single static binary and can reside inside your application directory. It is fully self contained.
+8 -10
View File
@@ -1,17 +1,15 @@
### Setup your mc Github Repository
Fork [mc upstream](https://github.com/minio/mc/fork) source repository to your own personal repository.
### Setup your Hanzo S3 CLI Github Repository
Fork [cli upstream](https://github.com/hanzos3/cli/fork) source repository to your own personal repository.
```
$ mkdir -p $GOPATH/src/github.com/minio
$ cd $GOPATH/src/github.com/minio
$ git clone https://github.com/$USER_ID/mc
$ cd mc
$ git clone https://github.com/$USER_ID/cli
$ cd cli
$ make
$ ./mc --help
$ ./s3 --help
```
### Developer Guidelines
``mc`` welcomes your contribution. To make the process as seamless as possible, we ask for the following:
``s3`` welcomes your contribution. To make the process as seamless as possible, we ask for the following:
* Go ahead and fork the project and make your changes. We encourage pull requests to discuss code changes.
- Fork it
@@ -20,7 +18,7 @@ $ ./mc --help
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
* If you have additional dependencies for ``mc``, ``mc`` manages its dependencies using `go mod`
* If you have additional dependencies for ``s3``, ``s3`` manages its dependencies using `go mod`
- Run `go get foo/bar`
- Edit your code to import foo/bar
- Run `GO111MODULE=on go mod tidy` from top-level folder
@@ -32,5 +30,5 @@ $ ./mc --help
- Make sure `make install` completes.
* Read [Effective Go](https://github.com/golang/go/wiki/CodeReviewComments) article from Golang project
- `mc` project is conformant with Golang style
- `s3` project is conformant with Golang style
- if you happen to observe offending code, please feel free to send a pull request
+5 -5
View File
@@ -1,6 +1,6 @@
FROM golang:1.22-alpine as build
LABEL maintainer="MinIO Inc <dev@min.io>"
LABEL maintainer="Hanzo AI, Inc. <dev@hanzo.ai>"
ENV GOPATH /go
ENV CGO_ENABLED 0
@@ -8,15 +8,15 @@ ENV CGO_ENABLED 0
RUN apk add -U --no-cache ca-certificates
RUN apk add -U curl
RUN curl -s -q https://raw.githubusercontent.com/minio/mc/master/LICENSE -o /go/LICENSE
RUN curl -s -q https://raw.githubusercontent.com/minio/mc/master/CREDITS -o /go/CREDITS
RUN curl -s -q https://raw.githubusercontent.com/hanzos3/cli/main/LICENSE -o /go/LICENSE
RUN curl -s -q https://raw.githubusercontent.com/hanzos3/cli/main/CREDITS -o /go/CREDITS
RUN go install -v -ldflags "$(go run buildscripts/gen-ldflags.go)" "github.com/minio/mc@latest"
FROM scratch
COPY --from=build /go/bin/mc /usr/bin/mc
COPY --from=build /go/bin/mc /usr/bin/s3
COPY --from=build /go/CREDITS /licenses/CREDITS
COPY --from=build /go/LICENSE /licenses/LICENSE
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT ["mc"]
ENTRYPOINT ["s3"]
+3 -3
View File
@@ -1,8 +1,8 @@
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.8
LABEL maintainer="MinIO Inc <dev@min.io>"
LABEL maintainer="Hanzo AI, Inc. <dev@hanzo.ai>"
COPY mc /usr/bin/
COPY s3 /usr/bin/
COPY CREDITS /licenses/CREDITS
COPY LICENSE /licenses/LICENSE
@@ -11,4 +11,4 @@ RUN \
microdnf install ca-certificates --nodocs --assumeyes && \
microdnf clean all
ENTRYPOINT ["mc"]
ENTRYPOINT ["s3"]
+5 -5
View File
@@ -1,13 +1,13 @@
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest as build
RUN microdnf update --nodocs --assumeyes && microdnf install ca-certificates --nodocs --assumeyes
RUN microdnf update --nodocs --assumeyes && microdnf install ca-certificates --nodocs --assumeyes
FROM registry.access.redhat.com/ubi9/ubi-micro:latest
ARG TARGETARCH
ARG RELEASE
LABEL maintainer="MinIO Inc <dev@min.io>"
LABEL maintainer="Hanzo AI, Inc. <dev@hanzo.ai>"
# On RHEL the certificate bundle is located at:
# - /etc/pki/tls/certs/ca-bundle.crt (RHEL 6)
@@ -17,8 +17,8 @@ COPY --from=build /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/pki/ca-
COPY CREDITS /licenses/CREDITS
COPY LICENSE /licenses/LICENSE
ADD https://dl.min.io/client/mc/hotfixes/linux-${TARGETARCH}/archive/mc.${RELEASE} /usr/bin/mc
ADD https://s3.hanzo.ai/client/s3/hotfixes/linux-${TARGETARCH}/archive/s3.${RELEASE} /usr/bin/s3
RUN chmod +x /usr/bin/mc
RUN chmod +x /usr/bin/s3
ENTRYPOINT ["mc"]
ENTRYPOINT ["s3"]
+5 -5
View File
@@ -1,13 +1,13 @@
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest AS build
RUN microdnf update --nodocs --assumeyes && microdnf install ca-certificates --nodocs --assumeyes
RUN microdnf update --nodocs --assumeyes && microdnf install ca-certificates --nodocs --assumeyes
FROM registry.access.redhat.com/ubi9/ubi-micro:latest
ARG TARGETARCH
ARG RELEASE
LABEL maintainer="MinIO Inc <dev@min.io>"
LABEL maintainer="Hanzo AI, Inc. <dev@hanzo.ai>"
# On RHEL the certificate bundle is located at:
# - /etc/pki/tls/certs/ca-bundle.crt (RHEL 6)
@@ -17,8 +17,8 @@ COPY --from=build /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/pki/ca-
COPY CREDITS /licenses/CREDITS
COPY LICENSE /licenses/LICENSE
ADD https://dl.minio.io/client/mc/release/linux-${TARGETARCH}/archive/mc.${RELEASE} /usr/bin/mc
ADD https://s3.hanzo.ai/client/s3/release/linux-${TARGETARCH}/archive/s3.${RELEASE} /usr/bin/s3
RUN chmod +x /usr/bin/mc
RUN chmod +x /usr/bin/s3
ENTRYPOINT ["mc"]
ENTRYPOINT ["s3"]
+5 -5
View File
@@ -1,13 +1,13 @@
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest AS build
RUN microdnf update --nodocs --assumeyes && microdnf install ca-certificates --nodocs --assumeyes
RUN microdnf update --nodocs --assumeyes && microdnf install ca-certificates --nodocs --assumeyes
FROM registry.access.redhat.com/ubi8/ubi-micro:latest
ARG TARGETARCH
ARG RELEASE
LABEL maintainer="MinIO Inc <dev@min.io>"
LABEL maintainer="Hanzo AI, Inc. <dev@hanzo.ai>"
# On RHEL the certificate bundle is located at:
# - /etc/pki/tls/certs/ca-bundle.crt (RHEL 6)
@@ -17,8 +17,8 @@ COPY --from=build /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/pki/ca-
COPY CREDITS /licenses/CREDITS
COPY LICENSE /licenses/LICENSE
ADD https://dl.minio.io/client/mc/release/linux-${TARGETARCH}/archive/mc.${RELEASE} /usr/bin/mc
ADD https://s3.hanzo.ai/client/s3/release/linux-${TARGETARCH}/archive/s3.${RELEASE} /usr/bin/s3
RUN chmod +x /usr/bin/mc
RUN chmod +x /usr/bin/s3
ENTRYPOINT ["mc"]
ENTRYPOINT ["s3"]
+21 -22
View File
@@ -6,7 +6,7 @@ TARGET_GOARCH ?= $(shell go env GOARCH)
TARGET_GOOS ?= $(shell go env GOOS)
VERSION ?= $(shell git describe --tags)
TAG ?= "minio/mc:$(VERSION)"
TAG ?= "ghcr.io/hanzos3/cli:$(VERSION)"
GOLANGCI = $(GOPATH)/bin/golangci-lint
@@ -40,7 +40,7 @@ lint: getdeps
@echo "Running $@ check"
@$(GOLANGCI) run --build-tags kqueue --timeout=10m --config ./.golangci.yml
# Builds mc, runs the verifiers then runs the tests.
# Builds s3 CLI, runs the verifiers then runs the tests.
check: test
test: verifiers build
@echo "Running unit tests"
@@ -52,51 +52,50 @@ test-race: verifiers build
@echo "Running unit tests under -race"
@GO111MODULE=on go test -race -v --timeout 20m ./... 1>/dev/null
# Verify mc binary
# Verify s3 binary
verify:
@echo "Verifying build with race"
@GO111MODULE=on CGO_ENABLED=1 go build -race -tags kqueue -trimpath --ldflags "$(LDFLAGS)" -o $(PWD)/mc 1>/dev/null
@GO111MODULE=on CGO_ENABLED=1 go build -race -tags kqueue -trimpath --ldflags "$(LDFLAGS)" -o $(PWD)/s3 1>/dev/null
@echo "Running functional tests"
@GO111MODULE=on MC_TEST_RUN_FULL_SUITE=true go test -race -v --timeout 20m ./... -run Test_FullSuite
# Builds mc locally.
# Builds s3 locally.
build: checks
@echo "Building mc binary to './mc'"
@GO111MODULE=on GOOS=$(TARGET_GOOS) GOARCH=$(TARGET_GOARCH) CGO_ENABLED=0 go build -trimpath -tags kqueue --ldflags "$(LDFLAGS)" -o $(PWD)/mc
@echo "Building s3 binary to './s3'"
@GO111MODULE=on GOOS=$(TARGET_GOOS) GOARCH=$(TARGET_GOARCH) CGO_ENABLED=0 go build -trimpath -tags kqueue --ldflags "$(LDFLAGS)" -o $(PWD)/s3
hotfix-vars:
$(eval LDFLAGS := $(shell MC_RELEASE="RELEASE" MC_HOTFIX="hotfix.$(shell git rev-parse --short HEAD)" go run buildscripts/gen-ldflags.go $(shell git describe --tags --abbrev=0 | \
sed 's#RELEASE\.\([0-9]\+\)-\([0-9]\+\)-\([0-9]\+\)T\([0-9]\+\)-\([0-9]\+\)-\([0-9]\+\)Z#\1-\2-\3T\4:\5:\6Z#')))
$(eval VERSION := $(shell git describe --tags --abbrev=0).hotfix.$(shell git rev-parse --short HEAD))
$(eval TAG := "minio/mc:$(VERSION)")
$(eval TAG := "ghcr.io/hanzos3/cli:$(VERSION)")
hotfix: hotfix-vars install ## builds mc binary with hotfix tags
@mv -f ./mc ./mc.$(VERSION)
@minisign -qQSm ./mc.$(VERSION) -s "${CRED_DIR}/minisign.key" < "${CRED_DIR}/minisign-passphrase"
@sha256sum < ./mc.$(VERSION) | sed 's, -,mc.$(VERSION),g' > mc.$(VERSION).sha256sum
hotfix: hotfix-vars install ## builds s3 binary with hotfix tags
@mv -f ./s3 ./s3.$(VERSION)
@minisign -qQSm ./s3.$(VERSION) -s "${CRED_DIR}/minisign.key" < "${CRED_DIR}/minisign-passphrase"
@sha256sum < ./s3.$(VERSION) | sed 's, -,s3.$(VERSION),g' > s3.$(VERSION).sha256sum
hotfix-push: hotfix
@scp -q -r mc.$(VERSION)* minio@dl-0.min.io:~/releases/client/mc/hotfixes/$(TARGET_GOOS)-$(TARGET_GOARCH)/archive/
@scp -q -r mc.$(VERSION)* minio@dl-1.min.io:~/releases/client/mc/hotfixes/$(TARGET_GOOS)-$(TARGET_GOARCH)/archive/
@echo "Published new hotfix binaries at https://dl.min.io/client/mc/hotfixes/$(TARGET_GOOS)-$(TARGET_GOARCH)/archive/mc.$(VERSION)"
@scp -q -r s3.$(VERSION)* minio@s3.hanzo.ai:~/releases/client/s3/hotfixes/$(TARGET_GOOS)-$(TARGET_GOARCH)/archive/
@echo "Published new hotfix binaries at https://s3.hanzo.ai/client/s3/hotfixes/$(TARGET_GOOS)-$(TARGET_GOARCH)/archive/s3.$(VERSION)"
docker-hotfix-push: docker-hotfix
@docker push -q $(TAG) && echo "Published new container $(TAG)"
docker-hotfix: hotfix-push checks ## builds mc docker container with hotfix tags
@echo "Building mc docker image '$(TAG)'"
docker-hotfix: hotfix-push checks ## builds s3 docker container with hotfix tags
@echo "Building s3 docker image '$(TAG)'"
@docker build -q --no-cache -t $(TAG) --build-arg RELEASE=$(VERSION) . -f Dockerfile.hotfix
# Builds MinIO and installs it to $GOPATH/bin.
# Builds and installs s3 to $GOPATH/bin.
install: build
@echo "Installing mc binary to '$(GOPATH)/bin/mc'"
@mkdir -p $(GOPATH)/bin && cp -f $(PWD)/mc $(GOPATH)/bin/mc
@echo "Installation successful. To learn more, try \"mc --help\"."
@echo "Installing s3 binary to '$(GOPATH)/bin/s3'"
@mkdir -p $(GOPATH)/bin && cp -f $(PWD)/s3 $(GOPATH)/bin/s3
@echo "Installation successful. To learn more, try \"s3 --help\"."
clean:
@echo "Cleaning up all the generated files"
@find . -name '*.test' | xargs rm -fv
@find . -name '*~' | xargs rm -fv
@rm -rvf mc
@rm -rvf s3
@rm -rvf build
@rm -rvf release
+6 -3
View File
@@ -1,9 +1,12 @@
MinIO Client (C) 2014-2020 MinIO, Inc.
Hanzo S3 CLI (C) 2024-2026 Hanzo AI, Inc.
This product includes software developed at MinIO, Inc.
This product includes software developed at Hanzo AI, Inc.
(https://hanzo.ai/).
This product is based on MinIO Client, originally developed at MinIO, Inc.
(https://min.io/).
The MinIO project contains unmodified/modified subcomponents too with
The 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.
+83 -61
View File
@@ -1,14 +1,18 @@
# MinIO Client Quickstart Guide
[![Slack](https://slack.min.io/slack?type=svg)](https://slack.min.io) [![Go Report Card](https://goreportcard.com/badge/minio/mc)](https://goreportcard.com/report/minio/mc) [![Docker Pulls](https://img.shields.io/docker/pulls/minio/mc.svg?maxAge=604800)](https://hub.docker.com/r/minio/mc/) [![license](https://img.shields.io/badge/license-AGPL%20V3-blue)](https://github.com/minio/mc/blob/master/LICENSE)
# Hanzo S3 CLI
# Documentation
- [MC documentation](https://docs.min.io/community/minio-object-store/reference/minio-mc.html)
[![Go Report Card](https://goreportcard.com/badge/github.com/hanzos3/cli)](https://goreportcard.com/report/github.com/hanzos3/cli) [![license](https://img.shields.io/badge/license-AGPL%20V3-blue)](https://github.com/hanzos3/cli/blob/main/LICENSE)
MinIO Client (mc) provides a modern alternative to UNIX commands like ls, cat, cp, mirror, diff, find etc. It supports filesystems and Amazon S3 compatible cloud storage service (AWS Signature v2 and v4).
## Documentation
- [Hanzo S3 CLI documentation](https://hanzo.space/docs/cli)
Hanzo S3 CLI (`s3`) provides a modern alternative to UNIX commands like ls, cat, cp, mirror, diff, find etc. It supports filesystems and Amazon S3 compatible cloud storage services (AWS Signature v2 and v4).
The storage server is at [github.com/hanzoai/s3](https://github.com/hanzoai/s3).
```
alias manage server credentials in configuration file
admin manage MinIO servers
admin manage Hanzo S3 servers
anonymous manage anonymous access to buckets and objects
batch manage batch jobs
cp copy objects
@@ -21,7 +25,7 @@ MinIO Client (mc) provides a modern alternative to UNIX commands like ls, cat, c
get get s3 object to local
head display first 'n' lines of an object
ilm manage bucket lifecycle
idp manage MinIO IDentity Provider server configuration
idp manage Hanzo S3 IDentity Provider server configuration
license license related commands
legalhold manage legal hold for object(s)
ls list buckets and objects
@@ -45,113 +49,125 @@ MinIO Client (mc) provides a modern alternative to UNIX commands like ls, cat, c
tree list buckets and objects in a tree format
tag manage tags for bucket and object(s)
undo undo PUT/DELETE operations
update update mc to latest release
update update s3 to latest release
version manage bucket versioning
watch listen for object notification events
```
## Docker Container
### Stable
```
docker pull minio/mc
docker run minio/mc ls play
docker pull ghcr.io/hanzos3/cli
docker run ghcr.io/hanzos3/cli ls play
```
### Edge
```
docker pull minio/mc:edge
docker run minio/mc:edge ls play
```
**Note:** Above examples run `mc` against MinIO [_play_ environment](#test-your-setup) by default. To run `mc` against other S3 compatible servers, start the container this way:
```
docker run -it --entrypoint=/bin/sh minio/mc
docker pull ghcr.io/hanzos3/cli:edge
docker run ghcr.io/hanzos3/cli:edge ls play
```
then use the [`mc alias` command](#add-a-cloud-storage-service).
**Note:** Above examples run `s3` against the Hanzo S3 [_play_ environment](#test-your-setup) by default. To run `s3` against other S3 compatible servers, start the container this way:
```
docker run -it --entrypoint=/bin/sh ghcr.io/hanzos3/cli
```
then use the [`s3 alias` command](#add-a-cloud-storage-service).
### GitLab CI
When using the Docker container in GitLab CI, you must [set the entrypoint to an empty string](https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#override-the-entrypoint-of-an-image).
```
deploy:
image:
name: minio/mc
name: ghcr.io/hanzos3/cli
entrypoint: ['']
stage: deploy
before_script:
- mc alias set minio $MINIO_HOST $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
- s3 alias set mys3 $S3_HOST $S3_ACCESS_KEY $S3_SECRET_KEY
script:
- mc cp <source> <destination>
- s3 cp <source> <destination>
```
## macOS
### Homebrew
Install mc packages using [Homebrew](http://brew.sh/)
```
brew install minio/stable/mc
mc --help
brew install hanzos3/stable/s3
s3 --help
```
## GNU/Linux
### Binary Download
| Platform | Architecture | URL |
| ---------- | -------- |------|
|GNU/Linux|64-bit Intel|https://dl.min.io/client/mc/release/linux-amd64/mc |
|GNU/Linux|64-bit PPC|https://dl.min.io/client/mc/release/linux-ppc64le/mc |
|GNU/Linux|64-bit ARM|https://dl.min.io/client/mc/release/linux-arm64/mc |
|Linux/s390x|S390X|https://dl.min.io/client/mc/release/linux-s390x/mc |
| GNU/Linux | 64-bit Intel | https://s3.hanzo.ai/client/s3/release/linux-amd64/s3 |
| GNU/Linux | 64-bit PPC | https://s3.hanzo.ai/client/s3/release/linux-ppc64le/s3 |
| GNU/Linux | 64-bit ARM | https://s3.hanzo.ai/client/s3/release/linux-arm64/s3 |
| Linux/s390x | S390X | https://s3.hanzo.ai/client/s3/release/linux-s390x/s3 |
```
wget https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x mc
./mc --help
wget https://s3.hanzo.ai/client/s3/release/linux-amd64/s3
chmod +x s3
./s3 --help
```
## Microsoft Windows
### Binary Download
| Platform | Architecture | URL |
| ---------- | -------- |------|
|Microsoft Windows|64-bit Intel|https://dl.min.io/client/mc/release/windows-amd64/mc.exe |
| Microsoft Windows | 64-bit Intel | https://s3.hanzo.ai/client/s3/release/windows-amd64/s3.exe |
```
mc.exe --help
s3.exe --help
```
## Install from Source
Source installation is only intended for developers and advanced users. If you do not have a working Golang environment, please follow [How to install Golang](https://golang.org/doc/install). Minimum version required is [go1.22](https://golang.org/dl/#stable)
Source installation is only intended for developers and advanced users. If you do not have a working Golang environment, please follow [How to install Golang](https://golang.org/doc/install). Minimum version required is [go1.22](https://golang.org/dl/#stable).
```sh
go install github.com/minio/mc@latest
go install github.com/hanzos3/cli@latest
```
## Add a Cloud Storage Service
If you are planning to use `mc` only on POSIX compatible filesystems, you may skip this step and proceed to [everyday use](#everyday-use).
To add one or more Amazon S3 compatible hosts, please follow the instructions below. `mc` stores all its configuration information in ``~/.mc/config.json`` file.
If you are planning to use `s3` only on POSIX compatible filesystems, you may skip this step and proceed to [everyday use](#everyday-use).
To add one or more Amazon S3 compatible hosts, please follow the instructions below. `s3` stores all its configuration information in ``~/.s3/config.json`` file.
```
mc alias set <ALIAS> <YOUR-S3-ENDPOINT> <YOUR-ACCESS-KEY> <YOUR-SECRET-KEY> --api <API-SIGNATURE> --path <BUCKET-LOOKUP-TYPE>
s3 alias set <ALIAS> <YOUR-S3-ENDPOINT> <YOUR-ACCESS-KEY> <YOUR-SECRET-KEY> --api <API-SIGNATURE> --path <BUCKET-LOOKUP-TYPE>
```
`<ALIAS>` is simply a short name to your cloud storage service. S3 end-point, access and secret keys are supplied by your cloud storage provider. API signature is an optional argument. By default, it is set to "S3v4".
Path is an optional argument. It is used to indicate whether dns or path style url requests are supported by the server. It accepts "on", "off" as valid values to enable/disable path style requests.. By default, it is set to "auto" and SDK automatically determines the type of url lookup to use.
Path is an optional argument. It is used to indicate whether dns or path style url requests are supported by the server. It accepts "on", "off" as valid values to enable/disable path style requests. By default, it is set to "auto" and SDK automatically determines the type of url lookup to use.
### Example - MinIO Cloud Storage
MinIO server startup banner displays URL, access and secret keys.
### Example - Hanzo S3 Cloud Storage
Hanzo S3 server startup banner displays URL, access and secret keys.
```
mc alias set minio http://192.168.1.51 BKIKJAA5BMMU2RHO6IBB V7f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12
s3 alias set mys3 http://192.168.1.51 BKIKJAA5BMMU2RHO6IBB V7f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12
```
### Example - Amazon S3 Cloud Storage
Get your AccessKeyID and SecretAccessKey by following [AWS Credentials Guide](http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html).
```
mc alias set s3 https://s3.amazonaws.com BKIKJAA5BMMU2RHO6IBB V7f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12
s3 alias set aws https://s3.amazonaws.com BKIKJAA5BMMU2RHO6IBB V7f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12
```
**Note**: As an IAM user on Amazon S3 you need to make sure the user has full access to the buckets or set the following restricted policy for your IAM user
@@ -182,21 +198,23 @@ mc alias set s3 https://s3.amazonaws.com BKIKJAA5BMMU2RHO6IBB V7f1CwQqAcwo80UEIJ
```
### Example - Google Cloud Storage
Get your AccessKeyID and SecretAccessKey by following [Google Credentials Guide](https://cloud.google.com/storage/docs/migrating?hl=en#keys)
Get your AccessKeyID and SecretAccessKey by following [Google Credentials Guide](https://cloud.google.com/storage/docs/migrating?hl=en#keys).
```
mc alias set gcs https://storage.googleapis.com BKIKJAA5BMMU2RHO6IBB V8f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12
s3 alias set gcs https://storage.googleapis.com BKIKJAA5BMMU2RHO6IBB V8f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12
```
## Test Your Setup
`mc` is pre-configured with https://play.min.io, 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.
`s3` is pre-configured with https://s3.hanzo.ai, aliased as "play". It is a hosted Hanzo S3 server for testing and development purpose. To test Amazon S3, simply replace "play" with "aws" or the alias you used at the time of setup.
*Example:*
List all buckets from https://play.min.io
List all buckets from https://s3.hanzo.ai
```
mc ls play
s3 ls play
[2016-03-22 19:47:48 PDT] 0B my-bucketname/
[2016-03-22 22:01:07 PDT] 0B mytestbucket/
[2016-03-22 20:04:39 PDT] 0B mybucketname/
@@ -209,7 +227,7 @@ Make a bucket
*Example:*
```
mc mb play/mybucket
s3 mb play/mybucket
Bucket created successfully `play/mybucket`.
```
@@ -218,35 +236,39 @@ Copy Objects
*Example:*
```
mc cp myobject.txt play/mybucket
s3 cp myobject.txt play/mybucket
myobject.txt: 14 B / 14 B ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.00 % 41 B/s 0
```
## Everyday Use
### Shell aliases
You may add shell aliases to override your common Unix tools.
```
alias ls='mc ls'
alias cp='mc cp'
alias cat='mc cat'
alias mkdir='mc mb'
alias pipe='mc pipe'
alias find='mc find'
alias ls='s3 ls'
alias cp='s3 cp'
alias cat='s3 cat'
alias mkdir='s3 mb'
alias pipe='s3 pipe'
alias find='s3 find'
```
### Shell autocompletion
In case you are using bash, zsh or fish. Shell completion is embedded by default in `mc`, to install auto-completion use `mc --autocompletion`. Restart the shell, mc will auto-complete commands as shown below.
In case you are using bash, zsh or fish. Shell completion is embedded by default in `s3`, to install auto-completion use `s3 --autocompletion`. Restart the shell, `s3` will auto-complete commands as shown below.
```
mc <TAB>
s3 <TAB>
admin config diff find ls mirror policy session sql update watch
cat cp event head mb pipe rm share stat version
```
## Contribute to MinIO Project
Please follow MinIO [Contributor's Guide](https://github.com/minio/mc/blob/master/CONTRIBUTING.md)
## Contribute
Please follow the [Contributor's Guide](https://github.com/hanzos3/cli/blob/main/CONTRIBUTING.md).
## License
Use of `mc` is governed by the GNU AGPLv3 license that can be found in the [LICENSE](https://github.com/minio/mc/blob/master/LICENSE) file.
Use of `s3` is governed by the GNU AGPLv3 license that can be found in the [LICENSE](https://github.com/hanzos3/cli/blob/main/LICENSE) file.
+69 -57
View File
@@ -1,8 +1,8 @@
# MinIO客户端快速入门指南
[![Slack](https://slack.min.io/slack?type=svg)](https://slack.min.io) [![Go Report Card](https://goreportcard.com/badge/minio/mc)](https://goreportcard.com/report/minio/mc) [![Docker Pulls](https://img.shields.io/docker/pulls/minio/mc.svg?maxAge=604800)](https://hub.docker.com/r/minio/mc/)
# Hanzo S3 CLI 快速入门指南
MinIO Client (mc)为lscatcpmirrordifffind等UNIX命令提供了一种替代方案。它支持文件系统和兼容Amazon S3的云存储服务(AWS Signature v2和v4)。
[![Go Report Card](https://goreportcard.com/badge/github.com/hanzos3/cli)](https://goreportcard.com/report/github.com/hanzos3/cli)
Hanzo S3 CLI (`s3`) 为ls、cat、cp、mirror、diff、find等UNIX命令提供了一种替代方案。它支持文件系统和兼容Amazon S3的云存储服务(AWS Signature v2和v4)。
```
ls 列出文件和文件夹。
@@ -19,155 +19,167 @@ events 管理对象通知。
watch 监听文件和对象的事件。
anonymous 管理访问策略。
session 为cp命令管理保存的会话。
config 管理mc配置文件。
config 管理配置文件。
update 检查软件更新。
version 输出版本信息。
```
## Docker容器
### 稳定版
```
docker pull minio/mc
docker run minio/mc ls play
docker pull ghcr.io/hanzos3/cli
docker run ghcr.io/hanzos3/cli ls play
```
### 尝鲜版
```
docker pull minio/mc:edge
docker run minio/mc:edge ls play
```
**注意:** 上述示例默认使用MinIO[演示环境](#test-your-setup)做演示,如果想用`mc`操作其它S3兼容的服务,采用下面的方式来启动容器:
```
docker run -it --entrypoint=/bin/sh minio/mc
docker pull ghcr.io/hanzos3/cli:edge
docker run ghcr.io/hanzos3/cli:edge ls play
```
然后使用[`mc config`命令](#add-a-cloud-storage-service)。
**注意:** 上述示例默认使用 Hanzo S3 [演示环境](#test-your-setup)做演示,如果想用 `s3` 操作其它S3兼容的服务,采用下面的方式来启动容器:
```
docker run -it --entrypoint=/bin/sh ghcr.io/hanzos3/cli
```
然后使用 [`s3 alias`命令](#add-a-cloud-storage-service)。
## macOS
### Homebrew
使用[Homebrew](http://brew.sh/)安装mc。
使用[Homebrew](http://brew.sh/)安装。
```
brew install minio/stable/mc
mc --help
brew install hanzos3/stable/s3
s3 --help
```
## GNU/Linux
### 下载二进制文件
| 平台 | CPU架构 | URL |
| ---------- | -------- |------|
|GNU/Linux|64-bit Intel|https://dl.min.io/client/mc/release/linux-amd64/mc |
| GNU/Linux | 64-bit Intel | https://s3.hanzo.ai/client/s3/release/linux-amd64/s3 |
```
chmod +x mc
./mc --help
chmod +x s3
./s3 --help
```
## Microsoft Windows
### 下载二进制文件
| 平台 | CPU架构 | URL |
| ---------- | -------- |------|
|Microsoft Windows|64-bit Intel|https://dl.min.io/client/mc/release/windows-amd64/mc.exe |
| Microsoft Windows | 64-bit Intel | https://s3.hanzo.ai/client/s3/release/windows-amd64/s3.exe |
```
mc.exe --help
s3.exe --help
```
## 通过源码安装
通过源码安装仅适用于开发人员和高级用户。`mc update`命令不支持基于源码安装的更新通知。请从https://min.io/download/#minio-client下载官方版本。
通过源码安装仅适用于开发人员和高级用户。
如果您没有Golang环境,请参照[如何安装Golang](https://golang.org/doc/install)。
```
go get -d github.com/minio/mc
cd ${GOPATH}/src/github.com/minio/mc
make
go install github.com/hanzos3/cli@latest
```
## 添加一个云存储服务
如果你打算仅在POSIX兼容文件系统中使用`mc`,那你可以直接略过本节,跳到[日常使用](#everyday-use)。
添加一个或多个S3兼容的服务,请参考下面说明。`mc`将所有的配置信息都存储在``~/.mc/config.json``文件中
如果你打算仅在POSIX兼容文件系统中使用 `s3`,那你可以直接略过本节,跳到[日常使用](#everyday-use)
添加一个或多个S3兼容的服务,请参考下面说明。`s3` 将所有的配置信息都存储在 ``~/.s3/config.json`` 文件中。
```
mc alias set <ALIAS> <YOUR-S3-ENDPOINT> <YOUR-ACCESS-KEY> <YOUR-SECRET-KEY> [--api API-SIGNATURE]
s3 alias set <ALIAS> <YOUR-S3-ENDPOINT> <YOUR-ACCESS-KEY> <YOUR-SECRET-KEY> [--api API-SIGNATURE]
```
别名就是给你的云存储服务起了一个短点的外号。S3 endpoint,access key和secret key是你的云存储服务提供的。API签名是可选参数,默认情况下,它被设置为"S3v4"。
别名就是给你的云存储服务起了一个短点的外号。S3 endpointaccess key和secret key是你的云存储服务提供的。API签名是可选参数,默认情况下,它被设置为"S3v4"。
### 示例-MinIO云存储
从MinIO服务获得URL、access key和secret key。
### 示例 - Hanzo S3 云存储
从 Hanzo S3 服务获得URL、access key和secret key。
```
mc alias set minio http://192.168.1.51 BKIKJAA5BMMU2RHO6IBB V7f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12 --api s3v4
s3 alias set mys3 http://192.168.1.51 BKIKJAA5BMMU2RHO6IBB V7f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12 --api s3v4
```
### 示例-Amazon S3云存储
### 示例 - Amazon S3 云存储
参考[AWS Credentials指南](http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html)获取你的AccessKeyID和SecretAccessKey。
```
mc alias set s3 https://s3.amazonaws.com BKIKJAA5BMMU2RHO6IBB V7f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12 --api s3v4
s3 alias set aws https://s3.amazonaws.com BKIKJAA5BMMU2RHO6IBB V7f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12 --api s3v4
```
### 示例-Google云存储
### 示例 - Google云存储
参考[Google Credentials Guide](https://cloud.google.com/storage/docs/migrating?hl=en#keys)获取你的AccessKeyID和SecretAccessKey。
```
mc alias set gcs https://storage.googleapis.com BKIKJAA5BMMU2RHO6IBB V8f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12 --api s3v2
s3 alias set gcs https://storage.googleapis.com BKIKJAA5BMMU2RHO6IBB V8f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12 --api s3v2
```
注意:Google云存储只支持旧版签名版本V2,所以你需要选择S3v2。
## 验证
`mc`预先配置了云存储服务URLhttps://play.min.io,别名“play”。它是一个用于研发和测试的MinIO服务。如果想测试Amazon S3,你可以将“play”替换为“s3”。
`s3` 预先配置了云存储服务URLhttps://s3.hanzo.ai,别名"play"。它是一个用于研发和测试的 Hanzo S3 服务。如果想测试Amazon S3,你可以将"play"替换为"aws"。
*示例:*
列出https://play.min.io上的所有存储桶。
列出 https://s3.hanzo.ai 上的所有存储桶。
```
mc ls play
s3 ls play
[2016-03-22 19:47:48 PDT] 0B my-bucketname/
[2016-03-22 22:01:07 PDT] 0B mytestbucket/
[2016-03-22 20:04:39 PDT] 0B mybucketname/
[2016-01-28 17:23:11 PST] 0B newbucket/
[2016-03-20 09:08:36 PDT] 0B s3git-test/
```
<a name="everyday-use"></a>
## 日常使用
### Shell别名
你可以添加shell别名来覆盖默认的Unix工具命令。
```
alias ls='mc ls'
alias cp='mc cp'
alias cat='mc cat'
alias mkdir='mc mb'
alias pipe='mc pipe'
alias find='mc find'
alias ls='s3 ls'
alias cp='s3 cp'
alias cat='s3 cat'
alias mkdir='s3 mb'
alias pipe='s3 pipe'
alias find='s3 find'
```
### Shell自动补全
你也可以下载[`autocomplete/bash_autocomplete`](https://raw.githubusercontent.com/minio/mc/master/autocomplete/bash_autocomplete)到`/etc/bash_completion.d/`,然后将其重命名为`mc`。别忘了在这个文件运行source命令让其在你的当前shell上可用。
`s3` 内置了自动补全支持,运行 `s3 --autocompletion` 即可启用。重启shell后,`s3` 将自动补全命令。
```
sudo wget https://raw.githubusercontent.com/minio/mc/master/autocomplete/bash_autocomplete -O /etc/bash_completion.d/mc
source /etc/bash_completion.d/mc
```
```
mc <TAB>
s3 <TAB>
admin config diff ls mirror policy session update watch
cat cp events mb pipe rm share version
```
## 了解更多
- [MinIO Client完全指南](https://docs.min.io/community/minio-object-store/reference/minio-mc.html?ref=gh)
- [MinIO快速入门](https://docs.min.io/community/minio-object-store/operations/deployments/baremetal-deploy-minio-on-redhat-linux.html?ref=gh)
- [MinIO官方文档](https://docs.min.io/community/minio-object-store/index.html?ref=gh)
- [Hanzo S3 CLI 文档](https://hanzo.space/docs/cli)
## 贡献
请遵守MinIO[贡献者指南](https://github.com/minio/mc/blob/master/docs/zh_CN/CONTRIBUTING.md)
请遵守 [贡献者指南](https://github.com/hanzos3/cli/blob/main/CONTRIBUTING.md)
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
#
# Copyright (c) 2015-2021 MinIO, Inc.
# Copyright (c) 2015-2021 Hanzo AI, Inc.
#
# This file is part of MinIO Object Storage stack
# This file is part of Hanzo S3 stack
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
#
# Copyright (c) 2015-2021 MinIO, Inc.
# Copyright (c) 2015-2021 Hanzo AI, Inc.
#
# This file is part of MinIO Object Storage stack
# This file is part of Hanzo S3 stack
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
#
# Copyright (c) 2015-2021 MinIO, Inc.
# Copyright (c) 2015-2021 Hanzo AI, Inc.
#
# This file is part of MinIO Object Storage stack
# This file is part of Hanzo S3 stack
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,9 +1,9 @@
//go:build ignore
// +build ignore
// Copyright (c) 2015-2021 MinIO, Inc.
// Copyright (c) 2015-2021 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+7 -7
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2024 MinIO, Inc.
// Copyright (c) 2015-2024 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -70,22 +70,22 @@ FLAGS:
{{end}}
EXAMPLES:
1. Create a new access key pair with the same policy as the authenticated user
{{.Prompt}} {{.HelpName}} myminio/
{{.Prompt}} {{.HelpName}} mys3/
2. Create a new access key pair with custom access key and secret key
{{.Prompt}} {{.HelpName}} myminio/ --access-key myaccesskey --secret-key mysecretkey
{{.Prompt}} {{.HelpName}} mys3/ --access-key myaccesskey --secret-key mysecretkey
3. Create a new access key pair for user 'tester' that expires in 1 day
{{.Prompt}} {{.HelpName}} myminio/ tester --expiry-duration 24h
{{.Prompt}} {{.HelpName}} mys3/ tester --expiry-duration 24h
4. Create a new access key pair for authenticated user that expires on 2025-01-01
{{.Prompt}} {{.HelpName}} --expiry 2025-01-01
5. Create a new access key pair for user 'tester' with a custom policy
{{.Prompt}} {{.HelpName}} myminio/ tester --policy /path/to/policy.json
{{.Prompt}} {{.HelpName}} mys3/ tester --policy /path/to/policy.json
6. Create a new access key pair for user 'tester' with a custom name and description
{{.Prompt}} {{.HelpName}} myminio/ tester --name "Tester's Access Key" --description "Access key for tester"
{{.Prompt}} {{.HelpName}} mys3/ tester --name "Tester's Access Key" --description "Access key for tester"
`,
}
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2024 MinIO, Inc.
// Copyright (c) 2015-2024 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -39,7 +39,7 @@ FLAGS:
{{end}}
EXAMPLES:
1. Disable access key
{{.Prompt}} {{.HelpName}} myminio myaccesskey
{{.Prompt}} {{.HelpName}} mys3 myaccesskey
`,
}
+4 -4
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2024 MinIO, Inc.
// Copyright (c) 2015-2024 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -66,9 +66,9 @@ FLAGS:
{{end}}
EXAMPLES:
1. Change the secret key for the access key "testkey"
{{.Prompt}} {{.HelpName}} myminio/ testkey --secret-key 'xxxxxxx'
{{.Prompt}} {{.HelpName}} mys3/ testkey --secret-key 'xxxxxxx'
2. Change the expiry duration for the access key "testkey"
{{.Prompt}} {{.HelpName}} myminio/ testkey ---expiry-duration 24h
{{.Prompt}} {{.HelpName}} mys3/ testkey ---expiry-duration 24h
`,
}
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2024 MinIO, Inc.
// Copyright (c) 2015-2024 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -39,7 +39,7 @@ FLAGS:
{{end}}
EXAMPLES:
1. Enable access key
{{.Prompt}} {{.HelpName}} myminio myaccesskey
{{.Prompt}} {{.HelpName}} mys3 myaccesskey
`,
}
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2023 MinIO, Inc.
// Copyright (c) 2015-2023 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -151,7 +151,7 @@ func commonAccesskeyInfo(ctx *cli.Context) error {
aliasedURL := args.Get(0)
accessKeys := args.Tail()
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2024 MinIO, Inc.
// Copyright (c) 2015-2024 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -140,7 +140,7 @@ func (m userAccesskeyList) JSON() string {
func mainAdminAccesskeyList(ctx *cli.Context) error {
aliasedURL, tentativeAll, users, opts := commonAccesskeyList(ctx)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2024 MinIO, Inc.
// Copyright (c) 2015-2024 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+7 -7
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2025 MinIO, Inc.
// Copyright (c) 2015-2025 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -59,16 +59,16 @@ FLAGS:
{{end}}
EXAMPLES:
1. Revoke all STS accounts for user "user1"
{{.Prompt}} {{.HelpName}} myminio user1 --all
{{.Prompt}} {{.HelpName}} mys3 user1 --all
2. Revoke STS accounts of a token type "app-1" for user "user1"
{{.Prompt}} {{.HelpName}} myminio user1 --token-type app-1
{{.Prompt}} {{.HelpName}} mys3 user1 --token-type app-1
3. Revoke all STS accounts for the authenticated user
{{.Prompt}} {{.HelpName}} myminio --self
{{.Prompt}} {{.HelpName}} mys3 --self
4. Revoke STS accounts of a token type "app-1" for the authenticated user
{{.Prompt}} {{.HelpName}} myminio --self --token-type app-1
{{.Prompt}} {{.HelpName}} mys3 --self --token-type app-1
`,
}
@@ -129,7 +129,7 @@ func mainAdminAccesskeySTSRevoke(ctx *cli.Context) error {
tokenRevokeType := ctx.String("token-type")
fullRevoke := ctx.Bool("all")
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2024 MinIO, Inc.
// Copyright (c) 2015-2024 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -32,7 +32,7 @@ var adminAccesskeySubcommands = []cli.Command{
var adminAccesskeyCmd = cli.Command{
Name: "accesskey",
Usage: "manage access keys defined in the MinIO server",
Usage: "manage access keys defined in the Hanzo S3 server",
Action: mainAdminAccesskey,
Before: setGlobalsFromContext,
Flags: globalFlags,
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2022 MinIO, Inc.
// Copyright (c) 2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -27,7 +27,7 @@ var adminBucketSubcommands = []cli.Command{
var adminBucketCmd = cli.Command{
Name: "bucket",
Usage: "manage buckets defined in the MinIO server",
Usage: "manage buckets defined in the Hanzo S3 server",
Action: mainAdminBucket,
Before: setGlobalsFromContext,
Flags: globalFlags,
+4 -4
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2022 MinIO, Inc.
// Copyright (c) 2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -52,7 +52,7 @@ FLAGS:
{{end}}
EXAMPLES:
1. Save metadata of all buckets to a zip file.
{{.Prompt}} {{.HelpName}} myminio
{{.Prompt}} {{.HelpName}} mys3
`,
}
@@ -72,7 +72,7 @@ func mainClusterBucketExport(ctx *cli.Context) error {
aliasedURL := args.Get(0)
console.SetColor("File", color.New(color.FgWhite, color.Bold))
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
if err != nil {
fatalIf(err.Trace(aliasedURL), "Unable to initialize admin client.")
+4 -4
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2022 MinIO, Inc.
// Copyright (c) 2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -54,7 +54,7 @@ FLAGS:
{{end}}
EXAMPLES:
1. Recover bucket metadata for all buckets from previously saved bucket metadata backup.
{{.Prompt}} {{.HelpName}} myminio /backups/myminio-bucket-metadata.zip
{{.Prompt}} {{.HelpName}} mys3 /backups/mys3-bucket-metadata.zip
`,
}
@@ -98,7 +98,7 @@ func mainClusterBucketImport(ctx *cli.Context) error {
fatalIf(probe.NewError(e).Trace(args...), "Unable to get bucket metadata")
defer f.Close()
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
if err != nil {
fatalIf(err.Trace(aliasedURL), "Unable to initialize admin client.")
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2022 MinIO, Inc.
// Copyright (c) 2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -26,7 +26,7 @@ var adminClusterBucketSubcommands = []cli.Command{
var adminClusterBucketCmd = cli.Command{
Name: "bucket",
Usage: "manage bucket metadata on MinIO cluster",
Usage: "manage bucket metadata on Hanzo S3 cluster",
Action: mainAdminClusterBucket,
Before: setGlobalsFromContext,
Flags: globalFlags,
+5 -5
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2022 MinIO, Inc.
// Copyright (c) 2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -61,10 +61,10 @@ FLAGS:
{{end}}
EXAMPLES:
1. Download all IAM metadata for cluster into zip file.
{{.Prompt}} {{.HelpName}} myminio
{{.Prompt}} {{.HelpName}} mys3
2. Download all IAM metadata to a custom file.
{{.Prompt}} {{.HelpName}} myminio --output /tmp/myminio-iam.zip
{{.Prompt}} {{.HelpName}} mys3 --output /tmp/mys3-iam.zip
`,
}
@@ -86,7 +86,7 @@ func mainClusterIAMExport(ctx *cli.Context) error {
console.SetColor("File", color.New(color.FgWhite, color.Bold))
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
if err != nil {
fatalIf(err.Trace(aliasedURL), "Unable to initialize admin client.")
+5 -5
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2022 MinIO, Inc.
// Copyright (c) 2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -45,14 +45,14 @@ var adminClusterIAMImportCmd = cli.Command{
{{.HelpName}} - {{.Usage}}
USAGE:
{{.HelpName}} [FLAGS] TARGET/BUCKET /path/to/myminio-iam-info.zip
{{.HelpName}} [FLAGS] TARGET/BUCKET /path/to/mys3-iam-info.zip
FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Set IAM info from previously exported metadata zip file.
{{.Prompt}} {{.HelpName}} myminio /tmp/myminio-iam-info.zip
{{.Prompt}} {{.HelpName}} mys3 /tmp/mys3-iam-info.zip
`,
}
@@ -209,7 +209,7 @@ func mainClusterIAMImport(ctx *cli.Context) error {
fatalIf(probe.NewError(e).Trace(args...), "Unable to get IAM info")
defer f.Close()
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
if err != nil {
fatalIf(err.Trace(aliasedURL), "Unable to initialize admin client.")
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2022 MinIO, Inc.
// Copyright (c) 2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -26,7 +26,7 @@ var adminClusterIAMSubcommands = []cli.Command{
var adminClusterIAMCmd = cli.Command{
Name: "iam",
Usage: "manage IAM info on MinIO cluster",
Usage: "manage IAM info on Hanzo S3 cluster",
Action: mainadminClusterIAM,
Before: setGlobalsFromContext,
Flags: globalFlags,
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2022 MinIO, Inc.
// Copyright (c) 2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -26,7 +26,7 @@ var adminClusterSubcommands = []cli.Command{
var adminClusterCmd = cli.Command{
Name: "cluster",
Usage: "manage MinIO cluster metadata",
Usage: "manage Hanzo S3 cluster metadata",
Action: mainAdminCluster,
Before: setGlobalsFromContext,
Flags: globalFlags,
+4 -4
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -50,7 +50,7 @@ FLAGS:
EXAMPLES:
The output includes environment variables set on the server. These cannot be overridden from the client.
1. Export the current config from MinIO server
1. Export the current config from Hanzo S3 server
{{.Prompt}} {{.HelpName}} play/ > config.txt
`,
}
@@ -108,7 +108,7 @@ func mainAdminConfigExport(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+8 -8
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -51,16 +51,16 @@ FLAGS:
EXAMPLES:
The output includes environment variables set on the server. These cannot be overridden from the client.
1. Get the current region setting on MinIO server.
1. Get the current region setting on Hanzo S3 server.
{{.Prompt}} {{.HelpName}} play/ region
region name=us-east-1
2. Get the current notification settings for Webhook target on MinIO server
{{.Prompt}} {{.HelpName}} myminio/ notify_webhook
2. Get the current notification settings for Webhook target on Hanzo S3 server
{{.Prompt}} {{.HelpName}} mys3/ notify_webhook
notify_webhook endpoint="http://localhost:8080" auth_token= queue_limit=10000 queue_dir="/home/events"
3. Get the current compression settings on MinIO server
{{.Prompt}} {{.HelpName}} myminio/ compression
3. Get the current compression settings on Hanzo S3 server
{{.Prompt}} {{.HelpName}} mys3/ compression
compression extensions=".txt,.csv" mime_types="text/*"
`,
}
@@ -122,7 +122,7 @@ func mainAdminConfigGet(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -123,7 +123,7 @@ func mainAdminConfigHistory(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+4 -4
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -45,7 +45,7 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Import the new local config and apply to the MinIO server
1. Import the new local config and apply to the Hanzo S3 server
{{.Prompt}} {{.HelpName}} play/ < config.txt
`,
}
@@ -92,7 +92,7 @@ func mainAdminConfigImport(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+6 -6
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -53,11 +53,11 @@ FLAGS:
{{end}}
EXAMPLES:
1. Reset MQTT notifcation target 'name1' settings to default values.
{{.Prompt}} {{.HelpName}} myminio/ notify_mqtt:name1
{{.Prompt}} {{.HelpName}} mys3/ notify_mqtt:name1
2. Reset compression's 'extensions' setting to default value.
{{.Prompt}} {{.HelpName}} myminio/ compression extensions
{{.Prompt}} {{.HelpName}} mys3/ compression extensions
3. Reset site name and site region to default values.
{{.Prompt}} {{.HelpName}} myminio/ site name region
{{.Prompt}} {{.HelpName}} mys3/ site name region
`,
}
@@ -110,7 +110,7 @@ func mainAdminConfigReset(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+4 -4
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -44,7 +44,7 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Restore 'restore-id' history key value on MinIO server.
1. Restore 'restore-id' history key value on Hanzo S3 server.
{{.Prompt}} {{.HelpName}} play/ <restore-id>
`,
}
@@ -90,7 +90,7 @@ func mainAdminConfigRestore(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+8 -8
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -46,13 +46,13 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Enable webhook notification target for MinIO server.
{{.Prompt}} {{.HelpName}} myminio/ notify_webhook endpoint="http://localhost:8080/minio/events"
1. Enable webhook notification target for Hanzo S3 server.
{{.Prompt}} {{.HelpName}} mys3/ notify_webhook endpoint="http://localhost:8080/s3/events"
2. Change region name for the MinIO server to 'us-west-1'.
{{.Prompt}} {{.HelpName}} myminio/ region name=us-west-1
2. Change region name for the Hanzo S3 server to 'us-west-1'.
{{.Prompt}} {{.HelpName}} mys3/ region name=us-west-1
3. Change healing settings on a distributed MinIO server setup.
3. Change healing settings on a distributed Hanzo S3 server setup.
{{.Prompt}} {{.HelpName}} mydist/ heal max_delay=300ms max_io=50
`,
}
@@ -104,7 +104,7 @@ func mainAdminConfigSet(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -31,7 +31,7 @@ var adminConfigSubcommands = []cli.Command{
var adminConfigCmd = cli.Command{
Name: "config",
Usage: "manage MinIO server configuration",
Usage: "manage Hanzo S3 server configuration",
Action: mainAdminConfig,
Before: setGlobalsFromContext,
Flags: globalFlags,
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -39,7 +39,7 @@ var adminConsoleFlags = []cli.Flag{
var adminConsoleCmd = cli.Command{
Name: "console",
Usage: "show MinIO logs",
Usage: "show Hanzo S3 logs",
Action: mainAdminConsole,
OnUsageError: onUsageError,
Before: setGlobalsFromContext,
+5 -5
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -46,10 +46,10 @@ FLAGS:
{{end}}
EXAMPLES:
1. Cancel an ongoing decommissioning of a pool.
{{.Prompt}} {{.HelpName}} myminio/ http://server{5...8}/disk{1...4}
{{.Prompt}} {{.HelpName}} mys3/ http://server{5...8}/disk{1...4}
2. Cancel all ongoing decommissioning of pools.
{{.Prompt}} {{.HelpName}} myminio/
{{.Prompt}} {{.HelpName}} mys3/
`,
}
@@ -69,7 +69,7 @@ func mainAdminDecommissionCancel(ctx *cli.Context) error {
aliasedURL := args.Get(0)
aliasedURL = filepath.Clean(aliasedURL)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+4 -4
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -45,7 +45,7 @@ FLAGS:
{{end}}
EXAMPLES:
1. Start decommissioning a pool for removal.
{{.Prompt}} {{.HelpName}} myminio/ http://server{5...8}/disk{1...4}
{{.Prompt}} {{.HelpName}} mys3/ http://server{5...8}/disk{1...4}
`,
}
@@ -87,7 +87,7 @@ func mainAdminDecommissionStart(ctx *cli.Context) error {
aliasedURL := args.Get(0)
aliasedURL = filepath.Clean(aliasedURL)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+5 -5
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -48,9 +48,9 @@ FLAGS:
{{end}}
EXAMPLES:
1. Show current decommissioning status.
{{.Prompt}} {{.HelpName}} myminio/ http://server{5...8}/disk{1...4}
{{.Prompt}} {{.HelpName}} mys3/ http://server{5...8}/disk{1...4}
2. List all current decommissioning status of all pools.
{{.Prompt}} {{.HelpName}} myminio/
{{.Prompt}} {{.HelpName}} mys3/
`,
}
@@ -70,7 +70,7 @@ func mainAdminDecommissionStatus(ctx *cli.Context) error {
aliasedURL := args.Get(0)
aliasedURL = filepath.Clean(aliasedURL)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+6 -6
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -47,11 +47,11 @@ FLAGS:
{{end}}
EXAMPLES:
1. Add users 'fivecent' and 'tencent' to the group 'allcents':
{{.Prompt}} {{.HelpName}} myminio allcents fivecent tencent
{{.Prompt}} {{.HelpName}} mys3 allcents fivecent tencent
2. Add user "james" to group "staff", then add the "readwrite" policy to the group "staff".
{{.Prompt}} {{.HelpName}} myminio staff james
{{.Prompt}} mc admin policy attach myminio readwrite --group staff
{{.Prompt}} {{.HelpName}} mys3 staff james
{{.Prompt}} mc admin policy attach mys3 readwrite --group staff
`,
}
@@ -124,7 +124,7 @@ func mainAdminGroupAdd(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -39,6 +39,6 @@ FLAGS:
{{end}}
EXAMPLES:
1. Disable group 'allcents'.
{{.Prompt}} {{.HelpName}} myminio allcents
{{.Prompt}} {{.HelpName}} mys3 allcents
`,
}
+4 -4
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -43,7 +43,7 @@ FLAGS:
{{end}}
EXAMPLES:
1. Enable group 'allcents'.
{{.Prompt}} {{.HelpName}} myminio allcents
{{.Prompt}} {{.HelpName}} mys3 allcents
`,
}
@@ -64,7 +64,7 @@ func mainAdminGroupEnableDisable(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+4 -4
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -42,7 +42,7 @@ FLAGS:
{{end}}
EXAMPLES:
1. Get info on group 'allcents'.
{{.Prompt}} {{.HelpName}} myminio allcents
{{.Prompt}} {{.HelpName}} mys3 allcents
`,
}
@@ -63,7 +63,7 @@ func mainAdminGroupInfo(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+4 -4
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -43,7 +43,7 @@ FLAGS:
{{end}}
EXAMPLES:
1. List all groups.
{{.Prompt}} {{.HelpName}} myminio
{{.Prompt}} {{.HelpName}} mys3
`,
}
@@ -64,7 +64,7 @@ func mainAdminGroupList(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+5 -5
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -44,10 +44,10 @@ FLAGS:
{{end}}
EXAMPLES:
1. Remove members 'tencent' and 'fivecent' from group 'allcents'.
{{.Prompt}} {{.HelpName}} myminio allcents tencent fivecent
{{.Prompt}} {{.HelpName}} mys3 allcents tencent fivecent
2. Remove group 'allcents'.
{{.Prompt}} {{.HelpName}} myminio allcents
{{.Prompt}} {{.HelpName}} mys3 allcents
`,
}
@@ -68,7 +68,7 @@ func mainAdminGroupRemove(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+6 -6
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2024 MinIO, Inc.
// Copyright (c) 2015-2024 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -110,7 +110,7 @@ var adminHealFlags = []cli.Flag{
var adminHealCmd = cli.Command{
Name: "heal",
Usage: "monitor healing for bucket(s) and object(s) on MinIO server",
Usage: "monitor healing for bucket(s) and object(s) on Hanzo S3 server",
Action: mainAdminHeal,
OnUsageError: onUsageError,
Before: setGlobalsFromContext,
@@ -126,8 +126,8 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Monitor healing status on a running server at alias 'myminio':
{{.Prompt}} {{.HelpName}} myminio/
1. Monitor healing status on a running server at alias 'mys3':
{{.Prompt}} {{.HelpName}} mys3/
`,
}
@@ -668,7 +668,7 @@ func mainAdminHeal(ctx *cli.Context) error {
console.SetColor("DiskFailed", color.New(color.FgRed, color.Bold))
console.SetColor("NodeFailed", color.New(color.FgRed, color.Bold))
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
adminClnt, err := newAdminClient(aliasedURL)
if err != nil {
fatalIf(err.Trace(aliasedURL), "Unable to initialize admin client.")
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -21,7 +21,7 @@ import "github.com/minio/cli"
var adminIDPCmd = cli.Command{
Name: "idp",
Usage: "manage MinIO IDentity Provider server configuration",
Usage: "manage Hanzo S3 IDentity Provider server configuration",
Action: mainAdminIDP,
Before: setGlobalsFromContext,
Flags: globalFlags,
+6 -6
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2024 MinIO, Inc.
// Copyright (c) 2015-2024 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -45,7 +45,7 @@ var adminInfoFlags = []cli.Flag{
var adminInfoCmd = cli.Command{
Name: "info",
Usage: "display MinIO server information",
Usage: "display Hanzo S3 server information",
Action: mainAdminInfo,
OnUsageError: onUsageError,
Before: setGlobalsFromContext,
@@ -60,7 +60,7 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Get server information of the 'play' MinIO server.
1. Get server information of the 'play' Hanzo S3 server.
{{.Prompt}} {{.HelpName}} play/
`,
}
@@ -173,7 +173,7 @@ func (u clusterStruct) String() (msg string) {
// Loop through each server and put together info for each one
for _, srv := range u.Info.Servers {
// Check if MinIO server is not online ("Mode" field),
// Check if Hanzo S3 server is not online ("Mode" field),
if srv.State != string(madmin.ItemOnline) {
totalOfflineNodes++
// "PrintB" is color blue in console library package
@@ -383,7 +383,7 @@ func mainAdminInfo(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -23,7 +23,7 @@ import (
var adminInspectCmd = cli.Command{
Name: "inspect",
Usage: "inspect files on MinIO server",
Usage: "inspect files on Hanzo S3 server",
Action: mainAdminInspect,
OnUsageError: onUsageError,
Before: setGlobalsFromContext,
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+4 -4
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2023 MinIO, Inc.
// Copyright (c) 2015-2023 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -47,7 +47,7 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Get list of master keys from a MinIO server/cluster.
1. Get list of master keys from a Hanzo S3 server/cluster.
$ {{.HelpName}} play
`,
}
@@ -64,7 +64,7 @@ func mainAdminKMSKeyList(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+4 -4
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -44,9 +44,9 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Get default master key and its status from a MinIO server/cluster.
1. Get default master key and its status from a Hanzo S3 server/cluster.
$ {{.HelpName}} play
2. Get the status of one particular master key from a MinIO server/cluster.
2. Get the status of one particular master key from a Hanzo S3 server/cluster.
$ {{.HelpName}} play my-master-key
`,
}
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+10 -10
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -48,7 +48,7 @@ var logsShowFlags = []cli.Flag{
var adminLogsCmd = cli.Command{
Name: "logs",
Usage: "show MinIO logs",
Usage: "show Hanzo S3 logs",
OnUsageError: onUsageError,
Action: mainAdminLogs,
Before: setGlobalsFromContext,
@@ -62,12 +62,12 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Show logs for a MinIO server with alias 'myminio'
{{.Prompt}} {{.HelpName}} myminio
2. Show last 5 log entries for node 'node1' for a MinIO server with alias 'myminio'
{{.Prompt}} {{.HelpName}} --last 5 myminio node1
3. Show application errors in logs for a MinIO server with alias 'myminio'
{{.Prompt}} {{.HelpName}} --type application myminio
1. Show logs for a Hanzo S3 server with alias 'mys3'
{{.Prompt}} {{.HelpName}} mys3
2. Show last 5 log entries for node 'node1' for a Hanzo S3 server with alias 'mys3'
{{.Prompt}} {{.HelpName}} --last 5 mys3 node1
3. Show application errors in logs for a Hanzo S3 server with alias 'mys3'
{{.Prompt}} {{.HelpName}} --type application mys3
`,
}
@@ -183,7 +183,7 @@ func mainAdminLogs(ctx *cli.Context) error {
if logType != "minio" && logType != "application" && logType != "all" {
fatalIf(errInvalidArgument().Trace(ctx.Args()...), "Invalid value for --type flag. Valid options are [minio, application, all]")
}
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
if err != nil {
fatalIf(err.Trace(aliasedURL), "Unable to initialize admin client.")
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -61,7 +61,7 @@ var adminCmdSubcommands = []cli.Command{
var adminCmd = cli.Command{
Name: "admin",
Usage: "manage MinIO servers",
Usage: "manage Hanzo S3 servers",
Action: mainAdmin,
Subcommands: adminCmdSubcommands,
HideHelpCommand: true,
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+8 -8
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -54,16 +54,16 @@ USAGE:
Exactly one of --user or --group is required.
POLICY:
Name of the policy on the MinIO server.
Name of the policy on the Hanzo S3 server.
FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Attach the "readonly" policy to user "james".
{{.Prompt}} {{.HelpName}} myminio readonly --user james
{{.Prompt}} {{.HelpName}} mys3 readonly --user james
2. Attach the "audit-policy" and "acct-policy" policies to group "legal".
{{.Prompt}} {{.HelpName}} myminio audit-policy acct-policy --group legal
{{.Prompt}} {{.HelpName}} mys3 audit-policy acct-policy --group legal
`,
}
@@ -90,7 +90,7 @@ func userAttachOrDetachPolicy(ctx *cli.Context, attach bool) error {
Policies: policies,
}
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
@@ -108,8 +108,8 @@ func userAttachOrDetachPolicy(ctx *cli.Context, attach bool) error {
var emptyResp madmin.PolicyAssociationResp
if res.UpdatedAt.Equal(emptyResp.UpdatedAt) {
// Older minio does not send a result, so we populate res manually to
// simulate a result. TODO(aditya): remove this after newer minio is
// Older server does not send a result, so we populate res manually to
// simulate a result. TODO(aditya): remove this after newer server is
// released in a few months (Older API Deprecated in Jun 2023)
if attach {
res.PoliciesAttached = policies
+5 -5
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -43,7 +43,7 @@ USAGE:
{{.HelpName}} TARGET POLICYNAME POLICYFILE
POLICYNAME:
Name of the canned policy on MinIO server.
Name of the canned policy on Hanzo S3 server.
POLICYFILE:
Name of the policy file associated with the policy name.
@@ -53,7 +53,7 @@ FLAGS:
{{end}}
EXAMPLES:
1. Create a new canned policy 'writeonly'.
{{.Prompt}} {{.HelpName}} myminio writeonly /tmp/writeonly.json
{{.Prompt}} {{.HelpName}} mys3 writeonly /tmp/writeonly.json
`,
}
@@ -129,7 +129,7 @@ func mainAdminPolicyCreate(ctx *cli.Context) error {
policy, e := os.ReadFile(args.Get(2))
fatalIf(probe.NewError(e).Trace(args...), "Unable to get policy")
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+5 -5
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -48,16 +48,16 @@ USAGE:
Exactly one of --user or --group is required.
POLICY:
Name of the policy on the MinIO server.
Name of the policy on the Hanzo S3 server.
FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Detach the "readonly" policy from user "james".
{{.Prompt}} {{.HelpName}} myminio readonly --user james
{{.Prompt}} {{.HelpName}} mys3 readonly --user james
2. Detach the "audit-policy" and "acct-policy" policies from group "legal".
{{.Prompt}} {{.HelpName}} myminio audit-policy acct-policy --group legal
{{.Prompt}} {{.HelpName}} mys3 audit-policy acct-policy --group legal
`,
}
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -83,7 +83,7 @@ func mainAdminPolicyEntities(ctx *cli.Context) error {
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+6 -6
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -48,17 +48,17 @@ USAGE:
{{.HelpName}} TARGET POLICYNAME [OPTIONS...]
POLICYNAME:
Name of the policy on the MinIO server.
Name of the policy on the Hanzo S3 server.
FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Show information on a given policy.
{{.Prompt}} {{.HelpName}} myminio writeonly
{{.Prompt}} {{.HelpName}} mys3 writeonly
2. Show information on a given policy and write the policy JSON content to /tmp/policy.json.
{{.Prompt}} {{.HelpName}} myminio writeonly --policy-file /tmp/policy.json
{{.Prompt}} {{.HelpName}} mys3 writeonly --policy-file /tmp/policy.json
`,
}
@@ -99,7 +99,7 @@ func mainAdminPolicyInfo(ctx *cli.Context) error {
aliasedURL := args.Get(0)
policyName := args.Get(1)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection")
+5 -5
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -42,8 +42,8 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. List all policies on MinIO server.
{{.Prompt}} {{.HelpName}} myminio
1. List all policies on Hanzo S3 server.
{{.Prompt}} {{.HelpName}} mys3
`,
}
@@ -64,7 +64,7 @@ func mainAdminPolicyList(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+6 -6
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -39,14 +39,14 @@ USAGE:
{{.HelpName}} TARGET POLICYNAME
POLICYNAME:
Name of the canned policy on MinIO server.
Name of the canned policy on Hanzo S3 server.
FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Remove 'writeonly' policy on MinIO server.
{{.Prompt}} {{.HelpName}} myminio writeonly
1. Remove 'writeonly' policy on Hanzo S3 server.
{{.Prompt}} {{.HelpName}} mys3 writeonly
`,
}
@@ -67,7 +67,7 @@ func mainAdminPolicyRemove(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -35,7 +35,7 @@ var adminPolicySubcommands = []cli.Command{
var adminPolicyCmd = cli.Command{
Name: "policy",
Usage: "manage policies defined in the MinIO server",
Usage: "manage policies defined in the Hanzo S3 server",
Action: mainAdminPolicy,
Before: setGlobalsFromContext,
Flags: globalFlags,
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2024 MinIO, Inc.
// Copyright (c) 2015-2024 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2024 MinIO, Inc.
// Copyright (c) 2015-2024 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2024 MinIO, Inc.
// Copyright (c) 2015-2024 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2022 MinIO, Inc.
// Copyright (c) 2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -27,7 +27,7 @@ var adminRebalanceSubcommands = []cli.Command{
var adminRebalanceCmd = cli.Command{
Name: "rebalance",
Usage: "Manage MinIO rebalance",
Usage: "Manage Hanzo S3 rebalance",
Action: mainAdminRebalance,
Before: setGlobalsFromContext,
Flags: globalFlags,
+5 -5
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2022 MinIO, Inc.
// Copyright (c) 2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -44,8 +44,8 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
xEXAMPLES:
1. Start rebalance on a MinIO deployment with alias myminio
{{.Prompt}} {{.HelpName}} myminio
1. Start rebalance on a Hanzo S3 deployment with alias mys3
{{.Prompt}} {{.HelpName}} mys3
`,
}
@@ -76,7 +76,7 @@ func mainAdminRebalanceStart(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err.Trace(aliasedURL), "Unable to initialize admin client")
+4 -4
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2022 MinIO, Inc.
// Copyright (c) 2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -47,8 +47,8 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Summarize ongoing rebalance on a MinIO deployment with alias myminio
{{.Prompt}} {{.HelpName}} myminio
1. Summarize ongoing rebalance on a Hanzo S3 deployment with alias mys3
{{.Prompt}} {{.HelpName}} mys3
`,
}
+5 -5
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2022 MinIO, Inc.
// Copyright (c) 2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -44,8 +44,8 @@ FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}
EXAMPLES:
1. Stop an ongoing rebalance on a MinIO deployment with alias myminio
{{.Prompt}} {{.HelpName}} myminio
1. Stop an ongoing rebalance on a Hanzo S3 deployment with alias mys3
{{.Prompt}} {{.HelpName}} mys3
`,
}
@@ -75,7 +75,7 @@ func mainAdminRebalanceStop(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err.Trace(aliasedURL), "Unable to initialize admin client")
+5 -5
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -54,10 +54,10 @@ FLAGS:
EXAMPLES:
1. Add a site for cluster-level replication:
{{.Prompt}} {{.HelpName}} minio1 minio2
{{.Prompt}} {{.HelpName}} site1 site2
2. Add a site for cluster-level replication with replication of ILM expiry rules:
{{.Prompt}} {{.HelpName}} minio1 minio2 --replicate-ilm-expiry
{{.Prompt}} {{.HelpName}} site1 site2 --replicate-ilm-expiry
`,
}
@@ -98,7 +98,7 @@ func mainAdminReplicateAdd(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")
+4 -4
View File
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2022 MinIO, Inc.
// Copyright (c) 2015-2022 Hanzo AI, Inc.
//
// This file is part of MinIO Object Storage stack
// This file is part of Hanzo S3 stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
@@ -50,7 +50,7 @@ FLAGS:
EXAMPLES:
1. Get Site Replication information:
{{.Prompt}} {{.HelpName}} minio1
{{.Prompt}} {{.HelpName}} site1
`,
}
@@ -135,7 +135,7 @@ func mainAdminReplicationInfo(ctx *cli.Context) error {
args := ctx.Args()
aliasedURL := args.Get(0)
// Create a new MinIO Admin Client
// Create a new Hanzo S3 Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")

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