FGS
The SDK interfaces based on the FGS v2 Go SDK are as follows. For details about the invoking methods, see the sample codes.
|
Resource |
Method |
API |
|---|---|---|
|
Functions |
Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v2/{project_id}/fgs/functions |
|
List(client *gophercloud.ServiceClient, opts ListOptsBuilder) |
GET /v2/{project_id}/fgs/functions?{marker}=marker&{maxitems}=maxitems |
|
|
GetMetadata(c *gophercloud.ServiceClient, functionUrn string) |
GET /v2/{project_id}/fgs/functions/{function_urn}/config |
|
|
GetCode(c *gophercloud.ServiceClient, functionUrn string) |
GET /v2/{project_id}/fgs/functions/{function_urn}/code |
|
|
Delete(c *gophercloud.ServiceClient, functionUrn string) |
DELETE /v2/{project_id}/fgs/functions/{function_urn} |
|
|
UpdateCode(c *gophercloud.ServiceClient, functionUrn string, opts UpdateOptsBuilder) |
PUT /v2/{project_id}/fgs/functions/{function_urn}/code |
|
|
UpdateMetadata(c *gophercloud.ServiceClient, functionUrn string, opts UpdateOptsBuilder) |
PUT /v2/{project_id}/fgs/functions/{function_urn}/config |
|
|
CreateVersion(c *gophercloud.ServiceClient, opts CreateOptsBuilder, functionUrn string) |
POST /v2/{project_id}/fgs/functions/{function_urn}/versions |
|
|
ListVersion(c *gophercloud.ServiceClient, opts ListOptsBuilder, functionUrn string) |
GET /v2/{project_id}/fgs/functions/{function_urn}/versions?marker={marker}&maxitems={maxitems} |
|
|
CreateAlias(c *gophercloud.ServiceClient, opts CreateOptsBuilder, functionUrn string) |
POST /v2/{project_id}/fgs/functions/{function_urn}/aliases |
|
|
UpdateAlias(c *gophercloud.ServiceClient, functionUrn, aliasName string, opts UpdateOptsBuilder) |
PUT /v2/{project_id}/fgs/functions/{function_urn}/aliases/{alias_name} |
|
|
DeleteAlias(c *gophercloud.ServiceClient, functionUrn, aliasName string) |
DELETE /v1.0/{project_id}/fss/functions/{function_urn}/aliases/{alias_name} |
|
|
GetAlias(c *gophercloud.ServiceClient, functionUrn, aliasName string) |
GET /v2/{project_id}/fgs/functions/{function_urn}/aliases/{alias_name} |
|
|
ListAlias(c *gophercloud.ServiceClient, functionUrn string) |
GET /v2/{project_id}/fgs/functions/{function_urn}/aliases |
|
|
Invoke(c *gophercloud.ServiceClient, m map[string]interface{}, functionUrn string) |
POST /v2/{project_id}/fgs/functions/{function_urn}/invocations |
|
|
AsyncInvoke(c *gophercloud.ServiceClient, m map[string]interface{}, functionUrn string) |
POST /v2/{project_id}/fgs/functions/{function_urn}/invocations-async |
|
|
Triggers |
List(c *gophercloud.ServiceClient, functionUrn string) |
GET /v2/{project_id}/fgs/triggers/{function_urn} |
|
Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder, functionUrn string) |
POST /v2/{project_id}/fgs/triggers/{function_urn} |
|
|
Delete(c *gophercloud.ServiceClient, functionUrn, triggerTypeCode, triggerId string) |
DELETE /v2/{project_id}/fgs/triggers/{function_urn}/{trigger_type_code}/{trigger_id} |
|
|
Get(c *gophercloud.ServiceClient, functionUrn, triggerTypeCode, triggerId string) |
GET /v2/{project_id}/fgs/triggers/{function_urn}/{trigger_type_code}/{trigger_id} |
|
|
DeleteAll(c *gophercloud.ServiceClient, functionUrn string) |
DELETE /v2/{project_id}/fgs/triggers/{function_urn} |
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.