instance

package
v1.24.5 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 1 Imported by: 15

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() map[string]v1.NodeAddressType
	// 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