Documentation ¶
Overview ¶
Package endpoints 定义所有的 route handle.
Index ¶
- type Endpoints
- func (e *Endpoints) AddBlacklist(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) AddErase(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ApplyPipelineTemplate(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CheckLaststVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateExtension(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateExtensionVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateOffLineVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreatePipelineTemplate(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreatePublishItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreatePublishItemVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateRelease(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CumulativeUsers(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) DeletePublishItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) DeleteRelease(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetCrashRate(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetDiceYAML(w http.ResponseWriter, r *http.Request)
- func (e *Endpoints) GetErrAffectUserRate(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetErrList(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetErrTrend(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetExtensionVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetH5PackageName(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetIosPlist(ctx context.Context, writer http.ResponseWriter, r *http.Request, ...) error
- func (e *Endpoints) GetLatestReleases(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetPipelineTemplateVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetPublicVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetPublishItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetPublishItemBlacklist(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetPublishItemCertificationlist(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetPublishItemDistribution(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetPublishItemEraselist(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetRelease(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetSecurityStatus(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetStatisticsChannelInfo(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetStatisticsTrend(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetStatisticsVersionInfo(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) Info(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) InjectDiceInitContainer(diceStr string) (string, error)
- func (e *Endpoints) ListMonitorKeys(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListRelease(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListReleaseName(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) MetricsRouting(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) QueryExtensionVersions(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) QueryExtensions(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) QueryExtensionsMenu(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) QueryMyPublishItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) QueryPipelineTemplateVersions(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) QueryPipelineTemplates(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) QueryPublishItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) QueryPublishItemVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) Release() *release.Release
- func (e *Endpoints) ReleaseGC(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) RemoveBlacklist(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) RenderPipelineTemplate(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) RenderPipelineTemplateBySpec(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) Routes() []httpserver.Endpoint
- func (e *Endpoints) SearchExtensions(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) SetPublishItemVersionStatus(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UpdateErase(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UpdatePublishItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UpdatePublishItemVersionState(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UpdateRelease(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UpdateReleaseReference(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- type MenuItem
- type Option
- func WithBundle(bdl *bundle.Bundle) Option
- func WithDBClient(db *dbclient.DBClient) Option
- func WithExtension(extension *extension.Extension) Option
- func WithPipelineTemplate(pipelineTemplate *template.PipelineTemplate) Option
- func WithPublishItem(publishItem *publish_item.PublishItem) Option
- func WithQueryStringDecoder(decoder *schema.Decoder) Option
- func WithRelease(release *release.Release) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoints ¶
type Endpoints struct {
// contains filtered or unexported fields
}
Endpoints 定义 endpoint 方法
func (*Endpoints) AddBlacklist ¶
func (e *Endpoints) AddBlacklist(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
AddBlacklist 设置安全参数
func (*Endpoints) AddErase ¶
func (e *Endpoints) AddErase(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
AddErase 设置数据擦除用户
func (*Endpoints) ApplyPipelineTemplate ¶
func (*Endpoints) CheckLaststVersion ¶
func (e *Endpoints) CheckLaststVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
CheckLaststVersion 获取移动应用最新的版本信息
func (*Endpoints) CreateExtension ¶
func (e *Endpoints) CreateExtension(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
CreateExtension 创建扩展
func (*Endpoints) CreateExtensionVersion ¶
func (e *Endpoints) CreateExtensionVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
CreateExtensionVersion 创建扩展版本
func (*Endpoints) CreateOffLineVersion ¶
func (e *Endpoints) CreateOffLineVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
CreateOffLineVersion 创建离线包版本
func (*Endpoints) CreatePipelineTemplate ¶
func (*Endpoints) CreatePublishItem ¶
func (e *Endpoints) CreatePublishItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
CreatePublishItem 创建发布内容
func (*Endpoints) CreatePublishItemVersion ¶
func (e *Endpoints) CreatePublishItemVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
CreatePublishItemVersion 创建发布版本
func (*Endpoints) CreateRelease ¶
func (e *Endpoints) CreateRelease(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
CreateRelease POST /api/releases release创建处理
func (*Endpoints) CumulativeUsers ¶
func (e *Endpoints) CumulativeUsers(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
CumulativeUsers
func (*Endpoints) DeletePublishItem ¶
func (e *Endpoints) DeletePublishItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
DeletePublishItem 删除发布内容
func (*Endpoints) DeleteRelease ¶
func (e *Endpoints) DeleteRelease(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
DeleteRelease DELETE /api/releases/<releaseId> 删除release处理
func (*Endpoints) GetCrashRate ¶
func (e *Endpoints) GetCrashRate(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetCrashRate 崩溃率
func (*Endpoints) GetDiceYAML ¶
func (e *Endpoints) GetDiceYAML(w http.ResponseWriter, r *http.Request)
GetDiceYAML GET /api/releases/<releaseId>/actions/get-dice 获取dice.yml内容处理
func (*Endpoints) GetErrAffectUserRate ¶
func (e *Endpoints) GetErrAffectUserRate(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetErrAffectUserRate
func (*Endpoints) GetErrList ¶
func (e *Endpoints) GetErrList(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetErrList 获取错误报告,错误趋势
func (*Endpoints) GetErrTrend ¶
func (e *Endpoints) GetErrTrend(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetErrTrend 获取错误报告,错误趋势
func (*Endpoints) GetExtensionVersion ¶
func (e *Endpoints) GetExtensionVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetExtensionVersion 获取指定版本扩展
func (*Endpoints) GetH5PackageName ¶
func (e *Endpoints) GetH5PackageName(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetH5PackageName 获取H5的包名
func (*Endpoints) GetIosPlist ¶
func (e *Endpoints) GetIosPlist(ctx context.Context, writer http.ResponseWriter, r *http.Request, vars map[string]string) error
GetPlist GET /api/releases/<releaseId>/actions/get-plist 获取ios发布类型中的下载plist配置
func (*Endpoints) GetLatestReleases ¶
func (e *Endpoints) GetLatestReleases(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetLatestReleases 获取指定项目指定版本情况下各应用最新release 内部使用
func (*Endpoints) GetPipelineTemplateVersion ¶
func (*Endpoints) GetPublicVersion ¶
func (e *Endpoints) GetPublicVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetPublicVersion 获取移动应用线上的版本
func (*Endpoints) GetPublishItem ¶
func (e *Endpoints) GetPublishItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetPublishItem 获取发布内容详情
func (*Endpoints) GetPublishItemBlacklist ¶
func (e *Endpoints) GetPublishItemBlacklist(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetPublishItemBlacklist 获取PublishItem黑名单
func (*Endpoints) GetPublishItemCertificationlist ¶
func (e *Endpoints) GetPublishItemCertificationlist(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetPublishItemCertificationlist 获取publishItem认证列表
func (*Endpoints) GetPublishItemDistribution ¶
func (e *Endpoints) GetPublishItemDistribution(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetPublishItemDistribution 获取发布内容分发信息
func (*Endpoints) GetPublishItemEraselist ¶
func (e *Endpoints) GetPublishItemEraselist(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetPublishItemEraselist 获取publishItem擦除数据名单
func (*Endpoints) GetRelease ¶
func (e *Endpoints) GetRelease(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetRelease GET /api/releases/<releaseId> release详情处理
func (*Endpoints) GetSecurityStatus ¶
func (e *Endpoints) GetSecurityStatus(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetSecurityStatus 获取客户安全信息状态
func (*Endpoints) GetStatisticsChannelInfo ¶
func (e *Endpoints) GetStatisticsChannelInfo(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetStatisticsChannelInfo 获取渠道详情,明细数据
func (*Endpoints) GetStatisticsTrend ¶
func (e *Endpoints) GetStatisticsTrend(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetStatisticsTrend 获取统计大盘,整体趋势
func (*Endpoints) GetStatisticsVersionInfo ¶
func (e *Endpoints) GetStatisticsVersionInfo(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
GetStatisticsVersionInfo 获取版本详情,明细数据
func (*Endpoints) Info ¶
func (e *Endpoints) Info(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
Info 用于健康检查
func (*Endpoints) InjectDiceInitContainer ¶
func (*Endpoints) ListMonitorKeys ¶
func (e *Endpoints) ListMonitorKeys(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
ListMonitorKeys 获取 publishItem 的监控 ak ai
func (*Endpoints) ListRelease ¶
func (e *Endpoints) ListRelease(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
ListRelease GET /api/releases release列表处理
func (*Endpoints) ListReleaseName ¶
func (e *Endpoints) ListReleaseName(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
ListReleaseName 获取给定应用下的releaseName列表
func (*Endpoints) MetricsRouting ¶
func (e *Endpoints) MetricsRouting(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
MetricsRouting 获取渠道详情,明细数据
func (*Endpoints) QueryExtensionVersions ¶
func (e *Endpoints) QueryExtensionVersions(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
QueryExtensionVersions 查询扩展版本列表
func (*Endpoints) QueryExtensions ¶
func (e *Endpoints) QueryExtensions(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
QueryExtensions 获取扩展列表
func (*Endpoints) QueryExtensionsMenu ¶
func (e *Endpoints) QueryExtensionsMenu(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
QueryExtensions 获取扩展列表
func (*Endpoints) QueryMyPublishItem ¶
func (e *Endpoints) QueryMyPublishItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
QueryMyPublishItem 查询我的发布
func (*Endpoints) QueryPipelineTemplateVersions ¶
func (*Endpoints) QueryPipelineTemplates ¶
func (*Endpoints) QueryPublishItem ¶
func (e *Endpoints) QueryPublishItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
QueryPublishItem 查询发布内容
func (*Endpoints) QueryPublishItemVersion ¶
func (e *Endpoints) QueryPublishItemVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
QueryPublishItemVersion 查询发布版本
func (*Endpoints) ReleaseGC ¶
func (e *Endpoints) ReleaseGC(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
ReleaseGC 通过GET /gc API触发releaese gc时处理逻辑
func (*Endpoints) RemoveBlacklist ¶
func (e *Endpoints) RemoveBlacklist(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
RemoveBlacklist 删除黑名单
func (*Endpoints) RenderPipelineTemplate ¶
func (*Endpoints) RenderPipelineTemplateBySpec ¶
func (*Endpoints) Routes ¶
func (e *Endpoints) Routes() []httpserver.Endpoint
Routes 返回 endpoints 的所有 endpoint 方法,也就是 route.
func (*Endpoints) SearchExtensions ¶
func (e *Endpoints) SearchExtensions(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
SearchExtensions 批量查询扩展列表
func (*Endpoints) SetPublishItemVersionStatus ¶
func (e *Endpoints) SetPublishItemVersionStatus(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
SetPublishItemVersionStatus 设置版本状态
func (*Endpoints) UpdateErase ¶
func (e *Endpoints) UpdateErase(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
UpdateErase 数据擦除状态更新
func (*Endpoints) UpdatePublishItem ¶
func (e *Endpoints) UpdatePublishItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
UpdatePublishItem 更新PublishItem
func (*Endpoints) UpdatePublishItemVersionState ¶
func (e *Endpoints) UpdatePublishItemVersionState(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
UpdatePublishItemVersionState 更新移动应用发布状态
type Option ¶
type Option func(*Endpoints)
func WithExtension ¶
WithExtension 配置 extension service
func WithPipelineTemplate ¶
func WithPipelineTemplate(pipelineTemplate *template.PipelineTemplate) Option
func WithPublishItem ¶
func WithPublishItem(publishItem *publish_item.PublishItem) Option
WithExtension 配置 extension service
func WithQueryStringDecoder ¶
WithQueryStringDecoder 配置 queryStringDecoder