Documentation ¶
Index ¶
- Constants
- Variables
- type Plugin
- func (p *Plugin) AllowCommand(cliConnection plugin.CliConnection, args []string) (string, error)
- func (p *Plugin) DenyCommand(cliConnection plugin.CliConnection, args []string) (string, error)
- func (p *Plugin) GetMetadata() plugin.PluginMetadata
- func (p *Plugin) ListCommand(cliConnection plugin.CliConnection, args []string) (string, error)
- func (p *Plugin) Run(cliConnection plugin.CliConnection, args []string)
- func (p *Plugin) RunWithErrors(cliConnection plugin.CliConnection, args []string) (string, error)
- type ValidArgs
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 Plugin ¶
type Plugin struct { Marshaler marshal.Marshaler Unmarshaler marshal.Unmarshaler Styler *styles.StyleGroup Logger *log.Logger }
func (*Plugin) AllowCommand ¶
func (*Plugin) DenyCommand ¶
func (*Plugin) GetMetadata ¶
func (p *Plugin) GetMetadata() plugin.PluginMetadata
func (*Plugin) ListCommand ¶
func (*Plugin) RunWithErrors ¶
Click to show internal directories.
Click to hide internal directories.