instance

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance interface {
	// Name returns the instance name.
	Name() string
	// ID returns the instance identifier.
	ID() string
	// Addresses returns a list of addresses associated with the instance.
	Addresses() []string
	// Status returns the instance status.
	Status() Status
}

Instance represents a instance on the cloud provider

type Status added in v0.2.0

type Status string

Status represents the instance status.

const (
	StatusRunning  Status = "running"
	StatusDeleting Status = "deleting"
	StatusDeleted  Status = "deleted"
	StatusCreating Status = "creating"
	StatusUnknown  Status = "unknown"
)

Jump to

Keyboard shortcuts

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