Documentation ¶
Index ¶
- func DevStarClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForCreateTemplateViewHistories() *def.HttpRequestDef
- func GenReqDefForDownloadApplicationCode() *def.HttpRequestDef
- func GenReqDefForListPublishedTemplates() *def.HttpRequestDef
- func GenReqDefForListTemplateViewHistories() *def.HttpRequestDef
- func GenReqDefForListTemplatesV2() *def.HttpRequestDef
- func GenReqDefForRunCodehubTemplateJob() *def.HttpRequestDef
- func GenReqDefForRunDevstarTemplateJob() *def.HttpRequestDef
- func GenReqDefForShowJobDetail() *def.HttpRequestDef
- func GenReqDefForShowTemplateDetail() *def.HttpRequestDef
- func GenReqDefForShowTemplateFile() *def.HttpRequestDef
- func GenReqDefForShowTemplateV3() *def.HttpRequestDef
- type DevStarClient
- func (c *DevStarClient) CreateTemplateViewHistories(request *model.CreateTemplateViewHistoriesRequest) (*model.CreateTemplateViewHistoriesResponse, error)
- func (c *DevStarClient) DownloadApplicationCode(request *model.DownloadApplicationCodeRequest) (*model.DownloadApplicationCodeResponse, error)
- func (c *DevStarClient) ListPublishedTemplates(request *model.ListPublishedTemplatesRequest) (*model.ListPublishedTemplatesResponse, error)
- func (c *DevStarClient) ListTemplateViewHistories(request *model.ListTemplateViewHistoriesRequest) (*model.ListTemplateViewHistoriesResponse, error)
- func (c *DevStarClient) ListTemplatesV2(request *model.ListTemplatesV2Request) (*model.ListTemplatesV2Response, error)
- func (c *DevStarClient) RunCodehubTemplateJob(request *model.RunCodehubTemplateJobRequest) (*model.RunCodehubTemplateJobResponse, error)
- func (c *DevStarClient) RunDevstarTemplateJob(request *model.RunDevstarTemplateJobRequest) (*model.RunDevstarTemplateJobResponse, error)
- func (c *DevStarClient) ShowJobDetail(request *model.ShowJobDetailRequest) (*model.ShowJobDetailResponse, error)
- func (c *DevStarClient) ShowTemplateDetail(request *model.ShowTemplateDetailRequest) (*model.ShowTemplateDetailResponse, error)
- func (c *DevStarClient) ShowTemplateFile(request *model.ShowTemplateFileRequest) (*model.ShowTemplateFileResponse, error)
- func (c *DevStarClient) ShowTemplateV3(request *model.ShowTemplateV3Request) (*model.ShowTemplateV3Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DevStarClientBuilder ¶
func DevStarClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForCreateTemplateViewHistories ¶
func GenReqDefForCreateTemplateViewHistories() *def.HttpRequestDef
func GenReqDefForDownloadApplicationCode ¶
func GenReqDefForDownloadApplicationCode() *def.HttpRequestDef
func GenReqDefForListPublishedTemplates ¶
func GenReqDefForListPublishedTemplates() *def.HttpRequestDef
func GenReqDefForListTemplateViewHistories ¶
func GenReqDefForListTemplateViewHistories() *def.HttpRequestDef
func GenReqDefForListTemplatesV2 ¶
func GenReqDefForListTemplatesV2() *def.HttpRequestDef
func GenReqDefForRunCodehubTemplateJob ¶
func GenReqDefForRunCodehubTemplateJob() *def.HttpRequestDef
func GenReqDefForRunDevstarTemplateJob ¶
func GenReqDefForRunDevstarTemplateJob() *def.HttpRequestDef
func GenReqDefForShowJobDetail ¶
func GenReqDefForShowJobDetail() *def.HttpRequestDef
func GenReqDefForShowTemplateDetail ¶
func GenReqDefForShowTemplateDetail() *def.HttpRequestDef
func GenReqDefForShowTemplateFile ¶
func GenReqDefForShowTemplateFile() *def.HttpRequestDef
func GenReqDefForShowTemplateV3 ¶
func GenReqDefForShowTemplateV3() *def.HttpRequestDef
Types ¶
type DevStarClient ¶
type DevStarClient struct {
// contains filtered or unexported fields
}
func NewDevStarClient ¶
func NewDevStarClient(hcClient *http_client.HcHttpClient) *DevStarClient
func (*DevStarClient) CreateTemplateViewHistories ¶
func (c *DevStarClient) CreateTemplateViewHistories(request *model.CreateTemplateViewHistoriesRequest) (*model.CreateTemplateViewHistoriesResponse, error)
生成模板浏览记录
func (*DevStarClient) DownloadApplicationCode ¶
func (c *DevStarClient) DownloadApplicationCode(request *model.DownloadApplicationCodeRequest) (*model.DownloadApplicationCodeResponse, error)
下载模板产物
func (*DevStarClient) ListPublishedTemplates ¶
func (c *DevStarClient) ListPublishedTemplates(request *model.ListPublishedTemplatesRequest) (*model.ListPublishedTemplatesResponse, error)
查询模板列表
func (*DevStarClient) ListTemplateViewHistories ¶
func (c *DevStarClient) ListTemplateViewHistories(request *model.ListTemplateViewHistoriesRequest) (*model.ListTemplateViewHistoriesResponse, error)
查询用户浏览过的模板(只返回最近浏览的5个模板)
func (*DevStarClient) ListTemplatesV2 ¶
func (c *DevStarClient) ListTemplatesV2(request *model.ListTemplatesV2Request) (*model.ListTemplatesV2Response, error)
查询模板列表
func (*DevStarClient) RunCodehubTemplateJob ¶
func (c *DevStarClient) RunCodehubTemplateJob(request *model.RunCodehubTemplateJobRequest) (*model.RunCodehubTemplateJobResponse, error)
通过 Codehub 的模板进行应用代码创建 通过 Codehub 模板创建生成应用代码的任务,并将应用代码存储于指定的 CodeHub 仓库中或者生成代码压缩包,可以通过返回的任务 ID 查询相关任务状态 - 接口鉴权方式 通过华为云服务获取的用户token - 代码生成位置 应用代码生成后的地址,目前支持codehub地址和压缩包下载地址。
func (*DevStarClient) RunDevstarTemplateJob ¶
func (c *DevStarClient) RunDevstarTemplateJob(request *model.RunDevstarTemplateJobRequest) (*model.RunDevstarTemplateJobResponse, error)
通过DevStar的模板进行应用代码创建 通过 DevStar 模板创建生成应用代码的任务,并将应用代码存储于指定的 CodeHub 仓库中,可以通过返回的任务 ID 查询相关任务状态 - 接口鉴权方式 通过华为云服务获取的用户token - 代码生成位置 应用代码生成后的地址,目前支持codehub地址和压缩包下载地址。
func (*DevStarClient) ShowJobDetail ¶
func (c *DevStarClient) ShowJobDetail(request *model.ShowJobDetailRequest) (*model.ShowJobDetailResponse, error)
查询任务的详情 通过任务ID可以查看任务的状态 当任务结束时返回应用代码存放的位置 - 接口鉴权方式 通过华为云服务获取的用户token - 代码生成位置 应用代码生成后的地址,目前支持codehub地址和压缩包下载地址
func (*DevStarClient) ShowTemplateDetail ¶
func (c *DevStarClient) ShowTemplateDetail(request *model.ShowTemplateDetailRequest) (*model.ShowTemplateDetailResponse, error)
查询模板详情
func (*DevStarClient) ShowTemplateFile ¶
func (c *DevStarClient) ShowTemplateFile(request *model.ShowTemplateFileRequest) (*model.ShowTemplateFileResponse, error)
读取模板文件
func (*DevStarClient) ShowTemplateV3 ¶
func (c *DevStarClient) ShowTemplateV3(request *model.ShowTemplateV3Request) (*model.ShowTemplateV3Response, error)
获取模板详情-模板id、名称、描述、作者、标签、上架时间等信息。
Click to show internal directories.
Click to hide internal directories.