Documentation
¶
Overview ¶
Package check provides the rbac check command for opampctl.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUserIDRequired is returned when the user ID flag is missing. ErrUserIDRequired = errors.New("--user-id is required") // ErrResourceRequired is returned when the resource flag is missing. ErrResourceRequired = errors.New("--resource is required") // ErrActionRequired is returned when the action flag is missing. ErrActionRequired = errors.New("--action is required") )
Functions ¶
func NewCommand ¶
func NewCommand(options CommandOptions) *cobra.Command
NewCommand creates a new rbac check command.
Types ¶
type CommandOptions ¶
type CommandOptions struct {
*config.GlobalConfig
// contains filtered or unexported fields
}
CommandOptions contains the options for the rbac check command.
Click to show internal directories.
Click to hide internal directories.