Documentation ¶
Index ¶
- func DevstarClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForListPublishedTemplates(request *model.ListPublishedTemplatesRequest) *def.HttpRequestDef
- func GenReqDefForRunTemplateJobV2(request *model.RunTemplateJobV2Request) *def.HttpRequestDef
- func GenReqDefForShowJobDetail(request *model.ShowJobDetailRequest) *def.HttpRequestDef
- func GenReqDefForShowTemplateDetail(request *model.ShowTemplateDetailRequest) *def.HttpRequestDef
- func GenRespForListPublishedTemplates() (*model.ListPublishedTemplatesResponse, *def.HttpResponseDef)
- func GenRespForRunTemplateJobV2() (*model.RunTemplateJobV2Response, *def.HttpResponseDef)
- func GenRespForShowJobDetail() (*model.ShowJobDetailResponse, *def.HttpResponseDef)
- func GenRespForShowTemplateDetail() (*model.ShowTemplateDetailResponse, *def.HttpResponseDef)
- type DevstarClient
- func (c *DevstarClient) ListPublishedTemplates(request *model.ListPublishedTemplatesRequest) (*model.ListPublishedTemplatesResponse, error)
- func (c *DevstarClient) RunTemplateJobV2(request *model.RunTemplateJobV2Request) (*model.RunTemplateJobV2Response, 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 GenReqDefForListPublishedTemplates ¶
func GenReqDefForListPublishedTemplates(request *model.ListPublishedTemplatesRequest) *def.HttpRequestDef
func GenReqDefForRunTemplateJobV2 ¶
func GenReqDefForRunTemplateJobV2(request *model.RunTemplateJobV2Request) *def.HttpRequestDef
func GenReqDefForShowJobDetail ¶
func GenReqDefForShowJobDetail(request *model.ShowJobDetailRequest) *def.HttpRequestDef
func GenReqDefForShowTemplateDetail ¶
func GenReqDefForShowTemplateDetail(request *model.ShowTemplateDetailRequest) *def.HttpRequestDef
func GenRespForListPublishedTemplates ¶
func GenRespForListPublishedTemplates() (*model.ListPublishedTemplatesResponse, *def.HttpResponseDef)
func GenRespForRunTemplateJobV2 ¶
func GenRespForRunTemplateJobV2() (*model.RunTemplateJobV2Response, *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) ListPublishedTemplates ¶
func (c *DevstarClient) ListPublishedTemplates(request *model.ListPublishedTemplatesRequest) (*model.ListPublishedTemplatesResponse, error)
查询模板列表
func (*DevstarClient) RunTemplateJobV2 ¶
func (c *DevstarClient) RunTemplateJobV2(request *model.RunTemplateJobV2Request) (*model.RunTemplateJobV2Response, error)
通过DevStar的模板进行应用代码创建 新建任务时会返回任务ID,通过任务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.