Documentation ¶
Overview ¶
Package discover provides functions to get metadata for different cloud environments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Providers = map[string]Provider{ "aws": &aws.Provider{}, "azure": &azure.Provider{}, "gce": &gce.Provider{}, "softlayer": &softlayer.Provider{}, }
Providers contains all available providers.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config stores key/value pairs for the discovery functions to use.
type Discover ¶
type Discover struct { // Providers is the list of address lookup providers. // If nil, the default list of providers is used. Providers map[string]Provider // contains filtered or unexported fields }
Discover looks up metadata in different cloud environments.
func (*Discover) Addrs ¶
Addrs discovers ip addresses of nodes that match the given filter criteria. The config string must have the format 'provider=xxx key=val key=val ...' where the keys and values are provider specific. The values are URL encoded.
type Provider ¶
type Provider interface { // Addrs looks up addresses in the cloud environment according to the // configuration provided in args. Addrs(args map[string]string, l *log.Logger) ([]string, error) // Help provides the configuration help for the command line client. Help() string }
Provider has lookup functions for meta data in a cloud environment.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
discover
discover provides node discovery on the command line.
|
discover provides node discovery on the command line. |
provider
|
|
aws
Package aws provides node discovery for Amazon AWS.
|
Package aws provides node discovery for Amazon AWS. |
azure
Package azure provides node discovery for Microsoft Azure.
|
Package azure provides node discovery for Microsoft Azure. |
gce
Package gce provides node discovery for Google Cloud.
|
Package gce provides node discovery for Google Cloud. |
softlayer
Package softlayer provides node discovery for Softlayer.
|
Package softlayer provides node discovery for Softlayer. |
Click to show internal directories.
Click to hide internal directories.