service

package
v0.0.0-...-e16029c Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: MIT Imports: 16 Imported by: 0

README

Service

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPasswordMismatch = errors.New(400, "re-password mismatch", "两次密码不匹配")
)

ProviderSet is service providers.

Functions

This section is empty.

Types

type AppService

type AppService struct {
	pb.UnimplementedAppServer
	// contains filtered or unexported fields
}

AppService 应用服务 集群内应用抽象管理分组

func NewAppService

func NewAppService(logger log.Logger, app *biz.AppUsecase) *AppService

func (*AppService) Create

func (*AppService) List

func (*AppService) NamespaceAppList

type ConsoleService

type ConsoleService struct {
	pb.UnimplementedConsoleServer
	// contains filtered or unexported fields
}

func NewConsoleService

func NewConsoleService(logger log.Logger) *ConsoleService

type DiscoveryService

type DiscoveryService struct {
	pb.UnimplementedDiscoveryServer
	// contains filtered or unexported fields
}

func NewDiscoveryService

func NewDiscoveryService(logger log.Logger, client agent.AgentClient, appruntime *biz.AppRuntimeUsecase) *DiscoveryService

func (*DiscoveryService) KVGetValue

func (*DiscoveryService) KVListClusters

func (*DiscoveryService) KVListKeys

func (*DiscoveryService) KVUpdateHang

func (*DiscoveryService) OnlineServices

type NamespaceService

type NamespaceService struct {
	pb.UnimplementedNamespaceServer
	// contains filtered or unexported fields
}

func NewNamespaceService

func NewNamespaceService(logger log.Logger, usecase *biz.NamespaceUsecase) *NamespaceService

func (*NamespaceService) Create

func (*NamespaceService) Delete

func (*NamespaceService) Get

func (*NamespaceService) List

func (*NamespaceService) SimpleList

func (*NamespaceService) Update

type NodeService

type NodeService struct {
	pb.UnimplementedNodeServer
	// contains filtered or unexported fields
}

func NewNodeService

func NewNodeService(logger log.Logger, node *biz.NodeUsecase) *NodeService

func (*NodeService) Create

func (*NodeService) List

func (*NodeService) Update

type PermissionService

type PermissionService struct {
	pb.UnimplementedPermissionServer
	// contains filtered or unexported fields
}

func NewPermissionService

func NewPermissionService(usecase *biz.PermissionUsecase) *PermissionService

func (*PermissionService) CreatePermission

func (*PermissionService) DeletePermission

func (*PermissionService) GetPermission

func (*PermissionService) ListPermission

func (*PermissionService) UpdatePermission

type RoleService

type RoleService struct {
	pb.UnimplementedRoleServer
	// contains filtered or unexported fields
}

func NewRoleService

func NewRoleService(usecase *biz.RoleUsecase) *RoleService

func (*RoleService) BindPermission

func (*RoleService) CreateRole

func (s *RoleService) CreateRole(ctx context.Context, req *pb.CreateRoleRequest) (*pb.CreateRoleReply, error)

func (*RoleService) DeleteRole

func (s *RoleService) DeleteRole(ctx context.Context, req *pb.DeleteRoleRequest) (*pb.DeleteRoleReply, error)

func (*RoleService) GetRole

func (s *RoleService) GetRole(ctx context.Context, req *pb.GetRoleRequest) (*pb.GetRoleReply, error)

func (*RoleService) ListRole

func (s *RoleService) ListRole(ctx context.Context, req *pb.ListRoleRequest) (*pb.ListRoleReply, error)

func (*RoleService) UnbindPermission

func (*RoleService) UpdateRole

func (s *RoleService) UpdateRole(ctx context.Context, req *pb.UpdateRoleRequest) (*pb.UpdateRoleReply, error)

type UserService

type UserService struct {
	pb.UnimplementedUserServer
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(usecase *biz.UserUsecase, logger log.Logger) *UserService

func (*UserService) BindNamespace

func (s *UserService) BindNamespace(ctx context.Context, req *pb.BindNamespaceRequest) (*pb.BindNamespaceReply, error)

func (*UserService) BindRole

func (s *UserService) BindRole(ctx context.Context, req *pb.BindRoleRequest) (*pb.BindRoleReply, error)

func (*UserService) CreateUser

func (s *UserService) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (*pb.CreateUserReply, error)

func (*UserService) DeleteUser

func (s *UserService) DeleteUser(ctx context.Context, req *pb.DeleteUserRequest) (*pb.DeleteUserReply, error)

func (*UserService) GetUser

func (s *UserService) GetUser(ctx context.Context, req *pb.GetUserRequest) (*pb.GetUserReply, error)

func (*UserService) ListUser

func (s *UserService) ListUser(ctx context.Context, req *pb.ListUserRequest) (*pb.ListUserReply, error)

func (*UserService) UnbindNamespace

func (*UserService) UnbindRole

func (s *UserService) UnbindRole(ctx context.Context, req *pb.UnbindRoleRequest) (*pb.UnbindRoleReply, error)

func (*UserService) UpdateUser

func (s *UserService) UpdateUser(ctx context.Context, req *pb.UpdateUserRequest) (*pb.UpdateUserReply, error)

type ZoneService

type ZoneService struct {
	pb.UnimplementedZoneServer
	// contains filtered or unexported fields
}

func NewZoneService

func NewZoneService(logger log.Logger, zone *biz.ZoneUsecase) *ZoneService

func (*ZoneService) Create

func (*ZoneService) Delete

func (*ZoneService) Disable

func (*ZoneService) Get

func (*ZoneService) List

func (*ZoneService) SimpleList

func (s *ZoneService) SimpleList(ctx context.Context, req *pb.SimpleListRequest) (*pb.SimpleListReply, error)

func (*ZoneService) Update

Jump to

Keyboard shortcuts

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