choose

package
v0.0.0-...-3681401 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionSubmit = "submit"
)

Action name

Variables

View Source
var (
	// ExitLabel name.
	ExitLabel = "exit"
	// ExitValue representation.
	ExitValue = "exit"
)

Functions

func Action

func Action() (string, error)

Action get PRM action

func Plan

func Plan(plans []docker.Plan) (string, error)

Plan choose a plan in the list.

func Product

func Product(products []docker.Product) (string, error)

Product choose a product in the list.

func Tags

func Tags(tags LstTags) ([]string, error)

Tags choose a tag in the list.

Types

type LstTags

type LstTags []*Tag

func (LstTags) Len

func (t LstTags) Len() int

func (LstTags) Less

func (t LstTags) Less(i, j int) bool

func (LstTags) Swap

func (t LstTags) Swap(i, j int)

type Tag

type Tag struct {
	Name      string
	CreatedAt time.Time
	Select    bool
}

Jump to

Keyboard shortcuts

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