Documentation ¶
Index ¶
- func AosClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForApplyExecutionPlan() *def.HttpRequestDef
- func GenReqDefForContinueRollbackStack() *def.HttpRequestDef
- func GenReqDefForCreateExecutionPlan() *def.HttpRequestDef
- func GenReqDefForCreateStack() *def.HttpRequestDef
- func GenReqDefForDeleteStack() *def.HttpRequestDef
- func GenReqDefForDeployStack() *def.HttpRequestDef
- func GenReqDefForEstimateExecutionPlanPrice() *def.HttpRequestDef
- func GenReqDefForGetStackTemplate() *def.HttpRequestDef
- func GenReqDefForListExecutionPlans() *def.HttpRequestDef
- func GenReqDefForListStackEvents() *def.HttpRequestDef
- func GenReqDefForListStackOutputs() *def.HttpRequestDef
- func GenReqDefForListStackResources() *def.HttpRequestDef
- func GenReqDefForListStacks() *def.HttpRequestDef
- func GenReqDefForParseTemplateVariables() *def.HttpRequestDef
- type AosClient
- func (c *AosClient) ApplyExecutionPlan(request *model.ApplyExecutionPlanRequest) (*model.ApplyExecutionPlanResponse, error)
- func (c *AosClient) ApplyExecutionPlanInvoker(request *model.ApplyExecutionPlanRequest) *ApplyExecutionPlanInvoker
- func (c *AosClient) ContinueRollbackStack(request *model.ContinueRollbackStackRequest) (*model.ContinueRollbackStackResponse, error)
- func (c *AosClient) ContinueRollbackStackInvoker(request *model.ContinueRollbackStackRequest) *ContinueRollbackStackInvoker
- func (c *AosClient) CreateExecutionPlan(request *model.CreateExecutionPlanRequest) (*model.CreateExecutionPlanResponse, error)
- func (c *AosClient) CreateExecutionPlanInvoker(request *model.CreateExecutionPlanRequest) *CreateExecutionPlanInvoker
- func (c *AosClient) CreateStack(request *model.CreateStackRequest) (*model.CreateStackResponse, error)
- func (c *AosClient) CreateStackInvoker(request *model.CreateStackRequest) *CreateStackInvoker
- func (c *AosClient) DeleteStack(request *model.DeleteStackRequest) (*model.DeleteStackResponse, error)
- func (c *AosClient) DeleteStackInvoker(request *model.DeleteStackRequest) *DeleteStackInvoker
- func (c *AosClient) DeployStack(request *model.DeployStackRequest) (*model.DeployStackResponse, error)
- func (c *AosClient) DeployStackInvoker(request *model.DeployStackRequest) *DeployStackInvoker
- func (c *AosClient) EstimateExecutionPlanPrice(request *model.EstimateExecutionPlanPriceRequest) (*model.EstimateExecutionPlanPriceResponse, error)
- func (c *AosClient) EstimateExecutionPlanPriceInvoker(request *model.EstimateExecutionPlanPriceRequest) *EstimateExecutionPlanPriceInvoker
- func (c *AosClient) GetStackTemplate(request *model.GetStackTemplateRequest) (*model.GetStackTemplateResponse, error)
- func (c *AosClient) GetStackTemplateInvoker(request *model.GetStackTemplateRequest) *GetStackTemplateInvoker
- func (c *AosClient) ListExecutionPlans(request *model.ListExecutionPlansRequest) (*model.ListExecutionPlansResponse, error)
- func (c *AosClient) ListExecutionPlansInvoker(request *model.ListExecutionPlansRequest) *ListExecutionPlansInvoker
- func (c *AosClient) ListStackEvents(request *model.ListStackEventsRequest) (*model.ListStackEventsResponse, error)
- func (c *AosClient) ListStackEventsInvoker(request *model.ListStackEventsRequest) *ListStackEventsInvoker
- func (c *AosClient) ListStackOutputs(request *model.ListStackOutputsRequest) (*model.ListStackOutputsResponse, error)
- func (c *AosClient) ListStackOutputsInvoker(request *model.ListStackOutputsRequest) *ListStackOutputsInvoker
- func (c *AosClient) ListStackResources(request *model.ListStackResourcesRequest) (*model.ListStackResourcesResponse, error)
- func (c *AosClient) ListStackResourcesInvoker(request *model.ListStackResourcesRequest) *ListStackResourcesInvoker
- func (c *AosClient) ListStacks(request *model.ListStacksRequest) (*model.ListStacksResponse, error)
- func (c *AosClient) ListStacksInvoker(request *model.ListStacksRequest) *ListStacksInvoker
- func (c *AosClient) ParseTemplateVariables(request *model.ParseTemplateVariablesRequest) (*model.ParseTemplateVariablesResponse, error)
- func (c *AosClient) ParseTemplateVariablesInvoker(request *model.ParseTemplateVariablesRequest) *ParseTemplateVariablesInvoker
- type ApplyExecutionPlanInvoker
- type ContinueRollbackStackInvoker
- type CreateExecutionPlanInvoker
- type CreateStackInvoker
- type DeleteStackInvoker
- type DeployStackInvoker
- type EstimateExecutionPlanPriceInvoker
- type GetStackTemplateInvoker
- type ListExecutionPlansInvoker
- type ListStackEventsInvoker
- type ListStackOutputsInvoker
- type ListStackResourcesInvoker
- type ListStacksInvoker
- type ParseTemplateVariablesInvoker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AosClientBuilder ¶
func AosClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForApplyExecutionPlan ¶
func GenReqDefForApplyExecutionPlan() *def.HttpRequestDef
func GenReqDefForContinueRollbackStack ¶
func GenReqDefForContinueRollbackStack() *def.HttpRequestDef
func GenReqDefForCreateExecutionPlan ¶
func GenReqDefForCreateExecutionPlan() *def.HttpRequestDef
func GenReqDefForCreateStack ¶
func GenReqDefForCreateStack() *def.HttpRequestDef
func GenReqDefForDeleteStack ¶ added in v0.1.12
func GenReqDefForDeleteStack() *def.HttpRequestDef
func GenReqDefForDeployStack ¶
func GenReqDefForDeployStack() *def.HttpRequestDef
func GenReqDefForEstimateExecutionPlanPrice ¶
func GenReqDefForEstimateExecutionPlanPrice() *def.HttpRequestDef
func GenReqDefForGetStackTemplate ¶
func GenReqDefForGetStackTemplate() *def.HttpRequestDef
func GenReqDefForListExecutionPlans ¶
func GenReqDefForListExecutionPlans() *def.HttpRequestDef
func GenReqDefForListStackEvents ¶ added in v0.1.12
func GenReqDefForListStackEvents() *def.HttpRequestDef
func GenReqDefForListStackOutputs ¶
func GenReqDefForListStackOutputs() *def.HttpRequestDef
func GenReqDefForListStackResources ¶ added in v0.1.12
func GenReqDefForListStackResources() *def.HttpRequestDef
func GenReqDefForListStacks ¶
func GenReqDefForListStacks() *def.HttpRequestDef
func GenReqDefForParseTemplateVariables ¶
func GenReqDefForParseTemplateVariables() *def.HttpRequestDef
Types ¶
type AosClient ¶
type AosClient struct {
HcClient *http_client.HcHttpClient
}
func NewAosClient ¶
func NewAosClient(hcClient *http_client.HcHttpClient) *AosClient
func (*AosClient) ApplyExecutionPlan ¶
func (c *AosClient) ApplyExecutionPlan(request *model.ApplyExecutionPlanRequest) (*model.ApplyExecutionPlanResponse, error)
ApplyExecutionPlan 此命令用于执行已有的执行计划(execution plan)
此命令用于执行已有的执行计划(execution plan)
Please refer to HUAWEI cloud API Explorer for details.
func (*AosClient) ApplyExecutionPlanInvoker ¶
func (c *AosClient) ApplyExecutionPlanInvoker(request *model.ApplyExecutionPlanRequest) *ApplyExecutionPlanInvoker
ApplyExecutionPlanInvoker 此命令用于执行已有的执行计划(execution plan)
func (*AosClient) ContinueRollbackStack ¶
func (c *AosClient) ContinueRollbackStack(request *model.ContinueRollbackStackRequest) (*model.ContinueRollbackStackResponse, error)
ContinueRollbackStack 继续回滚资源栈
如果资源栈开启了自动回滚,在部署失败的时候则会自动回滚。但是自动回滚依然有可能失败,用户可以根据错误信息修复后,调用ContinueRollbackStack触发继续回滚,即重试回滚
* 如果资源栈当前可以回滚,即处于`ROLLBACK_FAILED`,则返回202与对应生成的deploymentId,否则将不允许回滚并返回响应的错误码 * 继续回滚也有可能会回滚失败。如果失败,用户可以从ListStackEvents获取对应的log,解决后可再次调用ContinueRollbackStack去继续触发回滚
Please refer to HUAWEI cloud API Explorer for details.
func (*AosClient) ContinueRollbackStackInvoker ¶
func (c *AosClient) ContinueRollbackStackInvoker(request *model.ContinueRollbackStackRequest) *ContinueRollbackStackInvoker
ContinueRollbackStackInvoker 继续回滚资源栈
func (*AosClient) CreateExecutionPlan ¶
func (c *AosClient) CreateExecutionPlan(request *model.CreateExecutionPlanRequest) (*model.CreateExecutionPlanResponse, error)
CreateExecutionPlan 此命令用于生成一个执行计划(execution plan)
此命令用于生成一个执行计划(execution plan)
Please refer to HUAWEI cloud API Explorer for details.
func (*AosClient) CreateExecutionPlanInvoker ¶
func (c *AosClient) CreateExecutionPlanInvoker(request *model.CreateExecutionPlanRequest) *CreateExecutionPlanInvoker
CreateExecutionPlanInvoker 此命令用于生成一个执行计划(execution plan)
func (*AosClient) CreateStack ¶
func (c *AosClient) CreateStack(request *model.CreateStackRequest) (*model.CreateStackResponse, error)
CreateStack 创建资源栈
CreateStack用于生成一个资源栈 ¶
* 当请求中不含有模板(template)、参数(vars)等信息,将生成一个无任何资源的空资源栈,返回资源栈ID(stack_id) * 当请求中携带了模板(template)、参数(vars)等信息,则会同时创建并部署资源栈,返回资源栈ID(stack_id)和部署ID(deployment_id)
Please refer to HUAWEI cloud API Explorer for details.
func (*AosClient) CreateStackInvoker ¶
func (c *AosClient) CreateStackInvoker(request *model.CreateStackRequest) *CreateStackInvoker
CreateStackInvoker 创建资源栈
func (*AosClient) DeleteStack ¶ added in v0.1.12
func (c *AosClient) DeleteStack(request *model.DeleteStackRequest) (*model.DeleteStackResponse, error)
DeleteStack 删除堆栈
删除堆栈
Please refer to HUAWEI cloud API Explorer for details.
func (*AosClient) DeleteStackInvoker ¶ added in v0.1.12
func (c *AosClient) DeleteStackInvoker(request *model.DeleteStackRequest) *DeleteStackInvoker
DeleteStackInvoker 删除堆栈
func (*AosClient) DeployStack ¶
func (c *AosClient) DeployStack(request *model.DeployStackRequest) (*model.DeployStackResponse, error)
DeployStack 部署一个已有的资源栈
部署一个已有的资源栈
* 用户可以使用此API更新模板、参数等并触发一个新的部署
* 此API会直接触发部署,如果用户希望先确认部署会发生的时间,请使用执行计划,即使用CreateExecutionPlan以创建执行计划、使用GetExecutionPlan以获取执行计划
* 此API为全量API,即用户每次部署都需要给予所想要使用的template、vars的全量
* 当触发的部署失败时,如果堆栈开启了自动回滚,会触发自动回滚的流程,否则就会停留在部署失败时的状态
Please refer to HUAWEI cloud API Explorer for details.
func (*AosClient) DeployStackInvoker ¶
func (c *AosClient) DeployStackInvoker(request *model.DeployStackRequest) *DeployStackInvoker
DeployStackInvoker 部署一个已有的资源栈
func (*AosClient) EstimateExecutionPlanPrice ¶
func (c *AosClient) EstimateExecutionPlanPrice(request *model.EstimateExecutionPlanPriceRequest) (*model.EstimateExecutionPlanPriceResponse, error)
EstimateExecutionPlanPrice 预估执行计划的价格
预估执行计划的价格
Please refer to HUAWEI cloud API Explorer for details.
func (*AosClient) EstimateExecutionPlanPriceInvoker ¶
func (c *AosClient) EstimateExecutionPlanPriceInvoker(request *model.EstimateExecutionPlanPriceRequest) *EstimateExecutionPlanPriceInvoker
EstimateExecutionPlanPriceInvoker 预估执行计划的价格
func (*AosClient) GetStackTemplate ¶
func (c *AosClient) GetStackTemplate(request *model.GetStackTemplateRequest) (*model.GetStackTemplateResponse, error)
GetStackTemplate 获取堆栈模板
获取堆栈当前使用的模板
Please refer to HUAWEI cloud API Explorer for details.
func (*AosClient) GetStackTemplateInvoker ¶
func (c *AosClient) GetStackTemplateInvoker(request *model.GetStackTemplateRequest) *GetStackTemplateInvoker
GetStackTemplateInvoker 获取堆栈模板
func (*AosClient) ListExecutionPlans ¶
func (c *AosClient) ListExecutionPlans(request *model.ListExecutionPlansRequest) (*model.ListExecutionPlansResponse, error)
ListExecutionPlans 列举执行计划
列举执行计划
Please refer to HUAWEI cloud API Explorer for details.
func (*AosClient) ListExecutionPlansInvoker ¶
func (c *AosClient) ListExecutionPlansInvoker(request *model.ListExecutionPlansRequest) *ListExecutionPlansInvoker
ListExecutionPlansInvoker 列举执行计划
func (*AosClient) ListStackEvents ¶ added in v0.1.12
func (c *AosClient) ListStackEvents(request *model.ListStackEventsRequest) (*model.ListStackEventsResponse, error)
ListStackEvents 获取栈的细节更新状态
获取栈的细节更新状态,可以获取整个栈从生成到当前时间点的所有状态
Please refer to HUAWEI cloud API Explorer for details.
func (*AosClient) ListStackEventsInvoker ¶ added in v0.1.12
func (c *AosClient) ListStackEventsInvoker(request *model.ListStackEventsRequest) *ListStackEventsInvoker
ListStackEventsInvoker 获取栈的细节更新状态
func (*AosClient) ListStackOutputs ¶
func (c *AosClient) ListStackOutputs(request *model.ListStackOutputsRequest) (*model.ListStackOutputsResponse, error)
ListStackOutputs 列举堆栈的输出
列举堆栈的输出
Please refer to HUAWEI cloud API Explorer for details.
func (*AosClient) ListStackOutputsInvoker ¶
func (c *AosClient) ListStackOutputsInvoker(request *model.ListStackOutputsRequest) *ListStackOutputsInvoker
ListStackOutputsInvoker 列举堆栈的输出
func (*AosClient) ListStackResources ¶ added in v0.1.12
func (c *AosClient) ListStackResources(request *model.ListStackResourcesRequest) (*model.ListStackResourcesResponse, error)
ListStackResources 获取堆栈的资源列表
获取堆栈的资源列表,可以获取整个栈从生成到当前时间点的所有状态
Please refer to HUAWEI cloud API Explorer for details.
func (*AosClient) ListStackResourcesInvoker ¶ added in v0.1.12
func (c *AosClient) ListStackResourcesInvoker(request *model.ListStackResourcesRequest) *ListStackResourcesInvoker
ListStackResourcesInvoker 获取堆栈的资源列表
func (*AosClient) ListStacks ¶
func (c *AosClient) ListStacks(request *model.ListStacksRequest) (*model.ListStacksResponse, error)
ListStacks 列举堆栈
ListStacks 列举当前局点下用户所有的堆栈
- 默认按照生成时间排序,最早生成的在最前
- 注意:目前暂时返回全量堆栈信息,即不支持分页
- 如果没有任何堆栈,则返回空list
ListStacks返回的只有摘要信息(具体摘要信息见ListStacksResponseBody),如果用户需要详细的资源栈元数据请调用GetStackMetadata ¶
Please refer to HUAWEI cloud API Explorer for details.
func (*AosClient) ListStacksInvoker ¶
func (c *AosClient) ListStacksInvoker(request *model.ListStacksRequest) *ListStacksInvoker
ListStacksInvoker 列举堆栈
func (*AosClient) ParseTemplateVariables ¶
func (c *AosClient) ParseTemplateVariables(request *model.ParseTemplateVariablesRequest) (*model.ParseTemplateVariablesResponse, error)
ParseTemplateVariables 此命令用于解析模板参数
此命令用于解析模板参数
Please refer to HUAWEI cloud API Explorer for details.
func (*AosClient) ParseTemplateVariablesInvoker ¶
func (c *AosClient) ParseTemplateVariablesInvoker(request *model.ParseTemplateVariablesRequest) *ParseTemplateVariablesInvoker
ParseTemplateVariablesInvoker 此命令用于解析模板参数
type ApplyExecutionPlanInvoker ¶
type ApplyExecutionPlanInvoker struct {
*invoker.BaseInvoker
}
func (*ApplyExecutionPlanInvoker) Invoke ¶
func (i *ApplyExecutionPlanInvoker) Invoke() (*model.ApplyExecutionPlanResponse, error)
type ContinueRollbackStackInvoker ¶
type ContinueRollbackStackInvoker struct {
*invoker.BaseInvoker
}
func (*ContinueRollbackStackInvoker) Invoke ¶
func (i *ContinueRollbackStackInvoker) Invoke() (*model.ContinueRollbackStackResponse, error)
type CreateExecutionPlanInvoker ¶
type CreateExecutionPlanInvoker struct {
*invoker.BaseInvoker
}
func (*CreateExecutionPlanInvoker) Invoke ¶
func (i *CreateExecutionPlanInvoker) Invoke() (*model.CreateExecutionPlanResponse, error)
type CreateStackInvoker ¶
type CreateStackInvoker struct {
*invoker.BaseInvoker
}
func (*CreateStackInvoker) Invoke ¶
func (i *CreateStackInvoker) Invoke() (*model.CreateStackResponse, error)
type DeleteStackInvoker ¶ added in v0.1.12
type DeleteStackInvoker struct {
*invoker.BaseInvoker
}
func (*DeleteStackInvoker) Invoke ¶ added in v0.1.12
func (i *DeleteStackInvoker) Invoke() (*model.DeleteStackResponse, error)
type DeployStackInvoker ¶
type DeployStackInvoker struct {
*invoker.BaseInvoker
}
func (*DeployStackInvoker) Invoke ¶
func (i *DeployStackInvoker) Invoke() (*model.DeployStackResponse, error)
type EstimateExecutionPlanPriceInvoker ¶
type EstimateExecutionPlanPriceInvoker struct {
*invoker.BaseInvoker
}
func (*EstimateExecutionPlanPriceInvoker) Invoke ¶
func (i *EstimateExecutionPlanPriceInvoker) Invoke() (*model.EstimateExecutionPlanPriceResponse, error)
type GetStackTemplateInvoker ¶
type GetStackTemplateInvoker struct {
*invoker.BaseInvoker
}
func (*GetStackTemplateInvoker) Invoke ¶
func (i *GetStackTemplateInvoker) Invoke() (*model.GetStackTemplateResponse, error)
type ListExecutionPlansInvoker ¶
type ListExecutionPlansInvoker struct {
*invoker.BaseInvoker
}
func (*ListExecutionPlansInvoker) Invoke ¶
func (i *ListExecutionPlansInvoker) Invoke() (*model.ListExecutionPlansResponse, error)
type ListStackEventsInvoker ¶ added in v0.1.12
type ListStackEventsInvoker struct {
*invoker.BaseInvoker
}
func (*ListStackEventsInvoker) Invoke ¶ added in v0.1.12
func (i *ListStackEventsInvoker) Invoke() (*model.ListStackEventsResponse, error)
type ListStackOutputsInvoker ¶
type ListStackOutputsInvoker struct {
*invoker.BaseInvoker
}
func (*ListStackOutputsInvoker) Invoke ¶
func (i *ListStackOutputsInvoker) Invoke() (*model.ListStackOutputsResponse, error)
type ListStackResourcesInvoker ¶ added in v0.1.12
type ListStackResourcesInvoker struct {
*invoker.BaseInvoker
}
func (*ListStackResourcesInvoker) Invoke ¶ added in v0.1.12
func (i *ListStackResourcesInvoker) Invoke() (*model.ListStackResourcesResponse, error)
type ListStacksInvoker ¶
type ListStacksInvoker struct {
*invoker.BaseInvoker
}
func (*ListStacksInvoker) Invoke ¶
func (i *ListStacksInvoker) Invoke() (*model.ListStacksResponse, error)
type ParseTemplateVariablesInvoker ¶
type ParseTemplateVariablesInvoker struct {
*invoker.BaseInvoker
}
func (*ParseTemplateVariablesInvoker) Invoke ¶
func (i *ParseTemplateVariablesInvoker) Invoke() (*model.ParseTemplateVariablesResponse, error)