cli_plugin

package
v0.0.2-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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const AllowCommand = "allow-access"
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