guestfs

package module
v0.0.0-...-80563fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2023 License: GPL-2.0 Imports: 5 Imported by: 0

README

go libguestfs bindings

This is an unofficial repo containing the libguestfs go binding.

The libguestfs team auto generates bindings for their C library, but does not host the resulting go bindings in any git repo.

This was taken from the source tar ball for libguestfs-1.50.0

I tested it with Go 1.19.12 on amd64.

Documentation

Index

Constants

View Source
const (
	CREATE_NO_ENVIRONMENT   = CreateFlags(C.GUESTFS_CREATE_NO_ENVIRONMENT)
	CREATE_NO_CLOSE_ON_EXIT = CreateFlags(C.GUESTFS_CREATE_NO_CLOSE_ON_EXIT)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	App_name           string
	App_display_name   string
	App_epoch          int32
	App_version        string
	App_release        string
	App_install_path   string
	App_trans_path     string
	App_publisher      string
	App_url            string
	App_source_package string
	App_summary        string
	App_description    string
}

type Application2

type Application2 struct {
	App2_name           string
	App2_display_name   string
	App2_epoch          int32
	App2_version        string
	App2_release        string
	App2_arch           string
	App2_install_path   string
	App2_trans_path     string
	App2_publisher      string
	App2_url            string
	App2_source_package string
	App2_summary        string
	App2_description    string
	App2_spare1         string
	App2_spare2         string
	App2_spare3         string
	App2_spare4         string
}

type BTRFSBalance

type BTRFSBalance struct {
	Btrfsbalance_status     string
	Btrfsbalance_total      uint64
	Btrfsbalance_balanced   uint64
	Btrfsbalance_considered uint64
	Btrfsbalance_left       uint64
}

type BTRFSQgroup

type BTRFSQgroup struct {
	Btrfsqgroup_id   string
	Btrfsqgroup_rfer uint64
	Btrfsqgroup_excl uint64
}

type BTRFSScrub

type BTRFSScrub struct {
	Btrfsscrub_data_extents_scrubbed uint64
	Btrfsscrub_tree_extents_scrubbed uint64
	Btrfsscrub_data_bytes_scrubbed   uint64
	Btrfsscrub_tree_bytes_scrubbed   uint64
	Btrfsscrub_read_errors           uint64
	Btrfsscrub_csum_errors           uint64
	Btrfsscrub_verify_errors         uint64
	Btrfsscrub_no_csum               uint64
	Btrfsscrub_csum_discards         uint64
	Btrfsscrub_super_errors          uint64
	Btrfsscrub_malloc_errors         uint64
	Btrfsscrub_uncorrectable_errors  uint64
	Btrfsscrub_unverified_errors     uint64
	Btrfsscrub_corrected_errors      uint64
	Btrfsscrub_last_physical         uint64
}

type BTRFSSubvolume

type BTRFSSubvolume struct {
	Btrfssubvolume_id           uint64
	Btrfssubvolume_top_level_id uint64
	Btrfssubvolume_path         string
}

type CreateFlags

type CreateFlags uint

Create a new handle with flags.

type Dirent

type Dirent struct {
	Ino  int64
	Ftyp byte
	Name string
}

type Guestfs

type Guestfs struct {
	// contains filtered or unexported fields
}

Handle.

func Create

func Create() (*Guestfs, error)

Create a new handle without flags.

func Create_flags

func Create_flags(flags CreateFlags) (*Guestfs, error)

func (*Guestfs) Acl_delete_def_file

func (g *Guestfs) Acl_delete_def_file(dir string) error

acl_delete_def_file : delete the default POSIX ACL of a directory

func (*Guestfs) Acl_get_file

func (g *Guestfs) Acl_get_file(path string, acltype string) (string, error)

acl_get_file : get the POSIX ACL attached to a file

func (*Guestfs) Acl_set_file

func (g *Guestfs) Acl_set_file(path string, acltype string, acl string) error

acl_set_file : set the POSIX ACL attached to a file

func (*Guestfs) Add_cdrom

func (g *Guestfs) Add_cdrom(filename string) error

add_cdrom : add a CD-ROM disk image to examine

func (*Guestfs) Add_domain

func (g *Guestfs) Add_domain(dom string, optargs *OptargsAdd_domain) (int, error)

add_domain : add the disk(s) from a named libvirt domain

func (*Guestfs) Add_drive

func (g *Guestfs) Add_drive(filename string, optargs *OptargsAdd_drive) error

add_drive : add an image to examine or modify

func (*Guestfs) Add_drive_ro

func (g *Guestfs) Add_drive_ro(filename string) error

add_drive_ro : add a drive in snapshot mode (read-only)

func (*Guestfs) Add_drive_ro_with_if

func (g *Guestfs) Add_drive_ro_with_if(filename string, iface string) error

add_drive_ro_with_if : add a drive read-only specifying the QEMU block emulation to use

func (*Guestfs) Add_drive_scratch

func (g *Guestfs) Add_drive_scratch(size int64, optargs *OptargsAdd_drive_scratch) error

add_drive_scratch : add a temporary scratch drive

func (*Guestfs) Add_drive_with_if

func (g *Guestfs) Add_drive_with_if(filename string, iface string) error

add_drive_with_if : add a drive specifying the QEMU block emulation to use

func (*Guestfs) Add_libvirt_dom

func (g *Guestfs) Add_libvirt_dom(dom int64, optargs *OptargsAdd_libvirt_dom) (int, error)

add_libvirt_dom : add the disk(s) from a libvirt domain

func (*Guestfs) Aug_clear

func (g *Guestfs) Aug_clear(augpath string) error

aug_clear : clear Augeas path

func (*Guestfs) Aug_close

func (g *Guestfs) Aug_close() error

aug_close : close the current Augeas handle

func (*Guestfs) Aug_defnode

func (g *Guestfs) Aug_defnode(name string, expr string, val string) (*IntBool, error)

aug_defnode : define an Augeas node

func (*Guestfs) Aug_defvar

func (g *Guestfs) Aug_defvar(name string, expr *string) (int, error)

aug_defvar : define an Augeas variable

func (*Guestfs) Aug_get

func (g *Guestfs) Aug_get(augpath string) (string, error)

aug_get : look up the value of an Augeas path

func (*Guestfs) Aug_init

func (g *Guestfs) Aug_init(root string, flags int) error

aug_init : create a new Augeas handle

func (*Guestfs) Aug_insert

func (g *Guestfs) Aug_insert(augpath string, label string, before bool) error

aug_insert : insert a sibling Augeas node

func (*Guestfs) Aug_label

func (g *Guestfs) Aug_label(augpath string) (string, error)

aug_label : return the label from an Augeas path expression

func (*Guestfs) Aug_load

func (g *Guestfs) Aug_load() error

aug_load : load files into the tree

func (*Guestfs) Aug_ls

func (g *Guestfs) Aug_ls(augpath string) ([]string, error)

aug_ls : list Augeas nodes under augpath

func (*Guestfs) Aug_match

func (g *Guestfs) Aug_match(augpath string) ([]string, error)

aug_match : return Augeas nodes which match augpath

func (*Guestfs) Aug_mv

func (g *Guestfs) Aug_mv(src string, dest string) error

aug_mv : move Augeas node

func (*Guestfs) Aug_rm

func (g *Guestfs) Aug_rm(augpath string) (int, error)

aug_rm : remove an Augeas path

func (*Guestfs) Aug_save

func (g *Guestfs) Aug_save() error

aug_save : write all pending Augeas changes to disk

func (*Guestfs) Aug_set

func (g *Guestfs) Aug_set(augpath string, val string) error

aug_set : set Augeas path to value

func (*Guestfs) Aug_setm

func (g *Guestfs) Aug_setm(base string, sub *string, val string) (int, error)

aug_setm : set multiple Augeas nodes

func (*Guestfs) Aug_transform

func (g *Guestfs) Aug_transform(lens string, file string, optargs *OptargsAug_transform) error

aug_transform : add/remove an Augeas lens transformation

func (*Guestfs) Available

func (g *Guestfs) Available(groups []string) error

available : test availability of some parts of the API

func (*Guestfs) Available_all_groups

func (g *Guestfs) Available_all_groups() ([]string, error)

available_all_groups : return a list of all optional groups

func (*Guestfs) Base64_in

func (g *Guestfs) Base64_in(base64file string, filename string) error

base64_in : upload base64-encoded data to file

func (*Guestfs) Base64_out

func (g *Guestfs) Base64_out(filename string, base64file string) error

base64_out : download file and encode as base64

func (*Guestfs) Blkdiscard

func (g *Guestfs) Blkdiscard(device string) error

blkdiscard : discard all blocks on a device

func (*Guestfs) Blkdiscardzeroes

func (g *Guestfs) Blkdiscardzeroes(device string) (bool, error)

blkdiscardzeroes : return true if discarded blocks are read as zeroes

func (*Guestfs) Blkid

func (g *Guestfs) Blkid(device string) (map[string]string, error)

blkid : print block device attributes

func (*Guestfs) Blockdev_flushbufs

func (g *Guestfs) Blockdev_flushbufs(device string) error

blockdev_flushbufs : flush device buffers

func (*Guestfs) Blockdev_getbsz

func (g *Guestfs) Blockdev_getbsz(device string) (int, error)

blockdev_getbsz : get blocksize of block device

func (*Guestfs) Blockdev_getro

func (g *Guestfs) Blockdev_getro(device string) (bool, error)

blockdev_getro : is block device set to read-only

func (*Guestfs) Blockdev_getsize64

func (g *Guestfs) Blockdev_getsize64(device string) (int64, error)

blockdev_getsize64 : get total size of device in bytes

func (*Guestfs) Blockdev_getss

func (g *Guestfs) Blockdev_getss(device string) (int, error)

blockdev_getss : get sectorsize of block device

func (*Guestfs) Blockdev_getsz

func (g *Guestfs) Blockdev_getsz(device string) (int64, error)

blockdev_getsz : get total size of device in 512-byte sectors

func (*Guestfs) Blockdev_rereadpt

func (g *Guestfs) Blockdev_rereadpt(device string) error

blockdev_rereadpt : reread partition table

func (*Guestfs) Blockdev_setbsz

func (g *Guestfs) Blockdev_setbsz(device string, blocksize int) error

blockdev_setbsz : set blocksize of block device

func (*Guestfs) Blockdev_setra

func (g *Guestfs) Blockdev_setra(device string, sectors int) error

blockdev_setra : set readahead

func (*Guestfs) Blockdev_setro

func (g *Guestfs) Blockdev_setro(device string) error

blockdev_setro : set block device to read-only

func (*Guestfs) Blockdev_setrw

func (g *Guestfs) Blockdev_setrw(device string) error

blockdev_setrw : set block device to read-write

func (*Guestfs) Btrfs_balance_cancel

func (g *Guestfs) Btrfs_balance_cancel(path string) error

btrfs_balance_cancel : cancel a running or paused balance

func (*Guestfs) Btrfs_balance_pause

func (g *Guestfs) Btrfs_balance_pause(path string) error

btrfs_balance_pause : pause a running balance

func (*Guestfs) Btrfs_balance_resume

func (g *Guestfs) Btrfs_balance_resume(path string) error

btrfs_balance_resume : resume a paused balance

func (*Guestfs) Btrfs_balance_status

func (g *Guestfs) Btrfs_balance_status(path string) (*BTRFSBalance, error)

btrfs_balance_status : show the status of a running or paused balance

func (*Guestfs) Btrfs_device_add

func (g *Guestfs) Btrfs_device_add(devices []string, fs string) error

btrfs_device_add : add devices to a btrfs filesystem

func (*Guestfs) Btrfs_device_delete

func (g *Guestfs) Btrfs_device_delete(devices []string, fs string) error

btrfs_device_delete : remove devices from a btrfs filesystem

func (*Guestfs) Btrfs_filesystem_balance

func (g *Guestfs) Btrfs_filesystem_balance(fs string) error

btrfs_filesystem_balance : balance a btrfs filesystem

func (*Guestfs) Btrfs_filesystem_defragment

func (g *Guestfs) Btrfs_filesystem_defragment(path string, optargs *OptargsBtrfs_filesystem_defragment) error

btrfs_filesystem_defragment : defragment a file or directory

func (*Guestfs) Btrfs_filesystem_resize

func (g *Guestfs) Btrfs_filesystem_resize(mountpoint string, optargs *OptargsBtrfs_filesystem_resize) error

btrfs_filesystem_resize : resize a btrfs filesystem

func (*Guestfs) Btrfs_filesystem_show

func (g *Guestfs) Btrfs_filesystem_show(device string) ([]string, error)

btrfs_filesystem_show : list devices for btrfs filesystem

func (*Guestfs) Btrfs_filesystem_sync

func (g *Guestfs) Btrfs_filesystem_sync(fs string) error

btrfs_filesystem_sync : sync a btrfs filesystem

func (*Guestfs) Btrfs_fsck

func (g *Guestfs) Btrfs_fsck(device string, optargs *OptargsBtrfs_fsck) error

btrfs_fsck : check a btrfs filesystem

func (*Guestfs) Btrfs_image

func (g *Guestfs) Btrfs_image(source []string, image string, optargs *OptargsBtrfs_image) error

btrfs_image : create an image of a btrfs filesystem

func (*Guestfs) Btrfs_qgroup_assign

func (g *Guestfs) Btrfs_qgroup_assign(src string, dst string, path string) error

btrfs_qgroup_assign : add a qgroup to a parent qgroup

func (*Guestfs) Btrfs_qgroup_create

func (g *Guestfs) Btrfs_qgroup_create(qgroupid string, subvolume string) error

btrfs_qgroup_create : create a subvolume quota group

func (*Guestfs) Btrfs_qgroup_destroy

func (g *Guestfs) Btrfs_qgroup_destroy(qgroupid string, subvolume string) error

btrfs_qgroup_destroy : destroy a subvolume quota group

func (*Guestfs) Btrfs_qgroup_limit

func (g *Guestfs) Btrfs_qgroup_limit(subvolume string, size int64) error

btrfs_qgroup_limit : limit the size of a subvolume

func (*Guestfs) Btrfs_qgroup_remove

func (g *Guestfs) Btrfs_qgroup_remove(src string, dst string, path string) error

btrfs_qgroup_remove : remove a qgroup from its parent qgroup

func (*Guestfs) Btrfs_qgroup_show

func (g *Guestfs) Btrfs_qgroup_show(path string) (*[]BTRFSQgroup, error)

btrfs_qgroup_show : show subvolume quota groups

func (*Guestfs) Btrfs_quota_enable

func (g *Guestfs) Btrfs_quota_enable(fs string, enable bool) error

btrfs_quota_enable : enable or disable subvolume quota support

func (*Guestfs) Btrfs_quota_rescan

func (g *Guestfs) Btrfs_quota_rescan(fs string) error

btrfs_quota_rescan : trash all qgroup numbers and scan the metadata again with the current config

func (*Guestfs) Btrfs_replace

func (g *Guestfs) Btrfs_replace(srcdev string, targetdev string, mntpoint string) error

btrfs_replace : replace a btrfs managed device with another device

func (*Guestfs) Btrfs_rescue_chunk_recover

func (g *Guestfs) Btrfs_rescue_chunk_recover(device string) error

btrfs_rescue_chunk_recover : recover the chunk tree of btrfs filesystem

func (*Guestfs) Btrfs_rescue_super_recover

func (g *Guestfs) Btrfs_rescue_super_recover(device string) error

btrfs_rescue_super_recover : recover bad superblocks from good copies

func (*Guestfs) Btrfs_scrub_cancel

func (g *Guestfs) Btrfs_scrub_cancel(path string) error

btrfs_scrub_cancel : cancel a running scrub

func (*Guestfs) Btrfs_scrub_resume

func (g *Guestfs) Btrfs_scrub_resume(path string) error

btrfs_scrub_resume : resume a previously canceled or interrupted scrub

func (*Guestfs) Btrfs_scrub_start

func (g *Guestfs) Btrfs_scrub_start(path string) error

btrfs_scrub_start : read all data from all disks and verify checksums

func (*Guestfs) Btrfs_scrub_status

func (g *Guestfs) Btrfs_scrub_status(path string) (*BTRFSScrub, error)

btrfs_scrub_status : show status of running or finished scrub

func (*Guestfs) Btrfs_set_seeding

func (g *Guestfs) Btrfs_set_seeding(device string, seeding bool) error

btrfs_set_seeding : enable or disable the seeding feature of device

func (*Guestfs) Btrfs_subvolume_create

func (g *Guestfs) Btrfs_subvolume_create(dest string, optargs *OptargsBtrfs_subvolume_create) error

btrfs_subvolume_create : create a btrfs subvolume

func (*Guestfs) Btrfs_subvolume_delete

func (g *Guestfs) Btrfs_subvolume_delete(subvolume string) error

btrfs_subvolume_delete : delete a btrfs subvolume or snapshot

func (*Guestfs) Btrfs_subvolume_get_default

func (g *Guestfs) Btrfs_subvolume_get_default(fs string) (int64, error)

btrfs_subvolume_get_default : get the default subvolume or snapshot of a filesystem

func (*Guestfs) Btrfs_subvolume_list

func (g *Guestfs) Btrfs_subvolume_list(fs string) (*[]BTRFSSubvolume, error)

btrfs_subvolume_list : list btrfs snapshots and subvolumes

func (*Guestfs) Btrfs_subvolume_set_default

func (g *Guestfs) Btrfs_subvolume_set_default(id int64, fs string) error

btrfs_subvolume_set_default : set default btrfs subvolume

func (*Guestfs) Btrfs_subvolume_show

func (g *Guestfs) Btrfs_subvolume_show(subvolume string) (map[string]string, error)

btrfs_subvolume_show : return detailed information of the subvolume

func (*Guestfs) Btrfs_subvolume_snapshot

func (g *Guestfs) Btrfs_subvolume_snapshot(source string, dest string, optargs *OptargsBtrfs_subvolume_snapshot) error

btrfs_subvolume_snapshot : create a btrfs snapshot

func (*Guestfs) Btrfstune_enable_extended_inode_refs

func (g *Guestfs) Btrfstune_enable_extended_inode_refs(device string) error

btrfstune_enable_extended_inode_refs : enable extended inode refs

func (*Guestfs) Btrfstune_enable_skinny_metadata_extent_refs

func (g *Guestfs) Btrfstune_enable_skinny_metadata_extent_refs(device string) error

btrfstune_enable_skinny_metadata_extent_refs : enable skinny metadata extent refs

func (*Guestfs) Btrfstune_seeding

func (g *Guestfs) Btrfstune_seeding(device string, seeding bool) error

btrfstune_seeding : enable or disable seeding of a btrfs device

func (*Guestfs) C_pointer

func (g *Guestfs) C_pointer() (int64, error)

c_pointer : return the C pointer to the guestfs_h handle

func (*Guestfs) Canonical_device_name

func (g *Guestfs) Canonical_device_name(device string) (string, error)

canonical_device_name : return canonical device name

func (*Guestfs) Cap_get_file

func (g *Guestfs) Cap_get_file(path string) (string, error)

cap_get_file : get the Linux capabilities attached to a file

