Documentation
¶
Index ¶
- Variables
- type UserAuthHandler
- type UserAuthHandlerImpl
- func (handler UserAuthHandlerImpl) AddDefaultPolicyAndRoles(w http.ResponseWriter, r *http.Request)
- func (handler UserAuthHandlerImpl) AuthVerification(w http.ResponseWriter, r *http.Request)
- func (handler UserAuthHandlerImpl) CallbackHandler(w http.ResponseWriter, r *http.Request)
- func (handler UserAuthHandlerImpl) LoginHandler(w http.ResponseWriter, r *http.Request)
- func (handler UserAuthHandlerImpl) RefreshTokenHandler(w http.ResponseWriter, r *http.Request)
- type UserAuthRouter
- type UserAuthRouterImpl
- type UserRestHandler
- type UserRestHandlerImpl
- func (handler UserRestHandlerImpl) CheckManagerAuth(resource, token string, object string) bool
- func (handler UserRestHandlerImpl) CheckUserRoles(w http.ResponseWriter, r *http.Request)
- func (handler UserRestHandlerImpl) CreateRoleGroup(w http.ResponseWriter, r *http.Request)
- func (handler UserRestHandlerImpl) CreateUser(w http.ResponseWriter, r *http.Request)
- func (handler UserRestHandlerImpl) DeleteRoleGroup(w http.ResponseWriter, r *http.Request)
- func (handler UserRestHandlerImpl) DeleteUser(w http.ResponseWriter, r *http.Request)
- func (handler UserRestHandlerImpl) FetchDetailedRoleGroups(w http.ResponseWriter, r *http.Request)
- func (handler UserRestHandlerImpl) FetchRoleGroupById(w http.ResponseWriter, r *http.Request)
- func (handler UserRestHandlerImpl) FetchRoleGroups(w http.ResponseWriter, r *http.Request)
- func (handler UserRestHandlerImpl) FetchRoleGroupsByName(w http.ResponseWriter, r *http.Request)
- func (handler UserRestHandlerImpl) GetAll(w http.ResponseWriter, r *http.Request)
- func (handler UserRestHandlerImpl) GetAllDetailedUsers(w http.ResponseWriter, r *http.Request)
- func (handler UserRestHandlerImpl) GetById(w http.ResponseWriter, r *http.Request)
- func (handler UserRestHandlerImpl) GetRoleCacheDump(w http.ResponseWriter, r *http.Request)
- func (handler UserRestHandlerImpl) InvalidateRoleCache(w http.ResponseWriter, r *http.Request)
- func (handler UserRestHandlerImpl) SyncOrchestratorToCasbin(w http.ResponseWriter, r *http.Request)
- func (handler UserRestHandlerImpl) UpdateRoleGroup(w http.ResponseWriter, r *http.Request)
- func (handler UserRestHandlerImpl) UpdateTriggerPolicyForTerminalAccess(w http.ResponseWriter, r *http.Request)
- func (handler UserRestHandlerImpl) UpdateUser(w http.ResponseWriter, r *http.Request)
- type UserRouter
- type UserRouterImpl
Constants ¶
This section is empty.
Variables ¶
View Source
var SelfRegistrationWireSet = wire.NewSet( repository.NewSelfRegistrationRolesRepositoryImpl, wire.Bind(new(repository.SelfRegistrationRolesRepository), new(*repository.SelfRegistrationRolesRepositoryImpl)), user.NewSelfRegistrationRolesServiceImpl, wire.Bind(new(user.SelfRegistrationRolesService), new(*user.SelfRegistrationRolesServiceImpl)), )
View Source
var UserAuditWireSet = wire.NewSet( repository.NewUserAuditRepositoryImpl, wire.Bind(new(repository.UserAuditRepository), new(*repository.UserAuditRepositoryImpl)), user.NewUserAuditServiceImpl, wire.Bind(new(user.UserAuditService), new(*user.UserAuditServiceImpl)), )
View Source
var UserWireSet = wire.NewSet( UserAuditWireSet, NewUserAuthRouterImpl, wire.Bind(new(UserAuthRouter), new(*UserAuthRouterImpl)), NewUserAuthHandlerImpl, wire.Bind(new(UserAuthHandler), new(*UserAuthHandlerImpl)), user.NewUserAuthServiceImpl, wire.Bind(new(user.UserAuthService), new(*user.UserAuthServiceImpl)), repository.NewUserAuthRepositoryImpl, wire.Bind(new(repository.UserAuthRepository), new(*repository.UserAuthRepositoryImpl)), repository.NewDefaultAuthPolicyRepositoryImpl, wire.Bind(new(repository.DefaultAuthPolicyRepository), new(*repository.DefaultAuthPolicyRepositoryImpl)), repository.NewDefaultAuthRoleRepositoryImpl, wire.Bind(new(repository.DefaultAuthRoleRepository), new(*repository.DefaultAuthRoleRepositoryImpl)), NewUserRouterImpl, wire.Bind(new(UserRouter), new(*UserRouterImpl)), NewUserRestHandlerImpl, wire.Bind(new(UserRestHandler), new(*UserRestHandlerImpl)), user.NewUserServiceImpl, wire.Bind(new(user.UserService), new(*user.UserServiceImpl)), repository.NewUserRepositoryImpl, wire.Bind(new(repository.UserRepository), new(*repository.UserRepositoryImpl)), user.NewRoleGroupServiceImpl, wire.Bind(new(user.RoleGroupService), new(*user.RoleGroupServiceImpl)), repository.NewRoleGroupRepositoryImpl, wire.Bind(new(repository.RoleGroupRepository), new(*repository.RoleGroupRepositoryImpl)), casbin.NewEnforcerImpl, wire.Bind(new(casbin.Enforcer), new(*casbin.EnforcerImpl)), casbin.Create, user.NewUserCommonServiceImpl, wire.Bind(new(user.UserCommonService), new(*user.UserCommonServiceImpl)), auth.NewUserAuthOidcHelperImpl, wire.Bind(new(auth.UserAuthOidcHelper), new(*auth.UserAuthOidcHelperImpl)), )
Functions ¶
This section is empty.
Types ¶
type UserAuthHandler ¶
type UserAuthHandler interface { LoginHandler(w http.ResponseWriter, r *http.Request) CallbackHandler(w http.ResponseWriter, r *http.Request) RefreshTokenHandler(w http.ResponseWriter, r *http.Request) AddDefaultPolicyAndRoles(w http.ResponseWriter, r *http.Request) AuthVerification(w http.ResponseWriter, r *http.Request) }
type UserAuthHandlerImpl ¶
type UserAuthHandlerImpl struct {
// contains filtered or unexported fields
}
func NewUserAuthHandlerImpl ¶
func NewUserAuthHandlerImpl( userAuthService user.UserAuthService, validator *validator.Validate, logger *zap.SugaredLogger) *UserAuthHandlerImpl
func (UserAuthHandlerImpl) AddDefaultPolicyAndRoles ¶
func (handler UserAuthHandlerImpl) AddDefaultPolicyAndRoles(w http.ResponseWriter, r *http.Request)
func (UserAuthHandlerImpl) AuthVerification ¶
func (handler UserAuthHandlerImpl) AuthVerification(w http.ResponseWriter, r *http.Request)
func (UserAuthHandlerImpl) CallbackHandler ¶
func (handler UserAuthHandlerImpl) CallbackHandler(w http.ResponseWriter, r *http.Request)
func (UserAuthHandlerImpl) LoginHandler ¶
func (handler UserAuthHandlerImpl) LoginHandler(w http.ResponseWriter, r *http.Request)
func (UserAuthHandlerImpl) RefreshTokenHandler ¶
func (handler UserAuthHandlerImpl) RefreshTokenHandler(w http.ResponseWriter, r *http.Request)
type UserAuthRouter ¶
type UserAuthRouterImpl ¶
type UserAuthRouterImpl struct {
// contains filtered or unexported fields
}
func NewUserAuthRouterImpl ¶
func NewUserAuthRouterImpl(logger *zap.SugaredLogger, userAuthHandler UserAuthHandler, userAuthOidcHelper auth.UserAuthOidcHelper) *UserAuthRouterImpl
func (UserAuthRouterImpl) InitUserAuthRouter ¶
func (router UserAuthRouterImpl) InitUserAuthRouter(userAuthRouter *mux.Router)
type UserRestHandler ¶
type UserRestHandler interface { CreateUser(w http.ResponseWriter, r *http.Request) UpdateUser(w http.ResponseWriter, r *http.Request) GetById(w http.ResponseWriter, r *http.Request) GetAll(w http.ResponseWriter, r *http.Request) DeleteUser(w http.ResponseWriter, r *http.Request) GetAllDetailedUsers(w http.ResponseWriter, r *http.Request) FetchRoleGroupById(w http.ResponseWriter, r *http.Request) CreateRoleGroup(w http.ResponseWriter, r *http.Request) UpdateRoleGroup(w http.ResponseWriter, r *http.Request) FetchRoleGroups(w http.ResponseWriter, r *http.Request) FetchDetailedRoleGroups(w http.ResponseWriter, r *http.Request) FetchRoleGroupsByName(w http.ResponseWriter, r *http.Request) DeleteRoleGroup(w http.ResponseWriter, r *http.Request) CheckUserRoles(w http.ResponseWriter, r *http.Request) SyncOrchestratorToCasbin(w http.ResponseWriter, r *http.Request) UpdateTriggerPolicyForTerminalAccess(w http.ResponseWriter, r *http.Request) GetRoleCacheDump(w http.ResponseWriter, r *http.Request) InvalidateRoleCache(w http.ResponseWriter, r *http.Request) }
type UserRestHandlerImpl ¶
type UserRestHandlerImpl struct {
// contains filtered or unexported fields
}
func NewUserRestHandlerImpl ¶
func NewUserRestHandlerImpl(userService user.UserService, validator *validator.Validate, logger *zap.SugaredLogger, enforcer casbin.Enforcer, roleGroupService user.RoleGroupService, userCommonService user.UserCommonService) *UserRestHandlerImpl
func (UserRestHandlerImpl) CheckManagerAuth ¶ added in v0.6.4
func (handler UserRestHandlerImpl) CheckManagerAuth(resource, token string, object string) bool
func (UserRestHandlerImpl) CheckUserRoles ¶
func (handler UserRestHandlerImpl) CheckUserRoles(w http.ResponseWriter, r *http.Request)
func (UserRestHandlerImpl) CreateRoleGroup ¶
func (handler UserRestHandlerImpl) CreateRoleGroup(w http.ResponseWriter, r *http.Request)
func (UserRestHandlerImpl) CreateUser ¶
func (handler UserRestHandlerImpl) CreateUser(w http.ResponseWriter, r *http.Request)
func (UserRestHandlerImpl) DeleteRoleGroup ¶
func (handler UserRestHandlerImpl) DeleteRoleGroup(w http.ResponseWriter, r *http.Request)
func (UserRestHandlerImpl) DeleteUser ¶
func (handler UserRestHandlerImpl) DeleteUser(w http.ResponseWriter, r *http.Request)
func (UserRestHandlerImpl) FetchDetailedRoleGroups ¶ added in v0.5.3
func (handler UserRestHandlerImpl) FetchDetailedRoleGroups(w http.ResponseWriter, r *http.Request)
func (UserRestHandlerImpl) FetchRoleGroupById ¶
func (handler UserRestHandlerImpl) FetchRoleGroupById(w http.ResponseWriter, r *http.Request)
func (UserRestHandlerImpl) FetchRoleGroups ¶
func (handler UserRestHandlerImpl) FetchRoleGroups(w http.ResponseWriter, r *http.Request)
func (UserRestHandlerImpl) FetchRoleGroupsByName ¶
func (handler UserRestHandlerImpl) FetchRoleGroupsByName(w http.ResponseWriter, r *http.Request)
func (UserRestHandlerImpl) GetAll ¶
func (handler UserRestHandlerImpl) GetAll(w http.ResponseWriter, r *http.Request)
func (UserRestHandlerImpl) GetAllDetailedUsers ¶ added in v0.5.3
func (handler UserRestHandlerImpl) GetAllDetailedUsers(w http.ResponseWriter, r *http.Request)
func (UserRestHandlerImpl) GetById ¶
func (handler UserRestHandlerImpl) GetById(w http.ResponseWriter, r *http.Request)
func (UserRestHandlerImpl) GetRoleCacheDump ¶ added in v0.4.28
func (handler UserRestHandlerImpl) GetRoleCacheDump(w http.ResponseWriter, r *http.Request)
func (UserRestHandlerImpl) InvalidateRoleCache ¶ added in v0.4.28
func (handler UserRestHandlerImpl) InvalidateRoleCache(w http.ResponseWriter, r *http.Request)
func (UserRestHandlerImpl) SyncOrchestratorToCasbin ¶
func (handler UserRestHandlerImpl) SyncOrchestratorToCasbin(w http.ResponseWriter, r *http.Request)
func (UserRestHandlerImpl) UpdateRoleGroup ¶
func (handler UserRestHandlerImpl) UpdateRoleGroup(w http.ResponseWriter, r *http.Request)
func (UserRestHandlerImpl) UpdateTriggerPolicyForTerminalAccess ¶ added in v0.3.15
func (handler UserRestHandlerImpl) UpdateTriggerPolicyForTerminalAccess(w http.ResponseWriter, r *http.Request)
func (UserRestHandlerImpl) UpdateUser ¶
func (handler UserRestHandlerImpl) UpdateUser(w http.ResponseWriter, r *http.Request)
type UserRouter ¶
type UserRouterImpl ¶
type UserRouterImpl struct {
// contains filtered or unexported fields
}
func NewUserRouterImpl ¶
func NewUserRouterImpl(userRestHandler UserRestHandler) *UserRouterImpl
func (UserRouterImpl) InitUserRouter ¶
func (router UserRouterImpl) InitUserRouter(userAuthRouter *mux.Router)
Click to show internal directories.
Click to hide internal directories.