service

package
v0.0.0-...-cb472e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 23 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL