Skip to content

Commit cb9f32e

Browse files
authored
feat(functions): add go1.21 support (#3342)
1 parent 0569605 commit cb9f32e

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

cmd/scw/testdata/test-all-usage-function-deploy-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ USAGE:
88
ARGS:
99
[namespace-id] Function Namespace ID to deploy to
1010
name Name of the function to deploy, will be used in namespace's name if no ID is provided
11-
runtime (unknown_runtime | golang | python | python3 | node8 | node10 | node14 | node16 | node17 | python37 | python38 | python39 | python310 | go113 | go117 | go118 | node18 | rust165 | go119 | python311 | php82 | node19 | go120 | node20)
11+
runtime (unknown_runtime | golang | python | python3 | node8 | node10 | node14 | node16 | node17 | python37 | python38 | python39 | python310 | go113 | go117 | go118 | node18 | rust165 | go119 | python311 | php82 | node19 | go120 | node20 | go121)
1212
zip-file Path of the zip file that contains your code
1313
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1414

cmd/scw/testdata/test-all-usage-function-function-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ARGS:
1111
[environment-variables.{key}] Environment variables of the function
1212
[min-scale] Minumum number of instances to scale the function to
1313
[max-scale] Maximum number of instances to scale the function to
14-
[runtime] Runtime to use with the function (unknown_runtime | golang | python | python3 | node8 | node10 | node14 | node16 | node17 | python37 | python38 | python39 | python310 | go113 | go117 | go118 | node18 | rust165 | go119 | python311 | php82 | node19 | go120 | node20)
14+
[runtime] Runtime to use with the function (unknown_runtime | golang | python | python3 | node8 | node10 | node14 | node16 | node17 | python37 | python38 | python39 | python310 | go113 | go117 | go118 | node18 | rust165 | go119 | python311 | php82 | node19 | go120 | node20 | go121)
1515
[memory-limit] Memory limit of the function in MB
1616
[timeout.seconds]
1717
[timeout.nanos]

cmd/scw/testdata/test-all-usage-function-function-update-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ARGS:
1010
[environment-variables.{key}] Environment variables of the function to update
1111
[min-scale] Minumum number of instances to scale the function to
1212
[max-scale] Maximum number of instances to scale the function to
13-
[runtime] Runtime to use with the function (unknown_runtime | golang | python | python3 | node8 | node10 | node14 | node16 | node17 | python37 | python38 | python39 | python310 | go113 | go117 | go118 | node18 | rust165 | go119 | python311 | php82 | node19 | go120 | node20)
13+
[runtime] Runtime to use with the function (unknown_runtime | golang | python | python3 | node8 | node10 | node14 | node16 | node17 | python37 | python38 | python39 | python310 | go113 | go117 | go118 | node18 | rust165 | go119 | python311 | php82 | node19 | go120 | node20 | go121)
1414
[memory-limit] Memory limit of the function in MB
1515
[timeout.seconds]
1616
[timeout.nanos]

docs/commands/function.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ scw function deploy [arg=value ...]
177177
|------|---|-------------|
178178
| namespace-id | | Function Namespace ID to deploy to |
179179
| name | Required | Name of the function to deploy, will be used in namespace's name if no ID is provided |
180-
| runtime | Required<br />One of: `unknown_runtime`, `golang`, `python`, `python3`, `node8`, `node10`, `node14`, `node16`, `node17`, `python37`, `python38`, `python39`, `python310`, `go113`, `go117`, `go118`, `node18`, `rust165`, `go119`, `python311`, `php82`, `node19`, `go120`, `node20` | |
180+
| runtime | Required<br />One of: `unknown_runtime`, `golang`, `python`, `python3`, `node8`, `node10`, `node14`, `node16`, `node17`, `python37`, `python38`, `python39`, `python310`, `go113`, `go117`, `go118`, `node18`, `rust165`, `go119`, `python311`, `php82`, `node19`, `go120`, `node20`, `go121` | |
181181
| zip-file | Required | Path of the zip file that contains your code |
182182
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
183183

@@ -295,7 +295,7 @@ scw function function create [arg=value ...]
295295
| environment-variables.{key} | | Environment variables of the function |
296296
| min-scale | | Minumum number of instances to scale the function to |
297297
| max-scale | | Maximum number of instances to scale the function to |
298-
| runtime | One of: `unknown_runtime`, `golang`, `python`, `python3`, `node8`, `node10`, `node14`, `node16`, `node17`, `python37`, `python38`, `python39`, `python310`, `go113`, `go117`, `go118`, `node18`, `rust165`, `go119`, `python311`, `php82`, `node19`, `go120`, `node20` | Runtime to use with the function |
298+
| runtime | One of: `unknown_runtime`, `golang`, `python`, `python3`, `node8`, `node10`, `node14`, `node16`, `node17`, `python37`, `python38`, `python39`, `python310`, `go113`, `go117`, `go118`, `node18`, `rust165`, `go119`, `python311`, `php82`, `node19`, `go120`, `node20`, `go121` | Runtime to use with the function |
299299
| memory-limit | | Memory limit of the function in MB |
300300
| timeout.seconds | | |
301301
| timeout.nanos | | |
@@ -474,7 +474,7 @@ scw function function update <function-id ...> [arg=value ...]
474474
| environment-variables.{key} | | Environment variables of the function to update |
475475
| min-scale | | Minumum number of instances to scale the function to |
476476
| max-scale | | Maximum number of instances to scale the function to |
477-
| runtime | One of: `unknown_runtime`, `golang`, `python`, `python3`, `node8`, `node10`, `node14`, `node16`, `node17`, `python37`, `python38`, `python39`, `python310`, `go113`, `go117`, `go118`, `node18`, `rust165`, `go119`, `python311`, `php82`, `node19`, `go120`, `node20` | Runtime to use with the function |
477+
| runtime | One of: `unknown_runtime`, `golang`, `python`, `python3`, `node8`, `node10`, `node14`, `node16`, `node17`, `python37`, `python38`, `python39`, `python310`, `go113`, `go117`, `go118`, `node18`, `rust165`, `go119`, `python311`, `php82`, `node19`, `go120`, `node20`, `go121` | Runtime to use with the function |
478478
| memory-limit | | Memory limit of the function in MB |
479479
| timeout.seconds | | |
480480
| timeout.nanos | | |

internal/namespaces/function/v1beta1/function_cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ func functionFunctionCreate() *core.Command {
552552
Required: false,
553553
Deprecated: false,
554554
Positional: false,
555-
EnumValues: []string{"unknown_runtime", "golang", "python", "python3", "node8", "node10", "node14", "node16", "node17", "python37", "python38", "python39", "python310", "go113", "go117", "go118", "node18", "rust165", "go119", "python311", "php82", "node19", "go120", "node20"},
555+
EnumValues: []string{"unknown_runtime", "golang", "python", "python3", "node8", "node10", "node14", "node16", "node17", "python37", "python38", "python39", "python310", "go113", "go117", "go118", "node18", "rust165", "go119", "python311", "php82", "node19", "go120", "node20", "go121"},
556556
},
557557
{
558558
Name: "memory-limit",
@@ -673,7 +673,7 @@ func functionFunctionUpdate() *core.Command {
673673
Required: false,
674674
Deprecated: false,
675675
Positional: false,
676-
EnumValues: []string{"unknown_runtime", "golang", "python", "python3", "node8", "node10", "node14", "node16", "node17", "python37", "python38", "python39", "python310", "go113", "go117", "go118", "node18", "rust165", "go119", "python311", "php82", "node19", "go120", "node20"},
676+
EnumValues: []string{"unknown_runtime", "golang", "python", "python3", "node8", "node10", "node14", "node16", "node17", "python37", "python38", "python39", "python310", "go113", "go117", "go118", "node18", "rust165", "go119", "python311", "php82", "node19", "go120", "node20", "go121"},
677677
},
678678
{
679679
Name: "memory-limit",

0 commit comments

Comments
 (0)