Versions in this module Expand all Collapse all v1 v1.0.0 Mar 17, 2021 Changes in this version + type BlockDevice struct + LogSec int + Name string + Partitions []Child + Pttype string + type Child struct + Fstype string + Label string + Name string + Parttype string + Parttypename string + type Chroot struct + MountPoint string + func (c *Chroot) Exec(args []string) error + func (c *Chroot) Pull(srcPath string, destPath string) error + func (c *Chroot) Push(srcPath string, destPath string) error + func (c *Chroot) Run(scriptPath string) error + func (c *Chroot) Shell(shell string) error + type Image struct + Filename string + ImageFormat string + MountPoint string + NBD NBD + NoSysDNS bool + NoSysMounts bool + PartNum int + PartitionTable string + Partitions []Partition + ReadOnly bool + SectorSize int + Size string + VirtualSize string + func (i *Image) Info(jsonOutput bool) (string, error) + func (i *Image) Mount() (Chroot, error) + func (i *Image) Unmount() error + type Lsblk struct + LsblkDevices []BlockDevice + type NBD struct + BlockPath string + DevicePath string + Name string + PID string + PIDFile string + func (n *NBD) Connect(image string, format string) error + func (n *NBD) Disconnect() error + type Partition struct + Filesystem string + Label string + Name string + Type string + type QEMUImgInfo struct + ActualSize int64 + Filename string + Format string + VirtualSize int64