dialog

package
v0.0.0-...-eeb8ce0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCanceled = fmt.Errorf("Canceled")

ErrCanceled error thrown when the deletion request is canceled

View Source
var ErrImgSelCanceled = fmt.Errorf("image selection canceled")

ErrImgSelCanceled error returned if image selection has been canceled by the user

View Source
var ErrNotConfirmed = fmt.Errorf("deletion not confirmed")

ErrNotConfirmed error returned when the deletion was not confirmed

View Source
var ErrTagSelCanceled = fmt.Errorf("tag selection canceled")

ErrTagSelCanceled error returned if tag selection has been canceled by the user

Functions

This section is empty.

Types

type DeleteImageDialog

type DeleteImageDialog interface {
	DeleteImage() error
	GetImageDisplayStatus() DisplayStatus
}

DeleteImageDialog ...

func NewDeleteImageDialog

func NewDeleteImageDialog(ctx context.Context, imgs []images.Image, useTags bool, txHeight int, display *DisplayStatus) DeleteImageDialog

NewDeleteImageDialog ...

type DisplayStatus

type DisplayStatus struct {
	Scroll int
	Cursor int
}

DisplayStatus current scroll and cursor

type SelectionForm

type SelectionForm interface {
	SelectImageTags() (*SelectionResult, error)
	GetDisplayStatus() DisplayStatus
}

SelectionForm ...

func NewSelectionForm

func NewSelectionForm(imgs []images.Image, useTags bool, txHeight int, display *DisplayStatus) SelectionForm

NewSelectionForm ...

type SelectionResult

type SelectionResult struct {
	Image *images.Image
	Tags  []images.Tag
}

SelectionResult ...

Jump to

Keyboard shortcuts

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