Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶ added in v0.4.0
func WrapImage ¶ added in v0.4.0
WrapImage wraps an API type in the runtime object It does not do any validation or checking like NewImage, hence it should only be used for "safe" data coming from storage.
func (*Image) AddFiles ¶ added in v0.4.0
AddFiles copies the contents of the tar file into the ext4 filesystem
func (*Image) AllocateAndFormat ¶ added in v0.4.0
func (*Image) ObjectPath ¶ added in v0.4.0
func (*Image) SetupResolvConf ¶ added in v0.4.0
SetupResolvConf makes sure there is a resolv.conf file, otherwise name resolution won't work. The kernel uses DHCP by default, and puts the nameservers in /proc/net/pnp at runtime. Hence, as a default, if /etc/resolv.conf doesn't exist, we can use /proc/net/pnp as /etc/resolv.conf
Click to show internal directories.
Click to hide internal directories.