kvmpart

package
v0.3.11-8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 21 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SKVMGuestDiskPartition

type SKVMGuestDiskPartition struct {
	*SLocalGuestFS

	IsLVMPart bool
	// contains filtered or unexported fields
}

func NewKVMGuestDiskPartition

func NewKVMGuestDiskPartition(devPath, sourceDev string, isLVM bool) *SKVMGuestDiskPartition

func (*SKVMGuestDiskPartition) Exists

func (p *SKVMGuestDiskPartition) Exists(sPath string, caseInsensitive bool) bool

func (*SKVMGuestDiskPartition) GetPartDev

func (p *SKVMGuestDiskPartition) GetPartDev() string

func (*SKVMGuestDiskPartition) GetPhysicalPartitionType

func (p *SKVMGuestDiskPartition) GetPhysicalPartitionType() string

func (*SKVMGuestDiskPartition) IsMounted

func (p *SKVMGuestDiskPartition) IsMounted() bool

func (*SKVMGuestDiskPartition) IsReadonly

func (p *SKVMGuestDiskPartition) IsReadonly() bool

func (*SKVMGuestDiskPartition) Mount

func (p *SKVMGuestDiskPartition) Mount() bool

func (*SKVMGuestDiskPartition) MountPartReadOnly

func (p *SKVMGuestDiskPartition) MountPartReadOnly() bool

func (*SKVMGuestDiskPartition) Umount

func (p *SKVMGuestDiskPartition) Umount() error

func (*SKVMGuestDiskPartition) Zerofree

func (p *SKVMGuestDiskPartition) Zerofree()

type SLocalGuestFS

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

func NewLocalGuestFS

func NewLocalGuestFS(mountPath string) *SLocalGuestFS

func (*SLocalGuestFS) CheckOrAddUser

func (f *SLocalGuestFS) CheckOrAddUser(user, homeDir string, isSys bool) (realHomeDir string, err error)

func (*SLocalGuestFS) Chmod

func (f *SLocalGuestFS) Chmod(sPath string, mode uint32, caseInsensitive bool) error

func (*SLocalGuestFS) Chown

func (f *SLocalGuestFS) Chown(sPath string, uid, gid int, caseInsensitive bool) error

func (*SLocalGuestFS) Cleandir

func (f *SLocalGuestFS) Cleandir(dir string, keepdir, caseInsensitive bool) error

func (*SLocalGuestFS) Exists

func (f *SLocalGuestFS) Exists(sPath string, caseInsensitive bool) bool

func (*SLocalGuestFS) FileGetContents

func (f *SLocalGuestFS) FileGetContents(sPath string, caseInsensitive bool) ([]byte, error)

func (*SLocalGuestFS) FileGetContentsByPath

func (f *SLocalGuestFS) FileGetContentsByPath(sPath string) ([]byte, error)

func (*SLocalGuestFS) FilePutContents

func (f *SLocalGuestFS) FilePutContents(sPath, content string, modAppend, caseInsensitive bool) error

func (*SLocalGuestFS) GenerateSshHostKeys

func (f *SLocalGuestFS) GenerateSshHostKeys() error

func (*SLocalGuestFS) GetLocalPath

func (f *SLocalGuestFS) GetLocalPath(sPath string, caseInsensitive bool) string

func (*SLocalGuestFS) GetMountPath

func (f *SLocalGuestFS) GetMountPath() string

func (*SLocalGuestFS) ListDir

func (f *SLocalGuestFS) ListDir(sPath string, caseInsensitive bool) []string

func (*SLocalGuestFS) Mkdir

func (f *SLocalGuestFS) Mkdir(sPath string, mode int, caseInsensitive bool) error

func (*SLocalGuestFS) Passwd

func (f *SLocalGuestFS) Passwd(account, password string, caseInsensitive bool) error

func (*SLocalGuestFS) Remove

func (f *SLocalGuestFS) Remove(path string, caseInsensitive bool)

func (*SLocalGuestFS) Stat

func (f *SLocalGuestFS) Stat(usrDir string, caseInsensitive bool) os.FileInfo

func (*SLocalGuestFS) SupportSerialPorts

func (f *SLocalGuestFS) SupportSerialPorts() bool
func (f *SLocalGuestFS) Symlink(src string, dst string, caseInsensitive bool) error

func (*SLocalGuestFS) Zerofiles

func (f *SLocalGuestFS) Zerofiles(dir string, caseInsensitive bool) error

Jump to

Keyboard shortcuts

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