Skip to content

Commit a023476

Browse files
feat(container): initial support for v1beta1 (#1990)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 6f48c59 commit a023476

25 files changed

+1493
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Create a new container.
4+
5+
USAGE:
6+
scw container container create [arg=value ...]
7+
8+
ARGS:
9+
[namespace-id]
10+
[name=<generated>]
11+
[environment-variables.value.{key}]
12+
[min-scale]
13+
[max-scale]
14+
[memory-limit]
15+
[timeout.seconds]
16+
[timeout.nanos]
17+
[privacy] (unknown_privacy | public | private)
18+
[description]
19+
[registry-image]
20+
[max-concurrency]
21+
[domain-name]
22+
[protocol] (unknown_protocol | http1 | h2c)
23+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
24+
25+
FLAGS:
26+
-h, --help help for create
27+
28+
GLOBAL FLAGS:
29+
-c, --config string The path to the config file
30+
-D, --debug Enable debug mode
31+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
32+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Delete the container associated with the given id.
4+
5+
USAGE:
6+
scw container container delete <container-id ...> [arg=value ...]
7+
8+
ARGS:
9+
container-id
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
11+
12+
FLAGS:
13+
-h, --help help for delete
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Get the container associated with the given id.
4+
5+
USAGE:
6+
scw container container get <container-id ...> [arg=value ...]
7+
8+
ARGS:
9+
container-id
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
11+
12+
FLAGS:
13+
-h, --help help for get
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
List all your containers.
4+
5+
USAGE:
6+
scw container container list [arg=value ...]
7+
8+
ARGS:
9+
[order-by] (created_at_asc | created_at_desc | name_asc | name_desc)
10+
[namespace-id]
11+
[name]
12+
[project-id]
13+
[organization-id]
14+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
15+
16+
FLAGS:
17+
-h, --help help for list
18+
19+
GLOBAL FLAGS:
20+
-c, --config string The path to the config file
21+
-D, --debug Enable debug mode
22+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
23+
-p, --profile string The config profile to use
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Update the container associated with the given id.
4+
5+
USAGE:
6+
scw container container update <container-id ...> [arg=value ...]
7+
8+
ARGS:
9+
container-id
10+
[environment-variables.value.{key}]
11+
[min-scale]
12+
[max-scale]
13+
[memory-limit]
14+
[timeout.seconds]
15+
[timeout.nanos]
16+
[redeploy]
17+
[privacy] (unknown_privacy | public | private)
18+
[description]
19+
[registry-image]
20+
[max-concurrency]
21+
[domain-name]
22+
[protocol] (unknown_protocol | http1 | h2c)
23+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
24+
25+
FLAGS:
26+
-h, --help help for update
27+
28+
GLOBAL FLAGS:
29+
-c, --config string The path to the config file
30+
-D, --debug Enable debug mode
31+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
32+
-p, --profile string The config profile to use
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Container management commands.
4+
5+
USAGE:
6+
scw container container <command>
7+
8+
AVAILABLE COMMANDS:
9+
create Create a new container
10+
delete Delete a container
11+
get Get a container
12+
list List all your containers
13+
update Update an existing container
14+
15+
FLAGS:
16+
-h, --help help for container
17+
18+
GLOBAL FLAGS:
19+
-c, --config string The path to the config file
20+
-D, --debug Enable debug mode
21+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
22+
-p, --profile string The config profile to use
23+
24+
Use "scw container container [command] --help" for more information about a command.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Delete the cron associated with the given id.
4+
5+
USAGE:
6+
scw container cron delete <cron-id ...> [arg=value ...]
7+
8+
ARGS:
9+
cron-id
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
11+
12+
FLAGS:
13+
-h, --help help for delete
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Get the cron associated with the given id.
4+
5+
USAGE:
6+
scw container cron get <cron-id ...> [arg=value ...]
7+
8+
ARGS:
9+
cron-id
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
11+
12+
FLAGS:
13+
-h, --help help for get
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
List all your crons.
4+
5+
USAGE:
6+
scw container cron list [arg=value ...]
7+
8+
ARGS:
9+
[order-by] (created_at_asc | created_at_desc)
10+
[container-id]
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
12+
13+
FLAGS:
14+
-h, --help help for list
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Cron management commands.
4+
5+
USAGE:
6+
scw container cron <command>
7+
8+
AVAILABLE COMMANDS:
9+
delete Delete an existing cron
10+
get Get a cron
11+
list List all your crons
12+
13+
FLAGS:
14+
-h, --help help for cron
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use
21+
22+
Use "scw container cron [command] --help" for more information about a command.

0 commit comments

Comments
 (0)