types

package
v0.0.0-...-2b0a6a7 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory func(*viper.Viper) (Interface, error)

Factory is a function that returns a cloud provider Interface.

type Instance

type Instance struct {
	ID     string
	Region string
	Tags   types.Tags
}

Instance represents a cloud instance.

type Interface

type Interface interface {
	// ProviderName returns the name of the cloud provider.
	ProviderName() string
	// SampleConfig returns the sample config for the cloud provider.
	SampleConfig() string
	// Instance returns the instance details from the cloud provider.
	Instance(context.Context, types.IP) (*Instance, error)
	// SelfIP returns host's IPv4 address.
	SelfIP() (types.IP, error)
}

Interface represents a cloud provider.

Jump to

Keyboard shortcuts

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