Documentation
¶
Index ¶
- func Createfunction(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, ...) client.Response[models.FunctionResponse]
- func Createfunctiondeployment(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, ...) client.Response[models.DeploymentCreationResponse]
- func Deletedeployment(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, ...) client.Response[client.Nothing]
- func Deletefunction(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, ...) client.Response[client.Nothing]
- func Getfunction(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, ...) client.Response[models.FunctionResponse]
- func Getfunctiondeployment(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, ...) client.Response[models.Deployment1]
- func Listdeployments(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, ...) client.Response[[]models.Deployment1]
- func Listdeploymentsbystatus(ctx context.Context, c *client.Client, tracer trace.Tracer, status string) client.Response[[]models.Deployment1]
- func Listfunctions(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string) client.Response[[]models.FunctionResponse]
- func Replacedeployment(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, ...) client.Response[models.Deployment1]
- func Replacefunction(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, ...) client.Response[models.FunctionResponse]
- func Triggerdeployment(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, ...) client.Response[client.Nothing]
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Createfunction ¶
func Createfunction(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, requestBody *models.FunctionCreateOpts) client.Response[models.FunctionResponse]
Createfunction
Create a function for an organisation ¶
Parameters:
- ctx: context for the request
- client: the Clever Cloud client
- tracer: OpenTelemetry tracer for observability
- ownerId:
- requestBody: the request payload
Returns the operation result or an error ¶
Example:
response := function.Createfunction(ctx, client, tracer, ownerId, requestBody)
if response.HasError() {
// Handle error
}
result := response.Payload()
x-service: function operationId: createFunction
func Createfunctiondeployment ¶
func Createfunctiondeployment(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, functionId string, requestBody *models.DeploymentCreateOpts) client.Response[models.DeploymentCreationResponse]
Createfunctiondeployment
Create a deployment for a function ¶
Parameters:
- ctx: context for the request
- client: the Clever Cloud client
- tracer: OpenTelemetry tracer for observability
- ownerId:
- functionId:
- requestBody: the request payload
Returns the operation result or an error ¶
Example:
response := function.Createfunctiondeployment(ctx, client, tracer, ownerId, functionId, requestBody)
if response.HasError() {
// Handle error
}
result := response.Payload()
x-service: function operationId: createFunctionDeployment
func Deletedeployment ¶
func Deletedeployment(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, functionId string, deploymentId string) client.Response[client.Nothing]
Deletedeployment
Delete a deployment ¶
Parameters:
- ctx: context for the request
- client: the Clever Cloud client
- tracer: OpenTelemetry tracer for observability
- ownerId:
- functionId:
- deploymentId:
Returns the operation result or an error ¶
Example:
response := function.Deletedeployment(ctx, client, tracer, ownerId, functionId, deploymentId)
if response.HasError() {
// Handle error
}
result := response.Payload()
x-service: function operationId: deleteDeployment
func Deletefunction ¶
func Deletefunction(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, functionId string) client.Response[client.Nothing]
Deletefunction
Delete a function and all their deployments ¶
Parameters:
- ctx: context for the request
- client: the Clever Cloud client
- tracer: OpenTelemetry tracer for observability
- ownerId:
- functionId:
Returns the operation result or an error ¶
Example:
response := function.Deletefunction(ctx, client, tracer, ownerId, functionId)
if response.HasError() {
// Handle error
}
result := response.Payload()
x-service: function operationId: deleteFunction
func Getfunction ¶
func Getfunction(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, functionId string) client.Response[models.FunctionResponse]
Getfunction
Get a function ¶
Parameters:
- ctx: context for the request
- client: the Clever Cloud client
- tracer: OpenTelemetry tracer for observability
- ownerId:
- functionId:
Returns the operation result or an error ¶
Example:
response := function.Getfunction(ctx, client, tracer, ownerId, functionId)
if response.HasError() {
// Handle error
}
result := response.Payload()
x-service: function operationId: getFunction
func Getfunctiondeployment ¶
func Getfunctiondeployment(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, functionId string, deploymentId string) client.Response[models.Deployment1]
Getfunctiondeployment
Get a deployment ¶
Parameters:
- ctx: context for the request
- client: the Clever Cloud client
- tracer: OpenTelemetry tracer for observability
- ownerId:
- functionId:
- deploymentId:
Returns the operation result or an error ¶
Example:
response := function.Getfunctiondeployment(ctx, client, tracer, ownerId, functionId, deploymentId)
if response.HasError() {
// Handle error
}
result := response.Payload()
x-service: function operationId: getFunctionDeployment
func Listdeployments ¶ added in v0.2.3
func Listdeployments(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, functionId string) client.Response[[]models.Deployment1]
Listdeployments
List deployments for a function ¶
Parameters:
- ctx: context for the request
- client: the Clever Cloud client
- tracer: OpenTelemetry tracer for observability
- ownerId:
- functionId:
Returns the operation result or an error ¶
Example:
response := function.Listdeployments(ctx, client, tracer, ownerId, functionId)
if response.HasError() {
// Handle error
}
result := response.Payload()
x-service: function operationId: listDeployments
func Listdeploymentsbystatus ¶ added in v0.2.3
func Listdeploymentsbystatus(ctx context.Context, c *client.Client, tracer trace.Tracer, status string) client.Response[[]models.Deployment1]
Listdeploymentsbystatus
Find deployments by status ¶
Parameters:
- ctx: context for the request
- client: the Clever Cloud client
- tracer: OpenTelemetry tracer for observability
- status:
Returns the operation result or an error ¶
Example:
response := function.Listdeploymentsbystatus(ctx, client, tracer, status)
if response.HasError() {
// Handle error
}
result := response.Payload()
x-service: function operationId: listDeploymentsByStatus
func Listfunctions ¶ added in v0.2.3
func Listfunctions(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string) client.Response[[]models.FunctionResponse]
Listfunctions
List functions for an organisation ¶
Parameters:
- ctx: context for the request
- client: the Clever Cloud client
- tracer: OpenTelemetry tracer for observability
- ownerId:
Returns the operation result or an error ¶
Example:
response := function.Listfunctions(ctx, client, tracer, ownerId)
if response.HasError() {
// Handle error
}
result := response.Payload()
x-service: function operationId: listFunctions
func Replacedeployment ¶
func Replacedeployment(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, functionId string, deploymentId string, requestBody *models.DeploymentUpdateOpts) client.Response[models.Deployment1]
Replacedeployment
Update a deployment ¶
Parameters:
- ctx: context for the request
- client: the Clever Cloud client
- tracer: OpenTelemetry tracer for observability
- ownerId:
- functionId:
- deploymentId:
- requestBody: the request payload
Returns the operation result or an error ¶
Example:
response := function.Replacedeployment(ctx, client, tracer, ownerId, functionId, deploymentId, requestBody)
if response.HasError() {
// Handle error
}
result := response.Payload()
x-service: function operationId: replaceDeployment
func Replacefunction ¶
func Replacefunction(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, functionId string, requestBody *models.FunctionUpdateOpts) client.Response[models.FunctionResponse]
Replacefunction
Update a function ¶
Parameters:
- ctx: context for the request
- client: the Clever Cloud client
- tracer: OpenTelemetry tracer for observability
- ownerId:
- functionId:
- requestBody: the request payload
Returns the operation result or an error ¶
Example:
response := function.Replacefunction(ctx, client, tracer, ownerId, functionId, requestBody)
if response.HasError() {
// Handle error
}
result := response.Payload()
x-service: function operationId: replaceFunction
func Triggerdeployment ¶
func Triggerdeployment(ctx context.Context, c *client.Client, tracer trace.Tracer, ownerId string, functionId string, deploymentId string) client.Response[client.Nothing]
Triggerdeployment
Trigger a deployment ¶
Parameters:
- ctx: context for the request
- client: the Clever Cloud client
- tracer: OpenTelemetry tracer for observability
- ownerId:
- functionId:
- deploymentId:
Returns the operation result or an error ¶
Example:
response := function.Triggerdeployment(ctx, client, tracer, ownerId, functionId, deploymentId)
if response.HasError() {
// Handle error
}
result := response.Payload()
x-service: function operationId: triggerDeployment