sshpart

package
v0.0.0-...-6410feb Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISSHClient

type ISSHClient interface {
	Run(cmds ...string) ([]string, error)
}

type SSHPartition

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

func MountSSHRootfs

func MountSSHRootfs(tool *disktool.SSHPartitionTool, term *ssh.Client, layouts []baremetal.Layout) (*SSHPartition, fsdriver.IRootFsDriver, error)

func NewSSHPartition

func NewSSHPartition(term ISSHClient, partDev string, isLVM bool) *SSHPartition

func (*SSHPartition) CheckOrAddUser

func (p *SSHPartition) CheckOrAddUser(user, homeDir string, isSys bool) (realHomeDir string, err error)

func (*SSHPartition) Chmod

func (p *SSHPartition) Chmod(sPath string, mode uint32, caseI bool) error

func (*SSHPartition) Chown

func (p *SSHPartition) Chown(sPath string, uid, gid int, caseInsensitive bool) error

func (*SSHPartition) Cleandir

func (p *SSHPartition) Cleandir(dir string, keepdir, caseInsensitive bool) error

func (*SSHPartition) Exists

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

func (*SSHPartition) FileGetContents

func (p *SSHPartition) FileGetContents(sPath string, caseInsensitive bool) ([]byte, error)

func (*SSHPartition) FileGetContentsByPath

func (p *SSHPartition) FileGetContentsByPath(sPath string) ([]byte, error)

func (*SSHPartition) FilePutContents

func (p *SSHPartition) FilePutContents(sPath, content string, modAppend, caseInsensitive bool) error

func (*SSHPartition) GenerateSshHostKeys

func (p *SSHPartition) GenerateSshHostKeys() error

func (*SSHPartition) GetFsFormat

func (p *SSHPartition) GetFsFormat() (string, error)

func (*SSHPartition) GetLocalPath

func (p *SSHPartition) GetLocalPath(sPath string, caseI bool) string

func (*SSHPartition) GetMountPath

func (p *SSHPartition) GetMountPath() string

func (*SSHPartition) GetPartDev

func (p *SSHPartition) GetPartDev() string

func (*SSHPartition) GetPhysicalPartitionType

func (p *SSHPartition) GetPhysicalPartitionType() string

func (*SSHPartition) GetReadonly

func (p *SSHPartition) GetReadonly() bool

func (*SSHPartition) IsMounted

func (p *SSHPartition) IsMounted() bool

func (*SSHPartition) IsReadonly

func (p *SSHPartition) IsReadonly() bool

func (*SSHPartition) ListDir

func (p *SSHPartition) ListDir(sPath string, caseInsensitive bool) []string

func (*SSHPartition) Mkdir

func (p *SSHPartition) Mkdir(sPath string, mode int, caseInsensitive bool) error

func (*SSHPartition) Mount

func (p *SSHPartition) Mount() bool

func (*SSHPartition) MountPartReadOnly

func (p *SSHPartition) MountPartReadOnly() bool

func (*SSHPartition) Passwd

func (p *SSHPartition) Passwd(user, password string, caseInsensitive bool) error

func (*SSHPartition) Remove

func (p *SSHPartition) Remove(sPath string, caseInsensitive bool)

func (*SSHPartition) Stat

func (p *SSHPartition) Stat(sPath string, caseInsensitive bool) os.FileInfo

func (*SSHPartition) SupportSerialPorts

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

func (*SSHPartition) Umount

func (p *SSHPartition) Umount() error

func (*SSHPartition) Zerofiles

func (p *SSHPartition) Zerofiles(dir string, caseI bool) error

func (*SSHPartition) Zerofree

func (p *SSHPartition) Zerofree()

Jump to

Keyboard shortcuts

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