endpoints

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 63 Imported by: 0

Documentation

Overview

Package endpoints 定义所有的 route handle.

Index

Constants

View Source
const (
	// Private 私有
	Private = "private"
	// Public 公开
	Public = "public"
	// All 全部
	All = ""
)

Variables

This section is empty.

Functions

func CheckInternalPermission

func CheckInternalPermission(identityInfo apistructs.IdentityInfo) bool

func GetImage

func GetImage(w http.ResponseWriter, r *http.Request)

GetImage 获取image

Types

type Endpoints

type Endpoints struct {
	ManualReview *manual_review.ManualReview
	// contains filtered or unexported fields
}

Endpoints 定义 endpoint 方法

func New

func New(options ...Option) *Endpoints

New 创建 Endpoints 对象.

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

func (e *Endpoints) BatchGetNotifyGroup(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

BatchGetNotifyGroup 批量根据id查询通知组 内部接口

func (*Endpoints) ChangeCurrentOrg deprecated

func (e *Endpoints) ChangeCurrentOrg(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

Deprecated: no need to store selection ChangeCurrentOrg 切换当前企业

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

func (e *Endpoints) CreateNotifyGroup(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

CreateNotifyGroup 创建通知组

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

func (e *Endpoints) CreateOrg(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateOrg 创建企业

func (*Endpoints) CreateOrgClusterRelation

func (e *Endpoints) CreateOrgClusterRelation(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateOrgClusterRelation 创建企业集群关联关系

func (*Endpoints) CreateProject

func (e *Endpoints) CreateProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateProject 创建项目

func (*Endpoints) CreateReview

func (e *Endpoints) CreateReview(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*Endpoints) CreateReviewUser

func (e *Endpoints) CreateReviewUser(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*Endpoints) DBClient

func (e *Endpoints) DBClient() *dao.DBClient

DBClient 获取db client

func (*Endpoints) DeleteApplication

func (e *Endpoints) DeleteApplication(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

DeleteApplication 删除应用

func (*Endpoints) DeleteFile

func (e *Endpoints) DeleteFile(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteFile 删除文件

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

func (e *Endpoints) DeleteNotifyGroup(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

DeleteNotifyGroup 删除通知组

func (*Endpoints) DeleteNotifySource

func (e *Endpoints) DeleteNotifySource(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

DeleteNotifySource 删除通知源

func (*Endpoints) DeleteOrg

func (e *Endpoints) DeleteOrg(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteOrg 删除企业

func (*Endpoints) DeleteProject

func (e *Endpoints) DeleteProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteProject 删除项目

func (*Endpoints) DereferenceCluster

func (e *Endpoints) DereferenceCluster(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DereferenceCluster 解除关联集群关系

func (*Endpoints) DestroyMember

func (e *Endpoints) DestroyMember(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

DestroyMember 删除用户的一切成员信息

func (*Endpoints) DownloadFile

func (e *Endpoints) DownloadFile(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) (err error)

DownloadFile 根据文件链接返回文件内容

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

func (e *Endpoints) GenVerifiCode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GenVerifiCode 生成邀请成员加入企业的验证码

func (*Endpoints) GetAllNamespaces added in v1.4.0

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

func (e *Endpoints) GetApplication(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

GetApplication 获取应用详情

func (*Endpoints) GetApplicationPublishItemRelationsGroupByENV

func (e *Endpoints) GetApplicationPublishItemRelationsGroupByENV(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

GetApplicationPublishItemRelationsGroupByENV 根据环境分组应用和发布内容关联

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 (e *Endpoints) GetAuthorityByUserId(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

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 added in v1.3.0

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 added in v1.3.0

func (e *Endpoints) GetModelProjectsMap(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetNSInfo

func (e *Endpoints) GetNSInfo(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetNSInfo 获取项目级命名空间信息

func (*Endpoints) GetNamespacesBelongsTo added in v1.4.0

func (e *Endpoints) GetNamespacesBelongsTo(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetNotify

func (e *Endpoints) GetNotify(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

GetNotify 获取通知详情

func (*Endpoints) GetNotifyConfig

func (e *Endpoints) GetNotifyConfig(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetNotifyConfig 获取通知配置

func (*Endpoints) GetNotifyGroup

func (e *Endpoints) GetNotifyGroup(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

GetNotifyGroup 获取通知组信息

func (*Endpoints) GetNotifyGroupDetail

func (e *Endpoints) GetNotifyGroupDetail(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

GetNotifyGroupDetail 获取通知组信息详情

func (*Endpoints) GetOrg

func (e *Endpoints) GetOrg(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetOrg 获取企业详情

func (*Endpoints) GetOrgByDomain

func (e *Endpoints) GetOrgByDomain(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

GetOrgByDomain 通过域名查询企业

func (*Endpoints) GetOrgClusterRelationsByOrg

func (e *Endpoints) GetOrgClusterRelationsByOrg(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetOrgClusterRelationsByOrg get orgClusters relation by orgID

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 added in v1.4.0

func (e *Endpoints) GetProjectQuota(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetReviewByTaskId

func (e *Endpoints) GetReviewByTaskId(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*Endpoints) GetReviewsBySponsorId

func (e *Endpoints) GetReviewsBySponsorId(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*Endpoints) GetReviewsByUserId

func (e *Endpoints) GetReviewsByUserId(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*Endpoints) GetUcUserID added in v1.3.0

func (e *Endpoints) GetUcUserID(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*Endpoints) GetWorkspaceQuota added in v1.4.0

func (e *Endpoints) GetWorkspaceQuota(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) HeadFile

func (e *Endpoints) HeadFile(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) (err error)

HeadFile 文件 HEAD 请求

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

func (e *Endpoints) InitApplication(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

InitApplication 应用初始化

func (*Endpoints) ListActivity

func (e *Endpoints) ListActivity(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

ListActivity 活动列表

func (*Endpoints) ListAllOrgClusterRelation

func (e *Endpoints) ListAllOrgClusterRelation(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListAllOrgClusterRelation 获取所有企业对应集群关系

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

func (e *Endpoints) ListErrorLog(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

ListErrorLog 根据resource查看错误日志

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

func (e *Endpoints) ListOrg(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListOrg 查询企业 GET /api/orgs?key=xxx(按企业名称过滤)

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

func (e *Endpoints) ListPublicOrg(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListPublicOrg Get public orgs

func (*Endpoints) ListPublicProject

func (e *Endpoints) ListPublicProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListPublicProject 公开项目列表

func (*Endpoints) ListQuotaRecords added in v1.4.0

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 added in v1.3.0

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

func (e *Endpoints) QueryApplicationPublishItemRelations(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

QueryApplicationPublishItemRelations 查询应用和发布内容关联

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

func (e *Endpoints) QueryNotifyGroup(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

QueryNotifyGroup 查询通知组

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

func (e *Endpoints) RemoveApplicationPublishItemRelations(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

RemoveApplicationPublishItemRelations 删除应用发布内容关联

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 (e *Endpoints) SearchUser(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

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

func (e *Endpoints) SetNotifyConfig(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

SetNotifyConfig 设置通知配置

func (*Endpoints) SetReleaseCrossCluster

func (e *Endpoints) SetReleaseCrossCluster(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

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

func (e *Endpoints) UpdateApplicationPublishItemRelations(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

UpdateApplicationPublishItemRelations 更新应用发布内容关联

func (*Endpoints) UpdateApproval

func (e *Endpoints) UpdateApproval(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

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

func (e *Endpoints) UpdateNotifyGroup(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

UpdateNotifyGroup 更新通知组

func (*Endpoints) UpdateNotifyItem

func (e *Endpoints) UpdateNotifyItem(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

UpdateNotifyItem 更新通知项

func (*Endpoints) UpdateOrg

func (e *Endpoints) UpdateOrg(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateOrg 更新企业

func (*Endpoints) UpdateOrgIngress

func (e *Endpoints) UpdateOrgIngress(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateOrgIngress 更新企业Ingress

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

func (e *Endpoints) UploadFile(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UploadFile 上传文件至存储

func (*Endpoints) UploadImage

func (e *Endpoints) UploadImage(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UploadImage 上传图片

func (*Endpoints) UserSvc added in v1.3.0

func (e *Endpoints) UserSvc() *user.User

type Option

type Option func(*Endpoints)

func WithActivity

func WithActivity(activity *activity.Activity) Option

WithActivity 配置 activity service

func WithApp

func WithApp(app *application.Application) Option

WithApp 配置 app service

func WithApprove

func WithApprove(approve *approve.Approve) Option

func WithAudit

func WithAudit(audit *audit.Audit) Option

WithAudit 配置 Audit

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle 配置 bundle

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 配置 db

func WithErrorBox

func WithErrorBox(errorbox *errorbox.ErrorBox) Option

func WithEtcdStore

func WithEtcdStore(etcdStore *etcd.Store) Option

WithEtcdStore 配置 etcdStore

func WithFileSvc

func WithFileSvc(svc *filesvc.FileService) Option

func WithJSONStore

func WithJSONStore(store jsonstore.JsonStore) Option

WithJSONStore 配置 jsonstore

func WithLabel

func WithLabel(label *label.Label) Option

WithLabel 配置 label

func WithLicense

func WithLicense(license *license.License) Option

WithLicense 配置 license

func WithMBox

func WithMBox(mbox *mbox.MBox) Option

WithMBox 配置 mbox service

func WithManualReview

func WithManualReview(ManualReview *manual_review.ManualReview) Option

WithManualReview 配置 ManualReview service

func WithMember

func WithMember(member *member.Member) Option

WithMember 配置 member service

func WithNotice

func WithNotice(notice *notice.Notice) Option

WithNotice 设置 notice service

func WithNotify

func WithNotify(notifyGroup *notify.NotifyGroup) Option

WithNotify 配置 notify group service

func WithOSSClient

func WithOSSClient(client *oss.Client) Option

WithOSSClient 配置OSS Client

func WithOrg

func WithOrg(org *org.Org) Option

WithOrg 配置 org service

func WithPermission

func WithPermission(permission *permission.Permission) Option

WithPermission 配置 permission service

func WithProject

func WithProject(project *project.Project) Option

WithProject 配置 project service

func WithQueryStringDecoder

func WithQueryStringDecoder(decoder *schema.Decoder) Option

WithQueryStringDecoder 配置 queryStringDecoder

func WithUCClient

func WithUCClient(uc *ucauth.UCClient) Option

WithUCClient 配置 UC Client

func WithUserSvc added in v1.3.0

func WithUserSvc(svc *user.User) Option

Jump to

Keyboard shortcuts

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