listing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListingCommand

type ListingCommand struct {
	*command.BaseCommand
}

ListingCommand ...

func (*ListingCommand) BuildListing

func (cmd *ListingCommand) BuildListing(
	ctx context.Container,
	filter string,
	apiFilter string,
	additionalItems bool,
) (RowListing, error)

BuildListing ...

func (*ListingCommand) Completer

func (cmd *ListingCommand) Completer(ctx context.Container, input string) []string

Completer ..,

func (*ListingCommand) Execute

func (cmd *ListingCommand) Execute(ctx context.Container, buffer *string) (uint, error)

Execute ...

func (*ListingCommand) OutputRows

func (cmd *ListingCommand) OutputRows(rows RowListing) string

OutputRows ...

type Row

type Row interface {
	GetName() string
	GetColumns(long bool, verbose bool) []interface{}
	GetID() uint64
	GetEntity() interface{}
	FormatFlags() string
	IsAvailableForContextSwitch() bool
}

Row ...

type RowListing

type RowListing []Row

RowListing ...

Jump to

Keyboard shortcuts

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