mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Rectify Examples and README.MD (#8141)
This commit is contained in:
parent
d65a2c6725
commit
c6f86d35d3
@ -244,7 +244,7 @@ Fetches information for all cluster nodes, such as server properties, storage in
|
|||||||
<a name="ServerDrivesPerfInfo"></a>
|
<a name="ServerDrivesPerfInfo"></a>
|
||||||
### ServerDrivesPerfInfo() ([]ServerDrivesPerfInfo, error)
|
### ServerDrivesPerfInfo() ([]ServerDrivesPerfInfo, error)
|
||||||
|
|
||||||
Fetches drive performance information for all cluster nodes. Returned value is in Bytes/s.
|
Fetches drive performance information for all cluster nodes.
|
||||||
|
|
||||||
| Param | Type | Description |
|
| Param | Type | Description |
|
||||||
|-----------------|--------------------|--------------------------------------------------------------------|
|
|-----------------|--------------------|--------------------------------------------------------------------|
|
||||||
@ -262,7 +262,7 @@ Fetches drive performance information for all cluster nodes. Returned value is i
|
|||||||
<a name="ServerCPULoadInfo"></a>
|
<a name="ServerCPULoadInfo"></a>
|
||||||
### ServerCPULoadInfo() ([]ServerCPULoadInfo, error)
|
### ServerCPULoadInfo() ([]ServerCPULoadInfo, error)
|
||||||
|
|
||||||
Fetches CPU utilization for all cluster nodes. Returned value is in Bytes.
|
Fetches CPU utilization for all cluster nodes.
|
||||||
|
|
||||||
| Param | Type | Description |
|
| Param | Type | Description |
|
||||||
|----------------|------------|---------------------------------------------------------------------|
|
|----------------|------------|---------------------------------------------------------------------|
|
||||||
@ -280,7 +280,7 @@ Fetches CPU utilization for all cluster nodes. Returned value is in Bytes.
|
|||||||
<a name="ServerMemUsageInfo"></a>
|
<a name="ServerMemUsageInfo"></a>
|
||||||
### ServerMemUsageInfo() ([]ServerMemUsageInfo, error)
|
### ServerMemUsageInfo() ([]ServerMemUsageInfo, error)
|
||||||
|
|
||||||
Fetches Mem utilization for all cluster nodes. Returned value is in Bytes.
|
Fetches Mem utilization for all cluster nodes.
|
||||||
|
|
||||||
| Param | Type | Description |
|
| Param | Type | Description |
|
||||||
|-----------------|-------------|---------------------------------------------------------------------|
|
|-----------------|-------------|---------------------------------------------------------------------|
|
||||||
|
@ -32,7 +32,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -29,7 +29,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY and my-bucketname are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY and my-bucketname are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -29,7 +29,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY and my-bucketname are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY and my-bucketname are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -31,7 +31,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -31,7 +31,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -29,7 +29,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -31,7 +31,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -32,7 +32,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -32,7 +32,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -29,7 +29,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -30,7 +30,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -29,7 +29,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY and my-bucketname are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY and my-bucketname are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -35,7 +35,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -29,7 +29,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY and my-bucketname are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY and my-bucketname are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -29,7 +29,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -29,7 +29,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY and my-bucketname are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY and my-bucketname are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -30,7 +30,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -33,7 +33,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -130,7 +130,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -30,7 +30,7 @@ func main() {
|
|||||||
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
|
||||||
// dummy values, please replace them with original values.
|
// dummy values, please replace them with original values.
|
||||||
|
|
||||||
// API requests are secure (HTTPS) if secure=true and insecure (HTTPS) otherwise.
|
// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
|
||||||
// New returns an MinIO Admin client object.
|
// New returns an MinIO Admin client object.
|
||||||
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
madmClnt, err := madmin.New("your-minio.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user