-
Notifications
You must be signed in to change notification settings - Fork 39
Onboard Logs service -instance commands #1184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 13 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
5184d23
onboard logs service -instance
GokceGK 50cef75
Merge branch 'main' into feature/onboard-logs-service
GokceGK 0582365
Update internal/cmd/beta/logs/instance/delete/delete.go
GokceGK 4c6ac23
Update internal/cmd/beta/logs/instance/list/list_test.go
GokceGK 4db3ed8
Update internal/cmd/beta/logs/instance/list/list.go
GokceGK 9e07964
Merge branch 'main' into feature/onboard-logs-service
GokceGK c57155e
remove obsolete check // add missing unit test
GokceGK c43c354
fix linter issues
GokceGK 1e03333
fix possible nil pointer issue // extend unit tests
GokceGK b969ed6
Merge branch 'main' into feature/onboard-logs-service
GokceGK a6dc0d5
Merge branch 'main' into feature/onboard-logs-service
GokceGK e53ea7a
update logs service version // remove workaround
GokceGK 1cab0dd
Merge branch 'main' into feature/onboard-logs-service
GokceGK c1a489c
Merge branch 'main' into feature/onboard-logs-service
GokceGK 11e33d0
replace boilerplate code with the util functions
GokceGK 4ddc9fb
remove obsolete assumeYes checks
GokceGK 83070d8
add unit test and nil pointer check
GokceGK ee6a7e8
Merge branch 'main' into feature/onboard-logs-service
GokceGK 69a36fc
add unit test and nil pointer check to create command
GokceGK 7e88ce7
Merge remote-tracking branch 'origin/feature/onboard-logs-service' in…
GokceGK d0069da
Merge branch 'main' into feature/onboard-logs-service
GokceGK db5832d
extend nil check in outputResult functions
GokceGK 9c80d14
extend nil pointer checks for the response
GokceGK 0e110af
Merge branch 'main' into feature/onboard-logs-service
GokceGK c97f9fe
Merge branch 'main' into feature/onboard-logs-service
GokceGK b353add
Update internal/cmd/beta/logs/instance/create/create.go
GokceGK b627a44
fix indentation
GokceGK 2544110
add missing fields to describe table output
GokceGK File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,34 @@ | ||
| ## stackit beta logs | ||
|
|
||
| Provides functionality for Logs | ||
|
|
||
| ### Synopsis | ||
|
|
||
| Provides functionality for Logs. | ||
|
|
||
| ``` | ||
| stackit beta logs [flags] | ||
| ``` | ||
|
|
||
| ### Options | ||
|
|
||
| ``` | ||
| -h, --help Help for "stackit beta logs" | ||
| ``` | ||
|
|
||
| ### 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 logs instance](./stackit_beta_logs_instance.md) - Provides functionality for Logs instances | ||
|
|
This file contains hidden or 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 logs instance | ||
|
|
||
| Provides functionality for Logs instances | ||
|
|
||
| ### Synopsis | ||
|
|
||
| Provides functionality for Logs instances. | ||
|
|
||
| ``` | ||
| stackit beta logs instance [flags] | ||
| ``` | ||
|
|
||
| ### Options | ||
|
|
||
| ``` | ||
| -h, --help Help for "stackit beta logs instance" | ||
| ``` | ||
|
|
||
| ### 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 logs](./stackit_beta_logs.md) - Provides functionality for Logs | ||
| * [stackit beta logs instance create](./stackit_beta_logs_instance_create.md) - Creates a Logs instance | ||
| * [stackit beta logs instance delete](./stackit_beta_logs_instance_delete.md) - Deletes the given Logs instance | ||
| * [stackit beta logs instance describe](./stackit_beta_logs_instance_describe.md) - Shows details of a Logs instance | ||
| * [stackit beta logs instance list](./stackit_beta_logs_instance_list.md) - Lists Logs instances | ||
| * [stackit beta logs instance update](./stackit_beta_logs_instance_update.md) - Updates a Logs instance | ||
|
|
This file contains hidden or 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,50 @@ | ||
| ## stackit beta logs instance create | ||
|
|
||
| Creates a Logs instance | ||
|
|
||
| ### Synopsis | ||
|
|
||
| Creates a Logs instance. | ||
|
|
||
| ``` | ||
| stackit beta logs instance create [flags] | ||
| ``` | ||
|
|
||
| ### Examples | ||
|
|
||
| ``` | ||
| Create a Logs instance with name "my-instance" and retention time 10 days | ||
| $ stackit beta logs instance create --display-name "my-instance" --retention-days 10 | ||
|
|
||
| Create a Logs instance with name "my-instance", retention time 10 days, and a description | ||
| $ stackit beta logs instance create --display-name "my-instance" --retention-days 10 --description "Description of the instance" | ||
|
|
||
| Create a Logs instance with name "my-instance", retention time 10 days, and restrict access to a specific range of IP addresses. | ||
| $ stackit beta logs instance create --display-name "my-instance" --retention-days 10 --acl 1.2.3.0/24 | ||
| ``` | ||
|
|
||
| ### Options | ||
|
|
||
| ``` | ||
| --acl strings Access control list | ||
| --description string Description | ||
| --display-name string Display name | ||
| -h, --help Help for "stackit beta logs instance create" | ||
| --retention-days int The days for how long the logs should be stored before being cleaned up | ||
| ``` | ||
|
|
||
| ### 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 logs instance](./stackit_beta_logs_instance.md) - Provides functionality for Logs instances | ||
|
|
This file contains hidden or 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 logs instance delete | ||
|
|
||
| Deletes the given Logs instance | ||
|
|
||
| ### Synopsis | ||
|
|
||
| Deletes the given Logs instance. | ||
|
|
||
| ``` | ||
| stackit beta logs instance delete INSTANCE_ID [flags] | ||
| ``` | ||
|
|
||
| ### Examples | ||
|
|
||
| ``` | ||
| Delete a Logs instance with ID "xxx" | ||
| $ stackit beta logs instance delete "xxx" | ||
| ``` | ||
|
|
||
| ### Options | ||
|
|
||
| ``` | ||
| -h, --help Help for "stackit beta logs instance 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 logs instance](./stackit_beta_logs_instance.md) - Provides functionality for Logs instances | ||
|
|
This file contains hidden or 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,43 @@ | ||
| ## stackit beta logs instance describe | ||
|
|
||
| Shows details of a Logs instance | ||
|
|
||
| ### Synopsis | ||
|
|
||
| Shows details of a Logs instance | ||
|
|
||
| ``` | ||
| stackit beta logs instance describe INSTANCE_ID [flags] | ||
| ``` | ||
|
|
||
| ### Examples | ||
|
|
||
| ``` | ||
| Get details of a Logs instance with ID "xxx" | ||
| $ stackit beta logs instance describe xxx | ||
|
|
||
| Get details of a Logs instance with ID "xxx" in JSON format | ||
| $ stackit beta logs instance describe xxx --output-format json | ||
| ``` | ||
|
|
||
| ### Options | ||
|
|
||
| ``` | ||
| -h, --help Help for "stackit beta logs instance 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 logs instance](./stackit_beta_logs_instance.md) - Provides functionality for Logs instances | ||
|
|
This file contains hidden or 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,44 @@ | ||
| ## stackit beta logs instance list | ||
|
|
||
| Lists Logs instances | ||
|
|
||
| ### Synopsis | ||
|
|
||
| Lists Logs instances within the project. | ||
|
|
||
| ``` | ||
| stackit beta logs instance list [flags] | ||
| ``` | ||
|
|
||
| ### Examples | ||
|
|
||
| ``` | ||
| List all Logs instances | ||
| $ stackit beta logs instance list | ||
|
|
||
| List the first 10 Logs instances | ||
| $ stackit beta logs instance list --limit=10 | ||
| ``` | ||
|
|
||
| ### Options | ||
|
|
||
| ``` | ||
| -h, --help Help for "stackit beta logs instance list" | ||
| --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 logs instance](./stackit_beta_logs_instance.md) - Provides functionality for Logs instances | ||
|
|
This file contains hidden or 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,50 @@ | ||
| ## stackit beta logs instance update | ||
|
|
||
| Updates a Logs instance | ||
|
|
||
| ### Synopsis | ||
|
|
||
| Updates a Logs instance. | ||
|
|
||
| ``` | ||
| stackit beta logs instance update INSTANCE_ID [flags] | ||
| ``` | ||
|
|
||
| ### Examples | ||
|
|
||
| ``` | ||
| Update the display name of the Logs instance with ID "xxx" | ||
| $ stackit beta logs instance update xxx --display-name new-name | ||
|
|
||
| Update the retention time of the Logs instance with ID "xxx" | ||
| $ stackit beta logs instance update xxx --retention-days 40 | ||
|
|
||
| Update the ACL of the Logs instance with ID "xxx" | ||
| $ stackit beta logs instance update xxx --acl 1.2.3.0/24 | ||
| ``` | ||
|
|
||
| ### Options | ||
|
|
||
| ``` | ||
| --acl strings Access control list | ||
| --description string Description | ||
| --display-name string Display name | ||
| -h, --help Help for "stackit beta logs instance update" | ||
| --retention-days int The days for how long the logs should be stored before being cleaned up | ||
| ``` | ||
|
|
||
| ### 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 logs instance](./stackit_beta_logs_instance.md) - Provides functionality for Logs instances | ||
|
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.