3de3d2c050
If the --from-proc-cmdline flag is given to coreos-cloudinit, the local /proc/cmdline file will be parsed for a cloud-config-url
18 lines
306 B
Go
18 lines
306 B
Go
package datasource
|
|
|
|
type metadataService struct {
|
|
url string
|
|
}
|
|
|
|
func NewMetadataService(url string) *metadataService {
|
|
return &metadataService{url}
|
|
}
|
|
|
|
func (ms *metadataService) Fetch() ([]byte, error) {
|
|
return fetchURL(ms.url)
|
|
}
|
|
|
|
func (ms *metadataService) Type() string {
|
|
return "metadata-service"
|
|
}
|