v1

package
v0.1.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaeClientBuilder

func CaeClientBuilder() *http_client.HcHttpClientBuilder

func GenReqDefForCreateAgency

func GenReqDefForCreateAgency() *def.HttpRequestDef

func GenReqDefForCreateApplication

func GenReqDefForCreateApplication() *def.HttpRequestDef

func GenReqDefForCreateComponent

func GenReqDefForCreateComponent() *def.HttpRequestDef

func GenReqDefForCreateComponentConfiguration

func GenReqDefForCreateComponentConfiguration() *def.HttpRequestDef

func GenReqDefForCreateEnvironment

func GenReqDefForCreateEnvironment() *def.HttpRequestDef

func GenReqDefForCreateVolume

func GenReqDefForCreateVolume() *def.HttpRequestDef

func GenReqDefForDeleteApplication

func GenReqDefForDeleteApplication() *def.HttpRequestDef

func GenReqDefForDeleteComponent

func GenReqDefForDeleteComponent() *def.HttpRequestDef

func GenReqDefForDeleteComponentConfiguration

func GenReqDefForDeleteComponentConfiguration() *def.HttpRequestDef

func GenReqDefForDeleteEnvironment

func GenReqDefForDeleteEnvironment() *def.HttpRequestDef

func GenReqDefForDeleteVolume

func GenReqDefForDeleteVolume() *def.HttpRequestDef

func GenReqDefForExecuteAction

func GenReqDefForExecuteAction() *def.HttpRequestDef

func GenReqDefForListApplications

func GenReqDefForListApplications() *def.HttpRequestDef

func GenReqDefForListComponentSnapshots

func GenReqDefForListComponentSnapshots() *def.HttpRequestDef

func GenReqDefForListComponents

func GenReqDefForListComponents() *def.HttpRequestDef

func GenReqDefForListConfigurations

func GenReqDefForListConfigurations() *def.HttpRequestDef

func GenReqDefForListEnvironments

func GenReqDefForListEnvironments() *def.HttpRequestDef

func GenReqDefForListEvents

func GenReqDefForListEvents() *def.HttpRequestDef

func GenReqDefForListInstances

func GenReqDefForListInstances() *def.HttpRequestDef

func GenReqDefForListVolumes

func GenReqDefForListVolumes() *def.HttpRequestDef

func GenReqDefForRetryJob

func GenReqDefForRetryJob() *def.HttpRequestDef

func GenReqDefForShowAgency

func GenReqDefForShowAgency() *def.HttpRequestDef

func GenReqDefForShowApplication

func GenReqDefForShowApplication() *def.HttpRequestDef

func GenReqDefForShowComponent

func GenReqDefForShowComponent() *def.HttpRequestDef

func GenReqDefForShowJob

func GenReqDefForShowJob() *def.HttpRequestDef

func GenReqDefForUpdateComponent

func GenReqDefForUpdateComponent() *def.HttpRequestDef

Types

type CaeClient

type CaeClient struct {
	HcClient *http_client.HcHttpClient
}

func NewCaeClient

func NewCaeClient(hcClient *http_client.HcHttpClient) *CaeClient

func (*CaeClient) CreateAgency

func (c *CaeClient) CreateAgency(request *model.CreateAgencyRequest) (*model.CreateAgencyResponse, error)

CreateAgency 创建委托

本接口用于创建cae_trust委托

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) CreateAgencyInvoker

func (c *CaeClient) CreateAgencyInvoker(request *model.CreateAgencyRequest) *CreateAgencyInvoker

CreateAgencyInvoker 创建委托

func (*CaeClient) CreateApplication

func (c *CaeClient) CreateApplication(request *model.CreateApplicationRequest) (*model.CreateApplicationResponse, error)

CreateApplication 创建应用

本接口用于创建一个应用

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) CreateApplicationInvoker

func (c *CaeClient) CreateApplicationInvoker(request *model.CreateApplicationRequest) *CreateApplicationInvoker

CreateApplicationInvoker 创建应用

func (*CaeClient) CreateComponent

func (c *CaeClient) CreateComponent(request *model.CreateComponentRequest) (*model.CreateComponentResponse, error)

CreateComponent 创建组件

本接口用于创建一个组件,组件是CAE的最小部署单位,支持将用户的源码,部署包,镜像等资源部署到组件上

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) CreateComponentConfiguration

CreateComponentConfiguration 创建组件配置

本接口用于创建组件配置

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) CreateComponentConfigurationInvoker

