Documentation ¶
Index ¶
- Variables
- func ActionCommand(cliConfig *Config) *cli.Command
- func BuildAPIDependencies(ctx context.Context, logger log.Logger, activityRepository activity.Repository, ...) (api.Deps, error)
- func GroupCommand(cliConfig *Config) *cli.Command
- func NamespaceCommand(cliConfig *Config) *cli.Command
- func New(cliConfig *Config) *cli.Command
- func OrganizationCommand(cliConfig *Config) *cli.Command
- func PolicyCommand(cliConfig *Config) *cli.Command
- func ProjectCommand(cliConfig *Config) *cli.Command
- func ResourceCommand(cliConfig *Config) *cli.Command
- func RoleCommand(cliConfig *Config) *cli.Command
- func RuleCommand(cliConfig *Config) *cli.Command
- func ServerCommand() *cobra.Command
- func StartServer(logger *log.Zap, cfg *config.Shield) error
- func UserCommand(cliConfig *Config) *cli.Command
- type Config
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 BuildAPIDependencies ¶ added in v0.6.5
func GroupCommand ¶
func NamespaceCommand ¶
func OrganizationCommand ¶
func PolicyCommand ¶
func ProjectCommand ¶
func ResourceCommand ¶ added in v0.6.34
func RoleCommand ¶
func RuleCommand ¶ added in v0.6.34
func ServerCommand ¶
func UserCommand ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.