Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "util", Short: "Utility operations", PersistentPreRun: func(cmd *cobra.Command, args []string) { flags := cmd.Flags() _ = viper.BindPFlag(commonflags.GenerateKey, flags.Lookup(commonflags.GenerateKey)) _ = viper.BindPFlag(commonflags.WalletPath, flags.Lookup(commonflags.WalletPath)) _ = viper.BindPFlag(commonflags.Account, flags.Lookup(commonflags.Account)) }, }
Functions ¶
func ParseEACLRule ¶ added in v0.36.0
ParseEACLRule parses eACL table from the following form: <action> <operation> [<filter1> ...] [<target1> ...]
Examples: allow get req:X-Header=123 obj:Attr=value others:0xkey1,key2 system:key3 user:key4
func ParseEACLRules ¶ added in v0.36.0
ParseEACLRules parses eACL table. Uses ParseEACLRule.
func PrettyPrintTableBACL ¶ added in v0.36.0
PrettyPrintTableBACL print basic ACL in table format.
func PrettyPrintTableEACL ¶ added in v0.36.0
PrettyPrintTableEACL print extended ACL in table format.
func ValidateEACLTable ¶ added in v0.38.0
ValidateEACLTable validates eACL table:
- eACL table must not modify eacl.RoleSystem access.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.