coreclient

package
v0.0.0-...-663e6fc Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiInfo

type ApiInfo = core.ApiInfo

type ApiListReq

type ApiListReq = core.ApiListReq

type ApiListResp

type ApiListResp = core.ApiListResp

type BaseIDResp

type BaseIDResp = core.BaseIDResp

type BaseMsg

type BaseMsg = core.BaseMsg

type BaseResp

type BaseResp = core.BaseResp

type BaseUUIDResp

type BaseUUIDResp = core.BaseUUIDResp

type CallbackReq

type CallbackReq = core.CallbackReq

type Core

type Core interface {
	// API management
	CreateApi(ctx context.Context, in *ApiInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	UpdateApi(ctx context.Context, in *ApiInfo, opts ...grpc.CallOption) (*BaseResp, error)
	GetApiList(ctx context.Context, in *ApiListReq, opts ...grpc.CallOption) (*ApiListResp, error)
	GetApiById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*ApiInfo, error)
	DeleteApi(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetMenuAuthority(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*RoleMenuAuthorityResp, error)
	CreateOrUpdateMenuAuthority(ctx context.Context, in *RoleMenuAuthorityReq, opts ...grpc.CallOption) (*BaseResp, error)
	InitDatabase(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BaseResp, error)
	// Department management
	CreateDepartment(ctx context.Context, in *DepartmentInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	UpdateDepartment(ctx context.Context, in *DepartmentInfo, opts ...grpc.CallOption) (*BaseResp, error)
	GetDepartmentList(ctx context.Context, in *DepartmentListReq, opts ...grpc.CallOption) (*DepartmentListResp, error)
	GetDepartmentById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*DepartmentInfo, error)
	DeleteDepartment(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	// Dictionary management
	CreateDictionary(ctx context.Context, in *DictionaryInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	UpdateDictionary(ctx context.Context, in *DictionaryInfo, opts ...grpc.CallOption) (*BaseResp, error)
	GetDictionaryList(ctx context.Context, in *DictionaryListReq, opts ...grpc.CallOption) (*DictionaryListResp, error)
	GetDictionaryById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*DictionaryInfo, error)
	DeleteDictionary(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	// DictionaryDetail management
	CreateDictionaryDetail(ctx context.Context, in *DictionaryDetailInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	UpdateDictionaryDetail(ctx context.Context, in *DictionaryDetailInfo, opts ...grpc.CallOption) (*BaseResp, error)
	GetDictionaryDetailList(ctx context.Context, in *DictionaryDetailListReq, opts ...grpc.CallOption) (*DictionaryDetailListResp, error)
	GetDictionaryDetailById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*DictionaryDetailInfo, error)
	DeleteDictionaryDetail(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetDictionaryDetailByDictionaryName(ctx context.Context, in *BaseMsg, opts ...grpc.CallOption) (*DictionaryDetailListResp, error)
	GetConfigMaps(ctx context.Context, in *GetConfigMapsReq, opts ...grpc.CallOption) (*GetConfigMapsResp, error)
	GetConfigMapDetail(ctx context.Context, in *GetConfigMapDetailReq, opts ...grpc.CallOption) (*GetConfigMapDetailResp, error)
	DeleteConfigMap(ctx context.Context, in *DeleteConfigMapReq, opts ...grpc.CallOption) (*DeleteConfigMapResp, error)
	UpdateConfigMap(ctx context.Context, in *UpdateConfigMapReq, opts ...grpc.CallOption) (*UpdateConfigMapResp, error)
	GetDeployments(ctx context.Context, in *GetDeploymentsReq, opts ...grpc.CallOption) (*GetDeploymentsResp, error)
	GetDeploymentDetail(ctx context.Context, in *GetDeploymentDetailReq, opts ...grpc.CallOption) (*GetDeploymentDetailResp, error)
	ScaleDeployment(ctx context.Context, in *ScaleDeploymentReq, opts ...grpc.CallOption) (*ScaleDeploymentResp, error)
	CreateDeployment(ctx context.Context, in *CreateDeploymentReq, opts ...grpc.CallOption) (*CreateDeploymentResp, error)
	DeleteDeployment(ctx context.Context, in *DeleteDeploymentReq, opts ...grpc.CallOption) (*DeleteDeploymentResp, error)
	RestartDeployment(ctx context.Context, in *RestartDeploymentReq, opts ...grpc.CallOption) (*RestartDeploymentResp, error)
	UpdateDeployment(ctx context.Context, in *UpdateDeploymentReq, opts ...grpc.CallOption) (*UpdateDeploymentResp, error)
	GetDeployNumPerNp(ctx context.Context, in *GetDeployNumPerNpReq, opts ...grpc.CallOption) (*GetDeployNumPerNpResp, error)
	GetNamespaces(ctx context.Context, in *GetNamespacesReq, opts ...grpc.CallOption) (*GetNamespacesResp, error)
	GetNamespaceDetail(ctx context.Context, in *GetNamespaceDetailReq, opts ...grpc.CallOption) (*GetNamespaceDetailResp, error)
	DeleteNamespace(ctx context.Context, in *DeleteNamespaceReq, opts ...grpc.CallOption) (*DeleteNamespaceResp, error)
	GetNodes(ctx context.Context, in *GetNodesReq, opts ...grpc.CallOption) (*GetNodesResp, error)
	GetNodeDetail(ctx context.Context, in *GetNodeDetailReq, opts ...grpc.CallOption) (*GetNodeDetailResp, error)
	GetPods(ctx context.Context, in *GetPodsReq, opts ...grpc.CallOption) (*GetPodsResp, error)
	GetPodDetail(ctx context.Context, in *GetPodDetailReq, opts ...grpc.CallOption) (*GetPodDetailResp, error)
	DeletePod(ctx context.Context, in *DeletePodReq, opts ...grpc.CallOption) (*DeletePodResp, error)
	UpdatePod(ctx context.Context, in *UpdatePodReq, opts ...grpc.CallOption) (*UpdatePodResp, error)
	GetPodContainer(ctx context.Context, in *GetPodContainerReq, opts ...grpc.CallOption) (*GetPodContainerResp, error)
	GetPodLog(ctx context.Context, in *GetPodLogReq, opts ...grpc.CallOption) (*GetPodLogResp, error)
	GetPodNumPerNp(ctx context.Context, in *GetPodNumPerNpReq, opts ...grpc.CallOption) (*GetPodNumPerNpResp, error)
	GetServices(ctx context.Context, in *GetServicesReq, opts ...grpc.CallOption) (*GetServicesResp, error)
	GetServiceDetail(ctx context.Context, in *GetServiceDetailReq, opts ...grpc.CallOption) (*GetServiceDetailResp, error)
	CreateService(ctx context.Context, in *CreateServiceReq, opts ...grpc.CallOption) (*CreateServiceResp, error)
	DeleteService(ctx context.Context, in *DeleteServiceReq, opts ...grpc.CallOption) (*DeleteServiceResp, error)
	UpdateService(ctx context.Context, in *UpdateServiceReq, opts ...grpc.CallOption) (*UpdateServiceResp, error)
	CreateMenu(ctx context.Context, in *MenuInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	UpdateMenu(ctx context.Context, in *MenuInfo, opts ...grpc.CallOption) (*BaseResp, error)
	DeleteMenu(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetMenuListByRole(ctx context.Context, in *BaseMsg, opts ...grpc.CallOption) (*MenuInfoList, error)
	GetMenuList(ctx context.Context, in *PageInfoReq, opts ...grpc.CallOption) (*MenuInfoList, error)
	// OauthProvider management
	CreateOauthProvider(ctx context.Context, in *OauthProviderInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	UpdateOauthProvider(ctx context.Context, in *OauthProviderInfo, opts ...grpc.CallOption) (*BaseResp, error)
	GetOauthProviderList(ctx context.Context, in *OauthProviderListReq, opts ...grpc.CallOption) (*OauthProviderListResp, error)
	GetOauthProviderById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*OauthProviderInfo, error)
	DeleteOauthProvider(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	OauthLogin(ctx context.Context, in *OauthLoginReq, opts ...grpc.CallOption) (*OauthRedirectResp, error)
	OauthCallback(ctx context.Context, in *CallbackReq, opts ...grpc.CallOption) (*UserInfo, error)
	// Position management
	CreatePosition(ctx context.Context, in *PositionInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	UpdatePosition(ctx context.Context, in *PositionInfo, opts ...grpc.CallOption) (*BaseResp, error)
	GetPositionList(ctx context.Context, in *PositionListReq, opts ...grpc.CallOption) (*PositionListResp, error)
	GetPositionById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*PositionInfo, error)
	DeletePosition(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	// Role management
	CreateRole(ctx context.Context, in *RoleInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	UpdateRole(ctx context.Context, in *RoleInfo, opts ...grpc.CallOption) (*BaseResp, error)
	GetRoleList(ctx context.Context, in *RoleListReq, opts ...grpc.CallOption) (*RoleListResp, error)
	GetRoleById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*RoleInfo, error)
	DeleteRole(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	// Token management
	CreateToken(ctx context.Context, in *TokenInfo, opts ...grpc.CallOption) (*BaseUUIDResp, error)
	DeleteToken(ctx context.Context, in *UUIDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetTokenList(ctx context.Context, in *TokenListReq, opts ...grpc.CallOption) (*TokenListResp, error)
	GetTokenById(ctx context.Context, in *UUIDReq, opts ...grpc.CallOption) (*TokenInfo, error)
	BlockUserAllToken(ctx context.Context, in *UUIDReq, opts ...grpc.CallOption) (*BaseResp, error)
	UpdateToken(ctx context.Context, in *TokenInfo, opts ...grpc.CallOption) (*BaseResp, error)
	// User management
	CreateUser(ctx context.Context, in *UserInfo, opts ...grpc.CallOption) (*BaseUUIDResp, error)
	UpdateUser(ctx context.Context, in *UserInfo, opts ...grpc.CallOption) (*BaseResp, error)
	GetUserList(ctx context.Context, in *UserListReq, opts ...grpc.CallOption) (*UserListResp, error)
	GetUserById(ctx context.Context, in *UUIDReq, opts ...grpc.CallOption) (*UserInfo, error)
	GetUserByUsername(ctx context.Context, in *UsernameReq, opts ...grpc.CallOption) (*UserInfo, error)
	DeleteUser(ctx context.Context, in *UUIDsReq, opts ...grpc.CallOption) (*BaseResp, error)
}

func NewCore

func NewCore(cli zrpc.Client) Core

type CreateDeploymentReq

type CreateDeploymentReq = core.CreateDeploymentReq

type CreateDeploymentResp

type CreateDeploymentResp = core.CreateDeploymentResp

type CreateServiceReq

type CreateServiceReq = core.CreateServiceReq

type CreateServiceResp

type CreateServiceResp = core.CreateServiceResp

type DeleteConfigMapReq

type DeleteConfigMapReq = core.DeleteConfigMapReq

type DeleteConfigMapResp

type DeleteConfigMapResp = core.DeleteConfigMapResp

type DeleteDeploymentReq

type DeleteDeploymentReq = core.DeleteDeploymentReq

type DeleteDeploymentResp

type DeleteDeploymentResp = core.DeleteDeploymentResp

type DeleteNamespaceReq

type DeleteNamespaceReq = core.DeleteNamespaceReq

type DeleteNamespaceResp

type DeleteNamespaceResp = core.DeleteNamespaceResp

type DeletePodReq

type DeletePodReq = core.DeletePodReq

type DeletePodResp

type DeletePodResp = core.DeletePodResp

type DeleteServiceReq

type DeleteServiceReq = core.DeleteServiceReq

type DeleteServiceResp

type DeleteServiceResp = core.DeleteServiceResp

type DepartmentInfo

type DepartmentInfo = core.DepartmentInfo

type DepartmentListReq

type DepartmentListReq = core.DepartmentListReq

type DepartmentListResp

type DepartmentListResp = core.DepartmentListResp

type DictionaryDetailInfo

type DictionaryDetailInfo = core.DictionaryDetailInfo

type DictionaryDetailListReq

type DictionaryDetailListReq = core.DictionaryDetailListReq

type DictionaryDetailListResp

type DictionaryDetailListResp = core.DictionaryDetailListResp

type DictionaryInfo

type DictionaryInfo = core.DictionaryInfo

type DictionaryListReq

type DictionaryListReq = core.DictionaryListReq

type DictionaryListResp

type DictionaryListResp = core.DictionaryListResp

type Empty

type Empty = core.Empty

type GetConfigMapDetailReq

type GetConfigMapDetailReq = core.GetConfigMapDetailReq

type GetConfigMapDetailResp

type GetConfigMapDetailResp = core.GetConfigMapDetailResp

type GetConfigMapsData

type GetConfigMapsData = core.GetConfigMapsData

type GetConfigMapsReq

type GetConfigMapsReq = core.GetConfigMapsReq

type GetConfigMapsResp

type GetConfigMapsResp = core.GetConfigMapsResp

type GetDeployNumPerNpData

type GetDeployNumPerNpData = core.GetDeployNumPerNpData

type GetDeployNumPerNpReq

type GetDeployNumPerNpReq = core.GetDeployNumPerNpReq

type GetDeployNumPerNpResp

type GetDeployNumPerNpResp = core.GetDeployNumPerNpResp

type GetDeploymentDetailReq

type GetDeploymentDetailReq = core.GetDeploymentDetailReq

type GetDeploymentDetailResp

type GetDeploymentDetailResp = core.GetDeploymentDetailResp

type GetDeploymentsData

type GetDeploymentsData = core.GetDeploymentsData

type GetDeploymentsReq

type GetDeploymentsReq = core.GetDeploymentsReq

type GetDeploymentsResp

type GetDeploymentsResp = core.GetDeploymentsResp

type GetNamespaceDetailData

type GetNamespaceDetailData = core.GetNamespaceDetailData

type GetNamespaceDetailReq

type GetNamespaceDetailReq = core.GetNamespaceDetailReq

type GetNamespaceDetailResp

type GetNamespaceDetailResp = core.GetNamespaceDetailResp

type GetNamespacesData

type GetNamespacesData = core.GetNamespacesData

type GetNamespacesReq

type GetNamespacesReq = core.GetNamespacesReq

type GetNamespacesResp

type GetNamespacesResp = core.GetNamespacesResp

type GetNodeDetailData

type GetNodeDetailData = core.GetNodeDetailData

type GetNodeDetailReq

type GetNodeDetailReq = core.GetNodeDetailReq

type GetNodeDetailResp

type GetNodeDetailResp = core.GetNodeDetailResp

type GetNodesData

type GetNodesData = core.GetNodesData

type GetNodesReq

type GetNodesReq = core.GetNodesReq

type GetNodesResp

type GetNodesResp = core.GetNodesResp

type GetPodContainerReq

type GetPodContainerReq = core.GetPodContainerReq

type GetPodContainerResp

type GetPodContainerResp = core.GetPodContainerResp

type GetPodDetailReq

type GetPodDetailReq = core.GetPodDetailReq

type GetPodDetailResp

type GetPodDetailResp = core.GetPodDetailResp

type GetPodLogReq

type GetPodLogReq = core.GetPodLogReq

type GetPodLogResp

type GetPodLogResp = core.GetPodLogResp

type GetPodNumPerNpData

type GetPodNumPerNpData = core.GetPodNumPerNpData

type GetPodNumPerNpReq

type GetPodNumPerNpReq = core.GetPodNumPerNpReq

type GetPodNumPerNpResp

type GetPodNumPerNpResp = core.GetPodNumPerNpResp

type GetPodsData

type GetPodsData = core.GetPodsData

type GetPodsReq

type GetPodsReq = core.GetPodsReq

type GetPodsResp

type GetPodsResp = core.GetPodsResp

type GetServiceDetailReq

type GetServiceDetailReq = core.GetServiceDetailReq

type GetServiceDetailResp

type GetServiceDetailResp = core.GetServiceDetailResp

type GetServicesData

type GetServicesData = core.GetServicesData

type GetServicesReq

type GetServicesReq = core.GetServicesReq

type GetServicesResp

type GetServicesResp = core.GetServicesResp

type IDReq

type IDReq = core.IDReq

type IDsReq

type IDsReq = core.IDsReq
type MenuInfo = core.MenuInfo
type MenuInfoList = core.MenuInfoList
type MenuRoleInfo = core.MenuRoleInfo
type MenuRoleListResp = core.MenuRoleListResp

type Meta

type Meta = core.Meta

type OauthLoginReq

type OauthLoginReq = core.OauthLoginReq

type OauthProviderInfo

type OauthProviderInfo = core.OauthProviderInfo

type OauthProviderListReq

type OauthProviderListReq = core.OauthProviderListReq

type OauthProviderListResp

type OauthProviderListResp = core.OauthProviderListResp

type OauthRedirectResp

type OauthRedirectResp = core.OauthRedirectResp

type PageInfoReq

type PageInfoReq = core.PageInfoReq

type PositionInfo

type PositionInfo = core.PositionInfo

type PositionListReq

type PositionListReq = core.PositionListReq

type PositionListResp

type PositionListResp = core.PositionListResp

type RestartDeploymentReq

type RestartDeploymentReq = core.RestartDeploymentReq

type RestartDeploymentResp

type RestartDeploymentResp = core.RestartDeploymentResp

type RoleInfo

type RoleInfo = core.RoleInfo

type RoleListReq

type RoleListReq = core.RoleListReq

type RoleListResp

type RoleListResp = core.RoleListResp

type RoleMenuAuthorityReq

type RoleMenuAuthorityReq = core.RoleMenuAuthorityReq

type RoleMenuAuthorityResp

type RoleMenuAuthorityResp = core.RoleMenuAuthorityResp

type ScaleDeploymentReq

type ScaleDeploymentReq = core.ScaleDeploymentReq

type ScaleDeploymentResp

type ScaleDeploymentResp = core.ScaleDeploymentResp

type TokenInfo

type TokenInfo = core.TokenInfo

type TokenListReq

type TokenListReq = core.TokenListReq

type TokenListResp

type TokenListResp = core.TokenListResp

type UUIDReq

type UUIDReq = core.UUIDReq

type UUIDsReq

type UUIDsReq = core.UUIDsReq

type UpdateConfigMapReq

type UpdateConfigMapReq = core.UpdateConfigMapReq

type UpdateConfigMapResp

type UpdateConfigMapResp = core.UpdateConfigMapResp

type UpdateDeploymentReq

type UpdateDeploymentReq = core.UpdateDeploymentReq

type UpdateDeploymentResp

type UpdateDeploymentResp = core.UpdateDeploymentResp

type UpdatePodReq

type UpdatePodReq = core.UpdatePodReq

type UpdatePodResp

type UpdatePodResp = core.UpdatePodResp

type UpdateServiceReq

type UpdateServiceReq = core.UpdateServiceReq

type UpdateServiceResp

type UpdateServiceResp = core.UpdateServiceResp

type UserInfo

type UserInfo = core.UserInfo

type UserListReq

type UserListReq = core.UserListReq

type UserListResp

type UserListResp = core.UserListResp

type UsernameReq

type UsernameReq = core.UsernameReq

Jump to

Keyboard shortcuts

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