digitalocean

package
v0.39.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MPL-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Droplet added in v0.34.0

type Droplet struct {
	godo.Droplet

	Image  Image
	Region Region
}

Droplet represents WTF's view of a DigitalOcean droplet

func NewDroplet added in v0.34.0

func NewDroplet(doDroplet godo.Droplet) *Droplet

NewDroplet creates and returns an instance of Droplet

func (*Droplet) StringValueForProperty added in v0.34.0

func (drop *Droplet) StringValueForProperty(propName string) (string, error)

StringValueForProperty returns a string value for the given column

type Image added in v0.34.0

type Image struct {
	godo.Image
	utils.Reflective
}

Image represents WTF's view of a DigitalOcean droplet image

type Region added in v0.34.0

type Region struct {
	godo.Region
	utils.Reflective
}

Region represents WTF's view of a DigitalOcean region

type Settings

type Settings struct {
	*cfg.Common
	// contains filtered or unexported fields
}

Settings defines the configuration properties for this module

func NewSettingsFromYAML

func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings

NewSettingsFromYAML creates a new settings instance from a YAML config block

type Widget

type Widget struct {
	view.ScrollableWidget
	// contains filtered or unexported fields
}

Widget is the container for droplet data

func NewWidget

func NewWidget(tviewApp *tview.Application, pages *tview.Pages, settings *Settings) *Widget

NewWidget creates a new instance of a widget

func (*Widget) Fetch

func (widget *Widget) Fetch() error

Fetch retrieves droplet data

func (*Widget) Next

func (widget *Widget) Next()

Next selects the next item in the list

func (*Widget) Prev

func (widget *Widget) Prev()

Prev selects the previous item in the list

func (*Widget) Refresh

func (widget *Widget) Refresh()

Refresh updates the data for this widget and displays it onscreen

func (*Widget) Unselect

func (widget *Widget) Unselect()

Unselect clears the selection of list items

Jump to

Keyboard shortcuts

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