token

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL