plugin

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: Apache-2.0 Imports: 21 Imported by: 3

Documentation

Index

Constants

View Source
const LongUsage = `` /* 5074-byte string literal not displayed */
View Source
const ShortUsage = `` /* 427-byte string literal not displayed */
View Source
const Usage = ShortUsage + "\n" + LongUsage

Variables

This section is empty.

Functions

This section is empty.

Types

type Help

type Help struct {
	CLI cfplugin.CliConnection
	UI  UI
}

func (*Help) Long added in v0.2.0

func (h *Help) Long()

func (*Help) Short added in v0.2.0

func (h *Help) Short()

type Plugin

type Plugin struct {
	UI      UI
	Version string
	RunErr  error
	Exit    <-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 interface {
	Prompt(prompt string) string
	Output(format string, a ...interface{})
	Warn(format string, a ...interface{})
	Error(err error)
	Loading(message string, progress <-chan engine.Progress) error
}

Jump to

Keyboard shortcuts

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