func (c *CaeClient) CreateComponentConfigurationInvoker(request *model.CreateComponentConfigurationRequest) *CreateComponentConfigurationInvoker

CreateComponentConfigurationInvoker 创建组件配置

func (*CaeClient) CreateComponentInvoker

func (c *CaeClient) CreateComponentInvoker(request *model.CreateComponentRequest) *CreateComponentInvoker

CreateComponentInvoker 创建组件

func (*CaeClient) CreateEnvironment

func (c *CaeClient) CreateEnvironment(request *model.CreateEnvironmentRequest) (*model.CreateEnvironmentResponse, error)

CreateEnvironment 创建环境

本接口用于创建一个环境,环境是CAE定义的一个资源维度,所有的用户组件都放在环境下

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) CreateEnvironmentInvoker

func (c *CaeClient) CreateEnvironmentInvoker(request *model.CreateEnvironmentRequest) *CreateEnvironmentInvoker

CreateEnvironmentInvoker 创建环境

func (*CaeClient) CreateVolume

func (c *CaeClient) CreateVolume(request *model.CreateVolumeRequest) (*model.CreateVolumeResponse, error)

CreateVolume 创建卷

本接口用于创建卷

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) CreateVolumeInvoker

func (c *CaeClient) CreateVolumeInvoker(request *model.CreateVolumeRequest) *CreateVolumeInvoker

CreateVolumeInvoker 创建卷

func (*CaeClient) DeleteApplication

func (c *CaeClient) DeleteApplication(request *model.DeleteApplicationRequest) (*model.DeleteApplicationResponse, error)

DeleteApplication 删除应用

本接口用于删除指定应用

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) DeleteApplicationInvoker

func (c *CaeClient) DeleteApplicationInvoker(request *model.DeleteApplicationRequest) *DeleteApplicationInvoker

DeleteApplicationInvoker 删除应用

func (*CaeClient) DeleteComponent

func (c *CaeClient) DeleteComponent(request *model.DeleteComponentRequest) (*model.DeleteComponentResponse, error)

DeleteComponent 删除组件

本接口用于删除指定的组件,组件是CAE的最小部署单位,支持将用户的源码,部署包,镜像等资源部署到组件上

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) DeleteComponentConfiguration

DeleteComponentConfiguration 删除组件配置

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) DeleteComponentConfigurationInvoker

func (c *CaeClient) DeleteComponentConfigurationInvoker(request *model.DeleteComponentConfigurationRequest) *DeleteComponentConfigurationInvoker

DeleteComponentConfigurationInvoker 删除组件配置

func (*CaeClient) DeleteComponentInvoker

func (c *CaeClient) DeleteComponentInvoker(request *model.DeleteComponentRequest) *DeleteComponentInvoker

DeleteComponentInvoker 删除组件

func (*CaeClient) DeleteEnvironment

func (c *CaeClient) DeleteEnvironment(request *model.DeleteEnvironmentRequest) (*model.DeleteEnvironmentResponse, error)

DeleteEnvironment 删除环境

本接口用于删除环境,暂未开放。

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) DeleteEnvironmentInvoker

func (c *CaeClient) DeleteEnvironmentInvoker(request *model.DeleteEnvironmentRequest) *DeleteEnvironmentInvoker

DeleteEnvironmentInvoker 删除环境

func (*CaeClient) DeleteVolume

func (c *CaeClient) DeleteVolume(request *model.DeleteVolumeRequest) (*model.DeleteVolumeResponse, error)

DeleteVolume 删除卷

本接口用于创建卷

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) DeleteVolumeInvoker

func (c *CaeClient) DeleteVolumeInvoker(request *model.DeleteVolumeRequest) *DeleteVolumeInvoker

DeleteVolumeInvoker 删除卷

func (*CaeClient) ExecuteAction

func (c *CaeClient) ExecuteAction(request *model.ExecuteActionRequest) (*model.ExecuteActionResponse, error)

ExecuteAction 操作组件

本接口用于对组件执行指定操作,如部署、升级、重启、停止、启动、伸缩、重试、配置、回滚

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) ExecuteActionInvoker

func (c *CaeClient) ExecuteActionInvoker(request *model.ExecuteActionRequest) *ExecuteActionInvoker

ExecuteActionInvoker 操作组件

func (*CaeClient) ListApplications

func (c *CaeClient) ListApplications(request *model.ListApplicationsRequest) (*model.ListApplicationsResponse, error)

ListApplications 获取应用列表

本接口用于获取当前环境下的应用列表

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) ListApplicationsInvoker

