cmd

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 56 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClientConfigNotFound = errors.New(heredoc.Doc(`
		Shield client config not found.

		Run "shield config init" to initialize a new client config or
		Run "shield help environment" for more information.
	`))
	ErrClientConfigHostNotFound = errors.New(heredoc.Doc(`
		Shield client config "host" not found.

		Pass shield server host with "--host" flag or 
		set host in shield config.

		Run "shield config <subcommand>" or
		"shield help environment" for more information.
	`))
	ErrClientNotAuthorized = errors.New(heredoc.Doc(`
		Shield auth error. Shield requires an auth header.
		
		Run "shield help auth" for more information.
	`))
)

Functions

func ActionCommand

func ActionCommand(cliConfig *Config) *cli.Command

func GroupCommand

func GroupCommand(cliConfig *Config) *cli.Command

func NamespaceCommand

func NamespaceCommand(cliConfig *Config) *cli.Command

func New

func New(cliConfig *Config) *cli.Command

func OrganizationCommand

func OrganizationCommand(cliConfig *Config) *cli.Command

func PolicyCommand

func PolicyCommand(cliConfig *Config) *cli.Command

func ProjectCommand

func ProjectCommand(cliConfig *Config) *cli.Command

func RoleCommand

func RoleCommand(cliConfig *Config) *cli.Command

func ServerCommand added in v0.4.0

func ServerCommand() *cobra.Command

func StartServer added in v0.4.0

func StartServer(logger *log.Zap, cfg *config.Shield) error

func UserCommand

func UserCommand(cliConfig *Config) *cli.Command

Types

type Config added in v0.4.0

type Config struct {
	Host string `mapstructure:"host"`
}

func LoadConfig added in v0.4.0

func LoadConfig() (*Config, error)

Jump to

Keyboard shortcuts

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