You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ make swagger-gen
20
20
21
21
This will update all the necessary code.
22
22
23
-
`./restapi/configure_console.go` is a file that contains the handlers to be used by the application, here is the only place where we need to update our code to support the new apis. This file is not affected when running the swagger generator and it is safe to edit.
23
+
`./restapi/configure_mcs.go` is a file that contains the handlers to be used by the application, here is the only place where we need to update our code to support the new apis. This file is not affected when running the swagger generator and it is safe to edit.
24
24
25
25
## Unit Tests
26
26
`./restapi/handlers_test.go` needs to be updated with the proper tests for the new api.
Pull requests can be created via GitHub. Refer to [this document](https://help.github.com/articles/creating-a-pull-request/) for detailed steps on how to create a pull request. After a Pull Request gets peer reviewed and approved, it will be merged.
48
48
49
49
## FAQs
50
-
### How does ``console`` manages dependencies?
50
+
### How does ``mcs`` manages dependencies?
51
51
``MinIO`` uses `go mod` to manage its dependencies.
52
52
- Run `go get foo/bar` in the source folder to add the dependency to `go.mod` file.
53
53
54
54
To remove a dependency
55
55
- Edit your code and remove the import reference.
56
56
- Run `go mod tidy` in the source folder to remove dependency from `go.mod` file.
57
57
58
-
### What are the coding guidelines for console?
59
-
``console`` is fully conformant with Golang style. Refer: [Effective Go](https://github.com/golang/go/wiki/CodeReviewComments) article from Golang project. If you observe offending code, please feel free to send a pull request or ping us on [Slack](https://slack.min.io).
58
+
### What are the coding guidelines for mcs?
59
+
``mcs`` is fully conformant with Golang style. Refer: [Effective Go](https://github.com/golang/go/wiki/CodeReviewComments) article from Golang project. If you observe offending code, please feel free to send a pull request or ping us on [Slack](https://slack.min.io).
$ mc admin policy add myminio consoleAdmin consoleAdmin.json
48
+
$ mc admin policy add myminio mcsAdmin mcsAdmin.json
49
49
```
50
50
51
-
3. Set the policy for the new `console` user
51
+
3. Set the policy for the new `mcs` user
52
52
53
53
```
54
-
$ mc admin policy set myminio consoleAdmin user=console
54
+
$ mc admin policy set myminio mcsAdmin user=mcs
55
55
```
56
56
57
57
58
58
### Note
59
-
Additionally, you can create policies to limit the privileges for `console` users, for example, if you want the user to only have access to dashboard, buckets, notifications and watch page, the policy should look like this:
59
+
Additionally, you can create policies to limit the privileges for `mcs` users, for example, if you want the user to only have access to dashboard, buckets, notifications and watch page, the policy should look like this:
60
60
```
61
61
{
62
62
"Version": "2012-10-17",
@@ -97,34 +97,34 @@ Additionally, you can create policies to limit the privileges for `console` user
0 commit comments