Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RBAC模块以及重构功能 #81

Open
cuisongliu opened this issue Mar 17, 2019 · 2 comments
Open

RBAC模块以及重构功能 #81

cuisongliu opened this issue Mar 17, 2019 · 2 comments
Assignees

Comments

@cuisongliu
Copy link
Collaborator

新增rbac模块

主要功能负责用户相关的鉴权等功能

  1. 提供主要接口在authenticate.go 实现Authenticate 接口
  2. 提供用户实体类在user.go 的UserInfo 结构体

重构代码

  1. 操作k8s相关类在tools/k8s_(svc,ns,screts).go 中
  2. 统一日志使用 logger.INFO logger.ERROR
  3. 尽量使用gotest进行单元测试保证代码正确性
  4. 使用golint测试代码是否ok。在fist目录下执行 golint ./... 即可
@dujiacheng
Copy link
Collaborator

@cuisongliu 老哥 gotest 是这个吗 https://github.com/cweill/gotests

@cuisongliu
Copy link
Collaborator Author

是这个。 @dujiacheng  最好拿ide更顺手。

@cuisongliu cuisongliu pinned this issue Mar 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants