4eedca26e9
Standardize on specific EC2 and OpenStack versions and add tests.
16 lines
283 B
Go
16 lines
283 B
Go
package datasource
|
|
|
|
const (
|
|
Ec2ApiVersion = "2009-04-04"
|
|
OpenstackApiVersion = "2012-08-10"
|
|
)
|
|
|
|
type Datasource interface {
|
|
IsAvailable() bool
|
|
AvailabilityChanges() bool
|
|
ConfigRoot() string
|
|
FetchMetadata() ([]byte, error)
|
|
FetchUserdata() ([]byte, error)
|
|
Type() string
|
|
}
|