func (*Guestfs) Cap_set_file

func (g *Guestfs) Cap_set_file(path string, cap string) error

cap_set_file : set the Linux capabilities attached to a file

func (*Guestfs) Case_sensitive_path

func (g *Guestfs) Case_sensitive_path(path string) (string, error)

case_sensitive_path : return true path on case-insensitive filesystem

func (*Guestfs) Cat

func (g *Guestfs) Cat(path string) (string, error)

cat : list the contents of a file

func (*Guestfs) Checksum

func (g *Guestfs) Checksum(csumtype string, path string) (string, error)

checksum : compute MD5, SHAx or CRC checksum of file

func (*Guestfs) Checksum_device

func (g *Guestfs) Checksum_device(csumtype string, device string) (string, error)

checksum_device : compute MD5, SHAx or CRC checksum of the contents of a device

func (*Guestfs) Checksums_out

func (g *Guestfs) Checksums_out(csumtype string, directory string, sumsfile string) error

checksums_out : compute MD5, SHAx or CRC checksum of files in a directory

func (*Guestfs) Chmod

func (g *Guestfs) Chmod(mode int, path string) error

chmod : change file mode

func (*Guestfs) Chown

func (g *Guestfs) Chown(owner int, group int, path string) error

chown : change file owner and group

func (*Guestfs) Clear_backend_setting

func (g *Guestfs) Clear_backend_setting(name string) (int, error)

clear_backend_setting : remove a single per-backend settings string

func (*Guestfs) Clevis_luks_unlock

func (g *Guestfs) Clevis_luks_unlock(device string, mapname string) error

clevis_luks_unlock : open an encrypted LUKS block device with Clevis and Tang

func (*Guestfs) Close

func (g *Guestfs) Close() *GuestfsError

Close the handle.

func (*Guestfs) Command

func (g *Guestfs) Command(arguments []string) (string, error)

command : run a command from the guest filesystem

func (*Guestfs) Command_lines

func (g *Guestfs) Command_lines(arguments []string) ([]string, error)

command_lines : run a command, returning lines

func (*Guestfs) Compress_device_out

func (g *Guestfs) Compress_device_out(ctype string, device string, zdevice string, optargs *OptargsCompress_device_out) error

compress_device_out : output compressed device

func (*Guestfs) Compress_out

func (g *Guestfs) Compress_out(ctype string, file string, zfile string, optargs *OptargsCompress_out) error

compress_out : output compressed file

func (*Guestfs) Config

func (g *Guestfs) Config(hvparam string, hvvalue *string) error

config : add hypervisor parameters

func (*Guestfs) Copy_attributes

func (g *Guestfs) Copy_attributes(src string, dest string, optargs *OptargsCopy_attributes) error

copy_attributes : copy the attributes of a path (file/directory) to another

func (*Guestfs) Copy_device_to_device

func (g *Guestfs) Copy_device_to_device(src string, dest string, optargs *OptargsCopy_device_to_device) error

copy_device_to_device : copy from source device to destination device

func (*Guestfs) Copy_device_to_file

func (g *Guestfs) Copy_device_to_file(src string, dest string, optargs *OptargsCopy_device_to_file) error

copy_device_to_file : copy from source device to destination file

func (*Guestfs) Copy_file_to_device

func (g *Guestfs) Copy_file_to_device(src string, dest string, optargs *OptargsCopy_file_to_device) error

copy_file_to_device : copy from source file to destination device

func (*Guestfs) Copy_file_to_file

func (g *Guestfs) Copy_file_to_file(src string, dest string, optargs *OptargsCopy_file_to_file) error

copy_file_to_file : copy from source file to destination file

func (*Guestfs) Copy_in

func (g *Guestfs) Copy_in(localpath string, remotedir string) error

copy_in : copy local files or directories into an image

func (*Guestfs) Copy_out

func (g *Guestfs) Copy_out(remotepath string, localdir string) error

copy_out : copy remote files or directories out of an image

func (*Guestfs) Copy_size

func (g *Guestfs) Copy_size(src string, dest string, size int64) error

copy_size : copy size bytes from source to destination using dd

func (*Guestfs) Cp

func (g *Guestfs) Cp(src string, dest string) error

cp : copy a file

func (*Guestfs) Cp_a

func (g *Guestfs) Cp_a(src string, dest string) error

cp_a : copy a file or directory recursively

func (*Guestfs) Cp_r

func (g *Guestfs) Cp_r(src string, dest string) error

cp_r : copy a file or directory recursively

func (*Guestfs) Cpio_out

func (g *Guestfs) Cpio_out(directory string, cpiofile string, optargs *OptargsCpio_out) error

cpio_out : pack directory into cpio file

func (*Guestfs) Cryptsetup_close

func (g *Guestfs) Cryptsetup_close(device string) error

cryptsetup_close : close an encrypted device

func (*Guestfs) Cryptsetup_open

func (g *Guestfs) Cryptsetup_open(device string, key string, mapname string, optargs *OptargsCryptsetup_open) error

cryptsetup_open : open an encrypted block device

func (*Guestfs) Dd

func (g *Guestfs) Dd(src string, dest string) error

dd : copy from source to destination using dd

func (*Guestfs) Debug

func (g *Guestfs) Debug(subcmd string, extraargs []string) (string, error)

debug : debugging and internals

func (*Guestfs) Debug_drives

func (g *Guestfs) Debug_drives() ([]string, error)

debug_drives : debug the drives (internal use only)

func (*Guestfs) Debug_upload

func (g *Guestfs) Debug_upload(filename string, tmpname string, mode int) error

debug_upload : upload a file to the appliance (internal use only)

func (*Guestfs) Device_index

func (g *Guestfs) Device_index(device string) (int, error)

device_index : convert device to index

func (*Guestfs) Device_name

func (g *Guestfs) Device_name(index int) (string, error)

device_name : convert device index to name

func (*Guestfs) Df

func (g *Guestfs) Df() (string, error)

df : report file system disk space usage

func (*Guestfs) Df_h

func (g *Guestfs) Df_h() (string, error)

df_h : report file system disk space usage (human readable)

func (*Guestfs) Disk_create

func (g *Guestfs) Disk_create(filename string, format string, size int64, optargs *OptargsDisk_create) error

disk_create : create a blank disk image

func (*Guestfs) Disk_format

func (g *Guestfs) Disk_format(filename string) (string, error)

disk_format : detect the disk format of a disk image

func (*Guestfs) Disk_has_backing_file

func (g *Guestfs) Disk_has_backing_file(filename string) (bool, error)

disk_has_backing_file : return whether disk has a backing file

func (*Guestfs) Disk_virtual_size

func (g *Guestfs) Disk_virtual_size(filename string) (int64, error)

disk_virtual_size : return virtual size of a disk

func (*Guestfs) Dmesg

func (g *Guestfs) Dmesg() (string, error)

dmesg : return kernel messages

func (*Guestfs) Download

func (g *Guestfs) Download(remotefilename string, filename string) error

download : download a file to the local machine

func (*Guestfs) Download_blocks

func (g *Guestfs) Download_blocks(device string, start int64, stop int64, filename string, optargs *OptargsDownload_blocks) error

download_blocks : download the given data units from the disk

func (*Guestfs) Download_inode

func (g *Guestfs) Download_inode(device string, inode int64, filename string) error

download_inode : download a file to the local machine given its inode

func (*Guestfs) Download_offset

func (g *Guestfs) Download_offset(remotefilename string, filename string, offset int64, size int64) error

download_offset : download a file to the local machine with offset and size

func (*Guestfs) Drop_caches

func (g *Guestfs) Drop_caches(whattodrop int) error

drop_caches : drop kernel page cache, dentries and inodes

func (*Guestfs) Du

func (g *Guestfs) Du(path string) (int64, error)

du : estimate file space usage

func (*Guestfs) E2fsck

func (g *Guestfs) E2fsck(device string, optargs *OptargsE2fsck) error

e2fsck : check an ext2/ext3 filesystem

func (*Guestfs) E2fsck_f

func (g *Guestfs) E2fsck_f(device string) error

e2fsck_f : check an ext2/ext3 filesystem

func (*Guestfs) Echo_daemon

func (g *Guestfs) Echo_daemon(words []string) (string, error)

echo_daemon : echo arguments back to the client

func (*Guestfs) Egrep

func (g *Guestfs) Egrep(regex string, path string) ([]string, error)

egrep : return lines matching a pattern

func (*Guestfs) Egrepi

func (g *Guestfs) Egrepi(regex string, path string) ([]string, error)

egrepi : return lines matching a pattern

func (*Guestfs) Equal

func (g *Guestfs) Equal(file1 string, file2 string) (bool, error)

equal : test if two files have equal contents

func (*Guestfs) Exists

func (g *Guestfs) Exists(path string) (bool, error)

exists : test if file or directory exists

func (*Guestfs) Extlinux

func (g *Guestfs) Extlinux(directory string) error

extlinux : install the SYSLINUX bootloader on an ext2/3/4 or btrfs filesystem

func (*Guestfs) F2fs_expand

func (g *Guestfs) F2fs_expand(device string) error

f2fs_expand : expand a f2fs filesystem

func (*Guestfs) Fallocate

func (g *Guestfs) Fallocate(path string, len int) error

fallocate : preallocate a file in the guest filesystem

func (*Guestfs) Fallocate64

func (g *Guestfs) Fallocate64(path string, len int64) error

fallocate64 : preallocate a file in the guest filesystem

func (*Guestfs) Feature_available

func (g *Guestfs) Feature_available(groups []string) (bool, error)

feature_available : test availability of some parts of the API

func (*Guestfs) Fgrep

func (g *Guestfs) Fgrep(pattern string, path string) ([]string, error)

fgrep : return lines matching a pattern

func (*Guestfs) Fgrepi

func (g *Guestfs) Fgrepi(pattern string, path string) ([]string, error)

fgrepi : return lines matching a pattern

func (*Guestfs) File

func (g *Guestfs) File(path string) (string, error)

file : determine file type

func (*Guestfs) File_architecture

func (g *Guestfs) File_architecture(filename string) (string, error)

file_architecture : detect the architecture of a binary file

func (*Guestfs) Filesize

func (g *Guestfs) Filesize(file string) (int64, error)

filesize : return the size of the file in bytes

func (*Guestfs) Filesystem_available

func (g *Guestfs) Filesystem_available(filesystem string) (bool, error)

filesystem_available : check if filesystem is available

func (*Guestfs) Filesystem_walk

func (g *Guestfs) Filesystem_walk(device string) (*[]TSKDirent, error)

filesystem_walk : walk through the filesystem content

func (*Guestfs) Fill

func (g *Guestfs) Fill(c int, len int, path string) error

fill : fill a file with octets

func (*Guestfs) Fill_dir

func (g *Guestfs) Fill_dir(dir string, nr int) error

fill_dir : fill a directory with empty files

func (*Guestfs) Fill_pattern

func (g *Guestfs) Fill_pattern(pattern string, len int, path string) error

fill_pattern : fill a file with a repeating pattern of bytes

func (*Guestfs) Find

func (g *Guestfs) Find(directory string) ([]string, error)

find : find all files and directories

func (*Guestfs) Find0

func (g *Guestfs) Find0(directory string, files string) error

find0 : find all files and directories, returning NUL-separated list

func (*Guestfs) Find_inode

func (g *Guestfs) Find_inode(device string, inode int64) (*[]TSKDirent, error)

find_inode : search the entries associated to the given inode

func (*Guestfs) Findfs_label

func (g *Guestfs) Findfs_label(label string) (string, error)

findfs_label : find a filesystem by label

func (*Guestfs) Findfs_uuid

func (g *Guestfs) Findfs_uuid(uuid string) (string, error)

findfs_uuid : find a filesystem by UUID

func (*Guestfs) Fsck

func (g *Guestfs) Fsck(fstype string, device string) (int, error)

fsck : run the filesystem checker

func (*Guestfs) Fstrim

func (g *Guestfs) Fstrim(mountpoint string, optargs *OptargsFstrim) error

fstrim : trim free space in a filesystem

func (*Guestfs) Get_append

func (g *Guestfs) Get_append() (*string, error)

get_append : get the additional kernel options

func (*Guestfs) Get_attach_method

func (g *Guestfs) Get_attach_method() (string, error)

get_attach_method : get the backend

func (*Guestfs) Get_autosync

func (g *Guestfs) Get_autosync() (bool, error)

get_autosync : get autosync mode

func (*Guestfs) Get_backend

func (g *Guestfs) Get_backend() (string, error)

get_backend : get the backend

func (*Guestfs) Get_backend_setting

func (g *Guestfs) Get_backend_setting(name string) (string, error)

get_backend_setting : get a single per-backend settings string

func (*Guestfs) Get_backend_settings

func (g *Guestfs) Get_backend_settings() ([]string, error)

get_backend_settings : get per-backend settings

func (*Guestfs) Get_cachedir

func (g *Guestfs) Get_cachedir() (string, error)

get_cachedir : get the appliance cache directory

func (*Guestfs) Get_direct

func (g *Guestfs) Get_direct() (bool, error)

get_direct : get direct appliance mode flag

func (*Guestfs) Get_e2attrs

func (g *Guestfs) Get_e2attrs(file string) (string, error)

get_e2attrs : get ext2 file attributes of a file

func (*Guestfs) Get_e2generation

func (g *Guestfs) Get_e2generation(file string) (int64, error)

get_e2generation : get ext2 file generation of a file

func (*Guestfs) Get_e2label

func (g *Guestfs) Get_e2label(device string) (string, error)

get_e2label : get the ext2/3/4 filesystem label

func (*Guestfs) Get_e2uuid

func (g *Guestfs) Get_e2uuid(device string) (string, error)

get_e2uuid : get the ext2/3/4 filesystem UUID

func (*Guestfs) Get_hv

func (g *Guestfs) Get_hv() (string, error)

get_hv : get the hypervisor binary

func (*Guestfs) Get_identifier

func (g *Guestfs) Get_identifier() (string, error)

get_identifier : get the handle identifier

func (*Guestfs) Get_libvirt_requested_credential_challenge

func (g *Guestfs) Get_libvirt_requested_credential_challenge(index int) (string, error)

get_libvirt_requested_credential_challenge : challenge of i'th requested credential

func (*Guestfs) Get_libvirt_requested_credential_defresult

func (g *Guestfs) Get_libvirt_requested_credential_defresult(index int) (string, error)

get_libvirt_requested_credential_defresult : default result of i'th requested credential

func (*Guestfs) Get_libvirt_requested_credential_prompt

func (g *Guestfs) Get_libvirt_requested_credential_prompt(index int) (string, error)

get_libvirt_requested_credential_prompt : prompt of i'th requested credential

func (*Guestfs) Get_libvirt_requested_credentials

func (g *Guestfs) Get_libvirt_requested_credentials() ([]string, error)

get_libvirt_requested_credentials : get list of credentials requested by libvirt

func (*Guestfs) Get_memsize

func (g *Guestfs) Get_memsize() (int, error)

get_memsize : get memory allocated to the hypervisor

func (*Guestfs) Get_network

func (g *Guestfs) Get_network() (bool, error)

get_network : get enable network flag

func (*Guestfs) Get_path

func (g *Guestfs) Get_path() (string, error)

get_path : get the search path

func (*Guestfs) Get_pgroup

func (g *Guestfs) Get_pgroup() (bool, error)

get_pgroup : get process group flag

func (*Guestfs) Get_pid

func (g *Guestfs) Get_pid() (int, error)

get_pid : get PID of hypervisor

func (*Guestfs) Get_program

func (g *Guestfs) Get_program() (string, error)

get_program : get the program name

func (*Guestfs) Get_qemu

func (g *Guestfs) Get_qemu() (string, error)

get_qemu : get the hypervisor binary (usually qemu)

func (*Guestfs) Get_recovery_proc

func (g *Guestfs) Get_recovery_proc() (bool, error)

get_recovery_proc : get recovery process enabled flag

func (*Guestfs) Get_selinux

func (g *Guestfs) Get_selinux() (bool, error)

get_selinux : get SELinux enabled flag

func (*Guestfs) Get_smp

func (g *Guestfs) Get_smp() (int, error)

get_smp : get number of virtual CPUs in appliance

func (*Guestfs) Get_sockdir

func (g *Guestfs) Get_sockdir() (string, error)

get_sockdir : get the temporary directory for sockets

func (*Guestfs) Get_state

func (g *Guestfs) Get_state() (int, error)

get_state : get the current state

func (*Guestfs) Get_tmpdir

func (g *Guestfs) Get_tmpdir() (string, error)

get_tmpdir : get the temporary directory

func (*Guestfs) Get_trace

func (g *Guestfs) Get_trace() (bool, error)

get_trace : get command trace enabled flag

func (*Guestfs) Get_umask

func (g *Guestfs) Get_umask() (int, error)

get_umask : get the current umask

func (*Guestfs) Get_verbose

func (g *Guestfs) Get_verbose() (bool, error)

get_verbose : get verbose mode

func (*Guestfs) Getcon

func (g *Guestfs) Getcon() (string, error)

getcon : get SELinux security context

func (*Guestfs) Getxattr

func (g *Guestfs) Getxattr(path string, name string) ([]byte, error)

getxattr : get a single extended attribute

func (*Guestfs) Getxattrs

func (g *Guestfs) Getxattrs(path string) (*[]XAttr, error)

getxattrs : list extended attributes of a file or directory

func (*Guestfs) Glob_expand

func (g *Guestfs) Glob_expand(pattern string, optargs *OptargsGlob_expand) ([]string, error)

glob_expand : expand a wildcard path

func (*Guestfs) Grep

func (g *Guestfs) Grep(regex string, path string, optargs *OptargsGrep) ([]string, error)

grep : return lines matching a pattern

func (*Guestfs) Grepi

func (g *Guestfs) Grepi(regex string, path string) ([]string, error)

grepi : return lines matching a pattern

func (*Guestfs) Grub_install

func (g *Guestfs) Grub_install(root string, device string) error

grub_install : install GRUB 1

func (*Guestfs) Head

func (g *Guestfs) Head(path string) ([]string, error)

head : return first 10 lines of a file

func (*Guestfs) Head_n

func (g *Guestfs) Head_n(nrlines int, path string) ([]string, error)

head_n : return first N lines of a file

func (*Guestfs) Hexdump

func (g *Guestfs) Hexdump(path string) (string, error)

hexdump : dump a file in hexadecimal

func (*Guestfs) Hivex_close

func (g *Guestfs) Hivex_close() error

hivex_close : close the current hivex handle

func (*Guestfs) Hivex_commit

func (g *Guestfs) Hivex_commit(filename *string) error

hivex_commit : commit (write) changes back to the hive

func (*Guestfs) Hivex_node_add_child

func (g *Guestfs) Hivex_node_add_child(parent int64, name string) (int64, error)

hivex_node_add_child : add a child node

func (*Guestfs) Hivex_node_children

func (g *Guestfs) Hivex_node_children(nodeh int64) (*[]HivexNode, error)

hivex_node_children : return list of nodes which are subkeys of node

func (*Guestfs) Hivex_node_delete_child

func (g *Guestfs) Hivex_node_delete_child(nodeh int64) error

hivex_node_delete_child : delete a node (recursively)

func (*Guestfs) Hivex_node_get_child

func (g *Guestfs) Hivex_node_get_child(nodeh int64, name string) (int64, error)

hivex_node_get_child : return the named child of node

func (*Guestfs) Hivex_node_get_value

func (g *Guestfs) Hivex_node_get_value(nodeh int64, key string) (int64, error)

hivex_node_get_value : return the named value

func (*Guestfs) Hivex_node_name

func (g *Guestfs) Hivex_node_name(nodeh int64) (string, error)

hivex_node_name : return the name of the node

func (*Guestfs) Hivex_node_parent

func (g *Guestfs) Hivex_node_parent(nodeh int64) (int64, error)

hivex_node_parent : return the parent of node

func (*Guestfs) Hivex_node_set_value

func (g *Guestfs) Hivex_node_set_value(nodeh int64, key string, t int64, val []byte) error

hivex_node_set_value : set or replace a single value in a node

func (*Guestfs) Hivex_node_values

func (g *Guestfs) Hivex_node_values(nodeh int64) (*[]HivexValue, error)

hivex_node_values : return list of values attached to node

func (*Guestfs) Hivex_open

func (g *Guestfs) Hivex_open(filename string, optargs *OptargsHivex_open) error

hivex_open : open a Windows Registry hive file

func (*Guestfs) Hivex_root

func (g *Guestfs) Hivex_root() (int64, error)

hivex_root : return the root node of the hive

func (*Guestfs) Hivex_value_key

func (g *Guestfs) Hivex_value_key(valueh int64) (string, error)

hivex_value_key : return the key field from the (key, datatype, data) tuple

func (*Guestfs) Hivex_value_string

func (g *Guestfs) Hivex_value_string(valueh int64) (string, error)

hivex_value_string : return the data field as a UTF-8 string

func (*Guestfs) Hivex_value_type

func (g *Guestfs) Hivex_value_type(valueh int64) (int64, error)

hivex_value_type : return the data type from the (key, datatype, data) tuple

func (*Guestfs) Hivex_value_utf8

func (g *Guestfs) Hivex_value_utf8(valueh int64) (string, error)

hivex_value_utf8 : return the data field as a UTF-8 string

func (*Guestfs) Hivex_value_value

func (g *Guestfs) Hivex_value_value(valueh int64) ([]byte, error)

hivex_value_value : return the data field from the (key, datatype, data) tuple

func (*Guestfs) Initrd_cat

func (g *Guestfs) Initrd_cat(initrdpath string, filename string) ([]byte, error)

initrd_cat : list the contents of a single file in an initrd

func (*Guestfs) Initrd_list

func (g *Guestfs) Initrd_list(path string) ([]string, error)

initrd_list : list files in an initrd

func (*Guestfs) Inotify_add_watch

func (g *Guestfs) Inotify_add_watch(path string, mask int) (int64, error)

inotify_add_watch : add an inotify watch

func (*Guestfs) Inotify_close

func (g *Guestfs) Inotify_close() error

inotify_close : close the inotify handle

func (*Guestfs) Inotify_files

func (g *Guestfs) Inotify_files() ([]string, error)

inotify_files : return list of watched files that had events

func (*Guestfs) Inotify_init

func (g *Guestfs) Inotify_init(maxevents int) error

inotify_init : create an inotify handle

func (*Guestfs) Inotify_read

func (g *Guestfs) Inotify_read() (*[]INotifyEvent, error)

inotify_read : return list of inotify events

func (*Guestfs) Inotify_rm_watch

func (g *Guestfs) Inotify_rm_watch(wd int) error

inotify_rm_watch : remove an inotify watch

func (*Guestfs) Inspect_get_arch

func (g *Guestfs) Inspect_get_arch(root string) (string, error)

inspect_get_arch : get architecture of inspected operating system

func (*Guestfs) Inspect_get_build_id

func (g *Guestfs) Inspect_get_build_id(root string) (string, error)

inspect_get_build_id : get the system build ID

func (*Guestfs) Inspect_get_distro

func (g *Guestfs) Inspect_get_distro(root string) (string, error)

inspect_get_distro : get distro of inspected operating system

func (*Guestfs) Inspect_get_drive_mappings

func (g *Guestfs) Inspect_get_drive_mappings(root string) (map[string]string, error)

inspect_get_drive_mappings : get drive letter mappings

func (*Guestfs) Inspect_get_filesystems

func (g *Guestfs) Inspect_get_filesystems(root string) ([]string, error)

inspect_get_filesystems : get filesystems associated with inspected operating system

func (*Guestfs) Inspect_get_format

func (g *Guestfs) Inspect_get_format(root string) (string, error)

inspect_get_format : get format of inspected operating system

func (*Guestfs) Inspect_get_hostname

func (g *Guestfs) Inspect_get_hostname(root string) (string, error)

inspect_get_hostname : get hostname of the operating system

func (*Guestfs) Inspect_get_icon

func (g *Guestfs) Inspect_get_icon(root string, optargs *OptargsInspect_get_icon) ([]byte, error)

inspect_get_icon : get the icon corresponding to this operating system

func (*Guestfs) Inspect_get_major_version

func (g *Guestfs) Inspect_get_major_version(root string) (int, error)

inspect_get_major_version : get major version of inspected operating system

func (*Guestfs) Inspect_get_minor_version

func (g *Guestfs) Inspect_get_minor_version(root string) (int, error)

inspect_get_minor_version : get minor version of inspected operating system

func (*Guestfs) Inspect_get_mountpoints

func (g *Guestfs) Inspect_get_mountpoints(root string) (map[string]string, error)

inspect_get_mountpoints : get mountpoints of inspected operating system

func (*Guestfs) Inspect_get_osinfo

func (g *Guestfs) Inspect_get_osinfo(root string) (string, error)

inspect_get_osinfo : get a possible osinfo short ID corresponding to this operating system

func (*Guestfs) Inspect_get_package_format

func (g *Guestfs) Inspect_get_package_format(root string) (string, error)

inspect_get_package_format : get package format used by the operating system

func (*Guestfs) Inspect_get_package_management

func (g *Guestfs) Inspect_get_package_management(root string) (string, error)

inspect_get_package_management : get package management tool used by the operating system

func (*Guestfs) Inspect_get_product_name

func (g *Guestfs) Inspect_get_product_name(root string) (string, error)

inspect_get_product_name : get product name of inspected operating system

func (*Guestfs) Inspect_get_product_variant

func (g *Guestfs) Inspect_get_product_variant(root string) (string, error)

inspect_get_product_variant : get product variant of inspected operating system

func (*Guestfs) Inspect_get_roots

func (g *Guestfs) Inspect_get_roots() ([]string, error)

inspect_get_roots : return list of operating systems found by last inspection

func (*Guestfs) Inspect_get_type

func (g *Guestfs) Inspect_get_type(root string) (string, error)

inspect_get_type : get type of inspected operating system

func (*Guestfs) Inspect_get_windows_current_control_set

func (g *Guestfs) Inspect_get_windows_current_control_set(root string) (string, error)

inspect_get_windows_current_control_set : get Windows CurrentControlSet of inspected operating system

func (*Guestfs) Inspect_get_windows_software_hive

func (g *Guestfs) Inspect_get_windows_software_hive(root string) (string, error)

inspect_get_windows_software_hive : get the path of the Windows software hive

func (*Guestfs) Inspect_get_windows_system_hive

func (g *Guestfs) Inspect_get_windows_system_hive(root string) (string, error)

inspect_get_windows_system_hive : get the path of the Windows system hive

func (*Guestfs) Inspect_get_windows_systemroot

func (g *Guestfs) Inspect_get_windows_systemroot(root string) (string, error)

inspect_get_windows_systemroot : get Windows systemroot of inspected operating system

func (*Guestfs) Inspect_is_live

func (g *Guestfs) Inspect_is_live(root string) (bool, error)

inspect_is_live : get live flag for install disk

func (*Guestfs) Inspect_is_multipart

func (g *Guestfs) Inspect_is_multipart(root string) (bool, error)

inspect_is_multipart : get multipart flag for install disk

func (*Guestfs) Inspect_is_netinst

func (g *Guestfs) Inspect_is_netinst(root string) (bool, error)

inspect_is_netinst : get netinst (network installer) flag for install disk

func (*Guestfs) Inspect_list_applications

func (g *Guestfs) Inspect_list_applications(root string) (*[]Application, error)

inspect_list_applications : get list of applications installed in the operating system

func (*Guestfs) Inspect_list_applications2

func (g *Guestfs) Inspect_list_applications2(root string) (*[]Application2, error)

inspect_list_applications2 : get list of applications installed in the operating system

func (*Guestfs) Inspect_os

func (g *Guestfs) Inspect_os() ([]string, error)

inspect_os : inspect disk and return list of operating systems found

func (*Guestfs) Internal_exit

func (g *Guestfs) Internal_exit() error

internal_exit : cause the daemon to exit (internal use only)

func (*Guestfs) Internal_test

func (g *Guestfs) Internal_test(str string, optstr *string, strlist []string, b bool, integer int, integer64 int64, filein string, fileout string, bufferin []byte, optargs *OptargsInternal_test) error

internal_test : internal test function - do not use

func (*Guestfs) Internal_test_63_optargs

func (g *Guestfs) Internal_test_63_optargs(optargs *OptargsInternal_test_63_optargs) error

internal_test_63_optargs : internal test function - do not use

func (*Guestfs) Internal_test_close_output

func (g *Guestfs) Internal_test_close_output() error

internal_test_close_output : internal test function - do not use

func (*Guestfs) Internal_test_only_optargs

func (g *Guestfs) Internal_test_only_optargs(optargs *OptargsInternal_test_only_optargs) error

internal_test_only_optargs : internal test function - do not use

func (*Guestfs) Internal_test_rbool

func (g *Guestfs) Internal_test_rbool(val string) (bool, error)

internal_test_rbool : internal test function - do not use

func (*Guestfs) Internal_test_rboolerr

func (g *Guestfs) Internal_test_rboolerr() (bool, error)

internal_test_rboolerr : internal test function - do not use

func (*Guestfs) Internal_test_rbufferout

func (g *Guestfs) Internal_test_rbufferout(val string) ([]byte, error)

internal_test_rbufferout : internal test function - do not use

func (*Guestfs) Internal_test_rbufferouterr

func (g *Guestfs) Internal_test_rbufferouterr() ([]byte, error)

internal_test_rbufferouterr : internal test function - do not use

func (*Guestfs) Internal_test_rconstoptstring

func (g *Guestfs) Internal_test_rconstoptstring(val string) (*string, error)

internal_test_rconstoptstring : internal test function - do not use

func (*Guestfs) Internal_test_rconstoptstringerr

func (g *Guestfs) Internal_test_rconstoptstringerr() (*string, error)

internal_test_rconstoptstringerr : internal test function - do not use

func (*Guestfs) Internal_test_rconststring

func (g *Guestfs) Internal_test_rconststring(val string) (string, error)

internal_test_rconststring : internal test function - do not use

func (*Guestfs) Internal_test_rconststringerr

func (g *Guestfs) Internal_test_rconststringerr() (string, error)

internal_test_rconststringerr : internal test function - do not use

func (*Guestfs) Internal_test_rhashtable

func (g *Guestfs) Internal_test_rhashtable(val string) (map[string]string, error)

internal_test_rhashtable : internal test function - do not use

func (*Guestfs) Internal_test_rhashtableerr

func (g *Guestfs) Internal_test_rhashtableerr() (map[string]string, error)

internal_test_rhashtableerr : internal test function - do not use

func (*Guestfs) Internal_test_rint

func (g *Guestfs) Internal_test_rint(val string) (int, error)

internal_test_rint : internal test function - do not use

func (*Guestfs) Internal_test_rint64

func (g *Guestfs) Internal_test_rint64(val string) (int64, error)

internal_test_rint64 : internal test function - do not use

func (*Guestfs) Internal_test_rint64err

func (g *Guestfs) Internal_test_rint64err() (int64, error)

internal_test_rint64err : internal test function - do not use

func (*Guestfs) Internal_test_rinterr

func (g *Guestfs) Internal_test_rinterr() (int, error)

internal_test_rinterr : internal test function - do not use

func (*Guestfs) Internal_test_rstring

func (g *Guestfs) Internal_test_rstring(val string) (string, error)

internal_test_rstring : internal test function - do not use

func (*Guestfs) Internal_test_rstringerr

func (g *Guestfs) Internal_test_rstringerr() (string, error)

internal_test_rstringerr : internal test function - do not use

func (*Guestfs) Internal_test_rstringlist

func (g *Guestfs) Internal_test_rstringlist(val string) ([]string, error)

internal_test_rstringlist : internal test function - do not use

func (*Guestfs) Internal_test_rstringlisterr

func (g *Guestfs) Internal_test_rstringlisterr() ([]string, error)

internal_test_rstringlisterr : internal test function - do not use

func (*Guestfs) Internal_test_rstruct

func (g *Guestfs) Internal_test_rstruct(val string) (*PV, error)

internal_test_rstruct : internal test function - do not use

func (*Guestfs) Internal_test_rstructerr

func (g *Guestfs) Internal_test_rstructerr() (*PV, error)

internal_test_rstructerr : internal test function - do not use

func (*Guestfs) Internal_test_rstructlist

func (g *Guestfs) Internal_test_rstructlist(val string) (*[]PV, error)

internal_test_rstructlist : internal test function - do not use

func (*Guestfs) Internal_test_rstructlisterr

func (g *Guestfs) Internal_test_rstructlisterr() (*[]PV, error)

internal_test_rstructlisterr : internal test function - do not use

func (*Guestfs) Internal_test_set_output

func (g *Guestfs) Internal_test_set_output(filename string) error

internal_test_set_output : internal test function - do not use

func (*Guestfs) Is_blockdev

func (g *Guestfs) Is_blockdev(path string, optargs *OptargsIs_blockdev) (bool, error)

is_blockdev : test if block device

func (*Guestfs) Is_busy

func (g *Guestfs) Is_busy() (bool, error)

is_busy : is busy processing a command

func (*Guestfs) Is_chardev

func (g *Guestfs) Is_chardev(path string, optargs *OptargsIs_chardev) (bool, error)

is_chardev : test if character device

func (*Guestfs) Is_config

func (g *Guestfs) Is_config() (bool, error)

is_config : is in configuration state

func (*Guestfs) Is_dir

func (g *Guestfs) Is_dir(path string, optargs *OptargsIs_dir) (bool, error)

is_dir : test if a directory

func (*Guestfs) Is_fifo

func (g *Guestfs) Is_fifo(path string, optargs *OptargsIs_fifo) (bool, error)

is_fifo : test if FIFO (named pipe)

func (*Guestfs) Is_file

func (g *Guestfs) Is_file(path string, optargs *OptargsIs_file) (bool, error)

is_file : test if a regular file

func (*Guestfs) Is_launching

func (g *Guestfs) Is_launching() (bool, error)

is_launching : is launching subprocess

func (*Guestfs) Is_lv

func (g *Guestfs) Is_lv(mountable string) (bool, error)

is_lv : test if mountable is a logical volume

func (*Guestfs) Is_ready

func (g *Guestfs) Is_ready() (bool, error)

is_ready : is ready to accept commands

func (*Guestfs) Is_socket

func (g *Guestfs) Is_socket(path string, optargs *OptargsIs_socket) (bool, error)

is_socket : test if socket

func (g *Guestfs) Is_symlink(path string) (bool, error)

is_symlink : test if symbolic link

func (*Guestfs) Is_whole_device

func (g *Guestfs) Is_whole_device(device string) (bool, error)

is_whole_device : test if a device is a whole device

func (*Guestfs) Is_zero

func (g *Guestfs) Is_zero(path string) (bool, error)

is_zero : test if a file contains all zero bytes

func (*Guestfs) Is_zero_device

func (g *Guestfs) Is_zero_device(device string) (bool, error)

is_zero_device : test if a device contains all zero bytes

func (*Guestfs) Isoinfo

func (g *Guestfs) Isoinfo(isofile string) (*ISOInfo, error)

isoinfo : get ISO information from primary volume descriptor of ISO file

func (*Guestfs) Isoinfo_device

func (g *Guestfs) Isoinfo_device(device string) (*ISOInfo, error)

isoinfo_device : get ISO information from primary volume descriptor of device

func (*Guestfs) Journal_close

func (g *Guestfs) Journal_close() error

journal_close : close the systemd journal

func (*Guestfs) Journal_get

func (g *Guestfs) Journal_get() (*[]XAttr, error)

journal_get : read the current journal entry

func (*Guestfs) Journal_get_data_threshold

func (g *Guestfs) Journal_get_data_threshold() (int64, error)

journal_get_data_threshold : get the data threshold for reading journal entries

func (*Guestfs) Journal_get_realtime_usec

func (g *Guestfs) Journal_get_realtime_usec() (int64, error)

journal_get_realtime_usec : get the timestamp of the current journal entry

func (*Guestfs) Journal_next

func (g *Guestfs) Journal_next() (bool, error)

journal_next : move to the next journal entry

func (*Guestfs) Journal_open

func (g *Guestfs) Journal_open(directory string) error

journal_open : open the systemd journal

func (*Guestfs) Journal_set_data_threshold

func (g *Guestfs) Journal_set_data_threshold(threshold int64) error

journal_set_data_threshold : set the data threshold for reading journal entries

func (*Guestfs) Journal_skip

func (g *Guestfs) Journal_skip(skip int64) (int64, error)

journal_skip : skip forwards or backwards in the journal

func (*Guestfs) Kill_subprocess

func (g *Guestfs) Kill_subprocess() error

kill_subprocess : kill the hypervisor

func (*Guestfs) Launch

func (g *Guestfs) Launch() error

launch : launch the backend

func (*Guestfs) Lchown

func (g *Guestfs) Lchown(owner int, group int, path string) error

lchown : change file owner and group

func (*Guestfs) Ldmtool_create_all

func (g *Guestfs) Ldmtool_create_all() error

ldmtool_create_all : scan and create Windows dynamic disk volumes

func (*Guestfs) Ldmtool_diskgroup_disks

func (g *Guestfs) Ldmtool_diskgroup_disks(diskgroup string) ([]string, error)

ldmtool_diskgroup_disks : return the disks in a Windows dynamic disk group

func (*Guestfs) Ldmtool_diskgroup_name

func (g *Guestfs) Ldmtool_diskgroup_name(diskgroup string) (string, error)

ldmtool_diskgroup_name : return the name of a Windows dynamic disk group

func (*Guestfs) Ldmtool_diskgroup_volumes

func (g *Guestfs) Ldmtool_diskgroup_volumes(diskgroup string) ([]string, error)

ldmtool_diskgroup_volumes : return the volumes in a Windows dynamic disk group

func (*Guestfs) Ldmtool_remove_all

func (g *Guestfs) Ldmtool_remove_all() error

ldmtool_remove_all : remove all Windows dynamic disk volumes

func (*Guestfs) Ldmtool_scan

func (g *Guestfs) Ldmtool_scan() ([]string, error)

ldmtool_scan : scan for Windows dynamic disks

func (*Guestfs) Ldmtool_scan_devices

func (g *Guestfs) Ldmtool_scan_devices(devices []string) ([]string, error)

ldmtool_scan_devices : scan for Windows dynamic disks

func (*Guestfs) Ldmtool_volume_hint

func (g *Guestfs) Ldmtool_volume_hint(diskgroup string, volume string) (string, error)

ldmtool_volume_hint : return the hint field of a Windows dynamic disk volume

func (*Guestfs) Ldmtool_volume_partitions

func (g *Guestfs) Ldmtool_volume_partitions(diskgroup string, volume string) ([]string, error)

ldmtool_volume_partitions : return the partitions in a Windows dynamic disk volume

func (*Guestfs) Ldmtool_volume_type

func (g *Guestfs) Ldmtool_volume_type(diskgroup string, volume string) (string, error)

ldmtool_volume_type : return the type of a Windows dynamic disk volume

func (*Guestfs) Lgetxattr

func (g *Guestfs) Lgetxattr(path string, name string) ([]byte, error)

lgetxattr : get a single extended attribute

func (*Guestfs) Lgetxattrs

func (g *Guestfs) Lgetxattrs(path string) (*[]XAttr, error)

lgetxattrs : list extended attributes of a file or directory

func (*Guestfs) List_9p

func (g *Guestfs) List_9p() ([]string, error)

list_9p : list 9p filesystems

func (*Guestfs) List_devices

func (g *Guestfs) List_devices() ([]string, error)

list_devices : list the block devices

func (*Guestfs) List_disk_labels

func (g *Guestfs) List_disk_labels() (map[string]string, error)

list_disk_labels : mapping of disk labels to devices

func (*Guestfs) List_dm_devices

func (g *Guestfs) List_dm_devices() ([]string, error)

list_dm_devices : list device mapper devices

func (*Guestfs) List_filesystems

func (g *Guestfs) List_filesystems() (map[string]string, error)

list_filesystems : list filesystems

func (*Guestfs) List_ldm_partitions

func (g *Guestfs) List_ldm_partitions() ([]string, error)

list_ldm_partitions : list all Windows dynamic disk partitions

func (*Guestfs) List_ldm_volumes

func (g *Guestfs) List_ldm_volumes() ([]string, error)

list_ldm_volumes : list all Windows dynamic disk volumes

func (*Guestfs) List_md_devices

func (g *Guestfs) List_md_devices() ([]string, error)

list_md_devices : list Linux md (RAID) devices

func (*Guestfs) List_partitions

func (g *Guestfs) List_partitions() ([]string, error)

list_partitions : list the partitions

func (*Guestfs) Ll

func (g *Guestfs) Ll(directory string) (string, error)

ll : list the files in a directory (long format)

func (*Guestfs) Llz

func (g *Guestfs) Llz(directory string) (string, error)

llz : list the files in a directory (long format with SELinux contexts)

func (*Guestfs) Ln

func (g *Guestfs) Ln(target string, linkname string) error

ln : create a hard link

func (*Guestfs) Ln_f

func (g *Guestfs) Ln_f(target string, linkname string) error

ln_f : create a hard link

func (*Guestfs) Ln_s

func (g *Guestfs) Ln_s(target string, linkname string) error

ln_s : create a symbolic link

func (*Guestfs) Ln_sf

func (g *Guestfs) Ln_sf(target string, linkname string) error

ln_sf : create a symbolic link

func (*Guestfs) Lremovexattr

func (g *Guestfs) Lremovexattr(xattr string, path string) error

lremovexattr : remove extended attribute of a file or directory

func (*Guestfs) Ls

func (g *Guestfs) Ls(directory string) ([]string, error)

ls : list the files in a directory

func (*Guestfs) Ls0

func (g *Guestfs) Ls0(dir string, filenames string) error

ls0 : get list of files in a directory

func (*Guestfs) Lsetxattr

func (g *Guestfs) Lsetxattr(xattr string, val string, vallen int, path string) error

lsetxattr : set extended attribute of a file or directory

func (*Guestfs) Lstat

func (g *Guestfs) Lstat(path string) (*Stat, error)

lstat : get file information for a symbolic link

func (*Guestfs) Lstatlist

func (g *Guestfs) Lstatlist(path string, names []string) (*[]Stat, error)

lstatlist : lstat on multiple files

func (*Guestfs) Lstatns

func (g *Guestfs) Lstatns(path string) (*StatNS, error)

lstatns : get file information for a symbolic link

func (*Guestfs) Lstatnslist

func (g *Guestfs) Lstatnslist(path string, names []string) (*[]StatNS, error)

lstatnslist : lstat on multiple files

func (*Guestfs) Luks_add_key

func (g *Guestfs) Luks_add_key(device string, key string, newkey string, keyslot int) error

luks_add_key : add a key on a LUKS encrypted device

func (*Guestfs) Luks_close

func (g *Guestfs) Luks_close(device string) error

luks_close : close a LUKS device

func (*Guestfs) Luks_format

func (g *Guestfs) Luks_format(device string, key string, keyslot int) error

luks_format : format a block device as a LUKS encrypted device

func (*Guestfs) Luks_format_cipher

func (g *Guestfs) Luks_format_cipher(device string, key string, keyslot int, cipher string) error

luks_format_cipher : format a block device as a LUKS encrypted device

func (*Guestfs) Luks_kill_slot

func (g *Guestfs) Luks_kill_slot(device string, key string, keyslot int) error

luks_kill_slot : remove a key from a LUKS encrypted device

func (*Guestfs) Luks_open

func (g *Guestfs) Luks_open(device string, key string, mapname string) error

luks_open : open a LUKS-encrypted block device

func (*Guestfs) Luks_open_ro

func (g *Guestfs) Luks_open_ro(device string, key string, mapname string) error

luks_open_ro : open a LUKS-encrypted block device read-only

func (*Guestfs) Luks_uuid

func (g *Guestfs) Luks_uuid(device string) (string, error)

luks_uuid : get the UUID of a LUKS device

func (*Guestfs) Lvcreate

func (g *Guestfs) Lvcreate(logvol string, volgroup string, mbytes int) error

lvcreate : create an LVM logical volume

func (*Guestfs) Lvcreate_free

func (g *Guestfs) Lvcreate_free(logvol string, volgroup string, percent int) error

lvcreate_free : create an LVM logical volume in % remaining free space

func (*Guestfs) Lvm_canonical_lv_name

func (g *Guestfs) Lvm_canonical_lv_name(lvname string) (string, error)

lvm_canonical_lv_name : get canonical name of an LV

func (*Guestfs) Lvm_clear_filter

func (g *Guestfs) Lvm_clear_filter() error

lvm_clear_filter : clear LVM device filter

func (*Guestfs) Lvm_remove_all

func (g *Guestfs) Lvm_remove_all() error

lvm_remove_all : remove all LVM LVs, VGs and PVs

func (*Guestfs) Lvm_scan

func (g *Guestfs) Lvm_scan(activate bool) error

lvm_scan : scan for LVM physical volumes, volume groups and logical volumes

func (*Guestfs) Lvm_set_filter

func (g *Guestfs) Lvm_set_filter(devices []string) error

lvm_set_filter : set LVM device filter

func (*Guestfs) Lvremove

func (g *Guestfs) Lvremove(device string) error

lvremove : remove an LVM logical volume

func (*Guestfs) Lvrename

func (g *Guestfs) Lvrename(logvol string, newlogvol string) error

lvrename : rename an LVM logical volume

func (*Guestfs) Lvresize

func (g *Guestfs) Lvresize(device string, mbytes int) error

lvresize : resize an LVM logical volume

func (*Guestfs) Lvresize_free

func (g *Guestfs) Lvresize_free(lv string, percent int) error

lvresize_free : expand an LV to fill free space

func (*Guestfs) Lvs

func (g *Guestfs) Lvs() ([]string, error)

lvs : list the LVM logical volumes (LVs)

func (*Guestfs) Lvs_full

func (g *Guestfs) Lvs_full() (*[]LV, error)

lvs_full : list the LVM logical volumes (LVs)

func (*Guestfs) Lvuuid

func (g *Guestfs) Lvuuid(device string) (string, error)

lvuuid : get the UUID of a logical volume

func (*Guestfs) Lxattrlist

func (g *Guestfs) Lxattrlist(path string, names []string) (*[]XAttr, error)

lxattrlist : lgetxattr on multiple files

func (*Guestfs) Max_disks

func (g *Guestfs) Max_disks() (int, error)

max_disks : maximum number of disks that may be added

func (*Guestfs) Md_create

func (g *Guestfs) Md_create(name string, devices []string, optargs *OptargsMd_create) error

md_create : create a Linux md (RAID) device

func (*Guestfs) Md_detail

func (g *Guestfs) Md_detail(md string) (map[string]string, error)

md_detail : obtain metadata for an MD device

func (*Guestfs) Md_stat

func (g *Guestfs) Md_stat(md string) (*[]MDStat, error)

md_stat : get underlying devices from an MD device

func (*Guestfs) Md_stop

func (g *Guestfs) Md_stop(md string) error

md_stop : stop a Linux md (RAID) device

func (*Guestfs) Mkdir

func (g *Guestfs) Mkdir(path string) error

mkdir : create a directory

func (*Guestfs) Mkdir_mode

func (g *Guestfs) Mkdir_mode(path string, mode int) error

mkdir_mode : create a directory with a particular mode

func (*Guestfs) Mkdir_p

func (g *Guestfs) Mkdir_p(path string) error

mkdir_p : create a directory and parents

func (*Guestfs) Mkdtemp

func (g *Guestfs) Mkdtemp(tmpl string) (string, error)

mkdtemp : create a temporary directory

func (*Guestfs) Mke2fs

func (g *Guestfs) Mke2fs(device string, optargs *OptargsMke2fs) error

mke2fs : create an ext2/ext3/ext4 filesystem on device

func (*Guestfs) Mke2fs_J

func (g *Guestfs) Mke2fs_J(fstype string, blocksize int, device string, journal string) error

mke2fs_J : make ext2/3/4 filesystem with external journal

func (*Guestfs) Mke2fs_JL

func (g *Guestfs) Mke2fs_JL(fstype string, blocksize int, device string, label string) error

mke2fs_JL : make ext2/3/4 filesystem with external journal

func (*Guestfs) Mke2fs_JU

func (g *Guestfs) Mke2fs_JU(fstype string, blocksize int, device string, uuid string) error

mke2fs_JU : make ext2/3/4 filesystem with external journal

func (*Guestfs) Mke2journal

func (g *Guestfs) Mke2journal(blocksize int, device string) error

mke2journal : make ext2/3/4 external journal

func (*Guestfs) Mke2journal_L

func (g *Guestfs) Mke2journal_L(blocksize int, label string, device string) error

mke2journal_L : make ext2/3/4 external journal with label

func (*Guestfs) Mke2journal_U

func (g *Guestfs) Mke2journal_U(blocksize int, uuid string, device string) error

mke2journal_U : make ext2/3/4 external journal with UUID

func (*Guestfs) Mkfifo

func (g *Guestfs) Mkfifo(mode int, path string) error

mkfifo : make FIFO (named pipe)

func (*Guestfs) Mkfs

func (g *Guestfs) Mkfs(fstype string, device string, optargs *OptargsMkfs) error

mkfs : make a filesystem

func (*Guestfs) Mkfs_b

func (g *Guestfs) Mkfs_b(fstype string, blocksize int, device string) error

mkfs_b : make a filesystem with block size

func (*Guestfs) Mkfs_btrfs

func (g *Guestfs) Mkfs_btrfs(devices []string, optargs *OptargsMkfs_btrfs) error

mkfs_btrfs : create a btrfs filesystem

func (*Guestfs) Mklost_and_found

func (g *Guestfs) Mklost_and_found(mountpoint string) error

mklost_and_found : make lost+found directory on an ext2/3/4 filesystem

func (*Guestfs) Mkmountpoint

func (g *Guestfs) Mkmountpoint(exemptpath string) error

mkmountpoint : create a mountpoint

func (*Guestfs) Mknod

func (g *Guestfs) Mknod(mode int, devmajor int, devminor int, path string) error

mknod : make block, character or FIFO devices

func (*Guestfs) Mknod_b

func (g *Guestfs) Mknod_b(mode int, devmajor int, devminor int, path string) error

mknod_b : make block device node

func (*Guestfs) Mknod_c

func (g *Guestfs) Mknod_c(mode int, devmajor int, devminor int, path string) error

mknod_c : make char device node

func (*Guestfs) Mksquashfs

func (g *Guestfs) Mksquashfs(path string, filename string, optargs *OptargsMksquashfs) error

mksquashfs : create a squashfs filesystem

func (*Guestfs) Mkswap

func (g *Guestfs) Mkswap(device string, optargs *OptargsMkswap) error

mkswap : create a swap partition

func (*Guestfs) Mkswap_L

func (g *Guestfs) Mkswap_L(label string, device string) error

mkswap_L : create a swap partition with a label

func (*Guestfs) Mkswap_U

func (g *Guestfs) Mkswap_U(uuid string, device string) error

mkswap_U : create a swap partition with an explicit UUID

func (*Guestfs) Mkswap_file

func (g *Guestfs) Mkswap_file(path string) error

mkswap_file : create a swap file

func (*Guestfs) Mktemp

func (g *Guestfs) Mktemp(tmpl string, optargs *OptargsMktemp) (string, error)

mktemp : create a temporary file

func (*Guestfs) Modprobe

func (g *Guestfs) Modprobe(modulename string) error

modprobe : load a kernel module

func (*Guestfs) Mount

func (g *Guestfs) Mount(mountable string, mountpoint string) error

mount : mount a guest disk at a position in the filesystem

func (*Guestfs) Mount_9p

func (g *Guestfs) Mount_9p(mounttag string, mountpoint string, optargs *OptargsMount_9p) error

mount_9p : mount 9p filesystem

func (*Guestfs) Mount_local

func (g *Guestfs) Mount_local(localmountpoint string, optargs *OptargsMount_local) error

mount_local : mount on the local filesystem

func (*Guestfs) Mount_local_run

func (g *Guestfs) Mount_local_run() error

mount_local_run : run main loop of mount on the local filesystem

func (*Guestfs) Mount_loop

func (g *Guestfs) Mount_loop(file string, mountpoint string) error

mount_loop : mount a file using the loop device

func (*Guestfs) Mount_options

func (g *Guestfs) Mount_options(options string, mountable string, mountpoint string) error

mount_options : mount a guest disk with mount options

func (*Guestfs) Mount_ro

func (g *Guestfs) Mount_ro(mountable string, mountpoint string) error

mount_ro : mount a guest disk, read-only

func (*Guestfs) Mount_vfs

func (g *Guestfs) Mount_vfs(options string, vfstype string, mountable string, mountpoint string) error

mount_vfs : mount a guest disk with mount options and vfstype

func (*Guestfs) Mountable_device

func (g *Guestfs) Mountable_device(mountable string) (string, error)

mountable_device : extract the device part of a mountable

func (*Guestfs) Mountable_subvolume

func (g *Guestfs) Mountable_subvolume(mountable string) (string, error)

mountable_subvolume : extract the subvolume part of a mountable

func (*Guestfs) Mountpoints

func (g *Guestfs) Mountpoints() (map[string]string, error)

mountpoints : show mountpoints

func (*Guestfs) Mounts

func (g *Guestfs) Mounts() ([]string, error)

mounts : show mounted filesystems

func (*Guestfs) Mv

func (g *Guestfs) Mv(src string, dest string) error

mv : move a file

func (*Guestfs) Nr_devices

func (g *Guestfs) Nr_devices() (int, error)

nr_devices : return number of whole block devices (disks) added

func (*Guestfs) Ntfs_3g_probe

func (g *Guestfs) Ntfs_3g_probe(rw bool, device string) (int, error)

ntfs_3g_probe : probe NTFS volume

func (*Guestfs) Ntfscat_i

func (g *Guestfs) Ntfscat_i(device string, inode int64, filename string) error

ntfscat_i : download a file to the local machine given its inode

func (*Guestfs) Ntfsclone_in

func (g *Guestfs) Ntfsclone_in(backupfile string, device string) error

ntfsclone_in : restore NTFS from backup file

func (*Guestfs) Ntfsclone_out

func (g *Guestfs) Ntfsclone_out(device string, backupfile string, optargs *OptargsNtfsclone_out) error

ntfsclone_out : save NTFS to backup file

func (*Guestfs) Ntfsfix

func (g *Guestfs) Ntfsfix(device string, optargs *OptargsNtfsfix) error

ntfsfix : fix common errors and force Windows to check NTFS

func (*Guestfs) Ntfsresize

func (g *Guestfs) Ntfsresize(device string, optargs *OptargsNtfsresize) error

ntfsresize : resize an NTFS filesystem

func (*Guestfs) Ntfsresize_size

func (g *Guestfs) Ntfsresize_size(device string, size int64) error

ntfsresize_size : resize an NTFS filesystem (with size)

func (*Guestfs) Parse_environment

func (g *Guestfs) Parse_environment() error

parse_environment : parse the environment and set handle flags accordingly

func (*Guestfs) Parse_environment_list

func (g *Guestfs) Parse_environment_list(environment []string) error

parse_environment_list : parse the environment and set handle flags accordingly

func (*Guestfs) Part_add

func (g *Guestfs) Part_add(device string, prlogex string, startsect int64, endsect int64) error

part_add : add a partition to the device

func (*Guestfs) Part_del

func (g *Guestfs) Part_del(device string, partnum int) error

part_del : delete a partition

func (*Guestfs) Part_disk

func (g *Guestfs) Part_disk(device string, parttype string) error

part_disk : partition whole disk with a single primary partition

func (*Guestfs) Part_expand_gpt

func (g *Guestfs) Part_expand_gpt(device string) error

part_expand_gpt : move backup GPT header to the end of the disk

func (*Guestfs) Part_get_bootable

func (g *Guestfs) Part_get_bootable(device string, partnum int) (bool, error)

part_get_bootable : return true if a partition is bootable

func (*Guestfs) Part_get_disk_guid

func (g *Guestfs) Part_get_disk_guid(device string) (string, error)

part_get_disk_guid : get the GUID of a GPT-partitioned disk

func (*Guestfs) Part_get_gpt_attributes

func (g *Guestfs) Part_get_gpt_attributes(device string, partnum int) (int64, error)

part_get_gpt_attributes : get the attribute flags of a GPT partition

func (*Guestfs) Part_get_gpt_guid

func (g *Guestfs) Part_get_gpt_guid(device string, partnum int) (string, error)

part_get_gpt_guid : get the GUID of a GPT partition

func (*Guestfs) Part_get_gpt_type

func (g *Guestfs) Part_get_gpt_type(device string, partnum int) (string, error)

part_get_gpt_type : get the type GUID of a GPT partition

func (*Guestfs) Part_get_mbr_id

func (g *Guestfs) Part_get_mbr_id(device string, partnum int) (int, error)

part_get_mbr_id : get the MBR type byte (ID byte) from a partition

func (*Guestfs) Part_get_mbr_part_type

func (g *Guestfs) Part_get_mbr_part_type(device string, partnum int) (string, error)

part_get_mbr_part_type : get the MBR partition type

func (*Guestfs) Part_get_name

func (g *Guestfs) Part_get_name(device string, partnum int) (string, error)

part_get_name : get partition name

func (*Guestfs) Part_get_parttype

func (g *Guestfs) Part_get_parttype(device string) (string, error)

part_get_parttype : get the partition table type

func (*Guestfs) Part_init

func (g *Guestfs) Part_init(device string, parttype string) error

part_init : create an empty partition table

func (*Guestfs) Part_list

func (g *Guestfs) Part_list(device string) (*[]Partition, error)

part_list : list partitions on a device

func (*Guestfs) Part_resize

func (g *Guestfs) Part_resize(device string, partnum int, endsect int64) error

part_resize : resize a partition

func (*Guestfs) Part_set_bootable

func (g *Guestfs) Part_set_bootable(device string, partnum int, bootable bool) error

part_set_bootable : make a partition bootable

func (*Guestfs) Part_set_disk_guid

func (g *Guestfs) Part_set_disk_guid(device string, guid string) error

part_set_disk_guid : set the GUID of a GPT-partitioned disk

func (*Guestfs) Part_set_disk_guid_random

func (g *Guestfs) Part_set_disk_guid_random(device string) error

part_set_disk_guid_random : set the GUID of a GPT-partitioned disk to random value

func (*Guestfs) Part_set_gpt_attributes

func (g *Guestfs) Part_set_gpt_attributes(device string, partnum int, attributes int64) error

part_set_gpt_attributes : set the attribute flags of a GPT partition

func (*Guestfs) Part_set_gpt_guid

func (g *Guestfs) Part_set_gpt_guid(device string, partnum int, guid string) error

part_set_gpt_guid : set the GUID of a GPT partition

func (*Guestfs) Part_set_gpt_type

func (g *Guestfs) Part_set_gpt_type(device string, partnum int, guid string) error

part_set_gpt_type : set the type GUID of a GPT partition

func (*Guestfs) Part_set_mbr_id

func (g *Guestfs) Part_set_mbr_id(device string, partnum int, idbyte int) error

part_set_mbr_id : set the MBR type byte (ID byte) of a partition

func (*Guestfs) Part_set_name

func (g *Guestfs) Part_set_name(device string, partnum int, name string) error

part_set_name : set partition name

func (*Guestfs) Part_to_dev

func (g *Guestfs) Part_to_dev(partition string) (string, error)

part_to_dev : convert partition name to device name

func (*Guestfs) Part_to_partnum

func (g *Guestfs) Part_to_partnum(partition string) (int, error)

part_to_partnum : convert partition name to partition number

func (*Guestfs) Ping_daemon

func (g *Guestfs) Ping_daemon() error

ping_daemon : ping the guest daemon

func (*Guestfs) Pread

func (g *Guestfs) Pread(path string, count int, offset int64) ([]byte, error)

pread : read part of a file

func (*Guestfs) Pread_device

func (g *Guestfs) Pread_device(device string, count int, offset int64) ([]byte, error)

pread_device : read part of a device

func (*Guestfs) Pvchange_uuid

func (g *Guestfs) Pvchange_uuid(device string) error

pvchange_uuid : generate a new random UUID for a physical volume

func (*Guestfs) Pvchange_uuid_all

func (g *Guestfs) Pvchange_uuid_all() error

pvchange_uuid_all : generate new random UUIDs for all physical volumes

func (*Guestfs) Pvcreate

func (g *Guestfs) Pvcreate(device string) error

pvcreate : create an LVM physical volume

func (*Guestfs) Pvremove

func (g *Guestfs) Pvremove(device string) error

pvremove : remove an LVM physical volume

func (*Guestfs) Pvresize

func (g *Guestfs) Pvresize(device string) error

pvresize : resize an LVM physical volume

func (*Guestfs) Pvresize_size

func (g *Guestfs) Pvresize_size(device string, size int64) error

pvresize_size : resize an LVM physical volume (with size)

func (*Guestfs) Pvs

func (g *Guestfs) Pvs() ([]string, error)

pvs : list the LVM physical volumes (PVs)

func (*Guestfs) Pvs_full

func (g *Guestfs) Pvs_full() (*[]PV, error)

pvs_full : list the LVM physical volumes (PVs)

func (*Guestfs) Pvuuid

func (g *Guestfs) Pvuuid(device string) (string, error)

pvuuid : get the UUID of a physical volume

func (*Guestfs) Pwrite

func (g *Guestfs) Pwrite(path string, content []byte, offset int64) (int, error)

pwrite : write to part of a file

func (*Guestfs) Pwrite_device

func (g *Guestfs) Pwrite_device(device string, content []byte, offset int64) (int, error)

pwrite_device : write to part of a device

func (*Guestfs) Read_file

func (g *Guestfs) Read_file(path string) ([]byte, error)

read_file : read a file

func (*Guestfs) Read_lines

func (g *Guestfs) Read_lines(path string) ([]string, error)

read_lines : read file as lines

func (*Guestfs) Readdir

func (g *Guestfs) Readdir(dir string) (*[]Dirent, error)

readdir : read directories entries

func (g *Guestfs) Readlink(path string) (string, error)

readlink : read the target of a symbolic link

func (g *Guestfs) Readlinklist(path string, names []string) ([]string, error)

readlinklist : readlink on multiple files

func (*Guestfs) Realpath

func (g *Guestfs) Realpath(path string) (string, error)

realpath : canonicalized absolute pathname

func (*Guestfs) Remount

func (g *Guestfs) Remount(mountpoint string, optargs *OptargsRemount) error

remount : remount a filesystem with different options

func (*Guestfs) Remove_drive

func (g *Guestfs) Remove_drive(label string) error

remove_drive : remove a disk image

func (*Guestfs) Removexattr

func (g *Guestfs) Removexattr(xattr string, path string) error

removexattr : remove extended attribute of a file or directory

func (*Guestfs) Rename

func (g *Guestfs) Rename(oldpath string, newpath string) error

rename : rename a file on the same filesystem

func (*Guestfs) Resize2fs

func (g *Guestfs) Resize2fs(device string) error

resize2fs : resize an ext2, ext3 or ext4 filesystem

func (*Guestfs) Resize2fs_M

func (g *Guestfs) Resize2fs_M(device string) error

resize2fs_M : resize an ext2, ext3 or ext4 filesystem to the minimum size

func (*Guestfs) Resize2fs_size

func (g *Guestfs) Resize2fs_size(device string, size int64) error

resize2fs_size : resize an ext2, ext3 or ext4 filesystem (with size)

func (*Guestfs) Rm

func (g *Guestfs) Rm(path string) error

rm : remove a file

func (*Guestfs) Rm_f

func (g *Guestfs) Rm_f(path string) error

rm_f : remove a file ignoring errors

func (*Guestfs) Rm_rf

func (g *Guestfs) Rm_rf(path string) error

rm_rf : remove a file or directory recursively

func (*Guestfs) Rmdir

func (g *Guestfs) Rmdir(path string) error

rmdir : remove a directory

func (*Guestfs) Rmmountpoint

func (g *Guestfs) Rmmountpoint(exemptpath string) error

rmmountpoint : remove a mountpoint

func (*Guestfs) Rsync

func (g *Guestfs) Rsync(src string, dest string, optargs *OptargsRsync) error

rsync : synchronize the contents of two directories

func (*Guestfs) Rsync_in

func (g *Guestfs) Rsync_in(remote string, dest string, optargs *OptargsRsync_in) error

rsync_in : synchronize host or remote filesystem with filesystem

func (*Guestfs) Rsync_out

func (g *Guestfs) Rsync_out(src string, remote string, optargs *OptargsRsync_out) error

rsync_out : synchronize filesystem with host or remote filesystem

func (*Guestfs) Scrub_device

func (g *Guestfs) Scrub_device(device string) error

scrub_device : scrub (securely wipe) a device

func (*Guestfs) Scrub_file

func (g *Guestfs) Scrub_file(file string) error

scrub_file : scrub (securely wipe) a file

func (*Guestfs) Scrub_freespace

func (g *Guestfs) Scrub_freespace(dir string) error

scrub_freespace : scrub (securely wipe) free space

func (*Guestfs) Selinux_relabel

func (g *Guestfs) Selinux_relabel(specfile string, path string, optargs *OptargsSelinux_relabel) error

selinux_relabel : relabel parts of the filesystem

func (*Guestfs) Set_append

func (g *Guestfs) Set_append(append *string) error

set_append : add options to kernel command line

func (*Guestfs) Set_attach_method

func (g *Guestfs) Set_attach_method(backend string) error

set_attach_method : set the backend

func (*Guestfs) Set_autosync

func (g *Guestfs) Set_autosync(autosync bool) error

set_autosync : set autosync mode

func (*Guestfs) Set_backend

func (g *Guestfs) Set_backend(backend string) error

set_backend : set the backend

func (*Guestfs) Set_backend_setting

func (g *Guestfs) Set_backend_setting(name string, val string) error

set_backend_setting : set a single per-backend settings string

func (*Guestfs) Set_backend_settings

func (g *Guestfs) Set_backend_settings(settings []string) error

set_backend_settings : replace per-backend settings strings

func (*Guestfs) Set_cachedir

func (g *Guestfs) Set_cachedir(cachedir *string) error

set_cachedir : set the appliance cache directory

func (*Guestfs) Set_direct

func (g *Guestfs) Set_direct(direct bool) error

set_direct : enable or disable direct appliance mode

func (*Guestfs) Set_e2attrs

func (g *Guestfs) Set_e2attrs(file string, attrs string, optargs *OptargsSet_e2attrs) error

set_e2attrs : set ext2 file attributes of a file

func (*Guestfs) Set_e2generation

func (g *Guestfs) Set_e2generation(file string, generation int64) error

set_e2generation : set ext2 file generation of a file

func (*Guestfs) Set_e2label

func (g *Guestfs) Set_e2label(device string, label string) error

set_e2label : set the ext2/3/4 filesystem label

func (*Guestfs) Set_e2uuid

func (g *Guestfs) Set_e2uuid(device string, uuid string) error

set_e2uuid : set the ext2/3/4 filesystem UUID

func (*Guestfs) Set_hv

func (g *Guestfs) Set_hv(hv string) error

set_hv : set the hypervisor binary

func (*Guestfs) Set_identifier

func (g *Guestfs) Set_identifier(identifier string) error

set_identifier : set the handle identifier

func (*Guestfs) Set_label

func (g *Guestfs) Set_label(mountable string, label string) error

set_label : set filesystem label

func (*Guestfs) Set_libvirt_requested_credential

func (g *Guestfs) Set_libvirt_requested_credential(index int, cred []byte) error

set_libvirt_requested_credential : pass requested credential back to libvirt

func (*Guestfs) Set_libvirt_supported_credentials

func (g *Guestfs) Set_libvirt_supported_credentials(creds []string) error

set_libvirt_supported_credentials : set libvirt credentials supported by calling program

func (*Guestfs) Set_memsize

func (g *Guestfs) Set_memsize(memsize int) error

set_memsize : set memory allocated to the hypervisor

func (*Guestfs) Set_network

func (g *Guestfs) Set_network(network bool) error

set_network : set enable network flag

func (*Guestfs) Set_path

func (g *Guestfs) Set_path(searchpath *string) error

set_path : set the search path

func (*Guestfs) Set_pgroup

func (g *Guestfs) Set_pgroup(pgroup bool) error

set_pgroup : set process group flag

func (*Guestfs) Set_program

func (g *Guestfs) Set_program(program string) error

set_program : set the program name

func (*Guestfs) Set_qemu

func (g *Guestfs) Set_qemu(hv *string) error

set_qemu : set the hypervisor binary (usually qemu)

func (*Guestfs) Set_recovery_proc

func (g *Guestfs) Set_recovery_proc(recoveryproc bool) error

set_recovery_proc : enable or disable the recovery process

func (*Guestfs) Set_selinux

func (g *Guestfs) Set_selinux(selinux bool) error

set_selinux : set SELinux enabled or disabled at appliance boot

func (*Guestfs) Set_smp

func (g *Guestfs) Set_smp(smp int) error

set_smp : set number of virtual CPUs in appliance

func (*Guestfs) Set_tmpdir

func (g *Guestfs) Set_tmpdir(tmpdir *string) error

set_tmpdir : set the temporary directory

func (*Guestfs) Set_trace

func (g *Guestfs) Set_trace(trace bool) error

set_trace : enable or disable command traces

func (*Guestfs) Set_uuid

func (g *Guestfs) Set_uuid(device string, uuid string) error

set_uuid : set the filesystem UUID

func (*Guestfs) Set_uuid_random

func (g *Guestfs) Set_uuid_random(device string) error

set_uuid_random : set a random UUID for the filesystem

func (*Guestfs) Set_verbose

func (g *Guestfs) Set_verbose(verbose bool) error

set_verbose : set verbose mode

func (*Guestfs) Setcon

func (g *Guestfs) Setcon(context string) error

setcon : set SELinux security context

func (*Guestfs) Setxattr

func (g *Guestfs) Setxattr(xattr string, val string, vallen int, path string) error

setxattr : set extended attribute of a file or directory

func (*Guestfs) Sfdisk

func (g *Guestfs) Sfdisk(device string, cyls int, heads int, sectors int, lines []string) error

sfdisk : create partitions on a block device

func (*Guestfs) SfdiskM

func (g *Guestfs) SfdiskM(device string, lines []string) error

sfdiskM : create partitions on a block device

func (*Guestfs) Sfdisk_N

func (g *Guestfs) Sfdisk_N(device string, partnum int, cyls int, heads int, sectors int, line string) error

sfdisk_N : modify a single partition on a block device

func (*Guestfs) Sfdisk_disk_geometry

func (g *Guestfs) Sfdisk_disk_geometry(device string) (string, error)

sfdisk_disk_geometry : display the disk geometry from the partition table

func (*Guestfs) Sfdisk_kernel_geometry

func (g *Guestfs) Sfdisk_kernel_geometry(device string) (string, error)

sfdisk_kernel_geometry : display the kernel geometry

func (*Guestfs) Sfdisk_l

func (g *Guestfs) Sfdisk_l(device string) (string, error)

sfdisk_l : display the partition table

func (*Guestfs) Sh

func (g *Guestfs) Sh(command string) (string, error)

sh : run a command via the shell

func (*Guestfs) Sh_lines

func (g *Guestfs) Sh_lines(command string) ([]string, error)

sh_lines : run a command via the shell returning lines

func (*Guestfs) Shutdown

func (g *Guestfs) Shutdown() error

shutdown : shutdown the hypervisor

func (*Guestfs) Sleep

func (g *Guestfs) Sleep(secs int) error

sleep : sleep for some seconds

func (*Guestfs) Stat

func (g *Guestfs) Stat(path string) (*Stat, error)

stat : get file information

func (*Guestfs) Statns

func (g *Guestfs) Statns(path string) (*StatNS, error)

statns : get file information

func (*Guestfs) Statvfs

func (g *Guestfs) Statvfs(path string) (*StatVFS, error)

statvfs : get file system statistics

func (*Guestfs) String

func (g *Guestfs) String() string

Convert handle to string (just for debugging).

func (*Guestfs) Strings

func (g *Guestfs) Strings(path string) ([]string, error)

strings : print the printable strings in a file

func (*Guestfs) Strings_e

func (g *Guestfs) Strings_e(encoding string, path string) ([]string, error)

strings_e : print the printable strings in a file

func (*Guestfs) Swapoff_device

func (g *Guestfs) Swapoff_device(device string) error

swapoff_device : disable swap on device

func (*Guestfs) Swapoff_file

func (g *Guestfs) Swapoff_file(file string) error

swapoff_file : disable swap on file

func (*Guestfs) Swapoff_label

func (g *Guestfs) Swapoff_label(label string) error

swapoff_label : disable swap on labeled swap partition

func (*Guestfs) Swapoff_uuid

func (g *Guestfs) Swapoff_uuid(uuid string) error

swapoff_uuid : disable swap on swap partition by UUID

func (*Guestfs) Swapon_device

func (g *Guestfs) Swapon_device(device string) error

swapon_device : enable swap on device

func (*Guestfs) Swapon_file

func (g *Guestfs) Swapon_file(file string) error

swapon_file : enable swap on file

func (*Guestfs) Swapon_label

func (g *Guestfs) Swapon_label(label string) error

swapon_label : enable swap on labeled swap partition

func (*Guestfs) Swapon_uuid

func (g *Guestfs) Swapon_uuid(uuid string) error

swapon_uuid : enable swap on swap partition by UUID

func (*Guestfs) Sync

func (g *Guestfs) Sync() error

sync : sync disks, writes are flushed through to the disk image

func (*Guestfs) Syslinux

func (g *Guestfs) Syslinux(device string, optargs *OptargsSyslinux) error

syslinux : install the SYSLINUX bootloader

func (*Guestfs) Tail

func (g *Guestfs) Tail(path string) ([]string, error)

tail : return last 10 lines of a file

func (*Guestfs) Tail_n

func (g *Guestfs) Tail_n(nrlines int, path string) ([]string, error)

tail_n : return last N lines of a file

func (*Guestfs) Tar_in

func (g *Guestfs) Tar_in(tarfile string, directory string, optargs *OptargsTar_in) error

tar_in : unpack tarfile to directory

func (*Guestfs) Tar_out

func (g *Guestfs) Tar_out(directory string, tarfile string, optargs *OptargsTar_out) error

tar_out : pack directory into tarfile

func (*Guestfs) Tgz_in

func (g *Guestfs) Tgz_in(tarball string, directory string) error

tgz_in : unpack compressed tarball to directory

func (*Guestfs) Tgz_out

func (g *Guestfs) Tgz_out(directory string, tarball string) error

tgz_out : pack directory into compressed tarball

func (*Guestfs) Touch

func (g *Guestfs) Touch(path string) error

touch : update file timestamps or create a new file

func (*Guestfs) Truncate

func (g *Guestfs) Truncate(path string) error

truncate : truncate a file to zero size

func (*Guestfs) Truncate_size

func (g *Guestfs) Truncate_size(path string, size int64) error

truncate_size : truncate a file to a particular size

func (*Guestfs) Tune2fs

func (g *Guestfs) Tune2fs(device string, optargs *OptargsTune2fs) error

tune2fs : adjust ext2/ext3/ext4 filesystem parameters

func (*Guestfs) Tune2fs_l

func (g *Guestfs) Tune2fs_l(device string) (map[string]string, error)

tune2fs_l : get ext2/ext3/ext4 superblock details

func (*Guestfs) Txz_in

func (g *Guestfs) Txz_in(tarball string, directory string) error

txz_in : unpack compressed tarball to directory

func (*Guestfs) Txz_out

func (g *Guestfs) Txz_out(directory string, tarball string) error

txz_out : pack directory into compressed tarball

func (*Guestfs) Umask

func (g *Guestfs) Umask(mask int) (int, error)

umask : set file mode creation mask (umask)

func (*Guestfs) Umount

func (g *Guestfs) Umount(pathordevice string, optargs *OptargsUmount) error

umount : unmount a filesystem

func (*Guestfs) Umount_all

func (g *Guestfs) Umount_all() error

umount_all : unmount all filesystems

func (*Guestfs) Umount_local

func (g *Guestfs) Umount_local(optargs *OptargsUmount_local) error

umount_local : unmount a locally mounted filesystem

func (*Guestfs) Upload

func (g *Guestfs) Upload(filename string, remotefilename string) error

upload : upload a file from the local machine

func (*Guestfs) Upload_offset

func (g *Guestfs) Upload_offset(filename string, remotefilename string, offset int64) error

upload_offset : upload a file from the local machine with offset

func (*Guestfs) User_cancel

func (g *Guestfs) User_cancel() error

user_cancel : cancel the current upload or download operation

func (*Guestfs) Utimens

func (g *Guestfs) Utimens(path string, atsecs int64, atnsecs int64, mtsecs int64, mtnsecs int64) error

utimens : set timestamp of a file with nanosecond precision

func (*Guestfs) Utsname

func (g *Guestfs) Utsname() (*UTSName, error)

utsname : appliance kernel version

func (*Guestfs) Version

func (g *Guestfs) Version() (*Version, error)

version : get the library version number

func (*Guestfs) Vfs_label

func (g *Guestfs) Vfs_label(mountable string) (string, error)

vfs_label : get the filesystem label

func (*Guestfs) Vfs_minimum_size

func (g *Guestfs) Vfs_minimum_size(mountable string) (int64, error)

vfs_minimum_size : get minimum filesystem size

func (*Guestfs) Vfs_type

func (g *Guestfs) Vfs_type(mountable string) (string, error)

vfs_type : get the Linux VFS type corresponding to a mounted device

func (*Guestfs) Vfs_uuid

func (g *Guestfs) Vfs_uuid(mountable string) (string, error)

vfs_uuid : get the filesystem UUID

func (*Guestfs) Vg_activate

func (g *Guestfs) Vg_activate(activate bool, volgroups []string) error

vg_activate : activate or deactivate some volume groups

func (*Guestfs) Vg_activate_all

func (g *Guestfs) Vg_activate_all(activate bool) error

vg_activate_all : activate or deactivate all volume groups

func (*Guestfs) Vgchange_uuid

func (g *Guestfs) Vgchange_uuid(vg string) error

vgchange_uuid : generate a new random UUID for a volume group

func (*Guestfs) Vgchange_uuid_all

func (g *Guestfs) Vgchange_uuid_all() error

vgchange_uuid_all : generate new random UUIDs for all volume groups

func (*Guestfs) Vgcreate

func (g *Guestfs) Vgcreate(volgroup string, physvols []string) error

vgcreate : create an LVM volume group

func (*Guestfs) Vglvuuids

func (g *Guestfs) Vglvuuids(vgname string) ([]string, error)

vglvuuids : get the LV UUIDs of all LVs in the volume group

func (*Guestfs) Vgmeta

func (g *Guestfs) Vgmeta(vgname string) ([]byte, error)

vgmeta : get volume group metadata

func (*Guestfs) Vgpvuuids

func (g *Guestfs) Vgpvuuids(vgname string) ([]string, error)

vgpvuuids : get the PV UUIDs containing the volume group

func (*Guestfs) Vgremove

func (g *Guestfs) Vgremove(vgname string) error

vgremove : remove an LVM volume group

func (*Guestfs) Vgrename

func (g *Guestfs) Vgrename(volgroup string, newvolgroup string) error

vgrename : rename an LVM volume group

func (*Guestfs) Vgs

func (g *Guestfs) Vgs() ([]string, error)

vgs : list the LVM volume groups (VGs)

func (*Guestfs) Vgs_full

func (g *Guestfs) Vgs_full() (*[]VG, error)

vgs_full : list the LVM volume groups (VGs)

func (*Guestfs) Vgscan

func (g *Guestfs) Vgscan() error

vgscan : rescan for LVM physical volumes, volume groups and logical volumes

func (*Guestfs) Vguuid

func (g *Guestfs) Vguuid(vgname string) (string, error)

vguuid : get the UUID of a volume group

func (*Guestfs) Wait_ready

func (g *Guestfs) Wait_ready() error

wait_ready : wait until the hypervisor launches (no op)

func (*Guestfs) Wc_c

func (g *Guestfs) Wc_c(path string) (int, error)

wc_c : count characters in a file

func (*Guestfs) Wc_l

func (g *Guestfs) Wc_l(path string) (int, error)

wc_l : count lines in a file

func (*Guestfs) Wc_w

func (g *Guestfs) Wc_w(path string) (int, error)

wc_w : count words in a file

func (*Guestfs) Wipefs

func (g *Guestfs) Wipefs(device string) error

wipefs : wipe a filesystem signature from a device

func (*Guestfs) Write

func (g *Guestfs) Write(path string, content []byte) error

write : create a new file

func (*Guestfs) Write_append

func (g *Guestfs) Write_append(path string, content []byte) error

write_append : append content to end of file

func (*Guestfs) Write_file

func (g *Guestfs) Write_file(path string, content string, size int) error

write_file : create a file

func (*Guestfs) Xfs_admin

func (g *Guestfs) Xfs_admin(device string, optargs *OptargsXfs_admin) error

xfs_admin : change parameters of an XFS filesystem

func (*Guestfs) Xfs_growfs

func (g *Guestfs) Xfs_growfs(path string, optargs *OptargsXfs_growfs) error

xfs_growfs : expand an existing XFS filesystem

func (*Guestfs) Xfs_info

func (g *Guestfs) Xfs_info(pathordevice string) (*XFSInfo, error)

xfs_info : get geometry of XFS filesystem

func (*Guestfs) Xfs_repair

func (g *Guestfs) Xfs_repair(device string, optargs *OptargsXfs_repair) (int, error)

xfs_repair : repair an XFS filesystem

func (*Guestfs) Yara_destroy

func (g *Guestfs) Yara_destroy() error

yara_destroy : destroy previously loaded yara rules

func (*Guestfs) Yara_load

func (g *Guestfs) Yara_load(filename string) error

yara_load : load yara rules within libguestfs

func (*Guestfs) Yara_scan

func (g *Guestfs) Yara_scan(path string) (*[]YaraDetection, error)

yara_scan : scan a file with the loaded yara rules

func (*Guestfs) Zegrep

func (g *Guestfs) Zegrep(regex string, path string) ([]string, error)

zegrep : return lines matching a pattern

func (*Guestfs) Zegrepi

func (g *Guestfs) Zegrepi(regex string, path string) ([]string, error)

zegrepi : return lines matching a pattern

func (*Guestfs) Zero

func (g *Guestfs) Zero(device string) error

zero : write zeroes to the device

func (*Guestfs) Zero_device

func (g *Guestfs) Zero_device(device string) error

zero_device : write zeroes to an entire device

func (*Guestfs) Zero_free_space

func (g *Guestfs) Zero_free_space(directory string) error

zero_free_space : zero free space in a filesystem

func (*Guestfs) Zerofree

func (g *Guestfs) Zerofree(device string) error

zerofree : zero unused inodes and disk blocks on ext2/3 filesystem

func (*Guestfs) Zfgrep

func (g *Guestfs) Zfgrep(pattern string, path string) ([]string, error)

zfgrep : return lines matching a pattern

func (*Guestfs) Zfgrepi

func (g *Guestfs) Zfgrepi(pattern string, path string) ([]string, error)

zfgrepi : return lines matching a pattern

func (*Guestfs) Zfile

func (g *Guestfs) Zfile(meth string, path string) (string, error)

zfile : determine file type inside a compressed file

func (*Guestfs) Zgrep

func (g *Guestfs) Zgrep(regex string, path string) ([]string, error)

zgrep : return lines matching a pattern

func (*Guestfs) Zgrepi

func (g *Guestfs) Zgrepi(regex string, path string) ([]string, error)

zgrepi : return lines matching a pattern

type GuestfsError

type GuestfsError struct {
	Op     string        // operation which failed
	Errmsg string        // string (guestfs_last_error)
	Errno  syscall.Errno // errno (guestfs_last_errno)
}

Apart from Create() and Create_flags() which return a (handle, error) * pair, the other functions return a ([result,] GuestfsError) where * GuestfsError is defined here.

func (*GuestfsError) Error

func (e *GuestfsError) Error() string

Implement the error interface

func (*GuestfsError) String

func (e *GuestfsError) String() string

type HivexNode

type HivexNode struct {
	Hivex_node_h int64
}

type HivexValue

type HivexValue struct {
	Hivex_value_h int64
}

type INotifyEvent

type INotifyEvent struct {
	In_wd     int64
	In_mask   uint32
	In_cookie uint32
	In_name   string
}

type ISOInfo

type ISOInfo struct {
	Iso_system_id              string
	Iso_volume_id              string
	Iso_volume_space_size      uint32
	Iso_volume_set_size        uint32
	Iso_volume_sequence_number uint32
	Iso_logical_block_size     uint32
	Iso_volume_set_id          string
	Iso_publisher_id           string
	Iso_data_preparer_id       string
	Iso_application_id         string
	Iso_copyright_file_id      string
	Iso_abstract_file_id       string
	Iso_bibliographic_file_id  string
	Iso_volume_creation_t      int64
	Iso_volume_modification_t  int64
	Iso_volume_expiration_t    int64
	Iso_volume_effective_t     int64
}

type IntBool

type IntBool struct {
	I int32
	B int32
}

type LV

type LV struct {
	Lv_name         string
	Lv_uuid         [32]byte
	Lv_attr         string
	Lv_major        int64
	Lv_minor        int64
	Lv_kernel_major int64
	Lv_kernel_minor int64
	Lv_size         uint64
	Seg_count       int64
	Origin          string
	Snap_percent    float32
	Copy_percent    float32
	Move_pv         string
	Lv_tags         string
	Mirror_log      string
	Modules         string
}

type MDStat

type MDStat struct {
	Mdstat_device string
	Mdstat_index  int32
	Mdstat_flags  string
}

type OptargsAdd_domain

type OptargsAdd_domain struct {
	/* Libvirturi field is ignored unless Libvirturi_is_set == true */
	Libvirturi_is_set bool
	Libvirturi        string
	/* Readonly field is ignored unless Readonly_is_set == true */
	Readonly_is_set bool
	Readonly        bool
	/* Iface field is ignored unless Iface_is_set == true */
	Iface_is_set bool
	Iface        string
	/* Live field is ignored unless Live_is_set == true */
	Live_is_set bool
	Live        bool
	/* Allowuuid field is ignored unless Allowuuid_is_set == true */
	Allowuuid_is_set bool
	Allowuuid        bool
	/* Readonlydisk field is ignored unless Readonlydisk_is_set == true */
	Readonlydisk_is_set bool
	Readonlydisk        string
	/* Cachemode field is ignored unless Cachemode_is_set == true */
	Cachemode_is_set bool
	Cachemode        string
	/* Discard field is ignored unless Discard_is_set == true */
	Discard_is_set bool
	Discard        string
	/* Copyonread field is ignored unless Copyonread_is_set == true */
	Copyonread_is_set bool
	Copyonread        bool
}

Struct carrying optional arguments for Add_domain

type OptargsAdd_drive

type OptargsAdd_drive struct {
	/* Readonly field is ignored unless Readonly_is_set == true */
	Readonly_is_set bool
	Readonly        bool
	/* Format field is ignored unless Format_is_set == true */
	Format_is_set bool
	Format        string
	/* Iface field is ignored unless Iface_is_set == true */
	Iface_is_set bool
	Iface        string
	/* Name field is ignored unless Name_is_set == true */
	Name_is_set bool
	Name        string
	/* Label field is ignored unless Label_is_set == true */
	Label_is_set bool
	Label        string
	/* Protocol field is ignored unless Protocol_is_set == true */
	Protocol_is_set bool
	Protocol        string
	/* Server field is ignored unless Server_is_set == true */
	Server_is_set bool
	Server        []string
	/* Username field is ignored unless Username_is_set == true */
	Username_is_set bool
	Username        string
	/* Secret field is ignored unless Secret_is_set == true */
	Secret_is_set bool
	Secret        string
	/* Cachemode field is ignored unless Cachemode_is_set == true */
	Cachemode_is_set bool
	Cachemode        string
	/* Discard field is ignored unless Discard_is_set == true */
	Discard_is_set bool
	Discard        string
	/* Copyonread field is ignored unless Copyonread_is_set == true */
	Copyonread_is_set bool
	Copyonread        bool
	/* Blocksize field is ignored unless Blocksize_is_set == true */
	Blocksize_is_set bool
	Blocksize        int
}

Struct carrying optional arguments for Add_drive

type OptargsAdd_drive_scratch

type OptargsAdd_drive_scratch struct {
	/* Name field is ignored unless Name_is_set == true */
	Name_is_set bool
	Name        string
	/* Label field is ignored unless Label_is_set == true */
	Label_is_set bool
	Label        string
	/* Blocksize field is ignored unless Blocksize_is_set == true */
	Blocksize_is_set bool
	Blocksize        int
}

Struct carrying optional arguments for Add_drive_scratch

type OptargsAdd_libvirt_dom

type OptargsAdd_libvirt_dom struct {
	/* Readonly field is ignored unless Readonly_is_set == true */
	Readonly_is_set bool
	Readonly        bool
	/* Iface field is ignored unless Iface_is_set == true */
	Iface_is_set bool
	Iface        string
	/* Live field is ignored unless Live_is_set == true */
	Live_is_set bool
	Live        bool
	/* Readonlydisk field is ignored unless Readonlydisk_is_set == true */
	Readonlydisk_is_set bool
	Readonlydisk        string
	/* Cachemode field is ignored unless Cachemode_is_set == true */
	Cachemode_is_set bool
	Cachemode        string
	/* Discard field is ignored unless Discard_is_set == true */
	Discard_is_set bool
	Discard        string
	/* Copyonread field is ignored unless Copyonread_is_set == true */
	Copyonread_is_set bool
	Copyonread        bool
}

Struct carrying optional arguments for Add_libvirt_dom

type OptargsAug_transform

type OptargsAug_transform struct {
	/* Remove field is ignored unless Remove_is_set == true */
	Remove_is_set bool
	Remove        bool
}

Struct carrying optional arguments for Aug_transform

type OptargsBtrfs_filesystem_defragment

type OptargsBtrfs_filesystem_defragment struct {
	/* Flush field is ignored unless Flush_is_set == true */
	Flush_is_set bool
	Flush        bool
	/* Compress field is ignored unless Compress_is_set == true */
	Compress_is_set bool
	Compress        string
}

Struct carrying optional arguments for Btrfs_filesystem_defragment

type OptargsBtrfs_filesystem_resize

type OptargsBtrfs_filesystem_resize struct {
	/* Size field is ignored unless Size_is_set == true */
	Size_is_set bool
	Size        int64
}

Struct carrying optional arguments for Btrfs_filesystem_resize

type OptargsBtrfs_fsck

type OptargsBtrfs_fsck struct {
	/* Superblock field is ignored unless Superblock_is_set == true */
	Superblock_is_set bool
	Superblock        int64
	/* Repair field is ignored unless Repair_is_set == true */
	Repair_is_set bool
	Repair        bool
}

Struct carrying optional arguments for Btrfs_fsck

type OptargsBtrfs_image

type OptargsBtrfs_image struct {
	/* Compresslevel field is ignored unless Compresslevel_is_set == true */
	Compresslevel_is_set bool
	Compresslevel        int
}

Struct carrying optional arguments for Btrfs_image

type OptargsBtrfs_subvolume_create

type OptargsBtrfs_subvolume_create struct {
	/* Qgroupid field is ignored unless Qgroupid_is_set == true */
	Qgroupid_is_set bool
	Qgroupid        string
}

Struct carrying optional arguments for Btrfs_subvolume_create

type OptargsBtrfs_subvolume_snapshot

type OptargsBtrfs_subvolume_snapshot struct {
	/* Ro field is ignored unless Ro_is_set == true */
	Ro_is_set bool
	Ro        bool
	/* Qgroupid field is ignored unless Qgroupid_is_set == true */
	Qgroupid_is_set bool
	Qgroupid        string
}

Struct carrying optional arguments for Btrfs_subvolume_snapshot

type OptargsCompress_device_out

type OptargsCompress_device_out struct {
	/* Level field is ignored unless Level_is_set == true */
	Level_is_set bool
	Level        int
}

Struct carrying optional arguments for Compress_device_out

type OptargsCompress_out

type OptargsCompress_out struct {
	/* Level field is ignored unless Level_is_set == true */
	Level_is_set bool
	Level        int
}

Struct carrying optional arguments for Compress_out

type OptargsCopy_attributes

type OptargsCopy_attributes struct {
	/* All field is ignored unless All_is_set == true */
	All_is_set bool
	All        bool
	/* Mode field is ignored unless Mode_is_set == true */
	Mode_is_set bool
	Mode        bool
	/* Xattributes field is ignored unless Xattributes_is_set == true */
	Xattributes_is_set bool
	Xattributes        bool
	/* Ownership field is ignored unless Ownership_is_set == true */
	Ownership_is_set bool
	Ownership        bool
}

Struct carrying optional arguments for Copy_attributes

type OptargsCopy_device_to_device

type OptargsCopy_device_to_device struct {
	/* Srcoffset field is ignored unless Srcoffset_is_set == true */
	Srcoffset_is_set bool
	Srcoffset        int64
	/* Destoffset field is ignored unless Destoffset_is_set == true */
	Destoffset_is_set bool
	Destoffset        int64
	/* Size field is ignored unless Size_is_set == true */
	Size_is_set bool
	Size        int64
	/* Sparse field is ignored unless Sparse_is_set == true */
	Sparse_is_set bool
	Sparse        bool
	/* Append field is ignored unless Append_is_set == true */
	Append_is_set bool
	Append        bool
}

Struct carrying optional arguments for Copy_device_to_device

type OptargsCopy_device_to_file

type OptargsCopy_device_to_file struct {
	/* Srcoffset field is ignored unless Srcoffset_is_set == true */
	Srcoffset_is_set bool
	Srcoffset        int64
	/* Destoffset field is ignored unless Destoffset_is_set == true */
	Destoffset_is_set bool
	Destoffset        int64
	/* Size field is ignored unless Size_is_set == true */
	Size_is_set bool
	Size        int64
	/* Sparse field is ignored unless Sparse_is_set == true */
	Sparse_is_set bool
	Sparse        bool
	/* Append field is ignored unless Append_is_set == true */
	Append_is_set bool
	Append        bool
}

Struct carrying optional arguments for Copy_device_to_file

type OptargsCopy_file_to_device

type OptargsCopy_file_to_device struct {
	/* Srcoffset field is ignored unless Srcoffset_is_set == true */
	Srcoffset_is_set bool
	Srcoffset        int64
	/* Destoffset field is ignored unless Destoffset_is_set == true */
	Destoffset_is_set bool
	Destoffset        int64
	/* Size field is ignored unless Size_is_set == true */
	Size_is_set bool
	Size        int64
	/* Sparse field is ignored unless Sparse_is_set == true */
	Sparse_is_set bool
	Sparse        bool
	/* Append field is ignored unless Append_is_set == true */
	Append_is_set bool
	Append        bool
}

