cloudinit/datasource/datasource.go

16 lines
283 B
Go
Raw Normal View History

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