Documentation ¶
Index ¶
Constants ¶
View Source
const AllowCommand = "access-allow"
View Source
const DenyCommand = "access-deny"
View Source
const ListCommand = "access-list"
Variables ¶
View Source
var AllowUsageRegex = fmt.Sprintf(`\A%s\s+\S+\s+\S+\s+(--|-)\w+(\s+|=)\w+\s+(--|-)\w+(\s+|=)\w+\z`, AllowCommand)
View Source
var DenyUsageRegex = fmt.Sprintf(`\A%s\s+\S+\s+\S+\s+(--|-)\w+(\s+|=)\w+\s+(--|-)\w+(\s+|=)\w+\z`, DenyCommand)
View Source
var ListUsageRegex = fmt.Sprintf(`\A%s\s*(--app(\s+|=)\S+\z|\z)`, ListCommand)
Functions ¶
This section is empty.
Types ¶
type CommandRunner ¶ added in v0.3.0
type CommandRunner struct { Styler *styles.StyleGroup Logger *log.Logger PolicyClient policy_client.ExternalPolicyClient CliConnection plugin.CliConnection Args []string }
func (*CommandRunner) Allow ¶ added in v0.3.0
func (r *CommandRunner) Allow() (string, error)
func (*CommandRunner) Deny ¶ added in v0.3.0
func (r *CommandRunner) Deny() (string, error)
func (*CommandRunner) List ¶ added in v0.3.0
func (r *CommandRunner) List() (string, error)
type Plugin ¶
type Plugin struct { Styler *styles.StyleGroup Logger *log.Logger PolicyClient policy_client.ExternalPolicyClient }
func (*Plugin) GetMetadata ¶
func (p *Plugin) GetMetadata() plugin.PluginMetadata
func (*Plugin) RunWithErrors ¶
Click to show internal directories.
Click to hide internal directories.