cloudprovider

package
v0.13.11 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudProviderLabel    = "io.rancher.host.provider"
	RegionLabel           = "io.rancher.host.region"
	AvailabilityZoneLabel = "io.rancher.host.zone"
)

Variables

View Source
var (
	InfoPath = path.Join(config.StateDir(), infoFile)
	TempPath = path.Join(config.StateDir(), tempFile)
)

Functions

func AddCloudProvider

func AddCloudProvider(name string, provider Provider)

func GetCloudProviderInfo

func GetCloudProviderInfo()

func IsHostStateReady

func IsHostStateReady() bool

func WriteHostInfo

func WriteHostInfo(i *hostinfo.Info) error

Types

type Provider

type Provider interface {
	Init() error
	GetHostInfo() (*hostinfo.Info, error)
	RetryCount() int
	Interval() time.Duration
	Name() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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