Struct carrying optional arguments for Copy_file_to_device

type OptargsCopy_file_to_file

type OptargsCopy_file_to_file struct {
	/* Srcoffset field is ignored unless Srcoffset_is_set == true */
	Srcoffset_is_set bool
	Srcoffset        int64
	/* Destoffset field is ignored unless Destoffset_is_set == true */
	Destoffset_is_set bool
	Destoffset        int64
	/* Size field is ignored unless Size_is_set == true */
	Size_is_set bool
	Size        int64
	/* Sparse field is ignored unless Sparse_is_set == true */
	Sparse_is_set bool
	Sparse        bool
	/* Append field is ignored unless Append_is_set == true */
	Append_is_set bool
	Append        bool
}

Struct carrying optional arguments for Copy_file_to_file

type OptargsCpio_out

type OptargsCpio_out struct {
	/* Format field is ignored unless Format_is_set == true */
	Format_is_set bool
	Format        string
}

Struct carrying optional arguments for Cpio_out

type OptargsCryptsetup_open

type OptargsCryptsetup_open struct {
	/* Readonly field is ignored unless Readonly_is_set == true */
	Readonly_is_set bool
	Readonly        bool
	/* Crypttype field is ignored unless Crypttype_is_set == true */
	Crypttype_is_set bool
	Crypttype        string
}

Struct carrying optional arguments for Cryptsetup_open

type OptargsDisk_create

type OptargsDisk_create struct {
	/* Backingfile field is ignored unless Backingfile_is_set == true */
	Backingfile_is_set bool
	Backingfile        string
	/* Backingformat field is ignored unless Backingformat_is_set == true */
	Backingformat_is_set bool
	Backingformat        string
	/* Preallocation field is ignored unless Preallocation_is_set == true */
	Preallocation_is_set bool
	Preallocation        string
	/* Compat field is ignored unless Compat_is_set == true */
	Compat_is_set bool
	Compat        string
	/* Clustersize field is ignored unless Clustersize_is_set == true */
	Clustersize_is_set bool
	Clustersize        int
}

Struct carrying optional arguments for Disk_create

type OptargsDownload_blocks

type OptargsDownload_blocks struct {
	/* Unallocated field is ignored unless Unallocated_is_set == true */
	Unallocated_is_set bool
	Unallocated        bool
}

Struct carrying optional arguments for Download_blocks

type OptargsE2fsck

type OptargsE2fsck struct {
	/* Correct field is ignored unless Correct_is_set == true */
	Correct_is_set bool
	Correct        bool
	/* Forceall field is ignored unless Forceall_is_set == true */
	Forceall_is_set bool
	Forceall        bool
}

Struct carrying optional arguments for E2fsck

type OptargsFstrim

type OptargsFstrim struct {
	/* Offset field is ignored unless Offset_is_set == true */
	Offset_is_set bool
	Offset        int64
	/* Length field is ignored unless Length_is_set == true */
	Length_is_set bool
	Length        int64
	/* Minimumfreeextent field is ignored unless Minimumfreeextent_is_set == true */
	Minimumfreeextent_is_set bool
	Minimumfreeextent        int64
}

Struct carrying optional arguments for Fstrim

type OptargsGlob_expand

type OptargsGlob_expand struct {
	/* Directoryslash field is ignored unless Directoryslash_is_set == true */
	Directoryslash_is_set bool
	Directoryslash        bool
}

Struct carrying optional arguments for Glob_expand

type OptargsGrep

type OptargsGrep struct {
	/* Extended field is ignored unless Extended_is_set == true */
	Extended_is_set bool
	Extended        bool
	/* Fixed field is ignored unless Fixed_is_set == true */
	Fixed_is_set bool
	Fixed        bool
	/* Insensitive field is ignored unless Insensitive_is_set == true */
	Insensitive_is_set bool
	Insensitive        bool
	/* Compressed field is ignored unless Compressed_is_set == true */
	Compressed_is_set bool
	Compressed        bool
}

Struct carrying optional arguments for Grep

type OptargsHivex_open

type OptargsHivex_open struct {
	/* Verbose field is ignored unless Verbose_is_set == true */
	Verbose_is_set bool
	Verbose        bool
	/* Debug field is ignored unless Debug_is_set == true */
	Debug_is_set bool
	Debug        bool
	/* Write field is ignored unless Write_is_set == true */
	Write_is_set bool
	Write        bool
	/* Unsafe field is ignored unless Unsafe_is_set == true */
	Unsafe_is_set bool
	Unsafe        bool
}

Struct carrying optional arguments for Hivex_open

type OptargsInspect_get_icon

type OptargsInspect_get_icon struct {
	/* Favicon field is ignored unless Favicon_is_set == true */
	Favicon_is_set bool
	Favicon        bool
	/* Highquality field is ignored unless Highquality_is_set == true */
	Highquality_is_set bool
	Highquality        bool
}

Struct carrying optional arguments for Inspect_get_icon

type OptargsInternal_test

type OptargsInternal_test struct {
	/* Obool field is ignored unless Obool_is_set == true */
	Obool_is_set bool
	Obool        bool
	/* Oint field is ignored unless Oint_is_set == true */
	Oint_is_set bool
	Oint        int
	/* Oint64 field is ignored unless Oint64_is_set == true */
	Oint64_is_set bool
	Oint64        int64
	/* Ostring field is ignored unless Ostring_is_set == true */
	Ostring_is_set bool
	Ostring        string
	/* Ostringlist field is ignored unless Ostringlist_is_set == true */
	Ostringlist_is_set bool
	Ostringlist        []string
}

Struct carrying optional arguments for Internal_test

type OptargsInternal_test_63_optargs

type OptargsInternal_test_63_optargs struct {
	/* Opt1 field is ignored unless Opt1_is_set == true */
	Opt1_is_set bool
	Opt1        int
	/* Opt2 field is ignored unless Opt2_is_set == true */
	Opt2_is_set bool
	Opt2        int
	/* Opt3 field is ignored unless Opt3_is_set == true */
	Opt3_is_set bool
	Opt3        int
	/* Opt4 field is ignored unless Opt4_is_set == true */
	Opt4_is_set bool
	Opt4        int
	/* Opt5 field is ignored unless Opt5_is_set == true */
	Opt5_is_set bool
	Opt5        int
	/* Opt6 field is ignored unless Opt6_is_set == true */
	Opt6_is_set bool
	Opt6        int
	/* Opt7 field is ignored unless Opt7_is_set == true */
	Opt7_is_set bool
	Opt7        int
	/* Opt8 field is ignored unless Opt8_is_set == true */
	Opt8_is_set bool
	Opt8        int
	/* Opt9 field is ignored unless Opt9_is_set == true */
	Opt9_is_set bool
	Opt9        int
	/* Opt10 field is ignored unless Opt10_is_set == true */
	Opt10_is_set bool
	Opt10        int
	/* Opt11 field is ignored unless Opt11_is_set == true */
	Opt11_is_set bool
	Opt11        int
	/* Opt12 field is ignored unless Opt12_is_set == true */
	Opt12_is_set bool
	Opt12        int
	/* Opt13 field is ignored unless Opt13_is_set == true */
	Opt13_is_set bool
	Opt13        int
	/* Opt14 field is ignored unless Opt14_is_set == true */
	Opt14_is_set bool
	Opt14        int
	/* Opt15 field is ignored unless Opt15_is_set == true */
	Opt15_is_set bool
	Opt15        int
	/* Opt16 field is ignored unless Opt16_is_set == true */
	Opt16_is_set bool
	Opt16        int
	/* Opt17 field is ignored unless Opt17_is_set == true */
	Opt17_is_set bool
	Opt17        int
	/* Opt18 field is ignored unless Opt18_is_set == true */
	Opt18_is_set bool
	Opt18        int
	/* Opt19 field is ignored unless Opt19_is_set == true */
	Opt19_is_set bool
	Opt19        int
	/* Opt20 field is ignored unless Opt20_is_set == true */
	Opt20_is_set bool
	Opt20        int
	/* Opt21 field is ignored unless Opt21_is_set == true */
	Opt21_is_set bool
	Opt21        int
	/* Opt22 field is ignored unless Opt22_is_set == true */
	Opt22_is_set bool
	Opt22        int
	/* Opt23 field is ignored unless Opt23_is_set == true */
	Opt23_is_set bool
	Opt23        int
	/* Opt24 field is ignored unless Opt24_is_set == true */
	Opt24_is_set bool
	Opt24        int
	/* Opt25 field is ignored unless Opt25_is_set == true */
	Opt25_is_set bool
	Opt25        int
	/* Opt26 field is ignored unless Opt26_is_set == true */
	Opt26_is_set bool
	Opt26        int
	/* Opt27 field is ignored unless Opt27_is_set == true */
	Opt27_is_set bool
	Opt27        int
	/* Opt28 field is ignored unless Opt28_is_set == true */
	Opt28_is_set bool
	Opt28        int
	/* Opt29 field is ignored unless Opt29_is_set == true */
	Opt29_is_set bool
	Opt29        int
	/* Opt30 field is ignored unless Opt30_is_set == true */
	Opt30_is_set bool
	Opt30        int
	/* Opt31 field is ignored unless Opt31_is_set == true */
	Opt31_is_set bool
	Opt31        int
	/* Opt32 field is ignored unless Opt32_is_set == true */
	Opt32_is_set bool
	Opt32        int
	/* Opt33 field is ignored unless Opt33_is_set == true */
	Opt33_is_set bool
	Opt33        int
	/* Opt34 field is ignored unless Opt34_is_set == true */
	Opt34_is_set bool
	Opt34        int
	/* Opt35 field is ignored unless Opt35_is_set == true */
	Opt35_is_set bool
	Opt35        int
	/* Opt36 field is ignored unless Opt36_is_set == true */
	Opt36_is_set bool
	Opt36        int
	/* Opt37 field is ignored unless Opt37_is_set == true */
	Opt37_is_set bool
	Opt37        int
	/* Opt38 field is ignored unless Opt38_is_set == true */
	Opt38_is_set bool
	Opt38        int
	/* Opt39 field is ignored unless Opt39_is_set == true */
	Opt39_is_set bool
	Opt39        int
	/* Opt40 field is ignored unless Opt40_is_set == true */
	Opt40_is_set bool
	Opt40        int
	/* Opt41 field is ignored unless Opt41_is_set == true */
	Opt41_is_set bool
	Opt41        int
	/* Opt42 field is ignored unless Opt42_is_set == true */
	Opt42_is_set bool
	Opt42        int
	/* Opt43 field is ignored unless Opt43_is_set == true */
	Opt43_is_set bool
	Opt43        int
	/* Opt44 field is ignored unless Opt44_is_set == true */
	Opt44_is_set bool
	Opt44        int
	/* Opt45 field is ignored unless Opt45_is_set == true */
	Opt45_is_set bool
	Opt45        int
	/* Opt46 field is ignored unless Opt46_is_set == true */
	Opt46_is_set bool
	Opt46        int
	/* Opt47 field is ignored unless Opt47_is_set == true */
	Opt47_is_set bool
	Opt47        int
	/* Opt48 field is ignored unless Opt48_is_set == true */
	Opt48_is_set bool
	Opt48        int
	/* Opt49 field is ignored unless Opt49_is_set == true */
	Opt49_is_set bool
	Opt49        int
	/* Opt50 field is ignored unless Opt50_is_set == true */
	Opt50_is_set bool
	Opt50        int
	/* Opt51 field is ignored unless Opt51_is_set == true */
	Opt51_is_set bool
	Opt51        int
	/* Opt52 field is ignored unless Opt52_is_set == true */
	Opt52_is_set bool
	Opt52        int
	/* Opt53 field is ignored unless Opt53_is_set == true */
	Opt53_is_set bool
	Opt53        int
	/* Opt54 field is ignored unless Opt54_is_set == true */
	Opt54_is_set bool
	Opt54        int
	/* Opt55 field is ignored unless Opt55_is_set == true */
	Opt55_is_set bool
	Opt55        int
	/* Opt56 field is ignored unless Opt56_is_set == true */
	Opt56_is_set bool
	Opt56        int
	/* Opt57 field is ignored unless Opt57_is_set == true */
	Opt57_is_set bool
	Opt57        int
	/* Opt58 field is ignored unless Opt58_is_set == true */
	Opt58_is_set bool
	Opt58        int
	/* Opt59 field is ignored unless Opt59_is_set == true */
	Opt59_is_set bool
	Opt59        int
	/* Opt60 field is ignored unless Opt60_is_set == true */
	Opt60_is_set bool
	Opt60        int
	/* Opt61 field is ignored unless Opt61_is_set == true */
	Opt61_is_set bool
	Opt61        int
	/* Opt62 field is ignored unless Opt62_is_set == true */
	Opt62_is_set bool
	Opt62        int
	/* Opt63 field is ignored unless Opt63_is_set == true */
	Opt63_is_set bool
	Opt63        int
}

Struct carrying optional arguments for Internal_test_63_optargs

type OptargsInternal_test_only_optargs

type OptargsInternal_test_only_optargs struct {
	/* Test field is ignored unless Test_is_set == true */
	Test_is_set bool
	Test        int
}

Struct carrying optional arguments for Internal_test_only_optargs

type OptargsIs_blockdev

type OptargsIs_blockdev struct {
	/* Followsymlinks field is ignored unless Followsymlinks_is_set == true */
	Followsymlinks_is_set bool
	Followsymlinks        bool
}

Struct carrying optional arguments for Is_blockdev

type OptargsIs_chardev

type OptargsIs_chardev struct {
	/* Followsymlinks field is ignored unless Followsymlinks_is_set == true */
	Followsymlinks_is_set bool
	Followsymlinks        bool
}

Struct carrying optional arguments for Is_chardev

type OptargsIs_dir

type OptargsIs_dir struct {
	/* Followsymlinks field is ignored unless Followsymlinks_is_set == true */
	Followsymlinks_is_set bool
	Followsymlinks        bool
}

Struct carrying optional arguments for Is_dir

type OptargsIs_fifo

type OptargsIs_fifo struct {
	/* Followsymlinks field is ignored unless Followsymlinks_is_set == true */
	Followsymlinks_is_set bool
	Followsymlinks        bool
}

Struct carrying optional arguments for Is_fifo

type OptargsIs_file

type OptargsIs_file struct {
	/* Followsymlinks field is ignored unless Followsymlinks_is_set == true */
	Followsymlinks_is_set bool
	Followsymlinks        bool
}

Struct carrying optional arguments for Is_file

type OptargsIs_socket

type OptargsIs_socket struct {
	/* Followsymlinks field is ignored unless Followsymlinks_is_set == true */
	Followsymlinks_is_set bool
	Followsymlinks        bool
}

Struct carrying optional arguments for Is_socket

type OptargsMd_create

type OptargsMd_create struct {
	/* Missingbitmap field is ignored unless Missingbitmap_is_set == true */
	Missingbitmap_is_set bool
	Missingbitmap        int64
	/* Nrdevices field is ignored unless Nrdevices_is_set == true */
	Nrdevices_is_set bool
	Nrdevices        int
	/* Spare field is ignored unless Spare_is_set == true */
	Spare_is_set bool
	Spare        int
	/* Chunk field is ignored unless Chunk_is_set == true */
	Chunk_is_set bool
	Chunk        int64
	/* Level field is ignored unless Level_is_set == true */
	Level_is_set bool
	Level        string
}

Struct carrying optional arguments for Md_create

type OptargsMke2fs

type OptargsMke2fs struct {
	/* Blockscount field is ignored unless Blockscount_is_set == true */
	Blockscount_is_set bool
	Blockscount        int64
	/* Blocksize field is ignored unless Blocksize_is_set == true */
	Blocksize_is_set bool
	Blocksize        int64
	/* Fragsize field is ignored unless Fragsize_is_set == true */
	Fragsize_is_set bool
	Fragsize        int64
	/* Blockspergroup field is ignored unless Blockspergroup_is_set == true */
	Blockspergroup_is_set bool
	Blockspergroup        int64
	/* Numberofgroups field is ignored unless Numberofgroups_is_set == true */
	Numberofgroups_is_set bool
	Numberofgroups        int64
	/* Bytesperinode field is ignored unless Bytesperinode_is_set == true */
	Bytesperinode_is_set bool
	Bytesperinode        int64
	/* Inodesize field is ignored unless Inodesize_is_set == true */
	Inodesize_is_set bool
	Inodesize        int64
	/* Journalsize field is ignored unless Journalsize_is_set == true */
	Journalsize_is_set bool
	Journalsize        int64
	/* Numberofinodes field is ignored unless Numberofinodes_is_set == true */
	Numberofinodes_is_set bool
	Numberofinodes        int64
	/* Stridesize field is ignored unless Stridesize_is_set == true */
	Stridesize_is_set bool
	Stridesize        int64
	/* Stripewidth field is ignored unless Stripewidth_is_set == true */
	Stripewidth_is_set bool
	Stripewidth        int64
	/* Maxonlineresize field is ignored unless Maxonlineresize_is_set == true */
	Maxonlineresize_is_set bool
	Maxonlineresize        int64
	/* Reservedblockspercentage field is ignored unless Reservedblockspercentage_is_set == true */
	Reservedblockspercentage_is_set bool
	Reservedblockspercentage        int
	/* Mmpupdateinterval field is ignored unless Mmpupdateinterval_is_set == true */
	Mmpupdateinterval_is_set bool
	Mmpupdateinterval        int
	/* Journaldevice field is ignored unless Journaldevice_is_set == true */
	Journaldevice_is_set bool
	Journaldevice        string
	/* Label field is ignored unless Label_is_set == true */
	Label_is_set bool
	Label        string
	/* Lastmounteddir field is ignored unless Lastmounteddir_is_set == true */
	Lastmounteddir_is_set bool
	Lastmounteddir        string
	/* Creatoros field is ignored unless Creatoros_is_set == true */
	Creatoros_is_set bool
	Creatoros        string
	/* Fstype field is ignored unless Fstype_is_set == true */
	Fstype_is_set bool
	Fstype        string
	/* Usagetype field is ignored unless Usagetype_is_set == true */
	Usagetype_is_set bool
	Usagetype        string
	/* Uuid field is ignored unless Uuid_is_set == true */
	Uuid_is_set bool
	Uuid        string
	/* Forcecreate field is ignored unless Forcecreate_is_set == true */
	Forcecreate_is_set bool
	Forcecreate        bool
	/* Writesbandgrouponly field is ignored unless Writesbandgrouponly_is_set == true */
	Writesbandgrouponly_is_set bool
	Writesbandgrouponly        bool
	/* Lazyitableinit field is ignored unless Lazyitableinit_is_set == true */
	Lazyitableinit_is_set bool
	Lazyitableinit        bool
	/* Lazyjournalinit field is ignored unless Lazyjournalinit_is_set == true */
	Lazyjournalinit_is_set bool
	Lazyjournalinit        bool
	/* Testfs field is ignored unless Testfs_is_set == true */
	Testfs_is_set bool
	Testfs        bool
	/* Discard field is ignored unless Discard_is_set == true */
	Discard_is_set bool
	Discard        bool
	/* Quotatype field is ignored unless Quotatype_is_set == true */
	Quotatype_is_set bool
	Quotatype        bool
	/* Extent field is ignored unless Extent_is_set == true */
	Extent_is_set bool
	Extent        bool
	/* Filetype field is ignored unless Filetype_is_set == true */
	Filetype_is_set bool
	Filetype        bool
	/* Flexbg field is ignored unless Flexbg_is_set == true */
	Flexbg_is_set bool
	Flexbg        bool
	/* Hasjournal field is ignored unless Hasjournal_is_set == true */
	Hasjournal_is_set bool
	Hasjournal        bool
	/* Journaldev field is ignored unless Journaldev_is_set == true */
	Journaldev_is_set bool
	Journaldev        bool
	/* Largefile field is ignored unless Largefile_is_set == true */
	Largefile_is_set bool
	Largefile        bool
	/* Quota field is ignored unless Quota_is_set == true */
	Quota_is_set bool
	Quota        bool
	/* Resizeinode field is ignored unless Resizeinode_is_set == true */
	Resizeinode_is_set bool
	Resizeinode        bool
	/* Sparsesuper field is ignored unless Sparsesuper_is_set == true */
	Sparsesuper_is_set bool
	Sparsesuper        bool
	/* Uninitbg field is ignored unless Uninitbg_is_set == true */
	Uninitbg_is_set bool
	Uninitbg        bool
}

