Documentation ¶
Index ¶
- func FunctionGraphClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForAsyncInvokeFunction() *def.HttpRequestDef
- func GenReqDefForBatchDeleteFunctionTriggers() *def.HttpRequestDef
- func GenReqDefForCreateDependency() *def.HttpRequestDef
- func GenReqDefForCreateEvent() *def.HttpRequestDef
- func GenReqDefForCreateFunction() *def.HttpRequestDef
- func GenReqDefForCreateFunctionTrigger() *def.HttpRequestDef
- func GenReqDefForCreateFunctionVersion() *def.HttpRequestDef
- func GenReqDefForCreateVersionAlias() *def.HttpRequestDef
- func GenReqDefForDeleteDependency() *def.HttpRequestDef
- func GenReqDefForDeleteEvent() *def.HttpRequestDef
- func GenReqDefForDeleteFunction() *def.HttpRequestDef
- func GenReqDefForDeleteFunctionTrigger() *def.HttpRequestDef
- func GenReqDefForDeleteVersionAlias() *def.HttpRequestDef
- func GenReqDefForInvokeFunction() *def.HttpRequestDef
- func GenReqDefForListDependencies() *def.HttpRequestDef
- func GenReqDefForListEvents() *def.HttpRequestDef
- func GenReqDefForListFunctionStatistics() *def.HttpRequestDef
- func GenReqDefForListFunctionTriggers() *def.HttpRequestDef
- func GenReqDefForListFunctionVersions() *def.HttpRequestDef
- func GenReqDefForListFunctions() *def.HttpRequestDef
- func GenReqDefForListQuotas() *def.HttpRequestDef
- func GenReqDefForListStatistics() *def.HttpRequestDef
- func GenReqDefForListVersionAliases() *def.HttpRequestDef
- func GenReqDefForShowDependency() *def.HttpRequestDef
- func GenReqDefForShowEvent() *def.HttpRequestDef
- func GenReqDefForShowFunctionCode() *def.HttpRequestDef
- func GenReqDefForShowFunctionConfig() *def.HttpRequestDef
- func GenReqDefForShowFunctionTrigger() *def.HttpRequestDef
- func GenReqDefForShowVersionAlias() *def.HttpRequestDef
- func GenReqDefForUpdateDependency() *def.HttpRequestDef
- func GenReqDefForUpdateEvent() *def.HttpRequestDef
- func GenReqDefForUpdateFunctionCode() *def.HttpRequestDef
- func GenReqDefForUpdateFunctionConfig() *def.HttpRequestDef
- func GenReqDefForUpdateFunctionReservedInstances() *def.HttpRequestDef
- func GenReqDefForUpdateTrigger() *def.HttpRequestDef
- func GenReqDefForUpdateVersionAlias() *def.HttpRequestDef
- type FunctionGraphClient
- func (c *FunctionGraphClient) AsyncInvokeFunction(request *model.AsyncInvokeFunctionRequest) (*model.AsyncInvokeFunctionResponse, error)
- func (c *FunctionGraphClient) BatchDeleteFunctionTriggers(request *model.BatchDeleteFunctionTriggersRequest) (*model.BatchDeleteFunctionTriggersResponse, error)
- func (c *FunctionGraphClient) CreateDependency(request *model.CreateDependencyRequest) (*model.CreateDependencyResponse, error)
- func (c *FunctionGraphClient) CreateEvent(request *model.CreateEventRequest) (*model.CreateEventResponse, error)
- func (c *FunctionGraphClient) CreateFunction(request *model.CreateFunctionRequest) (*model.CreateFunctionResponse, error)
- func (c *FunctionGraphClient) CreateFunctionTrigger(request *model.CreateFunctionTriggerRequest) (*model.CreateFunctionTriggerResponse, error)
- func (c *FunctionGraphClient) CreateFunctionVersion(request *model.CreateFunctionVersionRequest) (*model.CreateFunctionVersionResponse, error)
- func (c *FunctionGraphClient) CreateVersionAlias(request *model.CreateVersionAliasRequest) (*model.CreateVersionAliasResponse, error)
- func (c *FunctionGraphClient) DeleteDependency(request *model.DeleteDependencyRequest) (*model.DeleteDependencyResponse, error)
- func (c *FunctionGraphClient) DeleteEvent(request *model.DeleteEventRequest) (*model.DeleteEventResponse, error)
- func (c *FunctionGraphClient) DeleteFunction(request *model.DeleteFunctionRequest) (*model.DeleteFunctionResponse, error)
- func (c *FunctionGraphClient) DeleteFunctionTrigger(request *model.DeleteFunctionTriggerRequest) (*model.DeleteFunctionTriggerResponse, error)
- func (c *FunctionGraphClient) DeleteVersionAlias(request *model.DeleteVersionAliasRequest) (*model.DeleteVersionAliasResponse, error)
- func (c *FunctionGraphClient) InvokeFunction(request *model.InvokeFunctionRequest) (*model.InvokeFunctionResponse, error)
- func (c *FunctionGraphClient) ListDependencies(request *model.ListDependenciesRequest) (*model.ListDependenciesResponse, error)
- func (c *FunctionGraphClient) ListEvents(request *model.ListEventsRequest) (*model.ListEventsResponse, error)
- func (c *FunctionGraphClient) ListFunctionStatistics(request *model.ListFunctionStatisticsRequest) (*model.ListFunctionStatisticsResponse, error)
- func (c *FunctionGraphClient) ListFunctionTriggers(request *model.ListFunctionTriggersRequest) (*model.ListFunctionTriggersResponse, error)
- func (c *FunctionGraphClient) ListFunctionVersions(request *model.ListFunctionVersionsRequest) (*model.ListFunctionVersionsResponse, error)
- func (c *FunctionGraphClient) ListFunctions(request *model.ListFunctionsRequest) (*model.ListFunctionsResponse, error)
- func (c *FunctionGraphClient) ListQuotas(request *model.ListQuotasRequest) (*model.ListQuotasResponse, error)
- func (c *FunctionGraphClient) ListStatistics(request *model.ListStatisticsRequest) (*model.ListStatisticsResponse, error)
- func (c *FunctionGraphClient) ListVersionAliases(request *model.ListVersionAliasesRequest) (*model.ListVersionAliasesResponse, error)
- func (c *FunctionGraphClient) ShowDependency(request *model.ShowDependencyRequest) (*model.ShowDependencyResponse, error)
- func (c *FunctionGraphClient) ShowEvent(request *model.ShowEventRequest) (*model.ShowEventResponse, error)
- func (c *FunctionGraphClient) ShowFunctionCode(request *model.ShowFunctionCodeRequest) (*model.ShowFunctionCodeResponse, error)
- func (c *FunctionGraphClient) ShowFunctionConfig(request *model.ShowFunctionConfigRequest) (*model.ShowFunctionConfigResponse, error)
- func (c *FunctionGraphClient) ShowFunctionTrigger(request *model.ShowFunctionTriggerRequest) (*model.ShowFunctionTriggerResponse, error)
- func (c *FunctionGraphClient) ShowVersionAlias(request *model.ShowVersionAliasRequest) (*model.ShowVersionAliasResponse, error)
- func (c *FunctionGraphClient) UpdateDependency(request *model.UpdateDependencyRequest) (*model.UpdateDependencyResponse, error)
- func (c *FunctionGraphClient) UpdateEvent(request *model.UpdateEventRequest) (*model.UpdateEventResponse, error)
- func (c *FunctionGraphClient) UpdateFunctionCode(request *model.UpdateFunctionCodeRequest) (*model.UpdateFunctionCodeResponse, error)
- func (c *FunctionGraphClient) UpdateFunctionConfig(request *model.UpdateFunctionConfigRequest) (*model.UpdateFunctionConfigResponse, error)
- func (c *FunctionGraphClient) UpdateFunctionReservedInstances(request *model.UpdateFunctionReservedInstancesRequest) (*model.UpdateFunctionReservedInstancesResponse, error)
- func (c *FunctionGraphClient) UpdateTrigger(request *model.UpdateTriggerRequest) (*model.UpdateTriggerResponse, error)
- func (c *FunctionGraphClient) UpdateVersionAlias(request *model.UpdateVersionAliasRequest) (*model.UpdateVersionAliasResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FunctionGraphClientBuilder ¶
func FunctionGraphClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForAsyncInvokeFunction ¶
func GenReqDefForAsyncInvokeFunction() *def.HttpRequestDef
func GenReqDefForBatchDeleteFunctionTriggers ¶
func GenReqDefForBatchDeleteFunctionTriggers() *def.HttpRequestDef
func GenReqDefForCreateDependency ¶
func GenReqDefForCreateDependency() *def.HttpRequestDef
func GenReqDefForCreateEvent ¶
func GenReqDefForCreateEvent() *def.HttpRequestDef
func GenReqDefForCreateFunction ¶
func GenReqDefForCreateFunction() *def.HttpRequestDef
func GenReqDefForCreateFunctionTrigger ¶
func GenReqDefForCreateFunctionTrigger() *def.HttpRequestDef
func GenReqDefForCreateFunctionVersion ¶
func GenReqDefForCreateFunctionVersion() *def.HttpRequestDef
func GenReqDefForCreateVersionAlias ¶
func GenReqDefForCreateVersionAlias() *def.HttpRequestDef
func GenReqDefForDeleteDependency ¶
func GenReqDefForDeleteDependency() *def.HttpRequestDef
func GenReqDefForDeleteEvent ¶
func GenReqDefForDeleteEvent() *def.HttpRequestDef
func GenReqDefForDeleteFunction ¶
func GenReqDefForDeleteFunction() *def.HttpRequestDef
func GenReqDefForDeleteFunctionTrigger ¶
func GenReqDefForDeleteFunctionTrigger() *def.HttpRequestDef
func GenReqDefForDeleteVersionAlias ¶
func GenReqDefForDeleteVersionAlias() *def.HttpRequestDef
func GenReqDefForInvokeFunction ¶
func GenReqDefForInvokeFunction() *def.HttpRequestDef
func GenReqDefForListDependencies ¶
func GenReqDefForListDependencies() *def.HttpRequestDef
func GenReqDefForListEvents ¶
func GenReqDefForListEvents() *def.HttpRequestDef
func GenReqDefForListFunctionStatistics ¶
func GenReqDefForListFunctionStatistics() *def.HttpRequestDef
func GenReqDefForListFunctionTriggers ¶
func GenReqDefForListFunctionTriggers() *def.HttpRequestDef
func GenReqDefForListFunctionVersions ¶
func GenReqDefForListFunctionVersions() *def.HttpRequestDef
func GenReqDefForListFunctions ¶
func GenReqDefForListFunctions() *def.HttpRequestDef
func GenReqDefForListQuotas ¶
func GenReqDefForListQuotas() *def.HttpRequestDef
func GenReqDefForListStatistics ¶
func GenReqDefForListStatistics() *def.HttpRequestDef
func GenReqDefForListVersionAliases ¶
func GenReqDefForListVersionAliases() *def.HttpRequestDef
func GenReqDefForShowDependency ¶
func GenReqDefForShowDependency() *def.HttpRequestDef
func GenReqDefForShowEvent ¶
func GenReqDefForShowEvent() *def.HttpRequestDef
func GenReqDefForShowFunctionCode ¶
func GenReqDefForShowFunctionCode() *def.HttpRequestDef
func GenReqDefForShowFunctionConfig ¶
func GenReqDefForShowFunctionConfig() *def.HttpRequestDef
func GenReqDefForShowFunctionTrigger ¶
func GenReqDefForShowFunctionTrigger() *def.HttpRequestDef
func GenReqDefForShowVersionAlias ¶
func GenReqDefForShowVersionAlias() *def.HttpRequestDef
func GenReqDefForUpdateDependency ¶
func GenReqDefForUpdateDependency() *def.HttpRequestDef
func GenReqDefForUpdateEvent ¶
func GenReqDefForUpdateEvent() *def.HttpRequestDef
func GenReqDefForUpdateFunctionCode ¶
func GenReqDefForUpdateFunctionCode() *def.HttpRequestDef
func GenReqDefForUpdateFunctionConfig ¶
func GenReqDefForUpdateFunctionConfig() *def.HttpRequestDef
func GenReqDefForUpdateFunctionReservedInstances ¶
func GenReqDefForUpdateFunctionReservedInstances() *def.HttpRequestDef
func GenReqDefForUpdateTrigger ¶
func GenReqDefForUpdateTrigger() *def.HttpRequestDef
func GenReqDefForUpdateVersionAlias ¶
func GenReqDefForUpdateVersionAlias() *def.HttpRequestDef
Types ¶
type FunctionGraphClient ¶
type FunctionGraphClient struct {
HcClient *http_client.HcHttpClient
}
func NewFunctionGraphClient ¶
func NewFunctionGraphClient(hcClient *http_client.HcHttpClient) *FunctionGraphClient
func (*FunctionGraphClient) AsyncInvokeFunction ¶
func (c *FunctionGraphClient) AsyncInvokeFunction(request *model.AsyncInvokeFunctionRequest) (*model.AsyncInvokeFunctionResponse, error)
异步执行函数。
func (*FunctionGraphClient) BatchDeleteFunctionTriggers ¶
func (c *FunctionGraphClient) BatchDeleteFunctionTriggers(request *model.BatchDeleteFunctionTriggersRequest) (*model.BatchDeleteFunctionTriggersResponse, error)
删除指定函数所有触发器设置。 在提供函数版本且非latest的情况下,删除对应函数版本的触发器。 在提供函数别名的情况下,删除对应函数别名的触发器。 在不提供函数版本(也不提供别名)或版本为latest的情况下,删除该函数所有的触发器(包括所有版本和别名)。
func (*FunctionGraphClient) CreateDependency ¶
func (c *FunctionGraphClient) CreateDependency(request *model.CreateDependencyRequest) (*model.CreateDependencyResponse, error)
创建依赖包。
func (*FunctionGraphClient) CreateEvent ¶
func (c *FunctionGraphClient) CreateEvent(request *model.CreateEventRequest) (*model.CreateEventResponse, error)
创建测试事件。
func (*FunctionGraphClient) CreateFunction ¶
func (c *FunctionGraphClient) CreateFunction(request *model.CreateFunctionRequest) (*model.CreateFunctionResponse, error)
创建指定的函数。
func (*FunctionGraphClient) CreateFunctionTrigger ¶
func (c *FunctionGraphClient) CreateFunctionTrigger(request *model.CreateFunctionTriggerRequest) (*model.CreateFunctionTriggerResponse, error)
创建触发器。 - 可以创建的触发器类型包括TIMER、APIG、CTS、DDS、DMS、DIS、LTS、OBS、SMN、KAFKA。 - DDS和KAFKA触发器创建时默认为DISABLED状态,其他触发器默认为ACTIVE状态。 - TIMER、DDS、DMS、KAFKA、LTS触发器支持禁用,其他触发器不支持。
func (*FunctionGraphClient) CreateFunctionVersion ¶
func (c *FunctionGraphClient) CreateFunctionVersion(request *model.CreateFunctionVersionRequest) (*model.CreateFunctionVersionResponse, error)
发布函数版本。
func (*FunctionGraphClient) CreateVersionAlias ¶
func (c *FunctionGraphClient) CreateVersionAlias(request *model.CreateVersionAliasRequest) (*model.CreateVersionAliasResponse, error)
创建函数灰度版本别名。
func (*FunctionGraphClient) DeleteDependency ¶
func (c *FunctionGraphClient) DeleteDependency(request *model.DeleteDependencyRequest) (*model.DeleteDependencyResponse, error)
删除指定的依赖包。
func (*FunctionGraphClient) DeleteEvent ¶
func (c *FunctionGraphClient) DeleteEvent(request *model.DeleteEventRequest) (*model.DeleteEventResponse, error)
删除测试事件。
func (*FunctionGraphClient) DeleteFunction ¶
func (c *FunctionGraphClient) DeleteFunction(request *model.DeleteFunctionRequest) (*model.DeleteFunctionResponse, error)
删除指定的函数或者特定的版本(不允许删除latest版本)。 如果URN中包含函数版本或者别名,则删除特定的函数版本或者别名指向的版本以及该版本关联的trigger。 如果URN中不包含版本或者别名,则删除整个函数,包含所有版本以及别名,触发器。
func (*FunctionGraphClient) DeleteFunctionTrigger ¶
func (c *FunctionGraphClient) DeleteFunctionTrigger(request *model.DeleteFunctionTriggerRequest) (*model.DeleteFunctionTriggerResponse, error)
删除触发器。
func (*FunctionGraphClient) DeleteVersionAlias ¶
func (c *FunctionGraphClient) DeleteVersionAlias(request *model.DeleteVersionAliasRequest) (*model.DeleteVersionAliasResponse, error)
删除函数版本别名。
func (*FunctionGraphClient) InvokeFunction ¶
func (c *FunctionGraphClient) InvokeFunction(request *model.InvokeFunctionRequest) (*model.InvokeFunctionResponse, error)
同步调用指的是客户端请求需要明确等到响应结果,也就是说这样的请求必须得调用到用户的函数,并且等到调用完成才返回。
func (*FunctionGraphClient) ListDependencies ¶
func (c *FunctionGraphClient) ListDependencies(request *model.ListDependenciesRequest) (*model.ListDependenciesResponse, error)
获取依赖包列表。
func (*FunctionGraphClient) ListEvents ¶
func (c *FunctionGraphClient) ListEvents(request *model.ListEventsRequest) (*model.ListEventsResponse, error)
获取指定函数的测试事件列表。
func (*FunctionGraphClient) ListFunctionStatistics ¶
func (c *FunctionGraphClient) ListFunctionStatistics(request *model.ListFunctionStatisticsRequest) (*model.ListFunctionStatisticsResponse, error)
获取指定时间段的函数运行指标。
func (*FunctionGraphClient) ListFunctionTriggers ¶
func (c *FunctionGraphClient) ListFunctionTriggers(request *model.ListFunctionTriggersRequest) (*model.ListFunctionTriggersResponse, error)
获取指定函数的所有触发器设置。
func (*FunctionGraphClient) ListFunctionVersions ¶
func (c *FunctionGraphClient) ListFunctionVersions(request *model.ListFunctionVersionsRequest) (*model.ListFunctionVersionsResponse, error)
获取指定函数的版本列表。
func (*FunctionGraphClient) ListFunctions ¶
func (c *FunctionGraphClient) ListFunctions(request *model.ListFunctionsRequest) (*model.ListFunctionsResponse, error)
获取函数列表
func (*FunctionGraphClient) ListQuotas ¶
func (c *FunctionGraphClient) ListQuotas(request *model.ListQuotasRequest) (*model.ListQuotasResponse, error)
查询租户配额
func (*FunctionGraphClient) ListStatistics ¶
func (c *FunctionGraphClient) ListStatistics(request *model.ListStatisticsRequest) (*model.ListStatisticsResponse, error)
租户函数统计信息。 返回三类的统计信息,函数格式和大小使用情况包括配额和使用量,流量报告。 通过查询参数filter可以进行过滤,查询参数period可以指定返回的时间段。
func (*FunctionGraphClient) ListVersionAliases ¶
func (c *FunctionGraphClient) ListVersionAliases(request *model.ListVersionAliasesRequest) (*model.ListVersionAliasesResponse, error)
获取函数版本别名列表。
func (*FunctionGraphClient) ShowDependency ¶
func (c *FunctionGraphClient) ShowDependency(request *model.ShowDependencyRequest) (*model.ShowDependencyResponse, error)
获取指定依赖包。
func (*FunctionGraphClient) ShowEvent ¶
func (c *FunctionGraphClient) ShowEvent(request *model.ShowEventRequest) (*model.ShowEventResponse, error)
获取测试事件详细信息。
func (*FunctionGraphClient) ShowFunctionCode ¶
func (c *FunctionGraphClient) ShowFunctionCode(request *model.ShowFunctionCodeRequest) (*model.ShowFunctionCodeResponse, error)
获取指定函数的代码。
func (*FunctionGraphClient) ShowFunctionConfig ¶
func (c *FunctionGraphClient) ShowFunctionConfig(request *model.ShowFunctionConfigRequest) (*model.ShowFunctionConfigResponse, error)
获取指定函数的metadata。
func (*FunctionGraphClient) ShowFunctionTrigger ¶
func (c *FunctionGraphClient) ShowFunctionTrigger(request *model.ShowFunctionTriggerRequest) (*model.ShowFunctionTriggerResponse, error)
获取特定触发器的信息。
func (*FunctionGraphClient) ShowVersionAlias ¶
func (c *FunctionGraphClient) ShowVersionAlias(request *model.ShowVersionAliasRequest) (*model.ShowVersionAliasResponse, error)
获取函数指定的版本别名信息。
func (*FunctionGraphClient) UpdateDependency ¶
func (c *FunctionGraphClient) UpdateDependency(request *model.UpdateDependencyRequest) (*model.UpdateDependencyResponse, error)
更新依赖包指定依赖包。
func (*FunctionGraphClient) UpdateEvent ¶
func (c *FunctionGraphClient) UpdateEvent(request *model.UpdateEventRequest) (*model.UpdateEventResponse, error)
更新测试事件。
func (*FunctionGraphClient) UpdateFunctionCode ¶
func (c *FunctionGraphClient) UpdateFunctionCode(request *model.UpdateFunctionCodeRequest) (*model.UpdateFunctionCodeResponse, error)
修改指定的函数的代码。
func (*FunctionGraphClient) UpdateFunctionConfig ¶
func (c *FunctionGraphClient) UpdateFunctionConfig(request *model.UpdateFunctionConfigRequest) (*model.UpdateFunctionConfigResponse, error)
修改指定的函数的metadata信息。
func (*FunctionGraphClient) UpdateFunctionReservedInstances ¶
func (c *FunctionGraphClient) UpdateFunctionReservedInstances(request *model.UpdateFunctionReservedInstancesRequest) (*model.UpdateFunctionReservedInstancesResponse, error)
为函数绑定预留实例
func (*FunctionGraphClient) UpdateTrigger ¶
func (c *FunctionGraphClient) UpdateTrigger(request *model.UpdateTriggerRequest) (*model.UpdateTriggerResponse, error)
更新触发器
func (*FunctionGraphClient) UpdateVersionAlias ¶
func (c *FunctionGraphClient) UpdateVersionAlias(request *model.UpdateVersionAliasRequest) (*model.UpdateVersionAliasResponse, error)
修改函数版本别名信息。