cloudinit/datasource/datasource.go

16 lines
283 B
Go
Raw Permalink Normal View History

2014-03-18 20:00:41 +04:00
package datasource
const (
Ec2ApiVersion = "2009-04-04"
OpenstackApiVersion = "2012-08-10"
)
2014-03-18 20:00:41 +04:00
type Datasource interface {
IsAvailable() bool
AvailabilityChanges() bool
ConfigRoot() string
FetchMetadata() ([]byte, error)
FetchUserdata() ([]byte, error)
Type() string
2014-03-18 20:00:41 +04:00
}