-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
117 additions
and
12 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
cmd/scw/testdata/test-all-usage-object-config-get-usage.stderr.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Generate a S3 tool configuration file. | ||
|
||
USAGE: | ||
scw object config get [arg=value ...] | ||
|
||
EXAMPLES: | ||
Generate a s3cmd config file for Paris region | ||
scw object config get region=fr-par type=s3cmd | ||
|
||
Generate a rclone config file for default region | ||
scw object config get type=rclone | ||
|
||
Generate a mc (minio) config file for default region | ||
scw object config get type=mc | ||
|
||
ARGS: | ||
type Type of S3 tool you want to generate a config for (rclone | s3cmd | mc) | ||
[name=scaleway] Name of the s3 remote you want to generate | ||
[region] Region to target. If none is passed will use default region from the config (fr-par | nl-ams) | ||
|
||
FLAGS: | ||
-h, --help help for get | ||
|
||
GLOBAL FLAGS: | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human | ||
-p, --profile string The config profile to use | ||
|
||
SEE ALSO: | ||
# Install a S3 tool configuration file | ||
scw object config install |
31 changes: 31 additions & 0 deletions
31
cmd/scw/testdata/test-all-usage-object-config-install-usage.stderr.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Install a S3 tool configuration file to its default location. | ||
|
||
USAGE: | ||
scw object config install [arg=value ...] | ||
|
||
EXAMPLES: | ||
Install a s3cmd config file for Paris region | ||
scw object config install region=fr-par type=s3cmd | ||
|
||
Install a rclone config file for default region | ||
scw object config install type=rclone | ||
|
||
Install a mc (minio) config file for default region | ||
scw object config install type=mc | ||
|
||
ARGS: | ||
type Type of S3 tool you want to generate a config for (rclone | s3cmd | mc) | ||
[name=scaleway] Name of the s3 remote you want to generate | ||
[region] Region to target. If none is passed will use default region from the config (fr-par | nl-ams) | ||
|
||
FLAGS: | ||
-h, --help help for install | ||
|
||
GLOBAL FLAGS: | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human | ||
-p, --profile string The config profile to use | ||
|
||
SEE ALSO: | ||
# Generate a S3 tool configuration file | ||
scw object config get |
18 changes: 18 additions & 0 deletions
18
cmd/scw/testdata/test-all-usage-object-config-usage.stderr.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Configuration generation for S3 tools. | ||
|
||
USAGE: | ||
scw object config <command> | ||
|
||
AVAILABLE COMMANDS: | ||
get Generate a S3 tool configuration file | ||
install Install a S3 tool configuration file to its default location | ||
|
||
FLAGS: | ||
-h, --help help for config | ||
|
||
GLOBAL FLAGS: | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human | ||
-p, --profile string The config profile to use | ||
|
||
Use "scw object config [command] --help" for more information about a command. |
17 changes: 17 additions & 0 deletions
17
cmd/scw/testdata/test-all-usage-object-usage.stderr.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Object-storage utils | ||
|
||
USAGE: | ||
scw object <command> | ||
|
||
AVAILABLE COMMANDS: | ||
config Manage configuration files for popular S3 tools | ||
|
||
FLAGS: | ||
-h, --help help for object | ||
|
||
GLOBAL FLAGS: | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human | ||
-p, --profile string The config profile to use | ||
|
||
Use "scw object [command] --help" for more information about a command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
internal/namespaces/object/v1/testdata/test-config-get-default-mc.stdout.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"version":"9","hosts":{"scaleway_fr-par":{"url":"https://s3.fr-par.scw.cloud","accessKey":"SCWXXXXXXXXXXXXXXXXX","secretKey":"11111111-1111-1111-1111-111111111111","api":"S3v2"}}} | ||
{"version":"9","hosts":{"scaleway":{"url":"https://s3.fr-par.scw.cloud","accessKey":"SCWXXXXXXXXXXXXXXXXX","secretKey":"11111111-1111-1111-1111-111111111111","api":"S3v2"}}} |
2 changes: 1 addition & 1 deletion
2
internal/namespaces/object/v1/testdata/test-config-get-default-rclone.stdout.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
internal/namespaces/object/v1/testdata/test-config-get-with-region-mc.stdout.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"version":"9","hosts":{"scaleway_nl-ams":{"url":"https://s3.nl-ams.scw.cloud","accessKey":"SCWXXXXXXXXXXXXXXXXX","secretKey":"11111111-1111-1111-1111-111111111111","api":"S3v2"}}} | ||
{"version":"9","hosts":{"scaleway":{"url":"https://s3.nl-ams.scw.cloud","accessKey":"SCWXXXXXXXXXXXXXXXXX","secretKey":"11111111-1111-1111-1111-111111111111","api":"S3v2"}}} |
2 changes: 1 addition & 1 deletion
2
internal/namespaces/object/v1/testdata/test-config-get-with-region-rclone.stdout.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters