Documentation ¶
Overview ¶
Package auth NOTES
Index ¶
- type AuthService
- func (as *AuthService) Authorize(kt *kit.Kit, res *meta.ResourceAttribute) (bool, error)
- func (as *AuthService) CanMatchCI(kt *kit.Kit, bizID uint32, app string, token string, path string, name string) (bool, error)
- func (as *AuthService) GetCred(kt *kit.Kit, bizID uint32, token string) (*types.CredentialCache, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
AuthService defines auth related operations.
func (*AuthService) Authorize ¶
func (as *AuthService) Authorize(kt *kit.Kit, res *meta.ResourceAttribute) (bool, error)
Authorize if user has permission to the bscp resource.
func (*AuthService) CanMatchCI ¶
func (as *AuthService) CanMatchCI(kt *kit.Kit, bizID uint32, app string, token string, path string, name string) (bool, error)
CanMatchCI if credential can match the config item.
func (*AuthService) GetCred ¶
func (as *AuthService) GetCred(kt *kit.Kit, bizID uint32, token string) (*types.CredentialCache, error)
GetCred 获取凭证配置
Click to show internal directories.
Click to hide internal directories.