-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: implementation of list command * feature: create command * feat: corrected package name * feat: implemented delete command * feat: add describe command * feat: added update command * feat: linter fixes * feat: documentation * Update internal/cmd/beta/image/update/update.go Co-authored-by: Marcel Jacek <[email protected]> * feat: fix review findings * feat: add progress indicator based on actually uploaded data * feat: added explicit termination of progress indicator * chore: fix review findings * chore: fixed linter hints * chore: fix linting warnings, recreated docs again --------- Co-authored-by: Marcel Jacek <[email protected]>
- Loading branch information
Showing
24 changed files
with
2,896 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
## stackit beta image | ||
|
||
Manage server images | ||
|
||
### Synopsis | ||
|
||
Manage the lifecycle of server images. | ||
|
||
``` | ||
stackit beta image [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help Help for "stackit beta image" | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-y, --assume-yes If set, skips all confirmation prompts | ||
--async If set, runs the command asynchronously | ||
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"] | ||
-p, --project-id string Project ID | ||
--region string Target region for region-specific requests | ||
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info") | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [stackit beta](./stackit_beta.md) - Contains beta STACKIT CLI commands | ||
* [stackit beta image create](./stackit_beta_image_create.md) - Creates images | ||
* [stackit beta image delete](./stackit_beta_image_delete.md) - Deletes an image | ||
* [stackit beta image describe](./stackit_beta_image_describe.md) - Describes image | ||
* [stackit beta image list](./stackit_beta_image_list.md) - Lists images | ||
* [stackit beta image update](./stackit_beta_image_update.md) - Updates an image | ||
|
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,64 @@ | ||
## stackit beta image create | ||
|
||
Creates images | ||
|
||
### Synopsis | ||
|
||
Creates images. | ||
|
||
``` | ||
stackit beta image create [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
Create an image with name 'my-new-image' from a raw disk image located in '/my/raw/image' | ||
$ stackit beta image create --name my-new-image --disk-format=raw --local-file-path=/my/raw/image | ||
Create an image with name 'my-new-image' from a qcow2 image read from '/my/qcow2/image' with labels describing its contents | ||
$ stackit beta image create --name my-new-image --disk-format=qcow2 --local-file-path=/my/qcow2/image --labels os=linux,distro=alpine,version=3.12 | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
--boot-menu Enables the BIOS bootmenu. | ||
--cdrom-bus string Sets CDROM bus controller type. | ||
--disk-bus string Sets Disk bus controller type. | ||
--disk-format string The disk format of the image. | ||
-h, --help Help for "stackit beta image create" | ||
--labels stringToString Labels are key-value string pairs which can be attached to a network-interface. E.g. '--labels key1=value1,key2=value2,...' (default []) | ||
--local-file-path string The path to the local disk image file. | ||
--min-disk-size int Size in Gigabyte. | ||
--min-ram int Size in Megabyte. | ||
--name string The name of the image. | ||
--nic-model string Sets virtual nic model. | ||
--no-progress Show no progress indicator for upload. | ||
--os string Enables OS specific optimizations. | ||
--os-distro string Operating System Distribution. | ||
--os-version string Version of the OS. | ||
--protected Protected VM. | ||
--rescue-bus string Sets the device bus when the image is used as a rescue image. | ||
--rescue-device string Sets the device when the image is used as a rescue image. | ||
--secure-boot Enables Secure Boot. | ||
--uefi Enables UEFI boot. | ||
--video-model string Sets Graphic device model. | ||
--virtio-scsi Enables the use of VirtIO SCSI to provide block device access. By default instances use VirtIO Block. | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-y, --assume-yes If set, skips all confirmation prompts | ||
--async If set, runs the command asynchronously | ||
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"] | ||
-p, --project-id string Project ID | ||
--region string Target region for region-specific requests | ||
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info") | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [stackit beta image](./stackit_beta_image.md) - Manage server images | ||
|
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,40 @@ | ||
## stackit beta image delete | ||
|
||
Deletes an image | ||
|
||
### Synopsis | ||
|
||
Deletes an image by its internal ID. | ||
|
||
``` | ||
stackit beta image delete IMAGE_ID [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
Delete an image with ID "xxx" | ||
$ stackit beta image delete xxx | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help Help for "stackit beta image delete" | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-y, --assume-yes If set, skips all confirmation prompts | ||
--async If set, runs the command asynchronously | ||
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"] | ||
-p, --project-id string Project ID | ||
--region string Target region for region-specific requests | ||
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info") | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [stackit beta image](./stackit_beta_image.md) - Manage server images | ||
|
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,40 @@ | ||
## stackit beta image describe | ||
|
||
Describes image | ||
|
||
### Synopsis | ||
|
||
Describes an image by its internal ID. | ||
|
||
``` | ||
stackit beta image describe IMAGE_ID [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
Describe image "xxx" | ||
$ stackit beta image describe xxx | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help Help for "stackit beta image describe" | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-y, --assume-yes If set, skips all confirmation prompts | ||
--async If set, runs the command asynchronously | ||
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"] | ||
-p, --project-id string Project ID | ||
--region string Target region for region-specific requests | ||
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info") | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [stackit beta image](./stackit_beta_image.md) - Manage server images | ||
|
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,48 @@ | ||
## stackit beta image list | ||
|
||
Lists images | ||
|
||
### Synopsis | ||
|
||
Lists images by their internal ID. | ||
|
||
``` | ||
stackit beta image list [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
List all images | ||
$ stackit beta image list | ||
List images with label | ||
$ stackit beta image list --label-selector ARM64,dev | ||
List the first 10 images | ||
$ stackit beta image list --limit=10 | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help Help for "stackit beta image list" | ||
--label-selector string Filter by label | ||
--limit int Limit the output to the first n elements | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-y, --assume-yes If set, skips all confirmation prompts | ||
--async If set, runs the command asynchronously | ||
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"] | ||
-p, --project-id string Project ID | ||
--region string Target region for region-specific requests | ||
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info") | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [stackit beta image](./stackit_beta_image.md) - Manage server images | ||
|
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,63 @@ | ||
## stackit beta image update | ||
|
||
Updates an image | ||
|
||
### Synopsis | ||
|
||
Updates an image | ||
|
||
``` | ||
stackit beta image update IMAGE_ID [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
Update the name of an image with ID "xxx" | ||
$ stackit beta image update xxx --name my-new-name | ||
Update the labels of an image with ID "xxx" | ||
$ stackit beta image update xxx --labels label1=value1,label2=value2 | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
--boot-menu Enables the BIOS bootmenu. | ||
--cdrom-bus string Sets CDROM bus controller type. | ||
--disk-bus string Sets Disk bus controller type. | ||
--disk-format string The disk format of the image. | ||
-h, --help Help for "stackit beta image update" | ||
--labels stringToString Labels are key-value string pairs which can be attached to a network-interface. E.g. '--labels key1=value1,key2=value2,...' (default []) | ||
--local-file-path string The path to the local disk image file. | ||
--min-disk-size int Size in Gigabyte. | ||
--min-ram int Size in Megabyte. | ||
--name string The name of the image. | ||
--nic-model string Sets virtual nic model. | ||
--os string Enables OS specific optimizations. | ||
--os-distro string Operating System Distribution. | ||
--os-version string Version of the OS. | ||
--protected Protected VM. | ||
--rescue-bus string Sets the device bus when the image is used as a rescue image. | ||
--rescue-device string Sets the device when the image is used as a rescue image. | ||
--secure-boot Enables Secure Boot. | ||
--uefi Enables UEFI boot. | ||
--video-model string Sets Graphic device model. | ||
--virtio-scsi Enables the use of VirtIO SCSI to provide block device access. By default instances use VirtIO Block. | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-y, --assume-yes If set, skips all confirmation prompts | ||
--async If set, runs the command asynchronously | ||
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"] | ||
-p, --project-id string Project ID | ||
--region string Target region for region-specific requests | ||
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info") | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [stackit beta image](./stackit_beta_image.md) - Manage server images | ||
|
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
Oops, something went wrong.