Struct carrying optional arguments for Mke2fs

type OptargsMkfs

type OptargsMkfs struct {
	/* Blocksize field is ignored unless Blocksize_is_set == true */
	Blocksize_is_set bool
	Blocksize        int
	/* Features field is ignored unless Features_is_set == true */
	Features_is_set bool
	Features        string
	/* Inode field is ignored unless Inode_is_set == true */
	Inode_is_set bool
	Inode        int
	/* Sectorsize field is ignored unless Sectorsize_is_set == true */
	Sectorsize_is_set bool
	Sectorsize        int
	/* Label field is ignored unless Label_is_set == true */
	Label_is_set bool
	Label        string
}

Struct carrying optional arguments for Mkfs

type OptargsMkfs_btrfs

type OptargsMkfs_btrfs struct {
	/* Allocstart field is ignored unless Allocstart_is_set == true */
	Allocstart_is_set bool
	Allocstart        int64
	/* Bytecount field is ignored unless Bytecount_is_set == true */
	Bytecount_is_set bool
	Bytecount        int64
	/* Datatype field is ignored unless Datatype_is_set == true */
	Datatype_is_set bool
	Datatype        string
	/* Leafsize field is ignored unless Leafsize_is_set == true */
	Leafsize_is_set bool
	Leafsize        int
	/* Label field is ignored unless Label_is_set == true */
	Label_is_set bool
	Label        string
	/* Metadata field is ignored unless Metadata_is_set == true */
	Metadata_is_set bool
	Metadata        string
	/* Nodesize field is ignored unless Nodesize_is_set == true */
	Nodesize_is_set bool
	Nodesize        int
	/* Sectorsize field is ignored unless Sectorsize_is_set == true */
	Sectorsize_is_set bool
	Sectorsize        int
}

Struct carrying optional arguments for Mkfs_btrfs

type OptargsMksquashfs

type OptargsMksquashfs struct {
	/* Compress field is ignored unless Compress_is_set == true */
	Compress_is_set bool
	Compress        string
	/* Excludes field is ignored unless Excludes_is_set == true */
	Excludes_is_set bool
	Excludes        []string
}

Struct carrying optional arguments for Mksquashfs

type OptargsMkswap

type OptargsMkswap struct {
	/* Label field is ignored unless Label_is_set == true */
	Label_is_set bool
	Label        string
	/* Uuid field is ignored unless Uuid_is_set == true */
	Uuid_is_set bool
	Uuid        string
}

Struct carrying optional arguments for Mkswap

type OptargsMktemp

type OptargsMktemp struct {
	/* Suffix field is ignored unless Suffix_is_set == true */
	Suffix_is_set bool
	Suffix        string
}

Struct carrying optional arguments for Mktemp

type OptargsMount_9p

type OptargsMount_9p struct {
	/* Options field is ignored unless Options_is_set == true */
	Options_is_set bool
	Options        string
}

Struct carrying optional arguments for Mount_9p

type OptargsMount_local

type OptargsMount_local struct {
	/* Readonly field is ignored unless Readonly_is_set == true */
	Readonly_is_set bool
	Readonly        bool
	/* Options field is ignored unless Options_is_set == true */
	Options_is_set bool
	Options        string
	/* Cachetimeout field is ignored unless Cachetimeout_is_set == true */
	Cachetimeout_is_set bool
	Cachetimeout        int
	/* Debugcalls field is ignored unless Debugcalls_is_set == true */
	Debugcalls_is_set bool
	Debugcalls        bool
}

Struct carrying optional arguments for Mount_local

type OptargsNtfsclone_out

type OptargsNtfsclone_out struct {
	/* Metadataonly field is ignored unless Metadataonly_is_set == true */
	Metadataonly_is_set bool
	Metadataonly        bool
	/* Rescue field is ignored unless Rescue_is_set == true */
	Rescue_is_set bool
	Rescue        bool
	/* Ignorefscheck field is ignored unless Ignorefscheck_is_set == true */
	Ignorefscheck_is_set bool
	Ignorefscheck        bool
	/* Preservetimestamps field is ignored unless Preservetimestamps_is_set == true */
	Preservetimestamps_is_set bool
	Preservetimestamps        bool
	/* Force field is ignored unless Force_is_set == true */
	Force_is_set bool
	Force        bool
}

Struct carrying optional arguments for Ntfsclone_out

type OptargsNtfsfix

type OptargsNtfsfix struct {
	/* Clearbadsectors field is ignored unless Clearbadsectors_is_set == true */
	Clearbadsectors_is_set bool
	Clearbadsectors        bool
}

Struct carrying optional arguments for Ntfsfix

type OptargsNtfsresize

type OptargsNtfsresize struct {
	/* Size field is ignored unless Size_is_set == true */
	Size_is_set bool
	Size        int64
	/* Force field is ignored unless Force_is_set == true */
	Force_is_set bool
	Force        bool
}

Struct carrying optional arguments for Ntfsresize

type OptargsRemount

type OptargsRemount struct {
	/* Rw field is ignored unless Rw_is_set == true */
	Rw_is_set bool
	Rw        bool
}

Struct carrying optional arguments for Remount

type OptargsRsync

type OptargsRsync struct {
	/* Archive field is ignored unless Archive_is_set == true */
	Archive_is_set bool
	Archive        bool
	/* Deletedest field is ignored unless Deletedest_is_set == true */
	Deletedest_is_set bool
	Deletedest        bool
}

Struct carrying optional arguments for Rsync

type OptargsRsync_in

type OptargsRsync_in struct {
	/* Archive field is ignored unless Archive_is_set == true */
	Archive_is_set bool
	Archive        bool
	/* Deletedest field is ignored unless Deletedest_is_set == true */
	Deletedest_is_set bool
	Deletedest        bool
}

Struct carrying optional arguments for Rsync_in

type OptargsRsync_out

type OptargsRsync_out struct {
	/* Archive field is ignored unless Archive_is_set == true */
	Archive_is_set bool
	Archive        bool
	/* Deletedest field is ignored unless Deletedest_is_set == true */
	Deletedest_is_set bool
	Deletedest        bool
}

Struct carrying optional arguments for Rsync_out

type OptargsSelinux_relabel

type OptargsSelinux_relabel struct {
	/* Force field is ignored unless Force_is_set == true */
	Force_is_set bool
	Force        bool
}

Struct carrying optional arguments for Selinux_relabel

type OptargsSet_e2attrs

type OptargsSet_e2attrs struct {
	/* Clear field is ignored unless Clear_is_set == true */
	Clear_is_set bool
	Clear        bool
}

Struct carrying optional arguments for Set_e2attrs

type OptargsSyslinux

type OptargsSyslinux struct {
	/* Directory field is ignored unless Directory_is_set == true */
	Directory_is_set bool
	Directory        string
}

Struct carrying optional arguments for Syslinux

type OptargsTar_in

type OptargsTar_in struct {
	/* Compress field is ignored unless Compress_is_set == true */
	Compress_is_set bool
	Compress        string
	/* Xattrs field is ignored unless Xattrs_is_set == true */
	Xattrs_is_set bool
	Xattrs        bool
	/* Selinux field is ignored unless Selinux_is_set == true */
	Selinux_is_set bool
	Selinux        bool
	/* Acls field is ignored unless Acls_is_set == true */
	Acls_is_set bool
	Acls        bool
}

Struct carrying optional arguments for Tar_in

type OptargsTar_out

type OptargsTar_out struct {
	/* Compress field is ignored unless Compress_is_set == true */
	Compress_is_set bool
	Compress        string
	/* Numericowner field is ignored unless Numericowner_is_set == true */
	Numericowner_is_set bool
	Numericowner        bool
	/* Excludes field is ignored unless Excludes_is_set == true */
	Excludes_is_set bool
	Excludes        []string
	/* Xattrs field is ignored unless Xattrs_is_set == true */
	Xattrs_is_set bool
	Xattrs        bool
	/* Selinux field is ignored unless Selinux_is_set == true */
	Selinux_is_set bool
	Selinux        bool
	/* Acls field is ignored unless Acls_is_set == true */
	Acls_is_set bool
	Acls        bool
}

Struct carrying optional arguments for Tar_out

type OptargsTune2fs

type OptargsTune2fs struct {
	/* Force field is ignored unless Force_is_set == true */
	Force_is_set bool
	Force        bool
	/* Maxmountcount field is ignored unless Maxmountcount_is_set == true */
	Maxmountcount_is_set bool
	Maxmountcount        int
	/* Mountcount field is ignored unless Mountcount_is_set == true */
	Mountcount_is_set bool
	Mountcount        int
	/* Errorbehavior field is ignored unless Errorbehavior_is_set == true */
	Errorbehavior_is_set bool
	Errorbehavior        string
	/* Group field is ignored unless Group_is_set == true */
	Group_is_set bool
	Group        int64
	/* Intervalbetweenchecks field is ignored unless Intervalbetweenchecks_is_set == true */
	Intervalbetweenchecks_is_set bool
	Intervalbetweenchecks        int
	/* Reservedblockspercentage field is ignored unless Reservedblockspercentage_is_set == true */
	Reservedblockspercentage_is_set bool
	Reservedblockspercentage        int
	/* Lastmounteddirectory field is ignored unless Lastmounteddirectory_is_set == true */
	Lastmounteddirectory_is_set bool
	Lastmounteddirectory        string
	/* Reservedblockscount field is ignored unless Reservedblockscount_is_set == true */
	Reservedblockscount_is_set bool
	Reservedblockscount        int64
	/* User field is ignored unless User_is_set == true */
	User_is_set bool
	User        int64
}

Struct carrying optional arguments for Tune2fs

type OptargsUmount

type OptargsUmount struct {
	/* Force field is ignored unless Force_is_set == true */
	Force_is_set bool
	Force        bool
	/* Lazyunmount field is ignored unless Lazyunmount_is_set == true */
	Lazyunmount_is_set bool
	Lazyunmount        bool
}

Struct carrying optional arguments for Umount

type OptargsUmount_local

type OptargsUmount_local struct {
	/* Retry field is ignored unless Retry_is_set == true */
	Retry_is_set bool
	Retry        bool
}

Struct carrying optional arguments for Umount_local

type OptargsXfs_admin

type OptargsXfs_admin struct {
	/* Extunwritten field is ignored unless Extunwritten_is_set == true */
	Extunwritten_is_set bool
	Extunwritten        bool
	/* Imgfile field is ignored unless Imgfile_is_set == true */
	Imgfile_is_set bool
	Imgfile        bool
	/* V2log field is ignored unless V2log_is_set == true */
	V2log_is_set bool
	V2log        bool
	/* Projid32bit field is ignored unless Projid32bit_is_set == true */
	Projid32bit_is_set bool
	Projid32bit        bool
	/* Lazycounter field is ignored unless Lazycounter_is_set == true */
	Lazycounter_is_set bool
	Lazycounter        bool
	/* Label field is ignored unless Label_is_set == true */
	Label_is_set bool
	Label        string
	/* Uuid field is ignored unless Uuid_is_set == true */
	Uuid_is_set bool
	Uuid        string
}

Struct carrying optional arguments for Xfs_admin

type OptargsXfs_growfs

type OptargsXfs_growfs struct {
	/* Datasec field is ignored unless Datasec_is_set == true */
	Datasec_is_set bool
	Datasec        bool
	/* Logsec field is ignored unless Logsec_is_set == true */
	Logsec_is_set bool
	Logsec        bool
	/* Rtsec field is ignored unless Rtsec_is_set == true */
	Rtsec_is_set bool
	Rtsec        bool
	/* Datasize field is ignored unless Datasize_is_set == true */
	Datasize_is_set bool
	Datasize        int64
	/* Logsize field is ignored unless Logsize_is_set == true */
	Logsize_is_set bool
	Logsize        int64
	/* Rtsize field is ignored unless Rtsize_is_set == true */
	Rtsize_is_set bool
	Rtsize        int64
	/* Rtextsize field is ignored unless Rtextsize_is_set == true */
	Rtextsize_is_set bool
	Rtextsize        int64
	/* Maxpct field is ignored unless Maxpct_is_set == true */
	Maxpct_is_set bool
	Maxpct        int
}

Struct carrying optional arguments for Xfs_growfs

type OptargsXfs_repair

type OptargsXfs_repair struct {
	/* Forcelogzero field is ignored unless Forcelogzero_is_set == true */
	Forcelogzero_is_set bool
	Forcelogzero        bool
	/* Nomodify field is ignored unless Nomodify_is_set == true */
	Nomodify_is_set bool
	Nomodify        bool
	/* Noprefetch field is ignored unless Noprefetch_is_set == true */
	Noprefetch_is_set bool
	Noprefetch        bool
	/* Forcegeometry field is ignored unless Forcegeometry_is_set == true */
	Forcegeometry_is_set bool
	Forcegeometry        bool
	/* Maxmem field is ignored unless Maxmem_is_set == true */
	Maxmem_is_set bool
	Maxmem        int64
	/* Ihashsize field is ignored unless Ihashsize_is_set == true */
	Ihashsize_is_set bool
	Ihashsize        int64
	/* Bhashsize field is ignored unless Bhashsize_is_set == true */
	Bhashsize_is_set bool
	Bhashsize        int64
	/* Agstride field is ignored unless Agstride_is_set == true */
	Agstride_is_set bool
	Agstride        int64
	/* Logdev field is ignored unless Logdev_is_set == true */
	Logdev_is_set bool
	Logdev        string
	/* Rtdev field is ignored unless Rtdev_is_set == true */
	Rtdev_is_set bool
	Rtdev        string
}

Struct carrying optional arguments for Xfs_repair

type PV

type PV struct {
	Pv_name           string
	Pv_uuid           [32]byte
	Pv_fmt            string
	Pv_size           uint64
	Dev_size          uint64
	Pv_free           uint64
	Pv_used           uint64
	Pv_attr           string
	Pv_pe_count       int64
	Pv_pe_alloc_count int64
	Pv_tags           string
	Pe_start          uint64
	Pv_mda_count      int64
	Pv_mda_free       uint64
}

type Partition

type Partition struct {
	Part_num   int32
	Part_start uint64
	Part_end   uint64
	Part_size  uint64
}

type Stat

type Stat struct {
	Dev     int64
	Ino     int64
	Mode    int64
	Nlink   int64
	Uid     int64
	Gid     int64
	Rdev    int64
	Size    int64
	Blksize int64
	Blocks  int64
	Atime   int64
	Mtime   int64
	Ctime   int64
}

type StatNS

type StatNS struct {
	St_dev        int64
	St_ino        int64
	St_mode       int64
	St_nlink      int64
	St_uid        int64
	St_gid        int64
	St_rdev       int64
	St_size       int64
	St_blksize    int64
	St_blocks     int64
	St_atime_sec  int64
	St_atime_nsec int64
	St_mtime_sec  int64
	St_mtime_nsec int64
	St_ctime_sec  int64
	St_ctime_nsec int64
	St_spare1     int64
	St_spare2     int64
	St_spare3     int64
	St_spare4     int64
	St_spare5     int64
	St_spare6     int64
}

type StatVFS

type StatVFS struct {
	Bsize   int64
	Frsize  int64
	Blocks  int64
	Bfree   int64
	Bavail  int64
	Files   int64
	Ffree   int64
	Favail  int64
	Fsid    int64
	Flag    int64
	Namemax int64
}

type TSKDirent

type TSKDirent struct {
	Tsk_inode       uint64
	Tsk_type        byte
	Tsk_size        int64
	Tsk_name        string
	Tsk_flags       uint32
	Tsk_atime_sec   int64
	Tsk_atime_nsec  int64
	Tsk_mtime_sec   int64
	Tsk_mtime_nsec  int64
	Tsk_ctime_sec   int64
	Tsk_ctime_nsec  int64
	Tsk_crtime_sec  int64
	Tsk_crtime_nsec int64
	Tsk_nlink       int64
	Tsk_link        string
	Tsk_spare1      int64
}

type UTSName

type UTSName struct {
	Uts_sysname string
	Uts_release string
	Uts_version string
	Uts_machine string
}

type VG

type VG struct {
	Vg_name         string
	Vg_uuid         [32]byte
	Vg_fmt          string
	Vg_attr         string
	Vg_size         uint64
	Vg_free         uint64
	Vg_sysid        string
	Vg_extent_size  uint64
	Vg_extent_count int64
	Vg_free_count   int64
	Max_lv          int64
	Max_pv          int64
	Pv_count        int64
	Lv_count        int64
	Snap_count      int64
	Vg_seqno        int64
	Vg_tags         string
	Vg_mda_count    int64
	Vg_mda_free     uint64
}

type Version

type Version struct {
	Major   int64
	Minor   int64
	Release int64
	Extra   string
}

type XAttr

type XAttr struct {
	Attrname string
	Attrval  []byte
}

type XFSInfo

type XFSInfo struct {
	Xfs_mntpoint     string
	Xfs_inodesize    uint32
	Xfs_agcount      uint32
	Xfs_agsize       uint32
	Xfs_sectsize     uint32
	Xfs_attr         uint32
	Xfs_blocksize    uint32
	Xfs_datablocks   uint64
	Xfs_imaxpct      uint32
	Xfs_sunit        uint32
	Xfs_swidth       uint32
	Xfs_dirversion   uint32
	Xfs_dirblocksize uint32
	Xfs_cimode       uint32
	Xfs_logname      string
	Xfs_logblocksize uint32
	Xfs_logblocks    uint32
	Xfs_logversion   uint32
	Xfs_logsectsize  uint32
	Xfs_logsunit     uint32
	Xfs_lazycount    uint32
	Xfs_rtname       string
	Xfs_rtextsize    uint32
	Xfs_rtblocks     uint64
	Xfs_rtextents    uint64
}

type YaraDetection

type YaraDetection struct {
	Yara_name string
	Yara_rule string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL