Documentation ¶
Index ¶
- type AuthService
- func (s *AuthService) AuthorizeAnyBatch(ctx *rest.Contexts)
- func (s *AuthService) AuthorizeBatch(ctx *rest.Contexts)
- func (s *AuthService) BatchRegisterResourceCreatorAction(ctx *rest.Contexts)
- func (s *AuthService) GetNoAuthSkipUrl(ctx *rest.Contexts)
- func (s *AuthService) Healthz(req *restful.Request, resp *restful.Response)
- func (s *AuthService) ListAuthorizedResources(ctx *rest.Contexts)
- func (s *AuthService) PullResource(ctx *rest.Contexts)
- func (s *AuthService) RegisterResourceCreatorAction(ctx *rest.Contexts)
- func (s *AuthService) WebService() *restful.Container
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
}
func NewAuthService ¶
func NewAuthService(engine *backbone.Engine, iamClient client.Interface, lgc *logics.Logics, authorizer sdkauth.Authorizer) *AuthService
func (*AuthService) AuthorizeAnyBatch ¶
func (s *AuthService) AuthorizeAnyBatch(ctx *rest.Contexts)
AuthorizeAnyBatch works to check if a user has any authority for actions.
func (*AuthService) AuthorizeBatch ¶
func (s *AuthService) AuthorizeBatch(ctx *rest.Contexts)
AuthorizeBath works to check if a user has the authority to operate resources.
func (*AuthService) BatchRegisterResourceCreatorAction ¶
func (s *AuthService) BatchRegisterResourceCreatorAction(ctx *rest.Contexts)
BatchRegisterResourceCreatorAction batch registers iam resource instance so that creator will be authorized on related actions
func (*AuthService) GetNoAuthSkipUrl ¶
func (s *AuthService) GetNoAuthSkipUrl(ctx *rest.Contexts)
GetNoAuthSkipUrl returns the redirect url to iam for user to apply for specific authorizations
func (*AuthService) Healthz ¶
func (s *AuthService) Healthz(req *restful.Request, resp *restful.Response)
func (*AuthService) ListAuthorizedResources ¶
func (s *AuthService) ListAuthorizedResources(ctx *rest.Contexts)
ListAuthorizedResources returns all specified resources the user has the authority to operate.
func (*AuthService) PullResource ¶
func (s *AuthService) PullResource(ctx *rest.Contexts)
PullResource iam pull resource callback function, returns resource attributes or instances based on query condition
func (*AuthService) RegisterResourceCreatorAction ¶
func (s *AuthService) RegisterResourceCreatorAction(ctx *rest.Contexts)
RegisterResourceCreatorAction registers iam resource instance so that creator will be authorized on related actions
func (*AuthService) WebService ¶
func (s *AuthService) WebService() *restful.Container