cli_plugin

package
v0.0.3-cli Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const AllowCommand = "allow-access"
View Source
const CLR_G = "\x1b[32;1m"
View Source
const CLR_N = "\x1b[0m"
View Source
const CLR_R = "\x1b[31;1m"
View Source
const DenyCommand = "deny-access"
View Source
const ListCommand = "list-access"

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	Marshaler   marshal.Marshaler
	Unmarshaler marshal.Unmarshaler
}

func (*Plugin) AllowCommand

func (p *Plugin) AllowCommand(cliConnection plugin.CliConnection, args []string) (string, error)

func (*Plugin) DenyCommand

func (p *Plugin) DenyCommand(cliConnection plugin.CliConnection, args []string) (string, error)

func (*Plugin) GetMetadata

func (p *Plugin) GetMetadata() plugin.PluginMetadata

func (*Plugin) ListCommand

func (p *Plugin) ListCommand(cliConnection plugin.CliConnection, args []string) (string, error)

func (*Plugin) Run

func (p *Plugin) Run(cliConnection plugin.CliConnection, args []string)

func (*Plugin) RunWithErrors

func (p *Plugin) RunWithErrors(cliConnection plugin.CliConnection, args []string) (string, error)

type ValidArgs

type ValidArgs struct {
	SourceAppGuid string
	DestAppGuid   string
	Protocol      string
	Port          int
}

func ValidateArgs

func ValidateArgs(cliConnection plugin.CliConnection, args []string) (ValidArgs, error)

Jump to

Keyboard shortcuts

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