Documentation ¶
Index ¶
- func DevstarClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForDownloadApplicationCode(request *model.DownloadApplicationCodeRequest) *def.HttpRequestDef
- func GenReqDefForListPublishedTemplates(request *model.ListPublishedTemplatesRequest) *def.HttpRequestDef
- func GenReqDefForRunDevstarTemplateJob(request *model.RunDevstarTemplateJobRequest) *def.HttpRequestDef
- func GenReqDefForShowJobDetail(request *model.ShowJobDetailRequest) *def.HttpRequestDef
- func GenReqDefForShowTemplateDetail(request *model.ShowTemplateDetailRequest) *def.HttpRequestDef
- func GenRespForDownloadApplicationCode() (*model.DownloadApplicationCodeResponse, *def.HttpResponseDef)
- func GenRespForListPublishedTemplates() (*model.ListPublishedTemplatesResponse, *def.HttpResponseDef)
- func GenRespForRunDevstarTemplateJob() (*model.RunDevstarTemplateJobResponse, *def.HttpResponseDef)
- func GenRespForShowJobDetail() (*model.ShowJobDetailResponse, *def.HttpResponseDef)
- func GenRespForShowTemplateDetail() (*model.ShowTemplateDetailResponse, *def.HttpResponseDef)
- type DevstarClient
- func (c *DevstarClient) DownloadApplicationCode(request *model.DownloadApplicationCodeRequest) (*model.DownloadApplicationCodeResponse, error)
- func (c *DevstarClient) ListPublishedTemplates(request *model.ListPublishedTemplatesRequest) (*model.ListPublishedTemplatesResponse, 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DevstarClientBuilder ¶
func DevstarClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForDownloadApplicationCode ¶
func GenReqDefForDownloadApplicationCode(request *model.DownloadApplicationCodeRequest) *def.HttpRequestDef
func GenReqDefForListPublishedTemplates ¶
func GenReqDefForListPublishedTemplates(request *model.ListPublishedTemplatesRequest) *def.HttpRequestDef
func GenReqDefForRunDevstarTemplateJob ¶
func GenReqDefForRunDevstarTemplateJob(request *model.RunDevstarTemplateJobRequest) *def.HttpRequestDef
func GenReqDefForShowJobDetail ¶
func GenReqDefForShowJobDetail(request *model.ShowJobDetailRequest) *def.HttpRequestDef
func GenReqDefForShowTemplateDetail ¶
func GenReqDefForShowTemplateDetail(request *model.ShowTemplateDetailRequest) *def.HttpRequestDef
func GenRespForDownloadApplicationCode ¶
func GenRespForDownloadApplicationCode() (*model.DownloadApplicationCodeResponse, *def.HttpResponseDef)
func GenRespForListPublishedTemplates ¶
func GenRespForListPublishedTemplates() (*model.ListPublishedTemplatesResponse, *def.HttpResponseDef)
func GenRespForRunDevstarTemplateJob ¶
func GenRespForRunDevstarTemplateJob() (*model.RunDevstarTemplateJobResponse, *def.HttpResponseDef)
func GenRespForShowJobDetail ¶
func GenRespForShowJobDetail() (*model.ShowJobDetailResponse, *def.HttpResponseDef)
func GenRespForShowTemplateDetail ¶
func GenRespForShowTemplateDetail() (*model.ShowTemplateDetailResponse, *def.HttpResponseDef)
Types ¶
type DevstarClient ¶
type DevstarClient struct {
// contains filtered or unexported fields
}
func NewDevstarClient ¶
func NewDevstarClient(hcClient *http_client.HcHttpClient) *DevstarClient
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) 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)
查询模板详情
Click to show internal directories.
Click to hide internal directories.