Airat Arifullin
8a465b74ad
All checks were successful
Tests and linters / Run gofumpt (pull_request) Successful in 50s
DCO action / DCO (pull_request) Successful in 1m6s
Vulncheck / Vulncheck (pull_request) Successful in 2m12s
Tests and linters / Staticcheck (pull_request) Successful in 2m41s
Build / Build Components (pull_request) Successful in 2m48s
Pre-commit hooks / Pre-commit (pull_request) Successful in 2m49s
Tests and linters / gopls check (pull_request) Successful in 3m21s
Tests and linters / Lint (pull_request) Successful in 3m46s
Tests and linters / Tests (pull_request) Successful in 3m58s
Tests and linters / Tests with -race (pull_request) Successful in 4m16s
* Move common rule parsing logic to a common package that also can be imported out of `frostfs-node`; * Move common flags and commands to `cmd/internal/common/ape` package to avoid duplication. Since `frostfs-adm` and `frostfs-cli` subcommands are able to use commands, thee same flag names and their descriptions. Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
20 lines
705 B
Go
20 lines
705 B
Go
package commonflags
|
|
|
|
const (
|
|
RuleFlag = "rule"
|
|
RuleFlagDesc = "Rule statement"
|
|
PathFlag = "path"
|
|
PathFlagDesc = "Path to encoded chain in JSON or binary format"
|
|
TargetNameFlag = "target-name"
|
|
TargetNameFlagDesc = "Resource name in APE resource name format"
|
|
TargetTypeFlag = "target-type"
|
|
TargetTypeFlagDesc = "Resource type(container/namespace)"
|
|
ChainIDFlag = "chain-id"
|
|
ChainIDFlagDesc = "Chain id"
|
|
ChainIDHexFlag = "chain-id-hex"
|
|
ChainIDHexFlagDesc = "Flag to parse chain ID as hex"
|
|
ChainNameFlag = "chain-name"
|
|
ChainNameFlagDesc = "Chain name(ingress|s3)"
|
|
AllFlag = "all"
|
|
AllFlagDesc = "Remove all chains"
|
|
)
|