user

package
v0.6.27 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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)),

	repository.NewRbacPolicyDataRepositoryImpl,
	wire.Bind(new(repository.RbacPolicyDataRepository), new(*repository.RbacPolicyDataRepositoryImpl)),
	repository.NewRbacRoleDataRepositoryImpl,
	wire.Bind(new(repository.RbacRoleDataRepository), new(*repository.RbacRoleDataRepositoryImpl)),
	repository.NewRbacDataCacheFactoryImpl,
	wire.Bind(new(repository.RbacDataCacheFactory), new(*repository.RbacDataCacheFactoryImpl)),

	NewRbacRoleRouterImpl,
	wire.Bind(new(RbacRoleRouter), new(*RbacRoleRouterImpl)),
	NewRbacRoleHandlerImpl,
	wire.Bind(new(RbacRoleRestHandler), new(*RbacRoleRestHandlerImpl)),
	user.NewRbacRoleServiceImpl,
	wire.Bind(new(user.RbacRoleService), new(*user.RbacRoleServiceImpl)),
)

Functions

This section is empty.

Types

type RbacRoleRestHandler added in v0.6.17

type RbacRoleRestHandler interface {
	GetAllDefaultRoles(w http.ResponseWriter, r *http.Request)
}

type RbacRoleRestHandlerImpl added in v0.6.17

type RbacRoleRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewRbacRoleHandlerImpl added in v0.6.17

func NewRbacRoleHandlerImpl(logger *zap.SugaredLogger,
	validator *validator.Validate, rbacRoleService user.RbacRoleService,
	userService user.UserService, enforcer casbin.Enforcer,
	enforcerUtil rbac.EnforcerUtil) *RbacRoleRestHandlerImpl

func (*RbacRoleRestHandlerImpl) GetAllDefaultRoles added in v0.6.17

func (handler *RbacRoleRestHandlerImpl) GetAllDefaultRoles(w http.ResponseWriter, r *http.Request)

type RbacRoleRouter added in v0.6.17

type RbacRoleRouter interface {
	InitRbacRoleRouter(rbacRoleRouter *mux.Router)
}

type RbacRoleRouterImpl added in v0.6.17

type RbacRoleRouterImpl struct {
	// contains filtered or unexported fields
}

func NewRbacRoleRouterImpl added in v0.6.17

func NewRbacRoleRouterImpl(logger *zap.SugaredLogger,
	validator *validator.Validate, rbacRoleRestHandler RbacRoleRestHandler) *RbacRoleRouterImpl

func (RbacRoleRouterImpl) InitRbacRoleRouter added in v0.6.17

func (router RbacRoleRouterImpl) InitRbacRoleRouter(rbacRoleRouter *mux.Router)

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)
	AuthVerificationV2(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, enforcer casbin.Enforcer) *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) AuthVerificationV2 added in v0.6.17

func (handler UserAuthHandlerImpl) AuthVerificationV2(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 UserAuthRouter interface {
	InitUserAuthRouter(router *mux.Router)
}

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 UserRouter interface {
	InitUserRouter(helmRouter *mux.Router)
}

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)

Jump to

Keyboard shortcuts

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