Documentation ¶
Index ¶
- type ISSHClient
- type SSHPartition
- func (p *SSHPartition) CheckOrAddUser(user, homeDir string, isSys bool) (realHomeDir string, err error)
- func (p *SSHPartition) Chmod(sPath string, mode uint32, caseI bool) error
- func (p *SSHPartition) Chown(sPath string, uid, gid int, caseInsensitive bool) error
- func (p *SSHPartition) Cleandir(dir string, keepdir, caseInsensitive bool) error
- func (p *SSHPartition) Exists(sPath string, caseInsensitive bool) bool
- func (p *SSHPartition) FileGetContents(sPath string, caseInsensitive bool) ([]byte, error)
- func (p *SSHPartition) FileGetContentsByPath(sPath string) ([]byte, error)
- func (p *SSHPartition) FilePutContents(sPath, content string, modAppend, caseInsensitive bool) error
- func (p *SSHPartition) GenerateSshHostKeys() error
- func (p *SSHPartition) GetFsFormat() (string, error)
- func (p *SSHPartition) GetLocalPath(sPath string, caseI bool) string
- func (p *SSHPartition) GetMountPath() string
- func (p *SSHPartition) GetPartDev() string
- func (p *SSHPartition) GetPhysicalPartitionType() string
- func (p *SSHPartition) GetReadonly() bool
- func (p *SSHPartition) IsMounted() bool
- func (p *SSHPartition) IsReadonly() bool
- func (p *SSHPartition) ListDir(sPath string, caseInsensitive bool) []string
- func (p *SSHPartition) Mkdir(sPath string, mode int, caseInsensitive bool) error
- func (p *SSHPartition) Mount() bool
- func (p *SSHPartition) MountPartReadOnly() bool
- func (p *SSHPartition) Passwd(user, password string, caseInsensitive bool) error
- func (p *SSHPartition) Remove(sPath string, caseInsensitive bool)
- func (p *SSHPartition) Stat(sPath string, caseInsensitive bool) os.FileInfo
- func (p *SSHPartition) SupportSerialPorts() bool
- func (f *SSHPartition) Symlink(src string, dst string, caseInsensitive bool) error
- func (p *SSHPartition) Umount() error
- func (p *SSHPartition) Zerofiles(dir string, caseI bool) error
- func (p *SSHPartition) Zerofree()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISSHClient ¶
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 (*SSHPartition) Symlink ¶
func (f *SSHPartition) Symlink(src string, dst string, caseInsensitive bool) error
func (*SSHPartition) Umount ¶
func (p *SSHPartition) Umount() error
func (*SSHPartition) Zerofree ¶
func (p *SSHPartition) Zerofree()
Click to show internal directories.
Click to hide internal directories.