plugin

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2017 License: GPL-3.0 Imports: 19 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Help

type Help struct {
	CLI cfplugin.CliConnection
}

func (*Help) Show

func (h *Help) Show() error

type Plugin

type Plugin struct {
	UI       UserInterface
	Version  string
	RunErr   error
	ExitChan chan struct{}
}

func (*Plugin) GetMetadata

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

func (*Plugin) Help

func (p *Plugin) Help(name string)

func (*Plugin) Install

func (p *Plugin) Install() error

func (*Plugin) Run

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

type UI

type UI struct {
	Out       io.Writer
	Err       io.Writer
	In        io.Reader
	ErrIsTerm bool
}

func (*UI) Error

func (u *UI) Error(err error)

func (*UI) Output

func (u *UI) Output(format string, a ...interface{})

func (*UI) Prompt

func (u *UI) Prompt(message string) string

func (*UI) Warn

func (u *UI) Warn(format string, a ...interface{})

type UserInterface

type UserInterface interface {
	Prompt(prompt string) string
	Output(format string, a ...interface{})
	Warn(format string, a ...interface{})
	Error(err error)
}

Jump to

Keyboard shortcuts

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