Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AclCmd = &cobra.Command{ Use: "acl", Short: "Manage command access for API tokens", Long: `Configure access control for API tokens, specifying which server-side shell commands each token can execute via websh or exec (e.g., "whoami", "systemctl status *"). Create, list, and modify ACL rules to fine-tune command execution permissions.`, RunE: func(cmd *cobra.Command, args []string) error { err := cmd.Help() if err != nil { return err } return errors.New("a subcommand is required. Use 'alpacon token acl list', 'alpacon token acl add', or 'alpacon token acl delete' to manage access control rules. Run 'alpacon token acl --help' for more information") }, }
View Source
var TokenCmd = &cobra.Command{ Use: "token", Short: "Commands to manage api tokens", RunE: func(cmd *cobra.Command, args []string) error { err := cmd.Help() if err != nil { return err } return errors.New("a subcommand is required. Use 'alpacon token create', 'alpacon token list', 'alpacon token delete', or 'alpacon token acl' to manage API tokens. Run 'alpacon token --help' for more information") }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.