Documentation ¶
Index ¶
Constants ¶
View Source
const ( BaseUrl = "http://169.254.169.254/" Ec2ApiVersion = "2009-04-04" Ec2UserdataUrl = BaseUrl + Ec2ApiVersion + "/user-data" Ec2MetadataUrl = BaseUrl + Ec2ApiVersion + "/meta-data/" OpenstackApiVersion = "openstack/2012-08-10" OpenstackUserdataUrl = BaseUrl + OpenstackApiVersion + "/user_data" OpenstackMetadataUrl = BaseUrl + OpenstackApiVersion + "/meta_data.json" )
View Source
const ( ProcCmdlineLocation = "/proc/cmdline" ProcCmdlineCloudConfigFlag = "cloud-config-url" )
Variables ¶
This section is empty.
Functions ¶
func NewConfigDrive ¶ added in v0.7.4
func NewConfigDrive(root string) *configDrive
func NewLocalFile ¶
func NewLocalFile(path string) *localFile
func NewMetadataService ¶
func NewMetadataService() *metadataService
func NewProcCmdline ¶
func NewProcCmdline() *procCmdline
func NewRemoteFile ¶ added in v0.8.0
func NewRemoteFile(url string) *remoteFile
Types ¶
Click to show internal directories.
Click to hide internal directories.