user

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 25 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)),
	user2.NewUserAuthServiceImpl,
	wire.Bind(new(user2.UserAuthService), new(*user2.UserAuthServiceImpl)),
	repository2.NewUserAuthRepositoryImpl,
	wire.Bind(new(repository2.UserAuthRepository), new(*repository2.UserAuthRepositoryImpl)),
	repository2.NewDefaultAuthPolicyRepositoryImpl,
	wire.Bind(new(repository2.DefaultAuthPolicyRepository), new(*repository2.DefaultAuthPolicyRepositoryImpl)),
	repository2.NewDefaultAuthRoleRepositoryImpl,
	wire.Bind(new(repository2.DefaultAuthRoleRepository), new(*repository2.DefaultAuthRoleRepositoryImpl)),

	NewUserRouterImpl,
	wire.Bind(new(UserRouter), new(*UserRouterImpl)),
	NewUserRestHandlerImpl,
	wire.Bind(new(UserRestHandler), new(*UserRestHandlerImpl)),
	user2.NewUserServiceImpl,
	wire.Bind(new(user2.UserService), new(*user2.UserServiceImpl)),
	repository2.NewUserRepositoryImpl,
	wire.Bind(new(repository2.UserRepository), new(*repository2.UserRepositoryImpl)),
	user2.NewRoleGroupServiceImpl,
	wire.Bind(new(user2.RoleGroupService), new(*user2.RoleGroupServiceImpl)),
	repository2.NewRoleGroupRepositoryImpl,
	wire.Bind(new(repository2.RoleGroupRepository), new(*repository2.RoleGroupRepositoryImpl)),

	casbin.NewEnforcerImpl,
	wire.Bind(new(casbin.Enforcer), new(*casbin.EnforcerImpl)),
	casbin.Create, casbin.CreateV2,

	user2.NewUserCommonServiceImpl,
	wire.Bind(new(user2.UserCommonService), new(*user2.UserCommonServiceImpl)),

	authentication.NewUserAuthOidcHelperImpl,
	wire.Bind(new(authentication.UserAuthOidcHelper), new(*authentication.UserAuthOidcHelperImpl)),

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

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

Functions

This section is empty.

Types

type RbacRoleRestHandler

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

type RbacRoleRestHandlerImpl

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

func NewRbacRoleHandlerImpl

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

func (*RbacRoleRestHandlerImpl) GetAllDefaultRoles

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

type RbacRoleRouter

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

type RbacRoleRouterImpl

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

func NewRbacRoleRouterImpl

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

func (RbacRoleRouterImpl) InitRbacRoleRouter

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

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 authentication.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)
	GetAllV2(w http.ResponseWriter, r *http.Request)
	DeleteUser(w http.ResponseWriter, r *http.Request)
	GetAllDetailedUsers(w http.ResponseWriter, r *http.Request)
	BulkDeleteUsers(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)
	FetchRoleGroupsV2(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)
	BulkDeleteRoleGroups(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 user2.UserService, validator *validator.Validate,
	logger *zap.SugaredLogger, enforcer casbin.Enforcer, roleGroupService user2.RoleGroupService,
	userCommonService user2.UserCommonService) *UserRestHandlerImpl

func (UserRestHandlerImpl) BulkDeleteRoleGroups added in v0.6.29

func (handler UserRestHandlerImpl) BulkDeleteRoleGroups(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) BulkDeleteUsers added in v0.6.29

func (handler UserRestHandlerImpl) BulkDeleteUsers(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) CheckManagerAuth

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

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) FetchRoleGroupsV2 added in v0.6.29

func (handler UserRestHandlerImpl) FetchRoleGroupsV2(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) GetAll

func (handler UserRestHandlerImpl) GetAll(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) GetAllDetailedUsers

func (handler UserRestHandlerImpl) GetAllDetailedUsers(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) GetAllV2 added in v0.6.29

func (handler UserRestHandlerImpl) GetAllV2(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) GetById

func (handler UserRestHandlerImpl) GetById(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) GetRoleCacheDump

func (handler UserRestHandlerImpl) GetRoleCacheDump(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) InvalidateRoleCache

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

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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