Documentation ¶
Index ¶
Constants ¶
View Source
const ( Ec2ApiVersion = "2009-04-04" OpenstackApiVersion = "2012-08-10" )
View Source
const ( BaseUrl = "http://169.254.169.254/" Ec2UserdataUrl = BaseUrl + Ec2ApiVersion + "/user-data" Ec2MetadataUrl = BaseUrl + Ec2ApiVersion + "/meta-data" OpenstackUserdataUrl = BaseUrl + "openstack/" + OpenstackApiVersion + "/user_data" )
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.