func (c *CaeClient) ListApplicationsInvoker(request *model.ListApplicationsRequest) *ListApplicationsInvoker

ListApplicationsInvoker 获取应用列表

func (*CaeClient) ListComponentSnapshots

ListComponentSnapshots 获取组件快照列表

本接口用于获取组件快照版本

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) ListComponentSnapshotsInvoker

func (c *CaeClient) ListComponentSnapshotsInvoker(request *model.ListComponentSnapshotsRequest) *ListComponentSnapshotsInvoker

ListComponentSnapshotsInvoker 获取组件快照列表

func (*CaeClient) ListComponents

func (c *CaeClient) ListComponents(request *model.ListComponentsRequest) (*model.ListComponentsResponse, error)

ListComponents 获取组件列表

本接口用于获取组件列表,组件是CAE的最小部署单位,支持将用户的源码,部署包,镜像等资源部署到组件上

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) ListComponentsInvoker

func (c *CaeClient) ListComponentsInvoker(request *model.ListComponentsRequest) *ListComponentsInvoker

ListComponentsInvoker 获取组件列表

func (*CaeClient) ListConfigurations

func (c *CaeClient) ListConfigurations(request *model.ListConfigurationsRequest) (*model.ListConfigurationsResponse, error)

ListConfigurations 获取组件配置列表

本接口用于获取组件配置

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) ListConfigurationsInvoker

func (c *CaeClient) ListConfigurationsInvoker(request *model.ListConfigurationsRequest) *ListConfigurationsInvoker

ListConfigurationsInvoker 获取组件配置列表

func (*CaeClient) ListEnvironments

func (c *CaeClient) ListEnvironments(request *model.ListEnvironmentsRequest) (*model.ListEnvironmentsResponse, error)

ListEnvironments 获取环境列表

本接口用于获取当前租户环境信息,环境是CAE定义的一个资源维度,所有的用户组件都放在环境下

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) ListEnvironmentsInvoker

func (c *CaeClient) ListEnvironmentsInvoker(request *model.ListEnvironmentsRequest) *ListEnvironmentsInvoker

ListEnvironmentsInvoker 获取环境列表

func (*CaeClient) ListEvents

func (c *CaeClient) ListEvents(request *model.ListEventsRequest) (*model.ListEventsResponse, error)

ListEvents 获取事件列表

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) ListEventsInvoker

func (c *CaeClient) ListEventsInvoker(request *model.ListEventsRequest) *ListEventsInvoker

ListEventsInvoker 获取事件列表

func (*CaeClient) ListInstances

func (c *CaeClient) ListInstances(request *model.ListInstancesRequest) (*model.ListInstancesResponse, error)

ListInstances 获取组件实例列表

本接口用于获取组件实例列表

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) ListInstancesInvoker

func (c *CaeClient) ListInstancesInvoker(request *model.ListInstancesRequest) *ListInstancesInvoker

ListInstancesInvoker 获取组件实例列表

func (*CaeClient) ListVolumes

func (c *CaeClient) ListVolumes(request *model.ListVolumesRequest) (*model.ListVolumesResponse, error)

ListVolumes 获取卷列表

本接口用于获取卷列表

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) ListVolumesInvoker

func (c *CaeClient) ListVolumesInvoker(request *model.ListVolumesRequest) *ListVolumesInvoker

ListVolumesInvoker 获取卷列表

func (*CaeClient) RetryJob

func (c *CaeClient) RetryJob(request *model.RetryJobRequest) (*model.RetryJobResponse, error)

RetryJob 重试任务

本接口用于重试任务

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) RetryJobInvoker

func (c *CaeClient) RetryJobInvoker(request *model.RetryJobRequest) *RetryJobInvoker

RetryJobInvoker 重试任务

func (*CaeClient) ShowAgency

func (c *CaeClient) ShowAgency(request *model.ShowAgencyRequest) (*model.ShowAgencyResponse, error)

ShowAgency 获取委托

本接口用于获取cae_trust委托,如果委托不存在则创建委托

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) ShowAgencyInvoker

func (c *CaeClient) ShowAgencyInvoker(request *model.ShowAgencyRequest) *ShowAgencyInvoker

ShowAgencyInvoker 获取委托

func (*CaeClient) ShowApplication

func (c *CaeClient) ShowApplication(request *model.ShowApplicationRequest) (*model.ShowApplicationResponse, error)

ShowApplication 获取应用

本接口用于获取指定应用详情

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) ShowApplicationInvoker

func (c *CaeClient) ShowApplicationInvoker(request *model.ShowApplicationRequest) *ShowApplicationInvoker

ShowApplicationInvoker 获取应用

func (*CaeClient) ShowComponent

func (c *CaeClient) ShowComponent(request *model.ShowComponentRequest) (*model.ShowComponentResponse, error)

ShowComponent 获取组件

本接口用于获取指定的组件,组件是CAE的最小部署单位,支持将用户的源码,部署包,镜像等资源部署到组件上

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) ShowComponentInvoker

func (c *CaeClient) ShowComponentInvoker(request *model.ShowComponentRequest) *ShowComponentInvoker

ShowComponentInvoker 获取组件

func (*CaeClient) ShowJob

func (c *CaeClient) ShowJob(request *model.ShowJobRequest) (*model.ShowJobResponse, error)

ShowJob 获取任务详情

本接口用于获取任务详情

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) ShowJobInvoker

func (c *CaeClient) ShowJobInvoker(request *model.ShowJobRequest) *ShowJobInvoker

ShowJobInvoker 获取任务详情

func (*CaeClient) UpdateComponent

func (c *CaeClient) UpdateComponent(request *model.UpdateComponentRequest) (*model.UpdateComponentResponse, error)

UpdateComponent 更新组件

本接口用于更新指定的组件,组件是CAE的最小部署单位,支持将用户的源码,部署包,镜像等资源部署到组件上

Please refer to HUAWEI cloud API Explorer for details.

func (*CaeClient) UpdateComponentInvoker

func (c *CaeClient) UpdateComponentInvoker(request *model.UpdateComponentRequest) *UpdateComponentInvoker

UpdateComponentInvoker 更新组件

type CreateAgencyInvoker

type CreateAgencyInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateAgencyInvoker) Invoke

type CreateApplicationInvoker

type CreateApplicationInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateApplicationInvoker) Invoke

type CreateComponentConfigurationInvoker

type CreateComponentConfigurationInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateComponentConfigurationInvoker) Invoke

type CreateComponentInvoker

type CreateComponentInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateComponentInvoker) Invoke

type CreateEnvironmentInvoker

type CreateEnvironmentInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateEnvironmentInvoker) Invoke

type CreateVolumeInvoker

type CreateVolumeInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateVolumeInvoker) Invoke

type DeleteApplicationInvoker

type DeleteApplicationInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteApplicationInvoker) Invoke

type DeleteComponentConfigurationInvoker

type DeleteComponentConfigurationInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteComponentConfigurationInvoker) Invoke

type DeleteComponentInvoker

type DeleteComponentInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteComponentInvoker) Invoke

type DeleteEnvironmentInvoker

type DeleteEnvironmentInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteEnvironmentInvoker) Invoke

type DeleteVolumeInvoker

type DeleteVolumeInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteVolumeInvoker) Invoke

type ExecuteActionInvoker

type ExecuteActionInvoker struct {
	*invoker.BaseInvoker
}

func (*ExecuteActionInvoker) Invoke

type ListApplicationsInvoker

type ListApplicationsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListApplicationsInvoker) Invoke

type ListComponentSnapshotsInvoker

type ListComponentSnapshotsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListComponentSnapshotsInvoker) Invoke

type ListComponentsInvoker

type ListComponentsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListComponentsInvoker) Invoke

type ListConfigurationsInvoker

type ListConfigurationsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListConfigurationsInvoker) Invoke

type ListEnvironmentsInvoker

type ListEnvironmentsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListEnvironmentsInvoker) Invoke

type ListEventsInvoker

type ListEventsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListEventsInvoker) Invoke

type ListInstancesInvoker

type ListInstancesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListInstancesInvoker) Invoke

type ListVolumesInvoker

type ListVolumesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListVolumesInvoker) Invoke

type RetryJobInvoker

type RetryJobInvoker struct {
	*invoker.BaseInvoker
}

func (*RetryJobInvoker) Invoke

func (i *RetryJobInvoker) Invoke() (*model.RetryJobResponse, error)

type ShowAgencyInvoker

type ShowAgencyInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowAgencyInvoker) Invoke

type ShowApplicationInvoker

type ShowApplicationInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowApplicationInvoker) Invoke

type ShowComponentInvoker

type ShowComponentInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowComponentInvoker) Invoke

type ShowJobInvoker

type ShowJobInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowJobInvoker) Invoke

func (i *ShowJobInvoker) Invoke() (*model.ShowJobResponse, error)

type UpdateComponentInvoker

type UpdateComponentInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateComponentInvoker) Invoke

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL