Documentation ¶
Overview ¶
Package endpoints 定义所有的 route handle.
Index ¶
- Constants
- func GetImage(w http.ResponseWriter, r *http.Request)
- func GetUserInfo(r *http.Request) (string, uint64, error)
- type Endpoints
- func (e *Endpoints) BatchCreateAudits(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) BatchCreateErrorLog(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CheckPermission(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e Endpoints) CountAppByProID(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CountMembersWithoutExtraByScope(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateApplication(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateApprove(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateAudits(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateLabel(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateMBox(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateMemberByInviteCode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateNotice(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateNotify(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateNotifyHistory(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateOrUpdateErrorLog(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateOrUpdateMember(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateProjectWorkSpace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateReview(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateReviewUser(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) DBClient() *dao.DBClient
- func (e *Endpoints) DeleteApplication(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) DeleteLabel(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) DeleteMember(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) DeleteNotice(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) DeleteNotify(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) DeleteNotifySource(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) DeleteProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) DeleteProjectWorkSpace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) DestroyMember(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ExportExcelAudit(ctx context.Context, w http.ResponseWriter, r *http.Request, ...) (err error)
- func (e *Endpoints) FuzzyQueryNotifiesBySource(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetAllNamespaces(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetAllOrganizational(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetAllProjects(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e Endpoints) GetAppIDByNames(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetApplication(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetApprove(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetAuditsSettings(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetAuthorityByUserId(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetCurrentUser(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetFunctions(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetLabel(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetLicense(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetLocale(request *http.Request) *i18n.LocaleResource
- func (e *Endpoints) GetMBox(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetMBoxStats(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetMemberByToken(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetMemberByUserAndScope(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetModelProjectsMap(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetNSInfo(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetNamespacesBelongsTo(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetNotify(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetProjectListByStates(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetProjectQuota(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetProjectWorkSpace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetReviewByTaskId(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetReviewsBySponsorId(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetReviewsByUserId(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetSubscribes(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetUcUserID(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetWorkspaceQuota(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) Health(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListActivity(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e Endpoints) ListAppTemplates(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListApplication(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListApproves(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListAudits(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListByNamesAndProjectID(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListLabel(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListLabelByIDs(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListMeberLabels(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListMember(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListMemberRoles(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListMemberRolesByUser(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListMyApplication(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListMyProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListMyProjectIDs(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListNotice(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListProjectResourceUsage(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListPublicProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListQuotaRecords(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListScopeManagersByScopeID(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListScopeRole(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListUser(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) NotifyDisable(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) NotifyEnable(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) OneClickRead(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e Endpoints) PinApplication(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) PublishNotice(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) PutAuditsSettings(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) QueryMBox(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) QueryNotifies(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) QueryNotifiesBySource(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) QueryNotifyHistories(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) QueryNotifyItems(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ReferCluster(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) Routes() []httpserver.Endpoint
- func (e *Endpoints) ScopeRoleAccess(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) SearchUser(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) SetFunctions(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) SetMBoxReadStatus(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) StateCheckPermission(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) Subscribe(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e Endpoints) UnPinApplication(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UnSubscribe(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UnpublishNotice(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UpdateApplication(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UpdateApproval(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UpdateApprove(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UpdateLabel(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UpdateMemberUserInfo(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UpdateNotice(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UpdateNotify(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UpdateNotifyItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UpdateProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UpdateProjectActiveTime(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UpdateProjectWorkSpace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UploadImage(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UserSvc() *user.User
- type Option
- func WithActivity(activity *activity.Activity) Option
- func WithApp(app *application.Application) Option
- func WithApprove(approve *approve.Approve) Option
- func WithAudit(audit *audit.Audit) Option
- func WithBundle(bdl *bundle.Bundle) Option
- func WithDBClient(db *dao.DBClient) Option
- func WithErrorBox(errorbox *errorbox.ErrorBox) Option
- func WithEtcdStore(etcdStore *etcd.Store) Option
- func WithJSONStore(store jsonstore.JsonStore) Option
- func WithLabel(label *label.Label) Option
- func WithLicense(license *license.License) Option
- func WithMBox(mbox *mbox.MBox) Option
- func WithManualReview(ManualReview *manual_review.ManualReview) Option
- func WithMember(member *member.Member) Option
- func WithNotice(notice *notice.Notice) Option
- func WithNotify(notifyGroup *notify.NotifyGroup) Option
- func WithOSSClient(client *oss.Client) Option
- func WithOrg(org org.Interface) Option
- func WithPermission(permission *permission.Permission) Option
- func WithProject(project *project.Project) Option
- func WithQueryStringDecoder(decoder *schema.Decoder) Option
- func WithSubscribe(sub *subscribe.Subscribe) Option
- func WithTokenSvc(tokenService tokenpb.TokenServiceServer) Option
- func WithUCClient(uc userpb.UserServiceServer) Option
- func WithUserSvc(svc *user.User) Option
Constants ¶
const ( // Private 私有 Private = "private" // Public 公开 Public = "public" // All 全部 All = "" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Endpoints ¶
type Endpoints struct { ManualReview *manual_review.ManualReview // contains filtered or unexported fields }
Endpoints 定义 endpoint 方法
func (*Endpoints) BatchCreateAudits ¶
func (e *Endpoints) BatchCreateAudits(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
BatchCreateAudits 批量创建审计
func (*Endpoints) BatchCreateErrorLog ¶
func (e *Endpoints) BatchCreateErrorLog(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
BatchCreateErrorLog 批量记录错误日志
func (*Endpoints) CheckPermission ¶
func (e *Endpoints) CheckPermission(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
CheckPermission 鉴权
func (Endpoints) CountAppByProID ¶
func (e Endpoints) CountAppByProID(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
CountAppByProID count app by proID
func (*Endpoints) CountMembersWithoutExtraByScope ¶
func (e *Endpoints) CountMembersWithoutExtraByScope(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
CountMembersWithoutExtraByScope .
func (*Endpoints) CreateApplication ¶
func (e *Endpoints) CreateApplication(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
CreateApplication 创建应用
func (*Endpoints) CreateApprove ¶
func (e *Endpoints) CreateApprove(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
CreateApprove 创建审批流程
func (*Endpoints) CreateAudits ¶
func (e *Endpoints) CreateAudits(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
CreateAudits 创建审计事件
func (*Endpoints) CreateLabel ¶
func (e *Endpoints) CreateLabel(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
CreateLabel 创建标签
func (*Endpoints) CreateMBox ¶
func (e *Endpoints) CreateMBox(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
CreateMBox 创建站内信 内部接口
func (*Endpoints) CreateMemberByInviteCode ¶
func (e *Endpoints) CreateMemberByInviteCode(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
CreateMemberByInviteCode 通过邀请验证码添加成员
func (*Endpoints) CreateNotice ¶
func (e *Endpoints) CreateNotice(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
CreateNotice 创建平台公告
func (*Endpoints) CreateNotify ¶
func (e *Endpoints) CreateNotify(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
CreateNotify 创建通知
func (*Endpoints) CreateNotifyHistory ¶
func (e *Endpoints) CreateNotifyHistory(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
CreateNotifyHistory 创建通知发送历史
func (*Endpoints) CreateOrUpdateErrorLog ¶
func (e *Endpoints) CreateOrUpdateErrorLog(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
CreateOrUpdateErrorLog 记录或更新错误日志
func (*Endpoints) CreateOrUpdateMember ¶
func (e *Endpoints) CreateOrUpdateMember(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
CreateOrUpdateMember 添加成员/修改成员角色
func (*Endpoints) CreateProject ¶
func (e *Endpoints) CreateProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
CreateProject 创建项目
func (*Endpoints) CreateProjectWorkSpace ¶
func (e *Endpoints) CreateProjectWorkSpace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
CreateProjectWorkSpace 创建 project workspace abilities
func (*Endpoints) CreateReview ¶
func (*Endpoints) CreateReviewUser ¶
func (*Endpoints) DeleteApplication ¶
func (e *Endpoints) DeleteApplication(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
DeleteApplication 删除应用
func (*Endpoints) DeleteLabel ¶
func (e *Endpoints) DeleteLabel(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
DeleteLabel 删除标签
func (*Endpoints) DeleteMember ¶
func (e *Endpoints) DeleteMember(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
DeleteMember 移除成员
func (*Endpoints) DeleteNotice ¶
func (e *Endpoints) DeleteNotice(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
DeleteNotice 删除公告
func (*Endpoints) DeleteNotify ¶
func (e *Endpoints) DeleteNotify(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
DeleteNotify 删除通知
func (*Endpoints) DeleteNotifySource ¶
func (e *Endpoints) DeleteNotifySource(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
DeleteNotifySource 删除通知源
func (*Endpoints) DeleteProject ¶
func (e *Endpoints) DeleteProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
DeleteProject 删除项目
func (*Endpoints) DeleteProjectWorkSpace ¶
func (e *Endpoints) DeleteProjectWorkSpace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
DeleteProjectWorkSpace 通过 project_id 和 workspace 删除对应的 project workspace abilities
func (*Endpoints) DestroyMember ¶
func (e *Endpoints) DestroyMember(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
DestroyMember 删除用户的一切成员信息
func (*Endpoints) ExportExcelAudit ¶
func (e *Endpoints) ExportExcelAudit(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) (err error)
ExportExcelAudit 导出审计到 excel
func (*Endpoints) FuzzyQueryNotifiesBySource ¶
func (e *Endpoints) FuzzyQueryNotifiesBySource(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
FuzzyQueryNotifiesBySource 模糊查询根据source关联的通知
func (*Endpoints) GetAllNamespaces ¶
func (e *Endpoints) GetAllNamespaces(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetAllNamespaces get all namespaces in target project workspace
func (*Endpoints) GetAllOrganizational ¶
func (e *Endpoints) GetAllOrganizational(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
GetAllOrganizational 获取所有的人员组织架构
func (*Endpoints) GetAllProjects ¶
func (e *Endpoints) GetAllProjects(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetAllProjects get all projects
func (Endpoints) GetAppIDByNames ¶
func (e Endpoints) GetAppIDByNames(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetAppIDByNames 根据应用名称批量获取应用ID
func (*Endpoints) GetApplication ¶
func (e *Endpoints) GetApplication(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
GetApplication 获取应用详情
func (*Endpoints) GetApprove ¶
func (e *Endpoints) GetApprove(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetApprove 获取Approve详情
func (*Endpoints) GetAuditsSettings ¶
func (e *Endpoints) GetAuditsSettings(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
GetAuditsSettings 获取企业设置事件清理周期
func (*Endpoints) GetAuthorityByUserId ¶
func (*Endpoints) GetCurrentUser ¶
func (e *Endpoints) GetCurrentUser(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
GetCurrentUser 获取当前登录用户信息
func (*Endpoints) GetFunctions ¶
func (e *Endpoints) GetFunctions(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetFunctions 获取项目功能开关配置
func (*Endpoints) GetLabel ¶
func (e *Endpoints) GetLabel(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
GetLabel 通过id获取label
func (*Endpoints) GetLicense ¶
func (e *Endpoints) GetLicense(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
GetLicense 获取授权情况
func (*Endpoints) GetLocale ¶
func (e *Endpoints) GetLocale(request *http.Request) *i18n.LocaleResource
GetLocale 获取本地化资源
func (*Endpoints) GetMBox ¶
func (e *Endpoints) GetMBox(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
GetMBox 获取站内信详情
func (*Endpoints) GetMBoxStats ¶
func (e *Endpoints) GetMBoxStats(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
GetMBoxStats 查询站内信统计信息
func (*Endpoints) GetMemberByToken ¶
func (e *Endpoints) GetMemberByToken(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
GetMemberByToken 根据token查询用户
func (*Endpoints) GetMemberByUserAndScope ¶
func (e *Endpoints) GetMemberByUserAndScope(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetMemberByUserAndScope get member by user and scope
func (*Endpoints) GetModelProjectsMap ¶
func (*Endpoints) GetNSInfo ¶
func (e *Endpoints) GetNSInfo(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetNSInfo 获取项目级命名空间信息
func (*Endpoints) GetNamespacesBelongsTo ¶
func (*Endpoints) GetNotify ¶
func (e *Endpoints) GetNotify(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
GetNotify 获取通知详情
func (*Endpoints) GetProject ¶
func (e *Endpoints) GetProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetProject 获取项目详情
func (*Endpoints) GetProjectListByStates ¶
func (e *Endpoints) GetProjectListByStates(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetProjectListByStates list projects by states
func (*Endpoints) GetProjectQuota ¶
func (*Endpoints) GetProjectWorkSpace ¶
func (e *Endpoints) GetProjectWorkSpace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetProjectWorkSpace 通过 project_id 和 workspace 获取 project workspace abilities
func (*Endpoints) GetReviewByTaskId ¶
func (*Endpoints) GetReviewsBySponsorId ¶
func (*Endpoints) GetReviewsByUserId ¶
func (*Endpoints) GetSubscribes ¶
func (*Endpoints) GetUcUserID ¶
func (*Endpoints) GetWorkspaceQuota ¶
func (*Endpoints) Health ¶
func (e *Endpoints) Health(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
Health Component health check interface
func (*Endpoints) ListActivity ¶
func (e *Endpoints) ListActivity(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
ListActivity 活动列表
func (Endpoints) ListAppTemplates ¶
func (e Endpoints) ListAppTemplates(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
ListAppTemplates 列出应用模板
func (*Endpoints) ListApplication ¶
func (e *Endpoints) ListApplication(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
ListApplication 所有应用列表
func (*Endpoints) ListApproves ¶
func (e *Endpoints) ListApproves(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
ListApproves 所有Approve列表
func (*Endpoints) ListAudits ¶
func (e *Endpoints) ListAudits(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
ListAudits 查看所有审计事件
func (*Endpoints) ListByNamesAndProjectID ¶
func (e *Endpoints) ListByNamesAndProjectID(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
ListByNamesAndProjectID list label by names and projectID
func (*Endpoints) ListLabel ¶
func (e *Endpoints) ListLabel(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
ListLabel 获取标签列表
func (*Endpoints) ListLabelByIDs ¶
func (e *Endpoints) ListLabelByIDs(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
ListLabelByIDs list label by ids
func (*Endpoints) ListMeberLabels ¶
func (e *Endpoints) ListMeberLabels(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
ListMeberLabels 查询dice所有的成员标签
func (*Endpoints) ListMember ¶
func (e *Endpoints) ListMember(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
ListMember 获取成员列表/查询成员
func (*Endpoints) ListMemberRoles ¶
func (e *Endpoints) ListMemberRoles(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
ListMemberRoles 获取企业下面的角色列表
func (*Endpoints) ListMemberRolesByUser ¶
func (e *Endpoints) ListMemberRolesByUser(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
ListMemberRolesByUser 查看某个用户的角色
func (*Endpoints) ListMyApplication ¶
func (e *Endpoints) ListMyApplication(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
ListMyApplication 我的应用列表
func (*Endpoints) ListMyProject ¶
func (e *Endpoints) ListMyProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
ListMyProject 我的项目列表
func (*Endpoints) ListMyProjectIDs ¶
func (e *Endpoints) ListMyProjectIDs(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
ListMyProjectIDs list my projectIDs
func (*Endpoints) ListNotice ¶
func (e *Endpoints) ListNotice(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
ListNotice 公告列表
func (*Endpoints) ListProject ¶
func (e *Endpoints) ListProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
ListProject 所有项目列表
func (*Endpoints) ListProjectResourceUsage ¶
func (e *Endpoints) ListProjectResourceUsage(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
ListProjectResourceUsage 项目的 CPU/Memory 使用率的历史图表
func (*Endpoints) ListPublicProject ¶
func (e *Endpoints) ListPublicProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
ListPublicProject 公开项目列表
func (*Endpoints) ListQuotaRecords ¶
func (e *Endpoints) ListQuotaRecords(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
ListQuotaRecords is an internal API for bundle
func (*Endpoints) ListScopeManagersByScopeID ¶
func (e *Endpoints) ListScopeManagersByScopeID(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
ListScopeManagersByScopeID list managers by scopeID
func (*Endpoints) ListScopeRole ¶
func (e *Endpoints) ListScopeRole(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
ListScopeRole 获取当前用户所有权限
func (*Endpoints) ListUser ¶
func (e *Endpoints) ListUser(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
ListUser 根据user id列表批量获取用户
func (*Endpoints) NotifyDisable ¶
func (e *Endpoints) NotifyDisable(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
NotifyDisable 禁用通知
func (*Endpoints) NotifyEnable ¶
func (e *Endpoints) NotifyEnable(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
NotifyEnable 启用通知
func (*Endpoints) OneClickRead ¶
func (e *Endpoints) OneClickRead(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
OneClickRead read all unread mbox with one click
func (Endpoints) PinApplication ¶
func (e Endpoints) PinApplication(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
PinApplication pin应用
func (*Endpoints) PublishNotice ¶
func (e *Endpoints) PublishNotice(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
PublishNotice 发布平台公告
func (*Endpoints) PutAuditsSettings ¶
func (e *Endpoints) PutAuditsSettings(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
PutAuditsSettings 对企业设置事件清理周期
func (*Endpoints) QueryMBox ¶
func (e *Endpoints) QueryMBox(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
QueryMBox 查询站内信
func (*Endpoints) QueryNotifies ¶
func (e *Endpoints) QueryNotifies(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
QueryNotifies 查询通知
func (*Endpoints) QueryNotifiesBySource ¶
func (e *Endpoints) QueryNotifiesBySource(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
QueryNotifiesBySource 根据source关联的通知
func (*Endpoints) QueryNotifyHistories ¶
func (e *Endpoints) QueryNotifyHistories(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
QueryNotifyHistories 查询通知发送历史
func (*Endpoints) QueryNotifyItems ¶
func (e *Endpoints) QueryNotifyItems(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
QueryNotifyItems 查询通知项
func (*Endpoints) ReferCluster ¶
func (e *Endpoints) ReferCluster(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
ReferCluster 查看集群是否被项目引用
func (*Endpoints) Routes ¶
func (e *Endpoints) Routes() []httpserver.Endpoint
Routes 返回 endpoints 的所有 endpoint 方法,也就是 route.
func (*Endpoints) ScopeRoleAccess ¶
func (e *Endpoints) ScopeRoleAccess(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
ScopeRoleAccess 根据 scope 返回对应权限列表
func (*Endpoints) SearchUser ¶
func (*Endpoints) SetFunctions ¶
func (e *Endpoints) SetFunctions(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
SetFunctions 设置项目功能开关
func (*Endpoints) SetMBoxReadStatus ¶
func (e *Endpoints) SetMBoxReadStatus(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
SetMBoxReadStatus 设置站内信已经读标记
func (*Endpoints) StateCheckPermission ¶
func (e *Endpoints) StateCheckPermission(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
StateCheckPermission 鉴权
func (Endpoints) UnPinApplication ¶
func (e Endpoints) UnPinApplication(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
UnPinApplication unpin应用
func (*Endpoints) UnSubscribe ¶
func (*Endpoints) UnpublishNotice ¶
func (e *Endpoints) UnpublishNotice(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
UnpublishNotice 下架平台公告
func (*Endpoints) UpdateApplication ¶
func (e *Endpoints) UpdateApplication(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
UpdateApplication 更新应用
func (*Endpoints) UpdateApproval ¶
func (*Endpoints) UpdateApprove ¶
func (e *Endpoints) UpdateApprove(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
UpdateApprove 更新Approve
func (*Endpoints) UpdateLabel ¶
func (e *Endpoints) UpdateLabel(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
UpdateLabel 更新标签
func (*Endpoints) UpdateMemberUserInfo ¶
func (e *Endpoints) UpdateMemberUserInfo(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
UpdateMemberUserInfo 更新成员 user info 的数据,和 uc 同步
func (*Endpoints) UpdateNotice ¶
func (e *Endpoints) UpdateNotice(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
UpdateNotice 编辑平台公告
func (*Endpoints) UpdateNotify ¶
func (e *Endpoints) UpdateNotify(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
UpdateNotify 更新通知
func (*Endpoints) UpdateNotifyItem ¶
func (e *Endpoints) UpdateNotifyItem(ctx context.Context, r *http.Request, vars map[string]string) ( httpserver.Responser, error)
UpdateNotifyItem 更新通知项
func (*Endpoints) UpdateProject ¶
func (e *Endpoints) UpdateProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
UpdateProject 更新项目
func (*Endpoints) UpdateProjectActiveTime ¶
func (e *Endpoints) UpdateProjectActiveTime(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
UpdateProjectActiveTime 更新项目活跃时间
func (*Endpoints) UpdateProjectWorkSpace ¶
func (e *Endpoints) UpdateProjectWorkSpace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
UpdateProjectWorkSpace 更新 project workspace abilities
type Option ¶
type Option func(*Endpoints)
func WithActivity ¶
WithActivity 配置 activity service
func WithApprove ¶
func WithErrorBox ¶
func WithJSONStore ¶
WithJSONStore 配置 jsonstore
func WithManualReview ¶
func WithManualReview(ManualReview *manual_review.ManualReview) Option
WithManualReview 配置 ManualReview service
func WithNotify ¶
func WithNotify(notifyGroup *notify.NotifyGroup) Option
WithNotify 配置 notify group service
func WithPermission ¶
func WithPermission(permission *permission.Permission) Option
WithPermission 配置 permission service
func WithQueryStringDecoder ¶
WithQueryStringDecoder 配置 queryStringDecoder
func WithSubscribe ¶
func WithTokenSvc ¶
func WithTokenSvc(tokenService tokenpb.TokenServiceServer) Option
func WithUserSvc ¶
Source Files ¶
- activity.go
- application.go
- approve.go
- audit.go
- endpoints.go
- errorbox.go
- health.go
- image.go
- label.go
- license.go
- manual_review.go
- mbox.go
- member.go
- namespace.go
- notice.go
- notify.go
- notify_history.go
- notify_item.go
- notify_source.go
- permission.go
- process.go
- project.go
- project_workspace.go
- quota.go
- subscribe.go
- user.go