Documentation ¶
Index ¶
- Constants
- type Application
- type Application2
- type BTRFSBalance
- type BTRFSQgroup
- type BTRFSScrub
- type BTRFSSubvolume
- type CreateFlags
- type Dirent
- type Guestfs
- func (g *Guestfs) Acl_delete_def_file(dir string) error
- func (g *Guestfs) Acl_get_file(path string, acltype string) (string, error)
- func (g *Guestfs) Acl_set_file(path string, acltype string, acl string) error
- func (g *Guestfs) Add_cdrom(filename string) error
- func (g *Guestfs) Add_domain(dom string, optargs *OptargsAdd_domain) (int, error)
- func (g *Guestfs) Add_drive(filename string, optargs *OptargsAdd_drive) error
- func (g *Guestfs) Add_drive_ro(filename string) error
- func (g *Guestfs) Add_drive_ro_with_if(filename string, iface string) error
- func (g *Guestfs) Add_drive_scratch(size int64, optargs *OptargsAdd_drive_scratch) error
- func (g *Guestfs) Add_drive_with_if(filename string, iface string) error
- func (g *Guestfs) Add_libvirt_dom(dom int64, optargs *OptargsAdd_libvirt_dom) (int, error)
- func (g *Guestfs) Aug_clear(augpath string) error
- func (g *Guestfs) Aug_close() error
- func (g *Guestfs) Aug_defnode(name string, expr string, val string) (*IntBool, error)
- func (g *Guestfs) Aug_defvar(name string, expr *string) (int, error)
- func (g *Guestfs) Aug_get(augpath string) (string, error)
- func (g *Guestfs) Aug_init(root string, flags int) error
- func (g *Guestfs) Aug_insert(augpath string, label string, before bool) error
- func (g *Guestfs) Aug_label(augpath string) (string, error)
- func (g *Guestfs) Aug_load() error
- func (g *Guestfs) Aug_ls(augpath string) ([]string, error)
- func (g *Guestfs) Aug_match(augpath string) ([]string, error)
- func (g *Guestfs) Aug_mv(src string, dest string) error
- func (g *Guestfs) Aug_rm(augpath string) (int, error)
- func (g *Guestfs) Aug_save() error
- func (g *Guestfs) Aug_set(augpath string, val string) error
- func (g *Guestfs) Aug_setm(base string, sub *string, val string) (int, error)
- func (g *Guestfs) Aug_transform(lens string, file string, optargs *OptargsAug_transform) error
- func (g *Guestfs) Available(groups []string) error
- func (g *Guestfs) Available_all_groups() ([]string, error)
- func (g *Guestfs) Base64_in(base64file string, filename string) error
- func (g *Guestfs) Base64_out(filename string, base64file string) error
- func (g *Guestfs) Blkdiscard(device string) error
- func (g *Guestfs) Blkdiscardzeroes(device string) (bool, error)
- func (g *Guestfs) Blkid(device string) (map[string]string, error)
- func (g *Guestfs) Blockdev_flushbufs(device string) error
- func (g *Guestfs) Blockdev_getbsz(device string) (int, error)
- func (g *Guestfs) Blockdev_getro(device string) (bool, error)
- func (g *Guestfs) Blockdev_getsize64(device string) (int64, error)
- func (g *Guestfs) Blockdev_getss(device string) (int, error)
- func (g *Guestfs) Blockdev_getsz(device string) (int64, error)
- func (g *Guestfs) Blockdev_rereadpt(device string) error
- func (g *Guestfs) Blockdev_setbsz(device string, blocksize int) error
- func (g *Guestfs) Blockdev_setra(device string, sectors int) error
- func (g *Guestfs) Blockdev_setro(device string) error
- func (g *Guestfs) Blockdev_setrw(device string) error
- func (g *Guestfs) Btrfs_balance_cancel(path string) error
- func (g *Guestfs) Btrfs_balance_pause(path string) error
- func (g *Guestfs) Btrfs_balance_resume(path string) error
- func (g *Guestfs) Btrfs_balance_status(path string) (*BTRFSBalance, error)
- func (g *Guestfs) Btrfs_device_add(devices []string, fs string) error
- func (g *Guestfs) Btrfs_device_delete(devices []string, fs string) error
- func (g *Guestfs) Btrfs_filesystem_balance(fs string) error
- func (g *Guestfs) Btrfs_filesystem_defragment(path string, optargs *OptargsBtrfs_filesystem_defragment) error
- func (g *Guestfs) Btrfs_filesystem_resize(mountpoint string, optargs *OptargsBtrfs_filesystem_resize) error
- func (g *Guestfs) Btrfs_filesystem_show(device string) ([]string, error)
- func (g *Guestfs) Btrfs_filesystem_sync(fs string) error
- func (g *Guestfs) Btrfs_fsck(device string, optargs *OptargsBtrfs_fsck) error
- func (g *Guestfs) Btrfs_image(source []string, image string, optargs *OptargsBtrfs_image) error
- func (g *Guestfs) Btrfs_qgroup_assign(src string, dst string, path string) error
- func (g *Guestfs) Btrfs_qgroup_create(qgroupid string, subvolume string) error
- func (g *Guestfs) Btrfs_qgroup_destroy(qgroupid string, subvolume string) error
- func (g *Guestfs) Btrfs_qgroup_limit(subvolume string, size int64) error
- func (g *Guestfs) Btrfs_qgroup_remove(src string, dst string, path string) error
- func (g *Guestfs) Btrfs_qgroup_show(path string) (*[]BTRFSQgroup, error)
- func (g *Guestfs) Btrfs_quota_enable(fs string, enable bool) error
- func (g *Guestfs) Btrfs_quota_rescan(fs string) error
- func (g *Guestfs) Btrfs_replace(srcdev string, targetdev string, mntpoint string) error
- func (g *Guestfs) Btrfs_rescue_chunk_recover(device string) error
- func (g *Guestfs) Btrfs_rescue_super_recover(device string) error
- func (g *Guestfs) Btrfs_scrub_cancel(path string) error
- func (g *Guestfs) Btrfs_scrub_resume(path string) error
- func (g *Guestfs) Btrfs_scrub_start(path string) error
- func (g *Guestfs) Btrfs_scrub_status(path string) (*BTRFSScrub, error)
- func (g *Guestfs) Btrfs_set_seeding(device string, seeding bool) error
- func (g *Guestfs) Btrfs_subvolume_create(dest string, optargs *OptargsBtrfs_subvolume_create) error
- func (g *Guestfs) Btrfs_subvolume_delete(subvolume string) error
- func (g *Guestfs) Btrfs_subvolume_get_default(fs string) (int64, error)
- func (g *Guestfs) Btrfs_subvolume_list(fs string) (*[]BTRFSSubvolume, error)
- func (g *Guestfs) Btrfs_subvolume_set_default(id int64, fs string) error
- func (g *Guestfs) Btrfs_subvolume_show(subvolume string) (map[string]string, error)
- func (g *Guestfs) Btrfs_subvolume_snapshot(source string, dest string, optargs *OptargsBtrfs_subvolume_snapshot) error
- func (g *Guestfs) Btrfstune_enable_extended_inode_refs(device string) error
- func (g *Guestfs) Btrfstune_enable_skinny_metadata_extent_refs(device string) error
- func (g *Guestfs) Btrfstune_seeding(device string, seeding bool) error
- func (g *Guestfs) C_pointer() (int64, error)
- func (g *Guestfs) Canonical_device_name(device string) (string, error)
- func (g *Guestfs) Cap_get_file(path string) (string, error)
- func (g *Guestfs) Cap_set_file(path string, cap string) error
- func (g *Guestfs) Case_sensitive_path(path string) (string, error)
- func (g *Guestfs) Cat(path string) (string, error)
- func (g *Guestfs) Checksum(csumtype string, path string) (string, error)
- func (g *Guestfs) Checksum_device(csumtype string, device string) (string, error)
- func (g *Guestfs) Checksums_out(csumtype string, directory string, sumsfile string) error
- func (g *Guestfs) Chmod(mode int, path string) error
- func (g *Guestfs) Chown(owner int, group int, path string) error
- func (g *Guestfs) Clear_backend_setting(name string) (int, error)
- func (g *Guestfs) Clevis_luks_unlock(device string, mapname string) error
- func (g *Guestfs) Close() *GuestfsError
- func (g *Guestfs) Command(arguments []string) (string, error)
- func (g *Guestfs) Command_lines(arguments []string) ([]string, error)
- func (g *Guestfs) Compress_device_out(ctype string, device string, zdevice string, ...) error
- func (g *Guestfs) Compress_out(ctype string, file string, zfile string, optargs *OptargsCompress_out) error
- func (g *Guestfs) Config(hvparam string, hvvalue *string) error
- func (g *Guestfs) Copy_attributes(src string, dest string, optargs *OptargsCopy_attributes) error
- func (g *Guestfs) Copy_device_to_device(src string, dest string, optargs *OptargsCopy_device_to_device) error
- func (g *Guestfs) Copy_device_to_file(src string, dest string, optargs *OptargsCopy_device_to_file) error
- func (g *Guestfs) Copy_file_to_device(src string, dest string, optargs *OptargsCopy_file_to_device) error
- func (g *Guestfs) Copy_file_to_file(src string, dest string, optargs *OptargsCopy_file_to_file) error
- func (g *Guestfs) Copy_in(localpath string, remotedir string) error
- func (g *Guestfs) Copy_out(remotepath string, localdir string) error
- func (g *Guestfs) Copy_size(src string, dest string, size int64) error
- func (g *Guestfs) Cp(src string, dest string) error
- func (g *Guestfs) Cp_a(src string, dest string) error
- func (g *Guestfs) Cp_r(src string, dest string) error
- func (g *Guestfs) Cpio_out(directory string, cpiofile string, optargs *OptargsCpio_out) error
- func (g *Guestfs) Cryptsetup_close(device string) error
- func (g *Guestfs) Cryptsetup_open(device string, key string, mapname string, optargs *OptargsCryptsetup_open) error
- func (g *Guestfs) Dd(src string, dest string) error
- func (g *Guestfs) Debug(subcmd string, extraargs []string) (string, error)
- func (g *Guestfs) Debug_drives() ([]string, error)
- func (g *Guestfs) Debug_upload(filename string, tmpname string, mode int) error
- func (g *Guestfs) Device_index(device string) (int, error)
- func (g *Guestfs) Device_name(index int) (string, error)
- func (g *Guestfs) Df() (string, error)
- func (g *Guestfs) Df_h() (string, error)
- func (g *Guestfs) Disk_create(filename string, format string, size int64, optargs *OptargsDisk_create) error
- func (g *Guestfs) Disk_format(filename string) (string, error)
- func (g *Guestfs) Disk_has_backing_file(filename string) (bool, error)
- func (g *Guestfs) Disk_virtual_size(filename string) (int64, error)
- func (g *Guestfs) Dmesg() (string, error)
- func (g *Guestfs) Download(remotefilename string, filename string) error
- func (g *Guestfs) Download_blocks(device string, start int64, stop int64, filename string, ...) error
- func (g *Guestfs) Download_inode(device string, inode int64, filename string) error
- func (g *Guestfs) Download_offset(remotefilename string, filename string, offset int64, size int64) error
- func (g *Guestfs) Drop_caches(whattodrop int) error
- func (g *Guestfs) Du(path string) (int64, error)
- func (g *Guestfs) E2fsck(device string, optargs *OptargsE2fsck) error
- func (g *Guestfs) E2fsck_f(device string) error
- func (g *Guestfs) Echo_daemon(words []string) (string, error)
- func (g *Guestfs) Egrep(regex string, path string) ([]string, error)
- func (g *Guestfs) Egrepi(regex string, path string) ([]string, error)
- func (g *Guestfs) Equal(file1 string, file2 string) (bool, error)
- func (g *Guestfs) Exists(path string) (bool, error)
- func (g *Guestfs) Extlinux(directory string) error
- func (g *Guestfs) F2fs_expand(device string) error
- func (g *Guestfs) Fallocate(path string, len int) error
- func (g *Guestfs) Fallocate64(path string, len int64) error
- func (g *Guestfs) Feature_available(groups []string) (bool, error)
- func (g *Guestfs) Fgrep(pattern string, path string) ([]string, error)
- func (g *Guestfs) Fgrepi(pattern string, path string) ([]string, error)
- func (g *Guestfs) File(path string) (string, error)
- func (g *Guestfs) File_architecture(filename string) (string, error)
- func (g *Guestfs) Filesize(file string) (int64, error)
- func (g *Guestfs) Filesystem_available(filesystem string) (bool, error)
- func (g *Guestfs) Filesystem_walk(device string) (*[]TSKDirent, error)
- func (g *Guestfs) Fill(c int, len int, path string) error
- func (g *Guestfs) Fill_dir(dir string, nr int) error
- func (g *Guestfs) Fill_pattern(pattern string, len int, path string) error
- func (g *Guestfs) Find(directory string) ([]string, error)
- func (g *Guestfs) Find0(directory string, files string) error
- func (g *Guestfs) Find_inode(device string, inode int64) (*[]TSKDirent, error)
- func (g *Guestfs) Findfs_label(label string) (string, error)
- func (g *Guestfs) Findfs_uuid(uuid string) (string, error)
- func (g *Guestfs) Fsck(fstype string, device string) (int, error)
- func (g *Guestfs) Fstrim(mountpoint string, optargs *OptargsFstrim) error
- func (g *Guestfs) Get_append() (*string, error)
- func (g *Guestfs) Get_attach_method() (string, error)
- func (g *Guestfs) Get_autosync() (bool, error)
- func (g *Guestfs) Get_backend() (string, error)
- func (g *Guestfs) Get_backend_setting(name string) (string, error)
- func (g *Guestfs) Get_backend_settings() ([]string, error)
- func (g *Guestfs) Get_cachedir() (string, error)
- func (g *Guestfs) Get_direct() (bool, error)
- func (g *Guestfs) Get_e2attrs(file string) (string, error)
- func (g *Guestfs) Get_e2generation(file string) (int64, error)
- func (g *Guestfs) Get_e2label(device string) (string, error)
- func (g *Guestfs) Get_e2uuid(device string) (string, error)
- func (g *Guestfs) Get_hv() (string, error)
- func (g *Guestfs) Get_identifier() (string, error)
- func (g *Guestfs) Get_libvirt_requested_credential_challenge(index int) (string, error)
- func (g *Guestfs) Get_libvirt_requested_credential_defresult(index int) (string, error)
- func (g *Guestfs) Get_libvirt_requested_credential_prompt(index int) (string, error)
- func (g *Guestfs) Get_libvirt_requested_credentials() ([]string, error)
- func (g *Guestfs) Get_memsize() (int, error)
- func (g *Guestfs) Get_network() (bool, error)
- func (g *Guestfs) Get_path() (string, error)
- func (g *Guestfs) Get_pgroup() (bool, error)
- func (g *Guestfs) Get_pid() (int, error)
- func (g *Guestfs) Get_program() (string, error)
- func (g *Guestfs) Get_qemu() (string, error)
- func (g *Guestfs) Get_recovery_proc() (bool, error)
- func (g *Guestfs) Get_selinux() (bool, error)
- func (g *Guestfs) Get_smp() (int, error)
- func (g *Guestfs) Get_sockdir() (string, error)
- func (g *Guestfs) Get_state() (int, error)
- func (g *Guestfs) Get_tmpdir() (string, error)
- func (g *Guestfs) Get_trace() (bool, error)
- func (g *Guestfs) Get_umask() (int, error)
- func (g *Guestfs) Get_verbose() (bool, error)
- func (g *Guestfs) Getcon() (string, error)
- func (g *Guestfs) Getxattr(path string, name string) ([]byte, error)
- func (g *Guestfs) Getxattrs(path string) (*[]XAttr, error)
- func (g *Guestfs) Glob_expand(pattern string, optargs *OptargsGlob_expand) ([]string, error)
- func (g *Guestfs) Grep(regex string, path string, optargs *OptargsGrep) ([]string, error)
- func (g *Guestfs) Grepi(regex string, path string) ([]string, error)
- func (g *Guestfs) Grub_install(root string, device string) error
- func (g *Guestfs) Head(path string) ([]string, error)
- func (g *Guestfs) Head_n(nrlines int, path string) ([]string, error)
- func (g *Guestfs) Hexdump(path string) (string, error)
- func (g *Guestfs) Hivex_close() error
- func (g *Guestfs) Hivex_commit(filename *string) error
- func (g *Guestfs) Hivex_node_add_child(parent int64, name string) (int64, error)
- func (g *Guestfs) Hivex_node_children(nodeh int64) (*[]HivexNode, error)
- func (g *Guestfs) Hivex_node_delete_child(nodeh int64) error
- func (g *Guestfs) Hivex_node_get_child(nodeh int64, name string) (int64, error)
- func (g *Guestfs) Hivex_node_get_value(nodeh int64, key string) (int64, error)
- func (g *Guestfs) Hivex_node_name(nodeh int64) (string, error)
- func (g *Guestfs) Hivex_node_parent(nodeh int64) (int64, error)
- func (g *Guestfs) Hivex_node_set_value(nodeh int64, key string, t int64, val []byte) error
- func (g *Guestfs) Hivex_node_values(nodeh int64) (*[]HivexValue, error)
- func (g *Guestfs) Hivex_open(filename string, optargs *OptargsHivex_open) error
- func (g *Guestfs) Hivex_root() (int64, error)
- func (g *Guestfs) Hivex_value_key(valueh int64) (string, error)
- func (g *Guestfs) Hivex_value_string(valueh int64) (string, error)
- func (g *Guestfs) Hivex_value_type(valueh int64) (int64, error)
- func (g *Guestfs) Hivex_value_utf8(valueh int64) (string, error)
- func (g *Guestfs) Hivex_value_value(valueh int64) ([]byte, error)
- func (g *Guestfs) Initrd_cat(initrdpath string, filename string) ([]byte, error)
- func (g *Guestfs) Initrd_list(path string) ([]string, error)
- func (g *Guestfs) Inotify_add_watch(path string, mask int) (int64, error)
- func (g *Guestfs) Inotify_close() error
- func (g *Guestfs) Inotify_files() ([]string, error)
- func (g *Guestfs) Inotify_init(maxevents int) error
- func (g *Guestfs) Inotify_read() (*[]INotifyEvent, error)
- func (g *Guestfs) Inotify_rm_watch(wd int) error
- func (g *Guestfs) Inspect_get_arch(root string) (string, error)
- func (g *Guestfs) Inspect_get_build_id(root string) (string, error)
- func (g *Guestfs) Inspect_get_distro(root string) (string, error)
- func (g *Guestfs) Inspect_get_drive_mappings(root string) (map[string]string, error)
- func (g *Guestfs) Inspect_get_filesystems(root string) ([]string, error)
- func (g *Guestfs) Inspect_get_format(root string) (string, error)
- func (g *Guestfs) Inspect_get_hostname(root string) (string, error)
- func (g *Guestfs) Inspect_get_icon(root string, optargs *OptargsInspect_get_icon) ([]byte, error)
- func (g *Guestfs) Inspect_get_major_version(root string) (int, error)
- func (g *Guestfs) Inspect_get_minor_version(root string) (int, error)
- func (g *Guestfs) Inspect_get_mountpoints(root string) (map[string]string, error)
- func (g *Guestfs) Inspect_get_osinfo(root string) (string, error)
- func (g *Guestfs) Inspect_get_package_format(root string) (string, error)
- func (g *Guestfs) Inspect_get_package_management(root string) (string, error)
- func (g *Guestfs) Inspect_get_product_name(root string) (string, error)
- func (g *Guestfs) Inspect_get_product_variant(root string) (string, error)
- func (g *Guestfs) Inspect_get_roots() ([]string, error)
- func (g *Guestfs) Inspect_get_type(root string) (string, error)
- func (g *Guestfs) Inspect_get_windows_current_control_set(root string) (string, error)
- func (g *Guestfs) Inspect_get_windows_software_hive(root string) (string, error)
- func (g *Guestfs) Inspect_get_windows_system_hive(root string) (string, error)
- func (g *Guestfs) Inspect_get_windows_systemroot(root string) (string, error)
- func (g *Guestfs) Inspect_is_live(root string) (bool, error)
- func (g *Guestfs) Inspect_is_multipart(root string) (bool, error)
- func (g *Guestfs) Inspect_is_netinst(root string) (bool, error)
- func (g *Guestfs) Inspect_list_applications(root string) (*[]Application, error)
- func (g *Guestfs) Inspect_list_applications2(root string) (*[]Application2, error)
- func (g *Guestfs) Inspect_os() ([]string, error)
- func (g *Guestfs) Internal_exit() error
- func (g *Guestfs) Internal_test(str string, optstr *string, strlist []string, b bool, integer int, ...) error
- func (g *Guestfs) Internal_test_63_optargs(optargs *OptargsInternal_test_63_optargs) error
- func (g *Guestfs) Internal_test_close_output() error
- func (g *Guestfs) Internal_test_only_optargs(optargs *OptargsInternal_test_only_optargs) error
- func (g *Guestfs) Internal_test_rbool(val string) (bool, error)
- func (g *Guestfs) Internal_test_rboolerr() (bool, error)
- func (g *Guestfs) Internal_test_rbufferout(val string) ([]byte, error)
- func (g *Guestfs) Internal_test_rbufferouterr() ([]byte, error)
- func (g *Guestfs) Internal_test_rconstoptstring(val string) (*string, error)
- func (g *Guestfs) Internal_test_rconstoptstringerr() (*string, error)
- func (g *Guestfs) Internal_test_rconststring(val string) (string, error)
- func (g *Guestfs) Internal_test_rconststringerr() (string, error)
- func (g *Guestfs) Internal_test_rhashtable(val string) (map[string]string, error)
- func (g *Guestfs) Internal_test_rhashtableerr() (map[string]string, error)
- func (g *Guestfs) Internal_test_rint(val string) (int, error)
- func (g *Guestfs) Internal_test_rint64(val string) (int64, error)
- func (g *Guestfs) Internal_test_rint64err() (int64, error)
- func (g *Guestfs) Internal_test_rinterr() (int, error)
- func (g *Guestfs) Internal_test_rstring(val string) (string, error)
- func (g *Guestfs) Internal_test_rstringerr() (string, error)
- func (g *Guestfs) Internal_test_rstringlist(val string) ([]string, error)
- func (g *Guestfs) Internal_test_rstringlisterr() ([]string, error)
- func (g *Guestfs) Internal_test_rstruct(val string) (*PV, error)
- func (g *Guestfs) Internal_test_rstructerr() (*PV, error)
- func (g *Guestfs) Internal_test_rstructlist(val string) (*[]PV, error)
- func (g *Guestfs) Internal_test_rstructlisterr() (*[]PV, error)
- func (g *Guestfs) Internal_test_set_output(filename string) error
- func (g *Guestfs) Is_blockdev(path string, optargs *OptargsIs_blockdev) (bool, error)
- func (g *Guestfs) Is_busy() (bool, error)
- func (g *Guestfs) Is_chardev(path string, optargs *OptargsIs_chardev) (bool, error)
- func (g *Guestfs) Is_config() (bool, error)
- func (g *Guestfs) Is_dir(path string, optargs *OptargsIs_dir) (bool, error)
- func (g *Guestfs) Is_fifo(path string, optargs *OptargsIs_fifo) (bool, error)
- func (g *Guestfs) Is_file(path string, optargs *OptargsIs_file) (bool, error)
- func (g *Guestfs) Is_launching() (bool, error)
- func (g *Guestfs) Is_lv(mountable string) (bool, error)
- func (g *Guestfs) Is_ready() (bool, error)
- func (g *Guestfs) Is_socket(path string, optargs *OptargsIs_socket) (bool, error)
- func (g *Guestfs) Is_symlink(path string) (bool, error)
- func (g *Guestfs) Is_whole_device(device string) (bool, error)
- func (g *Guestfs) Is_zero(path string) (bool, error)
- func (g *Guestfs) Is_zero_device(device string) (bool, error)
- func (g *Guestfs) Isoinfo(isofile string) (*ISOInfo, error)
- func (g *Guestfs) Isoinfo_device(device string) (*ISOInfo, error)
- func (g *Guestfs) Journal_close() error
- func (g *Guestfs) Journal_get() (*[]XAttr, error)
- func (g *Guestfs) Journal_get_data_threshold() (int64, error)
- func (g *Guestfs) Journal_get_realtime_usec() (int64, error)
- func (g *Guestfs) Journal_next() (bool, error)
- func (g *Guestfs) Journal_open(directory string) error
- func (g *Guestfs) Journal_set_data_threshold(threshold int64) error
- func (g *Guestfs) Journal_skip(skip int64) (int64, error)
- func (g *Guestfs) Kill_subprocess() error
- func (g *Guestfs) Launch() error
- func (g *Guestfs) Lchown(owner int, group int, path string) error
- func (g *Guestfs) Ldmtool_create_all() error
- func (g *Guestfs) Ldmtool_diskgroup_disks(diskgroup string) ([]string, error)
- func (g *Guestfs) Ldmtool_diskgroup_name(diskgroup string) (string, error)
- func (g *Guestfs) Ldmtool_diskgroup_volumes(diskgroup string) ([]string, error)
- func (g *Guestfs) Ldmtool_remove_all() error
- func (g *Guestfs) Ldmtool_scan() ([]string, error)
- func (g *Guestfs) Ldmtool_scan_devices(devices []string) ([]string, error)
- func (g *Guestfs) Ldmtool_volume_hint(diskgroup string, volume string) (string, error)
- func (g *Guestfs) Ldmtool_volume_partitions(diskgroup string, volume string) ([]string, error)
- func (g *Guestfs) Ldmtool_volume_type(diskgroup string, volume string) (string, error)
- func (g *Guestfs) Lgetxattr(path string, name string) ([]byte, error)
- func (g *Guestfs) Lgetxattrs(path string) (*[]XAttr, error)
- func (g *Guestfs) List_9p() ([]string, error)
- func (g *Guestfs) List_devices() ([]string, error)
- func (g *Guestfs) List_disk_labels() (map[string]string, error)
- func (g *Guestfs) List_dm_devices() ([]string, error)
- func (g *Guestfs) List_filesystems() (map[string]string, error)
- func (g *Guestfs) List_ldm_partitions() ([]string, error)
- func (g *Guestfs) List_ldm_volumes() ([]string, error)
- func (g *Guestfs) List_md_devices() ([]string, error)
- func (g *Guestfs) List_partitions() ([]string, error)
- func (g *Guestfs) Ll(directory string) (string, error)
- func (g *Guestfs) Llz(directory string) (string, error)
- func (g *Guestfs) Ln(target string, linkname string) error
- func (g *Guestfs) Ln_f(target string, linkname string) error
- func (g *Guestfs) Ln_s(target string, linkname string) error
- func (g *Guestfs) Ln_sf(target string, linkname string) error
- func (g *Guestfs) Lremovexattr(xattr string, path string) error
- func (g *Guestfs) Ls(directory string) ([]string, error)
- func (g *Guestfs) Ls0(dir string, filenames string) error
- func (g *Guestfs) Lsetxattr(xattr string, val string, vallen int, path string) error
- func (g *Guestfs) Lstat(path string) (*Stat, error)
- func (g *Guestfs) Lstatlist(path string, names []string) (*[]Stat, error)
- func (g *Guestfs) Lstatns(path string) (*StatNS, error)
- func (g *Guestfs) Lstatnslist(path string, names []string) (*[]StatNS, error)
- func (g *Guestfs) Luks_add_key(device string, key string, newkey string, keyslot int) error
- func (g *Guestfs) Luks_close(device string) error
- func (g *Guestfs) Luks_format(device string, key string, keyslot int) error
- func (g *Guestfs) Luks_format_cipher(device string, key string, keyslot int, cipher string) error
- func (g *Guestfs) Luks_kill_slot(device string, key string, keyslot int) error
- func (g *Guestfs) Luks_open(device string, key string, mapname string) error
- func (g *Guestfs) Luks_open_ro(device string, key string, mapname string) error
- func (g *Guestfs) Luks_uuid(device string) (string, error)
- func (g *Guestfs) Lvcreate(logvol string, volgroup string, mbytes int) error
- func (g *Guestfs) Lvcreate_free(logvol string, volgroup string, percent int) error
- func (g *Guestfs) Lvm_canonical_lv_name(lvname string) (string, error)
- func (g *Guestfs) Lvm_clear_filter() error
- func (g *Guestfs) Lvm_remove_all() error
- func (g *Guestfs) Lvm_scan(activate bool) error
- func (g *Guestfs) Lvm_set_filter(devices []string) error
- func (g *Guestfs) Lvremove(device string) error
- func (g *Guestfs) Lvrename(logvol string, newlogvol string) error
- func (g *Guestfs) Lvresize(device string, mbytes int) error
- func (g *Guestfs) Lvresize_free(lv string, percent int) error
- func (g *Guestfs) Lvs() ([]string, error)
- func (g *Guestfs) Lvs_full() (*[]LV, error)
- func (g *Guestfs) Lvuuid(device string) (string, error)
- func (g *Guestfs) Lxattrlist(path string, names []string) (*[]XAttr, error)
- func (g *Guestfs) Max_disks() (int, error)
- func (g *Guestfs) Md_create(name string, devices []string, optargs *OptargsMd_create) error
- func (g *Guestfs) Md_detail(md string) (map[string]string, error)
- func (g *Guestfs) Md_stat(md string) (*[]MDStat, error)
- func (g *Guestfs) Md_stop(md string) error
- func (g *Guestfs) Mkdir(path string) error
- func (g *Guestfs) Mkdir_mode(path string, mode int) error
- func (g *Guestfs) Mkdir_p(path string) error
- func (g *Guestfs) Mkdtemp(tmpl string) (string, error)
- func (g *Guestfs) Mke2fs(device string, optargs *OptargsMke2fs) error
- func (g *Guestfs) Mke2fs_J(fstype string, blocksize int, device string, journal string) error
- func (g *Guestfs) Mke2fs_JL(fstype string, blocksize int, device string, label string) error
- func (g *Guestfs) Mke2fs_JU(fstype string, blocksize int, device string, uuid string) error
- func (g *Guestfs) Mke2journal(blocksize int, device string) error
- func (g *Guestfs) Mke2journal_L(blocksize int, label string, device string) error
- func (g *Guestfs) Mke2journal_U(blocksize int, uuid string, device string) error
- func (g *Guestfs) Mkfifo(mode int, path string) error
- func (g *Guestfs) Mkfs(fstype string, device string, optargs *OptargsMkfs) error
- func (g *Guestfs) Mkfs_b(fstype string, blocksize int, device string) error
- func (g *Guestfs) Mkfs_btrfs(devices []string, optargs *OptargsMkfs_btrfs) error
- func (g *Guestfs) Mklost_and_found(mountpoint string) error
- func (g *Guestfs) Mkmountpoint(exemptpath string) error
- func (g *Guestfs) Mknod(mode int, devmajor int, devminor int, path string) error
- func (g *Guestfs) Mknod_b(mode int, devmajor int, devminor int, path string) error
- func (g *Guestfs) Mknod_c(mode int, devmajor int, devminor int, path string) error
- func (g *Guestfs) Mksquashfs(path string, filename string, optargs *OptargsMksquashfs) error
- func (g *Guestfs) Mkswap(device string, optargs *OptargsMkswap) error
- func (g *Guestfs) Mkswap_L(label string, device string) error
- func (g *Guestfs) Mkswap_U(uuid string, device string) error
- func (g *Guestfs) Mkswap_file(path string) error
- func (g *Guestfs) Mktemp(tmpl string, optargs *OptargsMktemp) (string, error)
- func (g *Guestfs) Modprobe(modulename string) error
- func (g *Guestfs) Mount(mountable string, mountpoint string) error
- func (g *Guestfs) Mount_9p(mounttag string, mountpoint string, optargs *OptargsMount_9p) error
- func (g *Guestfs) Mount_local(localmountpoint string, optargs *OptargsMount_local) error
- func (g *Guestfs) Mount_local_run() error
- func (g *Guestfs) Mount_loop(file string, mountpoint string) error
- func (g *Guestfs) Mount_options(options string, mountable string, mountpoint string) error
- func (g *Guestfs) Mount_ro(mountable string, mountpoint string) error
- func (g *Guestfs) Mount_vfs(options string, vfstype string, mountable string, mountpoint string) error
- func (g *Guestfs) Mountable_device(mountable string) (string, error)
- func (g *Guestfs) Mountable_subvolume(mountable string) (string, error)
- func (g *Guestfs) Mountpoints() (map[string]string, error)
- func (g *Guestfs) Mounts() ([]string, error)
- func (g *Guestfs) Mv(src string, dest string) error
- func (g *Guestfs) Nr_devices() (int, error)
- func (g *Guestfs) Ntfs_3g_probe(rw bool, device string) (int, error)
- func (g *Guestfs) Ntfscat_i(device string, inode int64, filename string) error
- func (g *Guestfs) Ntfsclone_in(backupfile string, device string) error
- func (g *Guestfs) Ntfsclone_out(device string, backupfile string, optargs *OptargsNtfsclone_out) error
- func (g *Guestfs) Ntfsfix(device string, optargs *OptargsNtfsfix) error
- func (g *Guestfs) Ntfsresize(device string, optargs *OptargsNtfsresize) error
- func (g *Guestfs) Ntfsresize_size(device string, size int64) error
- func (g *Guestfs) Parse_environment() error
- func (g *Guestfs) Parse_environment_list(environment []string) error
- func (g *Guestfs) Part_add(device string, prlogex string, startsect int64, endsect int64) error
- func (g *Guestfs) Part_del(device string, partnum int) error
- func (g *Guestfs) Part_disk(device string, parttype string) error
- func (g *Guestfs) Part_expand_gpt(device string) error
- func (g *Guestfs) Part_get_bootable(device string, partnum int) (bool, error)
- func (g *Guestfs) Part_get_disk_guid(device string) (string, error)
- func (g *Guestfs) Part_get_gpt_attributes(device string, partnum int) (int64, error)
- func (g *Guestfs) Part_get_gpt_guid(device string, partnum int) (string, error)
- func (g *Guestfs) Part_get_gpt_type(device string, partnum int) (string, error)
- func (g *Guestfs) Part_get_mbr_id(device string, partnum int) (int, error)
- func (g *Guestfs) Part_get_mbr_part_type(device string, partnum int) (string, error)
- func (g *Guestfs) Part_get_name(device string, partnum int) (string, error)
- func (g *Guestfs) Part_get_parttype(device string) (string, error)
- func (g *Guestfs) Part_init(device string, parttype string) error
- func (g *Guestfs) Part_list(device string) (*[]Partition, error)
- func (g *Guestfs) Part_resize(device string, partnum int, endsect int64) error
- func (g *Guestfs) Part_set_bootable(device string, partnum int, bootable bool) error
- func (g *Guestfs) Part_set_disk_guid(device string, guid string) error
- func (g *Guestfs) Part_set_disk_guid_random(device string) error
- func (g *Guestfs) Part_set_gpt_attributes(device string, partnum int, attributes int64) error
- func (g *Guestfs) Part_set_gpt_guid(device string, partnum int, guid string) error
- func (g *Guestfs) Part_set_gpt_type(device string, partnum int, guid string) error
- func (g *Guestfs) Part_set_mbr_id(device string, partnum int, idbyte int) error
- func (g *Guestfs) Part_set_name(device string, partnum int, name string) error
- func (g *Guestfs) Part_to_dev(partition string) (string, error)
- func (g *Guestfs) Part_to_partnum(partition string) (int, error)
- func (g *Guestfs) Ping_daemon() error
- func (g *Guestfs) Pread(path string, count int, offset int64) ([]byte, error)
- func (g *Guestfs) Pread_device(device string, count int, offset int64) ([]byte, error)
- func (g *Guestfs) Pvchange_uuid(device string) error
- func (g *Guestfs) Pvchange_uuid_all() error
- func (g *Guestfs) Pvcreate(device string) error
- func (g *Guestfs) Pvremove(device string) error
- func (g *Guestfs) Pvresize(device string) error
- func (g *Guestfs) Pvresize_size(device string, size int64) error
- func (g *Guestfs) Pvs() ([]string, error)
- func (g *Guestfs) Pvs_full() (*[]PV, error)
- func (g *Guestfs) Pvuuid(device string) (string, error)
- func (g *Guestfs) Pwrite(path string, content []byte, offset int64) (int, error)
- func (g *Guestfs) Pwrite_device(device string, content []byte, offset int64) (int, error)
- func (g *Guestfs) Read_file(path string) ([]byte, error)
- func (g *Guestfs) Read_lines(path string) ([]string, error)
- func (g *Guestfs) Readdir(dir string) (*[]Dirent, error)
- func (g *Guestfs) Readlink(path string) (string, error)
- func (g *Guestfs) Readlinklist(path string, names []string) ([]string, error)
- func (g *Guestfs) Realpath(path string) (string, error)
- func (g *Guestfs) Remount(mountpoint string, optargs *OptargsRemount) error
- func (g *Guestfs) Remove_drive(label string) error
- func (g *Guestfs) Removexattr(xattr string, path string) error
- func (g *Guestfs) Rename(oldpath string, newpath string) error
- func (g *Guestfs) Resize2fs(device string) error
- func (g *Guestfs) Resize2fs_M(device string) error
- func (g *Guestfs) Resize2fs_size(device string, size int64) error
- func (g *Guestfs) Rm(path string) error
- func (g *Guestfs) Rm_f(path string) error
- func (g *Guestfs) Rm_rf(path string) error
- func (g *Guestfs) Rmdir(path string) error
- func (g *Guestfs) Rmmountpoint(exemptpath string) error
- func (g *Guestfs) Rsync(src string, dest string, optargs *OptargsRsync) error
- func (g *Guestfs) Rsync_in(remote string, dest string, optargs *OptargsRsync_in) error
- func (g *Guestfs) Rsync_out(src string, remote string, optargs *OptargsRsync_out) error
- func (g *Guestfs) Scrub_device(device string) error
- func (g *Guestfs) Scrub_file(file string) error
- func (g *Guestfs) Scrub_freespace(dir string) error
- func (g *Guestfs) Selinux_relabel(specfile string, path string, optargs *OptargsSelinux_relabel) error
- func (g *Guestfs) Set_append(append *string) error
- func (g *Guestfs) Set_attach_method(backend string) error
- func (g *Guestfs) Set_autosync(autosync bool) error
- func (g *Guestfs) Set_backend(backend string) error
- func (g *Guestfs) Set_backend_setting(name string, val string) error
- func (g *Guestfs) Set_backend_settings(settings []string) error
- func (g *Guestfs) Set_cachedir(cachedir *string) error
- func (g *Guestfs) Set_direct(direct bool) error
- func (g *Guestfs) Set_e2attrs(file string, attrs string, optargs *OptargsSet_e2attrs) error
- func (g *Guestfs) Set_e2generation(file string, generation int64) error
- func (g *Guestfs) Set_e2label(device string, label string) error
- func (g *Guestfs) Set_e2uuid(device string, uuid string) error
- func (g *Guestfs) Set_hv(hv string) error
- func (g *Guestfs) Set_identifier(identifier string) error
- func (g *Guestfs) Set_label(mountable string, label string) error
- func (g *Guestfs) Set_libvirt_requested_credential(index int, cred []byte) error
- func (g *Guestfs) Set_libvirt_supported_credentials(creds []string) error
- func (g *Guestfs) Set_memsize(memsize int) error
- func (g *Guestfs) Set_network(network bool) error
- func (g *Guestfs) Set_path(searchpath *string) error
- func (g *Guestfs) Set_pgroup(pgroup bool) error
- func (g *Guestfs) Set_program(program string) error
- func (g *Guestfs) Set_qemu(hv *string) error
- func (g *Guestfs) Set_recovery_proc(recoveryproc bool) error
- func (g *Guestfs) Set_selinux(selinux bool) error
- func (g *Guestfs) Set_smp(smp int) error
- func (g *Guestfs) Set_tmpdir(tmpdir *string) error
- func (g *Guestfs) Set_trace(trace bool) error
- func (g *Guestfs) Set_uuid(device string, uuid string) error
- func (g *Guestfs) Set_uuid_random(device string) error
- func (g *Guestfs) Set_verbose(verbose bool) error
- func (g *Guestfs) Setcon(context string) error
- func (g *Guestfs) Setxattr(xattr string, val string, vallen int, path string) error
- func (g *Guestfs) Sfdisk(device string, cyls int, heads int, sectors int, lines []string) error
- func (g *Guestfs) SfdiskM(device string, lines []string) error
- func (g *Guestfs) Sfdisk_N(device string, partnum int, cyls int, heads int, sectors int, line string) error
- func (g *Guestfs) Sfdisk_disk_geometry(device string) (string, error)
- func (g *Guestfs) Sfdisk_kernel_geometry(device string) (string, error)
- func (g *Guestfs) Sfdisk_l(device string) (string, error)
- func (g *Guestfs) Sh(command string) (string, error)
- func (g *Guestfs) Sh_lines(command string) ([]string, error)
- func (g *Guestfs) Shutdown() error
- func (g *Guestfs) Sleep(secs int) error
- func (g *Guestfs) Stat(path string) (*Stat, error)
- func (g *Guestfs) Statns(path string) (*StatNS, error)
- func (g *Guestfs) Statvfs(path string) (*StatVFS, error)
- func (g *Guestfs) String() string
- func (g *Guestfs) Strings(path string) ([]string, error)
- func (g *Guestfs) Strings_e(encoding string, path string) ([]string, error)
- func (g *Guestfs) Swapoff_device(device string) error
- func (g *Guestfs) Swapoff_file(file string) error
- func (g *Guestfs) Swapoff_label(label string) error
- func (g *Guestfs) Swapoff_uuid(uuid string) error
- func (g *Guestfs) Swapon_device(device string) error
- func (g *Guestfs) Swapon_file(file string) error
- func (g *Guestfs) Swapon_label(label string) error
- func (g *Guestfs) Swapon_uuid(uuid string) error
- func (g *Guestfs) Sync() error
- func (g *Guestfs) Syslinux(device string, optargs *OptargsSyslinux) error
- func (g *Guestfs) Tail(path string) ([]string, error)
- func (g *Guestfs) Tail_n(nrlines int, path string) ([]string, error)
- func (g *Guestfs) Tar_in(tarfile string, directory string, optargs *OptargsTar_in) error
- func (g *Guestfs) Tar_out(directory string, tarfile string, optargs *OptargsTar_out) error
- func (g *Guestfs) Tgz_in(tarball string, directory string) error
- func (g *Guestfs) Tgz_out(directory string, tarball string) error
- func (g *Guestfs) Touch(path string) error
- func (g *Guestfs) Truncate(path string) error
- func (g *Guestfs) Truncate_size(path string, size int64) error
- func (g *Guestfs) Tune2fs(device string, optargs *OptargsTune2fs) error
- func (g *Guestfs) Tune2fs_l(device string) (map[string]string, error)
- func (g *Guestfs) Txz_in(tarball string, directory string) error
- func (g *Guestfs) Txz_out(directory string, tarball string) error
- func (g *Guestfs) Umask(mask int) (int, error)
- func (g *Guestfs) Umount(pathordevice string, optargs *OptargsUmount) error
- func (g *Guestfs) Umount_all() error
- func (g *Guestfs) Umount_local(optargs *OptargsUmount_local) error
- func (g *Guestfs) Upload(filename string, remotefilename string) error
- func (g *Guestfs) Upload_offset(filename string, remotefilename string, offset int64) error
- func (g *Guestfs) User_cancel() error
- func (g *Guestfs) Utimens(path string, atsecs int64, atnsecs int64, mtsecs int64, mtnsecs int64) error
- func (g *Guestfs) Utsname() (*UTSName, error)
- func (g *Guestfs) Version() (*Version, error)
- func (g *Guestfs) Vfs_label(mountable string) (string, error)
- func (g *Guestfs) Vfs_minimum_size(mountable string) (int64, error)
- func (g *Guestfs) Vfs_type(mountable string) (string, error)
- func (g *Guestfs) Vfs_uuid(mountable string) (string, error)
- func (g *Guestfs) Vg_activate(activate bool, volgroups []string) error
- func (g *Guestfs) Vg_activate_all(activate bool) error
- func (g *Guestfs) Vgchange_uuid(vg string) error
- func (g *Guestfs) Vgchange_uuid_all() error
- func (g *Guestfs) Vgcreate(volgroup string, physvols []string) error
- func (g *Guestfs) Vglvuuids(vgname string) ([]string, error)
- func (g *Guestfs) Vgmeta(vgname string) ([]byte, error)
- func (g *Guestfs) Vgpvuuids(vgname string) ([]string, error)
- func (g *Guestfs) Vgremove(vgname string) error
- func (g *Guestfs) Vgrename(volgroup string, newvolgroup string) error
- func (g *Guestfs) Vgs() ([]string, error)
- func (g *Guestfs) Vgs_full() (*[]VG, error)
- func (g *Guestfs) Vgscan() error
- func (g *Guestfs) Vguuid(vgname string) (string, error)
- func (g *Guestfs) Wait_ready() error
- func (g *Guestfs) Wc_c(path string) (int, error)
- func (g *Guestfs) Wc_l(path string) (int, error)
- func (g *Guestfs) Wc_w(path string) (int, error)
- func (g *Guestfs) Wipefs(device string) error
- func (g *Guestfs) Write(path string, content []byte) error
- func (g *Guestfs) Write_append(path string, content []byte) error
- func (g *Guestfs) Write_file(path string, content string, size int) error
- func (g *Guestfs) Xfs_admin(device string, optargs *OptargsXfs_admin) error
- func (g *Guestfs) Xfs_growfs(path string, optargs *OptargsXfs_growfs) error
- func (g *Guestfs) Xfs_info(pathordevice string) (*XFSInfo, error)
- func (g *Guestfs) Xfs_repair(device string, optargs *OptargsXfs_repair) (int, error)
- func (g *Guestfs) Yara_destroy() error
- func (g *Guestfs) Yara_load(filename string) error
- func (g *Guestfs) Yara_scan(path string) (*[]YaraDetection, error)
- func (g *Guestfs) Zegrep(regex string, path string) ([]string, error)
- func (g *Guestfs) Zegrepi(regex string, path string) ([]string, error)
- func (g *Guestfs) Zero(device string) error
- func (g *Guestfs) Zero_device(device string) error
- func (g *Guestfs) Zero_free_space(directory string) error
- func (g *Guestfs) Zerofree(device string) error
- func (g *Guestfs) Zfgrep(pattern string, path string) ([]string, error)
- func (g *Guestfs) Zfgrepi(pattern string, path string) ([]string, error)
- func (g *Guestfs) Zfile(meth string, path string) (string, error)
- func (g *Guestfs) Zgrep(regex string, path string) ([]string, error)
- func (g *Guestfs) Zgrepi(regex string, path string) ([]string, error)
- type GuestfsError
- type HivexNode
- type HivexValue
- type INotifyEvent
- type ISOInfo
- type IntBool
- type LV
- type MDStat
- type OptargsAdd_domain
- type OptargsAdd_drive
- type OptargsAdd_drive_scratch
- type OptargsAdd_libvirt_dom
- type OptargsAug_transform
- type OptargsBtrfs_filesystem_defragment
- type OptargsBtrfs_filesystem_resize
- type OptargsBtrfs_fsck
- type OptargsBtrfs_image
- type OptargsBtrfs_subvolume_create
- type OptargsBtrfs_subvolume_snapshot
- type OptargsCompress_device_out
- type OptargsCompress_out
- type OptargsCopy_attributes
- type OptargsCopy_device_to_device
- type OptargsCopy_device_to_file
- type OptargsCopy_file_to_device
- type OptargsCopy_file_to_file
- type OptargsCpio_out
- type OptargsCryptsetup_open
- type OptargsDisk_create
- type OptargsDownload_blocks
- type OptargsE2fsck
- type OptargsFstrim
- type OptargsGlob_expand
- type OptargsGrep
- type OptargsHivex_open
- type OptargsInspect_get_icon
- type OptargsInternal_test
- type OptargsInternal_test_63_optargs
- type OptargsInternal_test_only_optargs
- type OptargsIs_blockdev
- type OptargsIs_chardev
- type OptargsIs_dir
- type OptargsIs_fifo
- type OptargsIs_file
- type OptargsIs_socket
- type OptargsMd_create
- type OptargsMke2fs
- type OptargsMkfs
- type OptargsMkfs_btrfs
- type OptargsMksquashfs
- type OptargsMkswap
- type OptargsMktemp
- type OptargsMount_9p
- type OptargsMount_local
- type OptargsNtfsclone_out
- type OptargsNtfsfix
- type OptargsNtfsresize
- type OptargsRemount
- type OptargsRsync
- type OptargsRsync_in
- type OptargsRsync_out
- type OptargsSelinux_relabel
- type OptargsSet_e2attrs
- type OptargsSyslinux
- type OptargsTar_in
- type OptargsTar_out
- type OptargsTune2fs
- type OptargsUmount
- type OptargsUmount_local
- type OptargsXfs_admin
- type OptargsXfs_growfs
- type OptargsXfs_repair
- type PV
- type Partition
- type Stat
- type StatNS
- type StatVFS
- type TSKDirent
- type UTSName
- type VG
- type Version
- type XAttr
- type XFSInfo
- type YaraDetection
Constants ¶
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 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 BTRFSQgroup ¶
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 Guestfs ¶
type Guestfs struct {
// contains filtered or unexported fields
}
Handle.
func Create_flags ¶
func Create_flags(flags CreateFlags) (*Guestfs, error)
func (*Guestfs) Acl_delete_def_file ¶
acl_delete_def_file : delete the default POSIX ACL of a directory
func (*Guestfs) Acl_get_file ¶
acl_get_file : get the POSIX ACL attached to a file
func (*Guestfs) Acl_set_file ¶
acl_set_file : set the POSIX ACL attached to a file
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 ¶
add_drive_ro : add a drive in snapshot mode (read-only)
func (*Guestfs) Add_drive_ro_with_if ¶
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 ¶
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_defnode ¶
aug_defnode : define an Augeas node
func (*Guestfs) Aug_defvar ¶
aug_defvar : define an Augeas variable
func (*Guestfs) Aug_insert ¶
aug_insert : insert a sibling Augeas node
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_all_groups ¶
available_all_groups : return a list of all optional groups
func (*Guestfs) Base64_out ¶
base64_out : download file and encode as base64
func (*Guestfs) Blkdiscard ¶
blkdiscard : discard all blocks on a device
func (*Guestfs) Blkdiscardzeroes ¶
blkdiscardzeroes : return true if discarded blocks are read as zeroes
func (*Guestfs) Blockdev_flushbufs ¶
blockdev_flushbufs : flush device buffers
func (*Guestfs) Blockdev_getbsz ¶
blockdev_getbsz : get blocksize of block device
func (*Guestfs) Blockdev_getro ¶
blockdev_getro : is block device set to read-only
func (*Guestfs) Blockdev_getsize64 ¶
blockdev_getsize64 : get total size of device in bytes
func (*Guestfs) Blockdev_getss ¶
blockdev_getss : get sectorsize of block device
func (*Guestfs) Blockdev_getsz ¶
blockdev_getsz : get total size of device in 512-byte sectors
func (*Guestfs) Blockdev_rereadpt ¶
blockdev_rereadpt : reread partition table
func (*Guestfs) Blockdev_setbsz ¶
blockdev_setbsz : set blocksize of block device
func (*Guestfs) Blockdev_setra ¶
blockdev_setra : set readahead
func (*Guestfs) Blockdev_setro ¶
blockdev_setro : set block device to read-only
func (*Guestfs) Blockdev_setrw ¶
blockdev_setrw : set block device to read-write
func (*Guestfs) Btrfs_balance_cancel ¶
btrfs_balance_cancel : cancel a running or paused balance
func (*Guestfs) Btrfs_balance_pause ¶
btrfs_balance_pause : pause a running balance
func (*Guestfs) Btrfs_balance_resume ¶
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 ¶
btrfs_device_add : add devices to a btrfs filesystem
func (*Guestfs) Btrfs_device_delete ¶
btrfs_device_delete : remove devices from a btrfs filesystem
func (*Guestfs) Btrfs_filesystem_balance ¶
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 ¶
btrfs_filesystem_show : list devices for btrfs filesystem
func (*Guestfs) Btrfs_filesystem_sync ¶
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 ¶
btrfs_qgroup_assign : add a qgroup to a parent qgroup
func (*Guestfs) Btrfs_qgroup_create ¶
btrfs_qgroup_create : create a subvolume quota group
func (*Guestfs) Btrfs_qgroup_destroy ¶
btrfs_qgroup_destroy : destroy a subvolume quota group
func (*Guestfs) Btrfs_qgroup_limit ¶
btrfs_qgroup_limit : limit the size of a subvolume
func (*Guestfs) Btrfs_qgroup_remove ¶
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 ¶
btrfs_quota_enable : enable or disable subvolume quota support
func (*Guestfs) Btrfs_quota_rescan ¶
btrfs_quota_rescan : trash all qgroup numbers and scan the metadata again with the current config
func (*Guestfs) Btrfs_replace ¶
btrfs_replace : replace a btrfs managed device with another device
func (*Guestfs) Btrfs_rescue_chunk_recover ¶
btrfs_rescue_chunk_recover : recover the chunk tree of btrfs filesystem
func (*Guestfs) Btrfs_rescue_super_recover ¶
btrfs_rescue_super_recover : recover bad superblocks from good copies
func (*Guestfs) Btrfs_scrub_cancel ¶
btrfs_scrub_cancel : cancel a running scrub
func (*Guestfs) Btrfs_scrub_resume ¶
btrfs_scrub_resume : resume a previously canceled or interrupted scrub
func (*Guestfs) Btrfs_scrub_start ¶
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 ¶
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 ¶
btrfs_subvolume_delete : delete a btrfs subvolume or snapshot
func (*Guestfs) Btrfs_subvolume_get_default ¶
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 ¶
btrfs_subvolume_set_default : set default btrfs subvolume
func (*Guestfs) Btrfs_subvolume_show ¶
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 ¶
btrfstune_enable_extended_inode_refs : enable extended inode refs
func (*Guestfs) Btrfstune_enable_skinny_metadata_extent_refs ¶
btrfstune_enable_skinny_metadata_extent_refs : enable skinny metadata extent refs
func (*Guestfs) Btrfstune_seeding ¶
btrfstune_seeding : enable or disable seeding of a btrfs device
func (*Guestfs) Canonical_device_name ¶
canonical_device_name : return canonical device name
func (*Guestfs) Cap_get_file ¶
cap_get_file : get the Linux capabilities attached to a file
func (*Guestfs) Cap_set_file ¶
cap_set_file : set the Linux capabilities attached to a file
func (*Guestfs) Case_sensitive_path ¶
case_sensitive_path : return true path on case-insensitive filesystem
func (*Guestfs) Checksum_device ¶
checksum_device : compute MD5, SHAx or CRC checksum of the contents of a device
func (*Guestfs) Checksums_out ¶
checksums_out : compute MD5, SHAx or CRC checksum of files in a directory
func (*Guestfs) Clear_backend_setting ¶
clear_backend_setting : remove a single per-backend settings string
func (*Guestfs) Clevis_luks_unlock ¶
clevis_luks_unlock : open an encrypted LUKS block device with Clevis and Tang
func (*Guestfs) Command_lines ¶
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) 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) 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 ¶
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) Debug_drives ¶
debug_drives : debug the drives (internal use only)
func (*Guestfs) Debug_upload ¶
debug_upload : upload a file to the appliance (internal use only)
func (*Guestfs) Device_index ¶
device_index : convert device to index
func (*Guestfs) Device_name ¶
device_name : convert device index to name
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 ¶
disk_format : detect the disk format of a disk image
func (*Guestfs) Disk_has_backing_file ¶
disk_has_backing_file : return whether disk has a backing file
func (*Guestfs) Disk_virtual_size ¶
disk_virtual_size : return virtual size of a disk
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 ¶
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 ¶
drop_caches : drop kernel page cache, dentries and inodes
func (*Guestfs) E2fsck ¶
func (g *Guestfs) E2fsck(device string, optargs *OptargsE2fsck) error
e2fsck : check an ext2/ext3 filesystem
func (*Guestfs) Echo_daemon ¶
echo_daemon : echo arguments back to the client
func (*Guestfs) Extlinux ¶
extlinux : install the SYSLINUX bootloader on an ext2/3/4 or btrfs filesystem
func (*Guestfs) F2fs_expand ¶
f2fs_expand : expand a f2fs filesystem
func (*Guestfs) Fallocate64 ¶
fallocate64 : preallocate a file in the guest filesystem
func (*Guestfs) Feature_available ¶
feature_available : test availability of some parts of the API
func (*Guestfs) File_architecture ¶
file_architecture : detect the architecture of a binary file
func (*Guestfs) Filesystem_available ¶
filesystem_available : check if filesystem is available
func (*Guestfs) Filesystem_walk ¶
filesystem_walk : walk through the filesystem content
func (*Guestfs) Fill_pattern ¶
fill_pattern : fill a file with a repeating pattern of bytes
func (*Guestfs) Find_inode ¶
find_inode : search the entries associated to the given inode
func (*Guestfs) Findfs_label ¶
findfs_label : find a filesystem by label
func (*Guestfs) Findfs_uuid ¶
findfs_uuid : find a filesystem by UUID
func (*Guestfs) Fstrim ¶
func (g *Guestfs) Fstrim(mountpoint string, optargs *OptargsFstrim) error
fstrim : trim free space in a filesystem
func (*Guestfs) Get_append ¶
get_append : get the additional kernel options
func (*Guestfs) Get_attach_method ¶
get_attach_method : get the backend
func (*Guestfs) Get_autosync ¶
get_autosync : get autosync mode
func (*Guestfs) Get_backend ¶
get_backend : get the backend
func (*Guestfs) Get_backend_setting ¶
get_backend_setting : get a single per-backend settings string
func (*Guestfs) Get_backend_settings ¶
get_backend_settings : get per-backend settings
func (*Guestfs) Get_cachedir ¶
get_cachedir : get the appliance cache directory
func (*Guestfs) Get_direct ¶
get_direct : get direct appliance mode flag
func (*Guestfs) Get_e2attrs ¶
get_e2attrs : get ext2 file attributes of a file
func (*Guestfs) Get_e2generation ¶
get_e2generation : get ext2 file generation of a file
func (*Guestfs) Get_e2label ¶
get_e2label : get the ext2/3/4 filesystem label
func (*Guestfs) Get_e2uuid ¶
get_e2uuid : get the ext2/3/4 filesystem UUID
func (*Guestfs) Get_identifier ¶
get_identifier : get the handle identifier
func (*Guestfs) Get_libvirt_requested_credential_challenge ¶
get_libvirt_requested_credential_challenge : challenge of i'th requested credential
func (*Guestfs) Get_libvirt_requested_credential_defresult ¶
get_libvirt_requested_credential_defresult : default result of i'th requested credential
func (*Guestfs) Get_libvirt_requested_credential_prompt ¶
get_libvirt_requested_credential_prompt : prompt of i'th requested credential
func (*Guestfs) Get_libvirt_requested_credentials ¶
get_libvirt_requested_credentials : get list of credentials requested by libvirt
func (*Guestfs) Get_memsize ¶
get_memsize : get memory allocated to the hypervisor
func (*Guestfs) Get_network ¶
get_network : get enable network flag
func (*Guestfs) Get_pgroup ¶
get_pgroup : get process group flag
func (*Guestfs) Get_program ¶
get_program : get the program name
func (*Guestfs) Get_recovery_proc ¶
get_recovery_proc : get recovery process enabled flag
func (*Guestfs) Get_selinux ¶
get_selinux : get SELinux enabled flag
func (*Guestfs) Get_sockdir ¶
get_sockdir : get the temporary directory for sockets
func (*Guestfs) Get_tmpdir ¶
get_tmpdir : get the temporary directory
func (*Guestfs) Get_verbose ¶
get_verbose : get verbose mode
func (*Guestfs) Glob_expand ¶
func (g *Guestfs) Glob_expand(pattern string, optargs *OptargsGlob_expand) ([]string, error)
glob_expand : expand a wildcard path
func (*Guestfs) Grub_install ¶
grub_install : install GRUB 1
func (*Guestfs) Hivex_close ¶
hivex_close : close the current hivex handle
func (*Guestfs) Hivex_commit ¶
hivex_commit : commit (write) changes back to the hive
func (*Guestfs) Hivex_node_add_child ¶
hivex_node_add_child : add a child node
func (*Guestfs) Hivex_node_children ¶
hivex_node_children : return list of nodes which are subkeys of node
func (*Guestfs) Hivex_node_delete_child ¶
hivex_node_delete_child : delete a node (recursively)
func (*Guestfs) Hivex_node_get_child ¶
hivex_node_get_child : return the named child of node
func (*Guestfs) Hivex_node_get_value ¶
hivex_node_get_value : return the named value
func (*Guestfs) Hivex_node_name ¶
hivex_node_name : return the name of the node
func (*Guestfs) Hivex_node_parent ¶
hivex_node_parent : return the parent of node
func (*Guestfs) Hivex_node_set_value ¶
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 ¶
hivex_root : return the root node of the hive
func (*Guestfs) Hivex_value_key ¶
hivex_value_key : return the key field from the (key, datatype, data) tuple
func (*Guestfs) Hivex_value_string ¶
hivex_value_string : return the data field as a UTF-8 string
func (*Guestfs) Hivex_value_type ¶
hivex_value_type : return the data type from the (key, datatype, data) tuple
func (*Guestfs) Hivex_value_utf8 ¶
hivex_value_utf8 : return the data field as a UTF-8 string
func (*Guestfs) Hivex_value_value ¶
hivex_value_value : return the data field from the (key, datatype, data) tuple
func (*Guestfs) Initrd_cat ¶
initrd_cat : list the contents of a single file in an initrd
func (*Guestfs) Initrd_list ¶
initrd_list : list files in an initrd
func (*Guestfs) Inotify_add_watch ¶
inotify_add_watch : add an inotify watch
func (*Guestfs) Inotify_close ¶
inotify_close : close the inotify handle
func (*Guestfs) Inotify_files ¶
inotify_files : return list of watched files that had events
func (*Guestfs) Inotify_init ¶
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 ¶
inotify_rm_watch : remove an inotify watch
func (*Guestfs) Inspect_get_arch ¶
inspect_get_arch : get architecture of inspected operating system
func (*Guestfs) Inspect_get_build_id ¶
inspect_get_build_id : get the system build ID
func (*Guestfs) Inspect_get_distro ¶
inspect_get_distro : get distro of inspected operating system
func (*Guestfs) Inspect_get_drive_mappings ¶
inspect_get_drive_mappings : get drive letter mappings
func (*Guestfs) Inspect_get_filesystems ¶
inspect_get_filesystems : get filesystems associated with inspected operating system
func (*Guestfs) Inspect_get_format ¶
inspect_get_format : get format of inspected operating system
func (*Guestfs) Inspect_get_hostname ¶
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 ¶
inspect_get_major_version : get major version of inspected operating system
func (*Guestfs) Inspect_get_minor_version ¶
inspect_get_minor_version : get minor version of inspected operating system
func (*Guestfs) Inspect_get_mountpoints ¶
inspect_get_mountpoints : get mountpoints of inspected operating system
func (*Guestfs) Inspect_get_osinfo ¶
inspect_get_osinfo : get a possible osinfo short ID corresponding to this operating system
func (*Guestfs) Inspect_get_package_format ¶
inspect_get_package_format : get package format used by the operating system
func (*Guestfs) Inspect_get_package_management ¶
inspect_get_package_management : get package management tool used by the operating system
func (*Guestfs) Inspect_get_product_name ¶
inspect_get_product_name : get product name of inspected operating system
func (*Guestfs) Inspect_get_product_variant ¶
inspect_get_product_variant : get product variant of inspected operating system
func (*Guestfs) Inspect_get_roots ¶
inspect_get_roots : return list of operating systems found by last inspection
func (*Guestfs) Inspect_get_type ¶
inspect_get_type : get type of inspected operating system
func (*Guestfs) Inspect_get_windows_current_control_set ¶
inspect_get_windows_current_control_set : get Windows CurrentControlSet of inspected operating system
func (*Guestfs) Inspect_get_windows_software_hive ¶
inspect_get_windows_software_hive : get the path of the Windows software hive
func (*Guestfs) Inspect_get_windows_system_hive ¶
inspect_get_windows_system_hive : get the path of the Windows system hive
func (*Guestfs) Inspect_get_windows_systemroot ¶
inspect_get_windows_systemroot : get Windows systemroot of inspected operating system
func (*Guestfs) Inspect_is_live ¶
inspect_is_live : get live flag for install disk
func (*Guestfs) Inspect_is_multipart ¶
inspect_is_multipart : get multipart flag for install disk
func (*Guestfs) Inspect_is_netinst ¶
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 ¶
inspect_os : inspect disk and return list of operating systems found
func (*Guestfs) Internal_exit ¶
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 ¶
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 ¶
internal_test_rbool : internal test function - do not use
func (*Guestfs) Internal_test_rboolerr ¶
internal_test_rboolerr : internal test function - do not use
func (*Guestfs) Internal_test_rbufferout ¶
internal_test_rbufferout : internal test function - do not use
func (*Guestfs) Internal_test_rbufferouterr ¶
internal_test_rbufferouterr : internal test function - do not use
func (*Guestfs) Internal_test_rconstoptstring ¶
internal_test_rconstoptstring : internal test function - do not use
func (*Guestfs) Internal_test_rconstoptstringerr ¶
internal_test_rconstoptstringerr : internal test function - do not use
func (*Guestfs) Internal_test_rconststring ¶
internal_test_rconststring : internal test function - do not use
func (*Guestfs) Internal_test_rconststringerr ¶
internal_test_rconststringerr : internal test function - do not use
func (*Guestfs) Internal_test_rhashtable ¶
internal_test_rhashtable : internal test function - do not use
func (*Guestfs) Internal_test_rhashtableerr ¶
internal_test_rhashtableerr : internal test function - do not use
func (*Guestfs) Internal_test_rint ¶
internal_test_rint : internal test function - do not use
func (*Guestfs) Internal_test_rint64 ¶
internal_test_rint64 : internal test function - do not use
func (*Guestfs) Internal_test_rint64err ¶
internal_test_rint64err : internal test function - do not use
func (*Guestfs) Internal_test_rinterr ¶
internal_test_rinterr : internal test function - do not use
func (*Guestfs) Internal_test_rstring ¶
internal_test_rstring : internal test function - do not use
func (*Guestfs) Internal_test_rstringerr ¶
internal_test_rstringerr : internal test function - do not use
func (*Guestfs) Internal_test_rstringlist ¶
internal_test_rstringlist : internal test function - do not use
func (*Guestfs) Internal_test_rstringlisterr ¶
internal_test_rstringlisterr : internal test function - do not use
func (*Guestfs) Internal_test_rstruct ¶
internal_test_rstruct : internal test function - do not use
func (*Guestfs) Internal_test_rstructerr ¶
internal_test_rstructerr : internal test function - do not use
func (*Guestfs) Internal_test_rstructlist ¶
internal_test_rstructlist : internal test function - do not use
func (*Guestfs) Internal_test_rstructlisterr ¶
internal_test_rstructlisterr : internal test function - do not use
func (*Guestfs) Internal_test_set_output ¶
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_chardev ¶
func (g *Guestfs) Is_chardev(path string, optargs *OptargsIs_chardev) (bool, error)
is_chardev : test if character device
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 ¶
is_launching : is launching subprocess
func (*Guestfs) Is_socket ¶
func (g *Guestfs) Is_socket(path string, optargs *OptargsIs_socket) (bool, error)
is_socket : test if socket
func (*Guestfs) Is_symlink ¶
is_symlink : test if symbolic link
func (*Guestfs) Is_whole_device ¶
is_whole_device : test if a device is a whole device
func (*Guestfs) Is_zero_device ¶
is_zero_device : test if a device contains all zero bytes
func (*Guestfs) Isoinfo_device ¶
isoinfo_device : get ISO information from primary volume descriptor of device
func (*Guestfs) Journal_close ¶
journal_close : close the systemd journal
func (*Guestfs) Journal_get ¶
journal_get : read the current journal entry
func (*Guestfs) Journal_get_data_threshold ¶
journal_get_data_threshold : get the data threshold for reading journal entries
func (*Guestfs) Journal_get_realtime_usec ¶
journal_get_realtime_usec : get the timestamp of the current journal entry
func (*Guestfs) Journal_next ¶
journal_next : move to the next journal entry
func (*Guestfs) Journal_open ¶
journal_open : open the systemd journal
func (*Guestfs) Journal_set_data_threshold ¶
journal_set_data_threshold : set the data threshold for reading journal entries
func (*Guestfs) Journal_skip ¶
journal_skip : skip forwards or backwards in the journal
func (*Guestfs) Kill_subprocess ¶
kill_subprocess : kill the hypervisor
func (*Guestfs) Ldmtool_create_all ¶
ldmtool_create_all : scan and create Windows dynamic disk volumes
func (*Guestfs) Ldmtool_diskgroup_disks ¶
ldmtool_diskgroup_disks : return the disks in a Windows dynamic disk group
func (*Guestfs) Ldmtool_diskgroup_name ¶
ldmtool_diskgroup_name : return the name of a Windows dynamic disk group
func (*Guestfs) Ldmtool_diskgroup_volumes ¶
ldmtool_diskgroup_volumes : return the volumes in a Windows dynamic disk group
func (*Guestfs) Ldmtool_remove_all ¶
ldmtool_remove_all : remove all Windows dynamic disk volumes
func (*Guestfs) Ldmtool_scan ¶
ldmtool_scan : scan for Windows dynamic disks
func (*Guestfs) Ldmtool_scan_devices ¶
ldmtool_scan_devices : scan for Windows dynamic disks
func (*Guestfs) Ldmtool_volume_hint ¶
ldmtool_volume_hint : return the hint field of a Windows dynamic disk volume
func (*Guestfs) Ldmtool_volume_partitions ¶
ldmtool_volume_partitions : return the partitions in a Windows dynamic disk volume
func (*Guestfs) Ldmtool_volume_type ¶
ldmtool_volume_type : return the type of a Windows dynamic disk volume
func (*Guestfs) Lgetxattrs ¶
lgetxattrs : list extended attributes of a file or directory
func (*Guestfs) List_devices ¶
list_devices : list the block devices
func (*Guestfs) List_disk_labels ¶
list_disk_labels : mapping of disk labels to devices
func (*Guestfs) List_dm_devices ¶
list_dm_devices : list device mapper devices
func (*Guestfs) List_filesystems ¶
list_filesystems : list filesystems
func (*Guestfs) List_ldm_partitions ¶
list_ldm_partitions : list all Windows dynamic disk partitions
func (*Guestfs) List_ldm_volumes ¶
list_ldm_volumes : list all Windows dynamic disk volumes
func (*Guestfs) List_md_devices ¶
list_md_devices : list Linux md (RAID) devices
func (*Guestfs) List_partitions ¶
list_partitions : list the partitions
func (*Guestfs) Lremovexattr ¶
lremovexattr : remove extended attribute of a file or directory
func (*Guestfs) Lstatnslist ¶
lstatnslist : lstat on multiple files
func (*Guestfs) Luks_add_key ¶
luks_add_key : add a key on a LUKS encrypted device
func (*Guestfs) Luks_close ¶
luks_close : close a LUKS device
func (*Guestfs) Luks_format ¶
luks_format : format a block device as a LUKS encrypted device
func (*Guestfs) Luks_format_cipher ¶
luks_format_cipher : format a block device as a LUKS encrypted device
func (*Guestfs) Luks_kill_slot ¶
luks_kill_slot : remove a key from a LUKS encrypted device
func (*Guestfs) Luks_open_ro ¶
luks_open_ro : open a LUKS-encrypted block device read-only
func (*Guestfs) Lvcreate_free ¶
lvcreate_free : create an LVM logical volume in % remaining free space
func (*Guestfs) Lvm_canonical_lv_name ¶
lvm_canonical_lv_name : get canonical name of an LV
func (*Guestfs) Lvm_clear_filter ¶
lvm_clear_filter : clear LVM device filter
func (*Guestfs) Lvm_remove_all ¶
lvm_remove_all : remove all LVM LVs, VGs and PVs
func (*Guestfs) Lvm_scan ¶
lvm_scan : scan for LVM physical volumes, volume groups and logical volumes
func (*Guestfs) Lvm_set_filter ¶
lvm_set_filter : set LVM device filter
func (*Guestfs) Lvresize_free ¶
lvresize_free : expand an LV to fill free space
func (*Guestfs) Lxattrlist ¶
lxattrlist : lgetxattr on multiple files
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) Mkdir_mode ¶
mkdir_mode : create a directory with a particular mode
func (*Guestfs) Mke2fs ¶
func (g *Guestfs) Mke2fs(device string, optargs *OptargsMke2fs) error
mke2fs : create an ext2/ext3/ext4 filesystem on device
func (*Guestfs) Mke2journal ¶
mke2journal : make ext2/3/4 external journal
func (*Guestfs) Mke2journal_L ¶
mke2journal_L : make ext2/3/4 external journal with label
func (*Guestfs) Mke2journal_U ¶
mke2journal_U : make ext2/3/4 external journal with UUID
func (*Guestfs) Mkfs ¶
func (g *Guestfs) Mkfs(fstype string, device string, optargs *OptargsMkfs) error
mkfs : make a filesystem
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 ¶
mklost_and_found : make lost+found directory on an ext2/3/4 filesystem
func (*Guestfs) Mkmountpoint ¶
mkmountpoint : create a mountpoint
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_file ¶
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) 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 ¶
mount_local_run : run main loop of mount on the local filesystem
func (*Guestfs) Mount_loop ¶
mount_loop : mount a file using the loop device
func (*Guestfs) Mount_options ¶
mount_options : mount a guest disk with mount options
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 ¶
mountable_device : extract the device part of a mountable
func (*Guestfs) Mountable_subvolume ¶
mountable_subvolume : extract the subvolume part of a mountable
func (*Guestfs) Mountpoints ¶
mountpoints : show mountpoints
func (*Guestfs) Nr_devices ¶
nr_devices : return number of whole block devices (disks) added
func (*Guestfs) Ntfs_3g_probe ¶
ntfs_3g_probe : probe NTFS volume
func (*Guestfs) Ntfsclone_in ¶
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 ¶
ntfsresize_size : resize an NTFS filesystem (with size)
func (*Guestfs) Parse_environment ¶
parse_environment : parse the environment and set handle flags accordingly
func (*Guestfs) Parse_environment_list ¶
parse_environment_list : parse the environment and set handle flags accordingly
func (*Guestfs) Part_expand_gpt ¶
part_expand_gpt : move backup GPT header to the end of the disk
func (*Guestfs) Part_get_bootable ¶
part_get_bootable : return true if a partition is bootable
func (*Guestfs) Part_get_disk_guid ¶
part_get_disk_guid : get the GUID of a GPT-partitioned disk
func (*Guestfs) Part_get_gpt_attributes ¶
part_get_gpt_attributes : get the attribute flags of a GPT partition
func (*Guestfs) Part_get_gpt_guid ¶
part_get_gpt_guid : get the GUID of a GPT partition
func (*Guestfs) Part_get_gpt_type ¶
part_get_gpt_type : get the type GUID of a GPT partition
func (*Guestfs) Part_get_mbr_id ¶
part_get_mbr_id : get the MBR type byte (ID byte) from a partition
func (*Guestfs) Part_get_mbr_part_type ¶
part_get_mbr_part_type : get the MBR partition type
func (*Guestfs) Part_get_name ¶
part_get_name : get partition name
func (*Guestfs) Part_get_parttype ¶
part_get_parttype : get the partition table type
func (*Guestfs) Part_resize ¶
part_resize : resize a partition
func (*Guestfs) Part_set_bootable ¶
part_set_bootable : make a partition bootable
func (*Guestfs) Part_set_disk_guid ¶
part_set_disk_guid : set the GUID of a GPT-partitioned disk
func (*Guestfs) Part_set_disk_guid_random ¶
part_set_disk_guid_random : set the GUID of a GPT-partitioned disk to random value
func (*Guestfs) Part_set_gpt_attributes ¶
part_set_gpt_attributes : set the attribute flags of a GPT partition
func (*Guestfs) Part_set_gpt_guid ¶
part_set_gpt_guid : set the GUID of a GPT partition
func (*Guestfs) Part_set_gpt_type ¶
part_set_gpt_type : set the type GUID of a GPT partition
func (*Guestfs) Part_set_mbr_id ¶
part_set_mbr_id : set the MBR type byte (ID byte) of a partition
func (*Guestfs) Part_set_name ¶
part_set_name : set partition name
func (*Guestfs) Part_to_dev ¶
part_to_dev : convert partition name to device name
func (*Guestfs) Part_to_partnum ¶
part_to_partnum : convert partition name to partition number
func (*Guestfs) Ping_daemon ¶
ping_daemon : ping the guest daemon
func (*Guestfs) Pread_device ¶
pread_device : read part of a device
func (*Guestfs) Pvchange_uuid ¶
pvchange_uuid : generate a new random UUID for a physical volume
func (*Guestfs) Pvchange_uuid_all ¶
pvchange_uuid_all : generate new random UUIDs for all physical volumes
func (*Guestfs) Pvresize_size ¶
pvresize_size : resize an LVM physical volume (with size)
func (*Guestfs) Pwrite_device ¶
pwrite_device : write to part of a device
func (*Guestfs) Read_lines ¶
read_lines : read file as lines
func (*Guestfs) Readlinklist ¶
readlinklist : readlink on multiple files
func (*Guestfs) Remount ¶
func (g *Guestfs) Remount(mountpoint string, optargs *OptargsRemount) error
remount : remount a filesystem with different options
func (*Guestfs) Remove_drive ¶
remove_drive : remove a disk image
func (*Guestfs) Removexattr ¶
removexattr : remove extended attribute of a file or directory
func (*Guestfs) Resize2fs_M ¶
resize2fs_M : resize an ext2, ext3 or ext4 filesystem to the minimum size
func (*Guestfs) Resize2fs_size ¶
resize2fs_size : resize an ext2, ext3 or ext4 filesystem (with size)
func (*Guestfs) Rmmountpoint ¶
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 ¶
scrub_device : scrub (securely wipe) a device
func (*Guestfs) Scrub_file ¶
scrub_file : scrub (securely wipe) a file
func (*Guestfs) Scrub_freespace ¶
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 ¶
set_append : add options to kernel command line
func (*Guestfs) Set_attach_method ¶
set_attach_method : set the backend
func (*Guestfs) Set_autosync ¶
set_autosync : set autosync mode
func (*Guestfs) Set_backend ¶
set_backend : set the backend
func (*Guestfs) Set_backend_setting ¶
set_backend_setting : set a single per-backend settings string
func (*Guestfs) Set_backend_settings ¶
set_backend_settings : replace per-backend settings strings
func (*Guestfs) Set_cachedir ¶
set_cachedir : set the appliance cache directory
func (*Guestfs) Set_direct ¶
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 ¶
set_e2generation : set ext2 file generation of a file
func (*Guestfs) Set_e2label ¶
set_e2label : set the ext2/3/4 filesystem label
func (*Guestfs) Set_e2uuid ¶
set_e2uuid : set the ext2/3/4 filesystem UUID
func (*Guestfs) Set_identifier ¶
set_identifier : set the handle identifier
func (*Guestfs) Set_libvirt_requested_credential ¶
set_libvirt_requested_credential : pass requested credential back to libvirt
func (*Guestfs) Set_libvirt_supported_credentials ¶
set_libvirt_supported_credentials : set libvirt credentials supported by calling program
func (*Guestfs) Set_memsize ¶
set_memsize : set memory allocated to the hypervisor
func (*Guestfs) Set_network ¶
set_network : set enable network flag
func (*Guestfs) Set_pgroup ¶
set_pgroup : set process group flag
func (*Guestfs) Set_program ¶
set_program : set the program name
func (*Guestfs) Set_recovery_proc ¶
set_recovery_proc : enable or disable the recovery process
func (*Guestfs) Set_selinux ¶
set_selinux : set SELinux enabled or disabled at appliance boot
func (*Guestfs) Set_tmpdir ¶
set_tmpdir : set the temporary directory
func (*Guestfs) Set_uuid_random ¶
set_uuid_random : set a random UUID for the filesystem
func (*Guestfs) Set_verbose ¶
set_verbose : set verbose mode
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 ¶
sfdisk_disk_geometry : display the disk geometry from the partition table
func (*Guestfs) Sfdisk_kernel_geometry ¶
sfdisk_kernel_geometry : display the kernel geometry
func (*Guestfs) Swapoff_device ¶
swapoff_device : disable swap on device
func (*Guestfs) Swapoff_file ¶
swapoff_file : disable swap on file
func (*Guestfs) Swapoff_label ¶
swapoff_label : disable swap on labeled swap partition
func (*Guestfs) Swapoff_uuid ¶
swapoff_uuid : disable swap on swap partition by UUID
func (*Guestfs) Swapon_device ¶
swapon_device : enable swap on device
func (*Guestfs) Swapon_file ¶
swapon_file : enable swap on file
func (*Guestfs) Swapon_label ¶
swapon_label : enable swap on labeled swap partition
func (*Guestfs) Swapon_uuid ¶
swapon_uuid : enable swap on swap partition by UUID
func (*Guestfs) Syslinux ¶
func (g *Guestfs) Syslinux(device string, optargs *OptargsSyslinux) error
syslinux : install the SYSLINUX bootloader
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) Truncate_size ¶
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) Umount ¶
func (g *Guestfs) Umount(pathordevice string, optargs *OptargsUmount) error
umount : unmount a filesystem
func (*Guestfs) Umount_all ¶
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_offset ¶
upload_offset : upload a file from the local machine with offset
func (*Guestfs) User_cancel ¶
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) Vfs_minimum_size ¶
vfs_minimum_size : get minimum filesystem size
func (*Guestfs) Vg_activate ¶
vg_activate : activate or deactivate some volume groups
func (*Guestfs) Vg_activate_all ¶
vg_activate_all : activate or deactivate all volume groups
func (*Guestfs) Vgchange_uuid ¶
vgchange_uuid : generate a new random UUID for a volume group
func (*Guestfs) Vgchange_uuid_all ¶
vgchange_uuid_all : generate new random UUIDs for all volume groups
func (*Guestfs) Vgscan ¶
vgscan : rescan for LVM physical volumes, volume groups and logical volumes
func (*Guestfs) Wait_ready ¶
wait_ready : wait until the hypervisor launches (no op)
func (*Guestfs) Write_append ¶
write_append : append content to end of file
func (*Guestfs) Write_file ¶
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_repair ¶
func (g *Guestfs) Xfs_repair(device string, optargs *OptargsXfs_repair) (int, error)
xfs_repair : repair an XFS filesystem
func (*Guestfs) Yara_destroy ¶
yara_destroy : destroy previously loaded yara rules
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) Zero_device ¶
zero_device : write zeroes to an entire device
func (*Guestfs) Zero_free_space ¶
zero_free_space : zero free space in a filesystem
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) String ¶
func (e *GuestfsError) String() string
type HivexValue ¶
type HivexValue struct {
Hivex_value_h int64
}
type INotifyEvent ¶
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 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 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 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 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_mda_count int64 Vg_mda_free uint64 }
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 }