Documentation ¶
Index ¶
- func GenReqDefForAttachEip() *def.HttpRequestDef
- func GenReqDefForClearGraph() *def.HttpRequestDef
- func GenReqDefForCreateBackup() *def.HttpRequestDef
- func GenReqDefForCreateGraph() *def.HttpRequestDef
- func GenReqDefForCreateMetadata() *def.HttpRequestDef
- func GenReqDefForDeleteBackup() *def.HttpRequestDef
- func GenReqDefForDeleteGraph() *def.HttpRequestDef
- func GenReqDefForDeleteMetadata() *def.HttpRequestDef
- func GenReqDefForDetachEip() *def.HttpRequestDef
- func GenReqDefForExpandGraph() *def.HttpRequestDef
- func GenReqDefForExportGraph() *def.HttpRequestDef
- func GenReqDefForImportGraph() *def.HttpRequestDef
- func GenReqDefForListBackups() *def.HttpRequestDef
- func GenReqDefForListGraphBackups() *def.HttpRequestDef
- func GenReqDefForListGraphMetadatas() *def.HttpRequestDef
- func GenReqDefForListGraphs() *def.HttpRequestDef
- func GenReqDefForListJobs() *def.HttpRequestDef
- func GenReqDefForListMetadatas() *def.HttpRequestDef
- func GenReqDefForListQuotas() *def.HttpRequestDef
- func GenReqDefForResizeGraph() *def.HttpRequestDef
- func GenReqDefForRestartGraph() *def.HttpRequestDef
- func GenReqDefForShowGraph() *def.HttpRequestDef
- func GenReqDefForShowJob() *def.HttpRequestDef
- func GenReqDefForStartGraph() *def.HttpRequestDef
- func GenReqDefForStopGraph() *def.HttpRequestDef
- func GenReqDefForUpgradeGraph() *def.HttpRequestDef
- func GenReqDefForUploadFromObs() *def.HttpRequestDef
- func GesClientBuilder() *http_client.HcHttpClientBuilder
- type GesClient
- func (c *GesClient) AttachEip(request *model.AttachEipRequest) (*model.AttachEipResponse, error)
- func (c *GesClient) ClearGraph(request *model.ClearGraphRequest) (*model.ClearGraphResponse, error)
- func (c *GesClient) CreateBackup(request *model.CreateBackupRequest) (*model.CreateBackupResponse, error)
- func (c *GesClient) CreateGraph(request *model.CreateGraphRequest) (*model.CreateGraphResponse, error)
- func (c *GesClient) CreateMetadata(request *model.CreateMetadataRequest) (*model.CreateMetadataResponse, error)
- func (c *GesClient) DeleteBackup(request *model.DeleteBackupRequest) (*model.DeleteBackupResponse, error)
- func (c *GesClient) DeleteGraph(request *model.DeleteGraphRequest) (*model.DeleteGraphResponse, error)
- func (c *GesClient) DeleteMetadata(request *model.DeleteMetadataRequest) (*model.DeleteMetadataResponse, error)
- func (c *GesClient) DetachEip(request *model.DetachEipRequest) (*model.DetachEipResponse, error)
- func (c *GesClient) ExpandGraph(request *model.ExpandGraphRequest) (*model.ExpandGraphResponse, error)
- func (c *GesClient) ExportGraph(request *model.ExportGraphRequest) (*model.ExportGraphResponse, error)
- func (c *GesClient) ImportGraph(request *model.ImportGraphRequest) (*model.ImportGraphResponse, error)
- func (c *GesClient) ListBackups(request *model.ListBackupsRequest) (*model.ListBackupsResponse, error)
- func (c *GesClient) ListGraphBackups(request *model.ListGraphBackupsRequest) (*model.ListGraphBackupsResponse, error)
- func (c *GesClient) ListGraphMetadatas(request *model.ListGraphMetadatasRequest) (*model.ListGraphMetadatasResponse, error)
- func (c *GesClient) ListGraphs(request *model.ListGraphsRequest) (*model.ListGraphsResponse, error)
- func (c *GesClient) ListJobs(request *model.ListJobsRequest) (*model.ListJobsResponse, error)
- func (c *GesClient) ListMetadatas(request *model.ListMetadatasRequest) (*model.ListMetadatasResponse, error)
- func (c *GesClient) ListQuotas(request *model.ListQuotasRequest) (*model.ListQuotasResponse, error)
- func (c *GesClient) ResizeGraph(request *model.ResizeGraphRequest) (*model.ResizeGraphResponse, error)
- func (c *GesClient) RestartGraph(request *model.RestartGraphRequest) (*model.RestartGraphResponse, error)
- func (c *GesClient) ShowGraph(request *model.ShowGraphRequest) (*model.ShowGraphResponse, error)
- func (c *GesClient) ShowJob(request *model.ShowJobRequest) (*model.ShowJobResponse, error)
- func (c *GesClient) StartGraph(request *model.StartGraphRequest) (*model.StartGraphResponse, error)
- func (c *GesClient) StopGraph(request *model.StopGraphRequest) (*model.StopGraphResponse, error)
- func (c *GesClient) UpgradeGraph(request *model.UpgradeGraphRequest) (*model.UpgradeGraphResponse, error)
- func (c *GesClient) UploadFromObs(request *model.UploadFromObsRequest) (*model.UploadFromObsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenReqDefForAttachEip ¶
func GenReqDefForAttachEip() *def.HttpRequestDef
func GenReqDefForClearGraph ¶
func GenReqDefForClearGraph() *def.HttpRequestDef
func GenReqDefForCreateBackup ¶
func GenReqDefForCreateBackup() *def.HttpRequestDef
func GenReqDefForCreateGraph ¶
func GenReqDefForCreateGraph() *def.HttpRequestDef
func GenReqDefForCreateMetadata ¶
func GenReqDefForCreateMetadata() *def.HttpRequestDef
func GenReqDefForDeleteBackup ¶
func GenReqDefForDeleteBackup() *def.HttpRequestDef
func GenReqDefForDeleteGraph ¶
func GenReqDefForDeleteGraph() *def.HttpRequestDef
func GenReqDefForDeleteMetadata ¶
func GenReqDefForDeleteMetadata() *def.HttpRequestDef
func GenReqDefForDetachEip ¶
func GenReqDefForDetachEip() *def.HttpRequestDef
func GenReqDefForExpandGraph ¶ added in v0.0.69
func GenReqDefForExpandGraph() *def.HttpRequestDef
func GenReqDefForExportGraph ¶
func GenReqDefForExportGraph() *def.HttpRequestDef
func GenReqDefForImportGraph ¶
func GenReqDefForImportGraph() *def.HttpRequestDef
func GenReqDefForListBackups ¶
func GenReqDefForListBackups() *def.HttpRequestDef
func GenReqDefForListGraphBackups ¶
func GenReqDefForListGraphBackups() *def.HttpRequestDef
func GenReqDefForListGraphMetadatas ¶
func GenReqDefForListGraphMetadatas() *def.HttpRequestDef
func GenReqDefForListGraphs ¶
func GenReqDefForListGraphs() *def.HttpRequestDef
func GenReqDefForListJobs ¶
func GenReqDefForListJobs() *def.HttpRequestDef
func GenReqDefForListMetadatas ¶
func GenReqDefForListMetadatas() *def.HttpRequestDef
func GenReqDefForListQuotas ¶
func GenReqDefForListQuotas() *def.HttpRequestDef
func GenReqDefForResizeGraph ¶ added in v0.0.69
func GenReqDefForResizeGraph() *def.HttpRequestDef
func GenReqDefForRestartGraph ¶
func GenReqDefForRestartGraph() *def.HttpRequestDef
func GenReqDefForShowGraph ¶
func GenReqDefForShowGraph() *def.HttpRequestDef
func GenReqDefForShowJob ¶
func GenReqDefForShowJob() *def.HttpRequestDef
func GenReqDefForStartGraph ¶
func GenReqDefForStartGraph() *def.HttpRequestDef
func GenReqDefForStopGraph ¶
func GenReqDefForStopGraph() *def.HttpRequestDef
func GenReqDefForUpgradeGraph ¶
func GenReqDefForUpgradeGraph() *def.HttpRequestDef
func GenReqDefForUploadFromObs ¶ added in v0.0.69
func GenReqDefForUploadFromObs() *def.HttpRequestDef
func GesClientBuilder ¶
func GesClientBuilder() *http_client.HcHttpClientBuilder
Types ¶
type GesClient ¶
type GesClient struct {
HcClient *http_client.HcHttpClient
}
func NewGesClient ¶
func NewGesClient(hcClient *http_client.HcHttpClient) *GesClient
func (*GesClient) AttachEip ¶
func (c *GesClient) AttachEip(request *model.AttachEipRequest) (*model.AttachEipResponse, error)
绑定EIP(1.0.6)
可以通过绑定弹性公网IP(简称EIP)访问GES服务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) ClearGraph ¶
func (c *GesClient) ClearGraph(request *model.ClearGraphRequest) (*model.ClearGraphResponse, error)
清空图(2.1.2)
清空图中所有数据。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) CreateBackup ¶
func (c *GesClient) CreateBackup(request *model.CreateBackupRequest) (*model.CreateBackupResponse, error)
新增备份(1.0.0)
新增备份。当前图数据出现错误或故障时,可以启动备份图进行恢复。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) CreateGraph ¶
func (c *GesClient) CreateGraph(request *model.CreateGraphRequest) (*model.CreateGraphResponse, error)
创建图(2.2.2)
创建一个图。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) CreateMetadata ¶
func (c *GesClient) CreateMetadata(request *model.CreateMetadataRequest) (*model.CreateMetadataResponse, error)
新增元数据(2.1.18)
新增元数据。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) DeleteBackup ¶
func (c *GesClient) DeleteBackup(request *model.DeleteBackupRequest) (*model.DeleteBackupResponse, error)
删除备份(1.0.0)
删除备份。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) DeleteGraph ¶
func (c *GesClient) DeleteGraph(request *model.DeleteGraphRequest) (*model.DeleteGraphResponse, error)
删除图(1.0.0)
删除一个图。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) DeleteMetadata ¶
func (c *GesClient) DeleteMetadata(request *model.DeleteMetadataRequest) (*model.DeleteMetadataResponse, error)
删除元数据(1.0.2)
删除元数据。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) DetachEip ¶
func (c *GesClient) DetachEip(request *model.DetachEipRequest) (*model.DetachEipResponse, error)
解绑EIP(1.0.6)
当无需继续使用EIP时,您可通过解绑EIP来释放网络资源。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) ExpandGraph ¶ added in v0.0.69
func (c *GesClient) ExpandGraph(request *model.ExpandGraphRequest) (*model.ExpandGraphResponse, error)
扩副本(2.2.23)
扩副本能力允许动态扩容多个从节点,扩容的从节点可以处理读请求,从而提高读请求性能。 >一万边和百亿边规格的图暂不支持扩副本。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) ExportGraph ¶
func (c *GesClient) ExportGraph(request *model.ExportGraphRequest) (*model.ExportGraphResponse, error)
导出图(1.0.5)
导出图。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) ImportGraph ¶
func (c *GesClient) ImportGraph(request *model.ImportGraphRequest) (*model.ImportGraphResponse, error)
增量导入图(2.1.14)
增量导入图数据。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) ListBackups ¶
func (c *GesClient) ListBackups(request *model.ListBackupsRequest) (*model.ListBackupsResponse, error)
查看所有备份列表(1.0.0)
查询备份列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) ListGraphBackups ¶
func (c *GesClient) ListGraphBackups(request *model.ListGraphBackupsRequest) (*model.ListGraphBackupsResponse, error)
查看某个图的备份列表(1.0.0)
查询某个图下的备份列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) ListGraphMetadatas ¶
func (c *GesClient) ListGraphMetadatas(request *model.ListGraphMetadatasRequest) (*model.ListGraphMetadatasResponse, error)
查询元数据(1.0.2)
查询某个图下的元数据。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) ListGraphs ¶
func (c *GesClient) ListGraphs(request *model.ListGraphsRequest) (*model.ListGraphsResponse, error)
查询图列表(2.1.18)
查询当前租户所有的图。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) ListJobs ¶
func (c *GesClient) ListJobs(request *model.ListJobsRequest) (*model.ListJobsResponse, error)
查询任务中心(1.1.8)
查询管理面任务中心。当前创建图、关闭图、启动图、删除图、增加备份、导入图、导出图、升级图等操作为异步任务,该API用于查询这些任务的详情。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) ListMetadatas ¶
func (c *GesClient) ListMetadatas(request *model.ListMetadatasRequest) (*model.ListMetadatasResponse, error)
查询元数据列表(1.0.2)
查询元数据列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) ListQuotas ¶
func (c *GesClient) ListQuotas(request *model.ListQuotasRequest) (*model.ListQuotasResponse, error)
查询配额(1.0.0)
查询租户配额。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) ResizeGraph ¶ added in v0.0.69
func (c *GesClient) ResizeGraph(request *model.ResizeGraphRequest) (*model.ResizeGraphResponse, error)
扩容图(2.2.21)
扩容图规格。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) RestartGraph ¶
func (c *GesClient) RestartGraph(request *model.RestartGraphRequest) (*model.RestartGraphResponse, error)
强制重启图(2.2.21)
强制启动一个图。针对导入、导出 、运行中 、清空中的图。强制重启图,会将该图执行中的异步任务变为失败,然后停止图、启动图到运行状态。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) ShowGraph ¶
func (c *GesClient) ShowGraph(request *model.ShowGraphRequest) (*model.ShowGraphResponse, error)
查询图详情(1.0.0)
根据图ID查询某个图详情。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) ShowJob ¶
func (c *GesClient) ShowJob(request *model.ShowJobRequest) (*model.ShowJobResponse, error)
查询Job状态(1.0.0)-管理面
查询Job的执行状态。对创建图、关闭图、启动图、删除图、导入图等异步API命令下发后,会返回jobId,通过jobId查询任务的执行状态。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) StartGraph ¶
func (c *GesClient) StartGraph(request *model.StartGraphRequest) (*model.StartGraphResponse, error)
启动图(1.0.0)
启动一个图。暂时不用的图可以先关闭,需要使用时再启动。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) StopGraph ¶
func (c *GesClient) StopGraph(request *model.StopGraphRequest) (*model.StopGraphResponse, error)
关闭图(1.0.0)
关闭一个图。如果图创建好了,暂时不用可以先关闭,需要使用时再启用。 >处于关闭状态的图不计算实例费用。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) UpgradeGraph ¶
func (c *GesClient) UpgradeGraph(request *model.UpgradeGraphRequest) (*model.UpgradeGraphResponse, error)
升级图(1.0.5)
升级图。图引擎服务会定期升级版本,用户可根据需要升级图。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GesClient) UploadFromObs ¶ added in v0.0.69
func (c *GesClient) UploadFromObs(request *model.UploadFromObsRequest) (*model.UploadFromObsResponse, error)
从OBS导入元数据(1.0.0)
从OBS导入元数据。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.