fsdriver

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: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ROOT_USER             = "root"
	YUNIONROOT_USER       = "cloudroot"
	TELEGRAF_BINARY_PATH  = "/opt/yunion/bin/telegraf"
	SUPERVISE_BINARY_PATH = "/opt/yunion/bin/supervise"

	QGA_BINARY_PATH            = "/opt/yunion/bin/qemu-ga"
	QGA_WIN_MSI_INSTALLER_PATH = "/opt/yunion/bin/qemu-ga-x86_64.msi"
)
View Source
const (
	ACTIVE_COMPUTER_NAME_KEY = `HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName`
	COMPUTER_NAME_KEY        = `HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName`

	TCPIP_PARAM_KEY      = `HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters`
	BOOT_SCRIPT_PATH     = "/Windows/System32/GroupPolicy/Machine/Scripts/Startup/cloudboot.bat"
	WIN_BOOT_SCRIPT_PATH = "cloudboot"

	WIN_TELEGRAF_BINARY_PATH = "/opt/yunion/bin/telegraf.exe"
	WIN_TELEGRAF_PATH        = "/Program Files/Telegraf"

	WIN_QGA_PATH = "/Program Files/Qemu-ga"
)
View Source
const WinScriptChangePassword = `` /* 785-byte string literal not displayed */
View Source
const WinScriptMountDisk = `` /* 13994-byte string literal not displayed */

Variables

View Source
var (
	NetDevPrefix   = "eth"
	NetDevPrefixEN = "en"

	IBNetDevPrefix = "ib"
)

Functions

func BuildPropStr

func BuildPropStr(prop map[string]string) string

func DeployAdminAuthorizedKeys

func DeployAdminAuthorizedKeys(s *mcclient.ClientSession) error

func DeployAuthorizedKeys

func DeployAuthorizedKeys(rootFs IDiskPartition, usrDir string, pubkeys *deployapi.SSHKeys, replace bool, admin bool) error

func GetIBNetDevPrefix

func GetIBNetDevPrefix() string

func GetNetDevPrefix

func GetNetDevPrefix(nics []*types.SServerNic) string

func GetRootfsDrivers

func GetRootfsDrivers() []newRootFsDriverFunc

func Init

func Init(cloudrootDir string) error

func MergeAuthorizedKeys

func MergeAuthorizedKeys(oldKeys string, pubkeys *deployapi.SSHKeys, isAdmin bool) string

func ModeStr2Bin

func ModeStr2Bin(mode string) (uint32, error)

func NewNetplanConfig

func NewNetplanConfig(allNics []*types.SServerNic, bondNics []*types.SServerNic, mainIp string) *netplan.Configuration

func NicsHasDifferentDriver

func NicsHasDifferentDriver(nics []*types.SServerNic) bool

func ParsePropStr

func ParsePropStr(lines string) map[string]string

func ToServerNics

func ToServerNics(nics []*deployapi.Nic) []*types.SServerNic

Types

type IDebianRootFsDriver

type IDebianRootFsDriver interface {
	IRootFsDriver

	DistroName() string
	VersionFilePath() string
}

type IDiskPartition

type IDiskPartition interface {
	// GetLocalPath join mountpoint as full path
	GetLocalPath(sPath string, caseInsensitive bool) string
	// FileGetContents will get file contents by join mountpoint as full path
	FileGetContents(sPath string, caseInsensitive bool) ([]byte, error)
	// FileGetContentsByPath get file contents directly
	FileGetContentsByPath(sPath string) ([]byte, error)
	FilePutContents(sPath, content string, modAppend, caseInsensitive bool) error
	Exists(sPath string, caseInsensitive bool) bool
	Chown(sPath string, uid, gid int, caseInsensitive bool) error
	Chmod(sPath string, mode uint32, caseInsensitive bool) error
	CheckOrAddUser(user, homeDir string, isSys bool) (realHomeDir string, err error)
	Stat(sPath string, caseInsensitive bool) os.FileInfo
	Symlink(src, dst string, caseInsensitive bool) error

	Passwd(account, password string, caseInsensitive bool) error
	Mkdir(sPath string, mode int, caseInsensitive bool) error
	ListDir(sPath string, caseInsensitive bool) []string
	Remove(path string, caseInsensitive bool)
	Cleandir(dir string, keepdir, caseInsensitive bool) error
	Zerofiles(dir string, caseInsensitive bool) error
	SupportSerialPorts() bool

	GetPartDev() string
	IsMounted() bool
	Mount() bool
	MountPartReadOnly() bool
	Umount() error
	GetMountPath() string
	IsReadonly() bool
	GetPhysicalPartitionType() string
	Zerofree()

	GenerateSshHostKeys() error
}

type IRootFsDriver

type IRootFsDriver interface {
	object.IObject

	GetPartition() IDiskPartition
	GetName() string
	String() string

	IsFsCaseInsensitive() bool
	RootSignatures() []string
	RootExcludeSignatures() []string
	GetReleaseInfo(IDiskPartition) *deployapi.ReleaseInfo
	GetOs() string
	DeployHostname(part IDiskPartition, hn, domain string) error
	DeployHosts(part IDiskPartition, hn, domain string, ips []string) error
	DeployQgaBlackList(part IDiskPartition) error
	DeployQgaService(part IDiskPartition) error
	DeployNetworkingScripts(IDiskPartition, []*types.SServerNic) error
	DeployStandbyNetworkingScripts(part IDiskPartition, nics, nicsStandby []*types.SServerNic) error
	DeployUdevSubsystemScripts(IDiskPartition) error
	DeployFstabScripts(IDiskPartition, []*deployapi.Disk) error
	GetLoginAccount(IDiskPartition, string, bool, bool) (string, error)
	DeployPublicKey(IDiskPartition, string, *deployapi.SSHKeys) error
	ChangeUserPasswd(part IDiskPartition, account, gid, publicKey, password string) (string, error)
	DeployYunionroot(rootFs IDiskPartition, pubkeys *deployapi.SSHKeys, isInit bool, enableCloudInit bool) error
	EnableSerialConsole(IDiskPartition, *jsonutils.JSONDict) error
	DisableSerialConsole(IDiskPartition) error
	CommitChanges(IDiskPartition) error
	DeployFiles(deploys []*deployapi.DeployContent) error
	DeployUserData(userData string) error
	DeployTelegraf(config string) (bool, error)
	DetectIsUEFISupport(IDiskPartition) bool
	IsCloudinitInstall() bool
	IsResizeFsPartitionSupport() bool

	PrepareFsForTemplate(IDiskPartition) error
	CleanNetworkScripts(rootFs IDiskPartition) error

	AllowAdminLogin() bool
}

func NewAlmaLinuxRootFs

func NewAlmaLinuxRootFs(part IDiskPartition) IRootFsDriver

func NewAndroidRootFs

func NewAndroidRootFs(part IDiskPartition) IRootFsDriver

func NewAnolisRootFs

func NewAnolisRootFs(part IDiskPartition) IRootFsDriver

func NewArchLinuxRootFs

func NewArchLinuxRootFs(part IDiskPartition) IRootFsDriver

func NewCentosRootFs

func NewCentosRootFs(part IDiskPartition) IRootFsDriver

func NewCirrosNewRootFs

func NewCirrosNewRootFs(part IDiskPartition) IRootFsDriver

func NewCirrosRootFs

func NewCirrosRootFs(part IDiskPartition) IRootFsDriver

func NewCoreOsRootFs

func NewCoreOsRootFs(part IDiskPartition) IRootFsDriver

func NewDebianRootFs

func NewDebianRootFs(part IDiskPartition) IRootFsDriver

func NewEsxiRootFs

func NewEsxiRootFs(part IDiskPartition) IRootFsDriver

func NewFangdeDeskRootfs

func NewFangdeDeskRootfs(part IDiskPartition) IRootFsDriver

func NewFangdeRootFs

func NewFangdeRootFs(part IDiskPartition) IRootFsDriver

func NewFedoraRootFs

func NewFedoraRootFs(part IDiskPartition) IRootFsDriver

func NewGalaxyKylinRootFs

func NewGalaxyKylinRootFs(part IDiskPartition) IRootFsDriver

func NewGentooRootFs

func NewGentooRootFs(part IDiskPartition) IRootFsDriver

func NewMacOSRootFs

func NewMacOSRootFs(part IDiskPartition) IRootFsDriver

func NewNeoKylinRootFs

func NewNeoKylinRootFs(part IDiskPartition) IRootFsDriver

func NewOpenCloudOsRootFs

func NewOpenCloudOsRootFs(part IDiskPartition) IRootFsDriver

func NewOpenEulerRootFs

func NewOpenEulerRootFs(part IDiskPartition) IRootFsDriver

func NewOpenKylinRootfs

func NewOpenKylinRootfs(part IDiskPartition) IRootFsDriver

func NewOpenSuseRootFs

func NewOpenSuseRootFs(part IDiskPartition) IRootFsDriver

func NewOpenWrtRootFs

func NewOpenWrtRootFs(part IDiskPartition) IRootFsDriver

func NewPhoenixOSRootFs

func NewPhoenixOSRootFs(part IDiskPartition) IRootFsDriver

func NewRhelRootFs

func NewRhelRootFs(part IDiskPartition) IRootFsDriver

func NewRockyRootFs

func NewRockyRootFs(part IDiskPartition) IRootFsDriver

func NewUKylinRootfs

func NewUKylinRootfs(part IDiskPartition) IRootFsDriver

func NewUOSDesktopRootfs

func NewUOSDesktopRootfs(part IDiskPartition) IRootFsDriver

func NewUbuntuRootFs

func NewUbuntuRootFs(part IDiskPartition) IRootFsDriver

func NewUnionOSRootFs

func NewUnionOSRootFs(part IDiskPartition) IRootFsDriver

func NewWindowsRootFs

func NewWindowsRootFs(part IDiskPartition) IRootFsDriver

type SAlmaRootFs

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

func (SAlmaRootFs) Centos5DeployNetworkingScripts

func (r SAlmaRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SAlmaRootFs) CleanNetworkScripts

func (r SAlmaRootFs) CleanNetworkScripts(rootFs IDiskPartition) error

func (SAlmaRootFs) DeployHostname

func (r SAlmaRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (*SAlmaRootFs) DeployNetworkingScripts

func (d *SAlmaRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SAlmaRootFs) DeployStandbyNetworkingScripts

func (r SAlmaRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (*SAlmaRootFs) DisableSerialConsole

func (c *SAlmaRootFs) DisableSerialConsole(rootFs IDiskPartition) error

func (*SAlmaRootFs) EnableSerialConsole

func (c *SAlmaRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error

func (*SAlmaRootFs) GetName

func (d *SAlmaRootFs) GetName() string

func (*SAlmaRootFs) GetReleaseInfo

func (d *SAlmaRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SAlmaRootFs) PrepareFsForTemplate

func (r SAlmaRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SAlmaRootFs) RootSignatures

func (d *SAlmaRootFs) RootSignatures() []string

func (*SAlmaRootFs) String

func (d *SAlmaRootFs) String() string

type SAndroidRootFs

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

func (SAndroidRootFs) ChangeUserPasswd

func (m SAndroidRootFs) ChangeUserPasswd(part IDiskPartition, account, gid, publicKey, password string) (string, error)

func (SAndroidRootFs) CommitChanges

func (m SAndroidRootFs) CommitChanges(part IDiskPartition) error

func (SAndroidRootFs) DeployHostname

func (m SAndroidRootFs) DeployHostname(part IDiskPartition, hostname, domain string) error

func (SAndroidRootFs) DeployHosts

func (m SAndroidRootFs) DeployHosts(part IDiskPartition, hn, domain string, ips []string) error

func (SAndroidRootFs) DeployNetworkingScripts

func (m SAndroidRootFs) DeployNetworkingScripts(rootfs IDiskPartition, nics []*types.SServerNic) error

func (SAndroidRootFs) DeployPublicKey

func (m SAndroidRootFs) DeployPublicKey(rootfs IDiskPartition, uname string, pubkeys *deployapi.SSHKeys) error

func (SAndroidRootFs) GetLoginAccount

func (m SAndroidRootFs) GetLoginAccount(rootFs IDiskPartition, user string, defaultRootUser bool, windowsDefaultAdminUser bool) (string, error)

func (*SAndroidRootFs) GetName

func (m *SAndroidRootFs) GetName() string

func (SAndroidRootFs) GetOs

func (m SAndroidRootFs) GetOs() string

func (SAndroidRootFs) GetReleaseInfo

func (m SAndroidRootFs) GetReleaseInfo(IDiskPartition) *deployapi.ReleaseInfo

func (SAndroidRootFs) IsFsCaseInsensitive

func (m SAndroidRootFs) IsFsCaseInsensitive() bool

func (SAndroidRootFs) PrepareFsForTemplate

func (m SAndroidRootFs) PrepareFsForTemplate(IDiskPartition) error

func (SAndroidRootFs) RootSignatures

func (m SAndroidRootFs) RootSignatures() []string

func (*SAndroidRootFs) String

func (m *SAndroidRootFs) String() string

type SAnolisRootFs

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

func (SAnolisRootFs) Centos5DeployNetworkingScripts

func (r SAnolisRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SAnolisRootFs) CleanNetworkScripts

func (r SAnolisRootFs) CleanNetworkScripts(rootFs IDiskPartition) error

func (SAnolisRootFs) DeployHostname

func (r SAnolisRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (*SAnolisRootFs) DeployNetworkingScripts

func (d *SAnolisRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SAnolisRootFs) DeployStandbyNetworkingScripts

func (r SAnolisRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (*SAnolisRootFs) DisableSerialConsole

func (c *SAnolisRootFs) DisableSerialConsole(rootFs IDiskPartition) error

func (*SAnolisRootFs) EnableSerialConsole

func (c *SAnolisRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error

func (*SAnolisRootFs) GetName

func (d *SAnolisRootFs) GetName() string

func (*SAnolisRootFs) GetReleaseInfo

func (d *SAnolisRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SAnolisRootFs) PrepareFsForTemplate

func (r SAnolisRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SAnolisRootFs) RootSignatures

func (d *SAnolisRootFs) RootSignatures() []string

func (*SAnolisRootFs) String

func (d *SAnolisRootFs) String() string

type SArchLinuxRootFs

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

func (SArchLinuxRootFs) ChangeUserPasswd

func (l SArchLinuxRootFs) ChangeUserPasswd(rootFs IDiskPartition, account, gid, publicKey, password string) (string, error)

func (SArchLinuxRootFs) DeployFstabScripts

func (l SArchLinuxRootFs) DeployFstabScripts(rootFs IDiskPartition, disks []*deployapi.Disk) error

func (*SArchLinuxRootFs) DeployHostname

func (d *SArchLinuxRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (SArchLinuxRootFs) DeployHosts

func (l SArchLinuxRootFs) DeployHosts(rootFs IDiskPartition, hostname, domain string, ips []string) error

func (SArchLinuxRootFs) DeployNetworkingScripts

func (l SArchLinuxRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SArchLinuxRootFs) DeployPublicKey

func (l SArchLinuxRootFs) DeployPublicKey(rootFs IDiskPartition, selUsr string, pubkeys *deployapi.SSHKeys) error

func (SArchLinuxRootFs) DeployQgaBlackList

func (l SArchLinuxRootFs) DeployQgaBlackList(rootFs IDiskPartition) error

func (SArchLinuxRootFs) DeployQgaService

func (l SArchLinuxRootFs) DeployQgaService(rootFs IDiskPartition) error

func (SArchLinuxRootFs) DeployStandbyNetworkingScripts

func (l SArchLinuxRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (SArchLinuxRootFs) DeployTelegraf

func (d SArchLinuxRootFs) DeployTelegraf(config string) (bool, error)

func (SArchLinuxRootFs) DeployUdevSubsystemScripts

func (l SArchLinuxRootFs) DeployUdevSubsystemScripts(rootFs IDiskPartition) error

func (SArchLinuxRootFs) DeployUserData

func (d SArchLinuxRootFs) DeployUserData(userData string) error

func (SArchLinuxRootFs) DeployYunionroot

func (l SArchLinuxRootFs) DeployYunionroot(rootFs IDiskPartition, pubkeys *deployapi.SSHKeys, isInit, enableCloudInit bool) error

func (SArchLinuxRootFs) DetectIsUEFISupport

func (l SArchLinuxRootFs) DetectIsUEFISupport(part IDiskPartition) bool

func (SArchLinuxRootFs) DisableCloudinit

func (l SArchLinuxRootFs) DisableCloudinit(rootFs IDiskPartition)

func (SArchLinuxRootFs) DisableSelinux

func (l SArchLinuxRootFs) DisableSelinux(rootFs IDiskPartition)

func (SArchLinuxRootFs) EnableUserSudo

func (l SArchLinuxRootFs) EnableUserSudo(rootFs IDiskPartition, user string) error

func (SArchLinuxRootFs) GetArch

func (l SArchLinuxRootFs) GetArch(rootFs IDiskPartition) string

func (SArchLinuxRootFs) GetLoginAccount

func (l SArchLinuxRootFs) GetLoginAccount(rootFs IDiskPartition, sUser string, defaultRootUser bool, windowsDefaultAdminUser bool) (string, error)

func (*SArchLinuxRootFs) GetName

func (d *SArchLinuxRootFs) GetName() string

func (SArchLinuxRootFs) GetOs

func (l SArchLinuxRootFs) GetOs() string

func (*SArchLinuxRootFs) GetReleaseInfo

func (d *SArchLinuxRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SArchLinuxRootFs) InstallQemuGuestAgentSystemd

func (d SArchLinuxRootFs) InstallQemuGuestAgentSystemd() error

func (SArchLinuxRootFs) IsCloudinitInstall

func (l SArchLinuxRootFs) IsCloudinitInstall() bool

func (SArchLinuxRootFs) PrepareFsForTemplate

func (l SArchLinuxRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SArchLinuxRootFs) RootSignatures

func (d *SArchLinuxRootFs) RootSignatures() []string

func (*SArchLinuxRootFs) String

func (d *SArchLinuxRootFs) String() string

type SCentosRootFs

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

func (SCentosRootFs) Centos5DeployNetworkingScripts

func (r SCentosRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SCentosRootFs) CleanNetworkScripts

func (r SCentosRootFs) CleanNetworkScripts(rootFs IDiskPartition) error

func (SCentosRootFs) DeployHostname

func (r SCentosRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (*SCentosRootFs) DeployNetworkingScripts

func (c *SCentosRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SCentosRootFs) DeployStandbyNetworkingScripts

func (r SCentosRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (*SCentosRootFs) DisableSerialConsole

func (c *SCentosRootFs) DisableSerialConsole(rootFs IDiskPartition) error

func (*SCentosRootFs) EnableSerialConsole

func (c *SCentosRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error

func (*SCentosRootFs) GetName

func (c *SCentosRootFs) GetName() string

func (*SCentosRootFs) GetReleaseInfo

func (c *SCentosRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SCentosRootFs) PrepareFsForTemplate

func (r SCentosRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SCentosRootFs) RootSignatures

func (c *SCentosRootFs) RootSignatures() []string

func (*SCentosRootFs) String

func (c *SCentosRootFs) String() string

type SCirrosNewRootFs

type SCirrosNewRootFs struct {
	*SDebianRootFs
}

func (SCirrosNewRootFs) DeployHostname

func (d SCirrosNewRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (SCirrosNewRootFs) DeployNetworkingScripts

func (d SCirrosNewRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (*SCirrosNewRootFs) DistroName

func (d *SCirrosNewRootFs) DistroName() string

func (*SCirrosNewRootFs) GetName

func (d *SCirrosNewRootFs) GetName() string

func (*SCirrosNewRootFs) GetReleaseInfo

func (d *SCirrosNewRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SCirrosNewRootFs) PrepareFsForTemplate

func (d SCirrosNewRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SCirrosNewRootFs) RootSignatures

func (d *SCirrosNewRootFs) RootSignatures() []string

func (*SCirrosNewRootFs) String

func (d *SCirrosNewRootFs) String() string

func (*SCirrosNewRootFs) VersionFilePath

func (d *SCirrosNewRootFs) VersionFilePath() string

type SCirrosRootFs

type SCirrosRootFs struct {
	*SDebianRootFs
}

func (SCirrosRootFs) DeployHostname

func (d SCirrosRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (SCirrosRootFs) DeployNetworkingScripts

func (d SCirrosRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (*SCirrosRootFs) DistroName

func (d *SCirrosRootFs) DistroName() string

func (*SCirrosRootFs) GetName

func (d *SCirrosRootFs) GetName() string

func (*SCirrosRootFs) GetReleaseInfo

func (d *SCirrosRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SCirrosRootFs) PrepareFsForTemplate

func (d SCirrosRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SCirrosRootFs) RootSignatures

func (d *SCirrosRootFs) RootSignatures() []string

func (*SCirrosRootFs) String

func (d *SCirrosRootFs) String() string

func (*SCirrosRootFs) VersionFilePath

func (d *SCirrosRootFs) VersionFilePath() string

type SCoreOsRootFs

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

func (SCoreOsRootFs) AllowAdminLogin

func (r SCoreOsRootFs) AllowAdminLogin() bool

func (*SCoreOsRootFs) ChangeUserPasswd

func (d *SCoreOsRootFs) ChangeUserPasswd(rootFs IDiskPartition, account, gid, publicKey, password string) (string, error)

func (SCoreOsRootFs) CleanNetworkScripts

func (r SCoreOsRootFs) CleanNetworkScripts(rootFs IDiskPartition) error

func (*SCoreOsRootFs) CommitChanges

func (d *SCoreOsRootFs) CommitChanges(IDiskPartition) error

func (*SCoreOsRootFs) DeployFiles

func (d *SCoreOsRootFs) DeployFiles(deploys []*deployapi.DeployContent) error

func (*SCoreOsRootFs) DeployFstabScripts

func (d *SCoreOsRootFs) DeployFstabScripts(rootFs IDiskPartition, disks []*deployapi.Disk) error

func (*SCoreOsRootFs) DeployHostname

func (d *SCoreOsRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (*SCoreOsRootFs) DeployHosts

func (d *SCoreOsRootFs) DeployHosts(rootFs IDiskPartition, hostname, domain string, ips []string) error

func (*SCoreOsRootFs) DeployNetworkingScripts

func (d *SCoreOsRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (*SCoreOsRootFs) DeployPublicKey

func (d *SCoreOsRootFs) DeployPublicKey(rootFs IDiskPartition, selUsr string, pubkeys *deployapi.SSHKeys) error

func (SCoreOsRootFs) DeployQgaBlackList

func (m SCoreOsRootFs) DeployQgaBlackList(part IDiskPartition) error

func (SCoreOsRootFs) DeployQgaService

func (r SCoreOsRootFs) DeployQgaService(part IDiskPartition) error

func (SCoreOsRootFs) DeployStandbyNetworkingScripts

func (d SCoreOsRootFs) DeployStandbyNetworkingScripts(part IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (SCoreOsRootFs) DeployTelegraf

func (d SCoreOsRootFs) DeployTelegraf(string) (bool, error)

func (SCoreOsRootFs) DeployUdevSubsystemScripts

func (d SCoreOsRootFs) DeployUdevSubsystemScripts(rootfs IDiskPartition) error

func (SCoreOsRootFs) DeployUserData

func (d SCoreOsRootFs) DeployUserData(userData string) error

func (SCoreOsRootFs) DeployYunionroot

func (d SCoreOsRootFs) DeployYunionroot(rootfs IDiskPartition, pubkeys *deployapi.SSHKeys, isInit, enableCloudInit bool) error

func (SCoreOsRootFs) DetectIsUEFISupport

func (d SCoreOsRootFs) DetectIsUEFISupport(IDiskPartition) bool

func (SCoreOsRootFs) DisableSerialConsole

func (d SCoreOsRootFs) DisableSerialConsole(rootfs IDiskPartition) error

func (SCoreOsRootFs) EnableSerialConsole

func (d SCoreOsRootFs) EnableSerialConsole(rootfs IDiskPartition, sysInfo *jsonutils.JSONDict) error

func (*SCoreOsRootFs) GetConfig

func (d *SCoreOsRootFs) GetConfig() *coreosutils.SCloudConfig

func (SCoreOsRootFs) GetIRootFsDriver

func (d SCoreOsRootFs) GetIRootFsDriver() IRootFsDriver

func (*SCoreOsRootFs) GetLoginAccount

func (d *SCoreOsRootFs) GetLoginAccount(rootFs IDiskPartition, user string, defaultRootUser bool, windowsDefaultAdminUser bool) (string, error)

func (*SCoreOsRootFs) GetName

func (d *SCoreOsRootFs) GetName() string

func (*SCoreOsRootFs) GetOs

func (d *SCoreOsRootFs) GetOs() string

func (SCoreOsRootFs) GetPartition

func (d SCoreOsRootFs) GetPartition() IDiskPartition

func (*SCoreOsRootFs) GetReleaseInfo

func (d *SCoreOsRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SCoreOsRootFs) IsCloudinitInstall

func (l SCoreOsRootFs) IsCloudinitInstall() bool

func (SCoreOsRootFs) IsFsCaseInsensitive

func (d SCoreOsRootFs) IsFsCaseInsensitive() bool

func (SCoreOsRootFs) IsResizeFsPartitionSupport

func (l SCoreOsRootFs) IsResizeFsPartitionSupport() bool

func (*SCoreOsRootFs) PrepareFsForTemplate

func (d *SCoreOsRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (SCoreOsRootFs) RootExcludeSignatures

func (d SCoreOsRootFs) RootExcludeSignatures() []string

func (*SCoreOsRootFs) RootSignatures

func (d *SCoreOsRootFs) RootSignatures() []string

func (*SCoreOsRootFs) String

func (d *SCoreOsRootFs) String() string

type SDebianRootFs

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

func (SDebianRootFs) DeployHostname

func (d SDebianRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (SDebianRootFs) DeployNetworkingScripts

func (d SDebianRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (*SDebianRootFs) DistroName

func (d *SDebianRootFs) DistroName() string

func (*SDebianRootFs) GetName

func (d *SDebianRootFs) GetName() string

func (*SDebianRootFs) GetReleaseInfo

func (d *SDebianRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SDebianRootFs) PrepareFsForTemplate

func (d SDebianRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SDebianRootFs) RootExcludeSignatures

func (d *SDebianRootFs) RootExcludeSignatures() []string

func (*SDebianRootFs) RootSignatures

func (d *SDebianRootFs) RootSignatures() []string

func (*SDebianRootFs) String

func (d *SDebianRootFs) String() string

func (*SDebianRootFs) VersionFilePath

func (d *SDebianRootFs) VersionFilePath() string

type SEsxiRootFs

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

func (SEsxiRootFs) AllowAdminLogin

func (r SEsxiRootFs) AllowAdminLogin() bool

func (*SEsxiRootFs) ChangeUserPasswd

func (m *SEsxiRootFs) ChangeUserPasswd(part IDiskPartition, account, gid, publicKey, password string) (string, error)

func (SEsxiRootFs) CleanNetworkScripts

func (r SEsxiRootFs) CleanNetworkScripts(rootFs IDiskPartition) error

func (SEsxiRootFs) CommitChanges

func (d SEsxiRootFs) CommitChanges(rootfs IDiskPartition) error

func (SEsxiRootFs) DeployFiles

func (d SEsxiRootFs) DeployFiles(deploys []*deployapi.DeployContent) error

func (SEsxiRootFs) DeployFstabScripts

func (d SEsxiRootFs) DeployFstabScripts(_ IDiskPartition, _ []*deployapi.Disk) error

func (*SEsxiRootFs) DeployHostname

func (m *SEsxiRootFs) DeployHostname(part IDiskPartition, hostname, domain string) error

func (*SEsxiRootFs) DeployHosts

func (m *SEsxiRootFs) DeployHosts(part IDiskPartition, hn, domain string, ips []string) error

func (*SEsxiRootFs) DeployNetworkingScripts

func (m *SEsxiRootFs) DeployNetworkingScripts(rootfs IDiskPartition, nics []*types.SServerNic) error

func (*SEsxiRootFs) DeployPublicKey

func (m *SEsxiRootFs) DeployPublicKey(rootfs IDiskPartition, uname string, pubkeys *deployapi.SSHKeys) error

func (SEsxiRootFs) DeployQgaBlackList

func (m SEsxiRootFs) DeployQgaBlackList(part IDiskPartition) error

func (SEsxiRootFs) DeployQgaService

func (r SEsxiRootFs) DeployQgaService(part IDiskPartition) error

func (SEsxiRootFs) DeployStandbyNetworkingScripts

func (d SEsxiRootFs) DeployStandbyNetworkingScripts(part IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (SEsxiRootFs) DeployTelegraf

func (d SEsxiRootFs) DeployTelegraf(string) (bool, error)

func (SEsxiRootFs) DeployUdevSubsystemScripts

func (d SEsxiRootFs) DeployUdevSubsystemScripts(rootfs IDiskPartition) error

func (SEsxiRootFs) DeployUserData

func (d SEsxiRootFs) DeployUserData(userData string) error

func (SEsxiRootFs) DeployYunionroot

func (d SEsxiRootFs) DeployYunionroot(rootfs IDiskPartition, pubkeys *deployapi.SSHKeys, isInit, enableCloudInit bool) error

func (SEsxiRootFs) DetectIsUEFISupport

func (d SEsxiRootFs) DetectIsUEFISupport(IDiskPartition) bool

func (SEsxiRootFs) DisableSerialConsole

func (d SEsxiRootFs) DisableSerialConsole(rootfs IDiskPartition) error

func (SEsxiRootFs) EnableSerialConsole

func (d SEsxiRootFs) EnableSerialConsole(rootfs IDiskPartition, sysInfo *jsonutils.JSONDict) error

func (SEsxiRootFs) GetIRootFsDriver

func (d SEsxiRootFs) GetIRootFsDriver() IRootFsDriver

func (*SEsxiRootFs) GetLoginAccount

func (m *SEsxiRootFs) GetLoginAccount(rootFs IDiskPartition, user string, defaultRootUser bool, windowsDefaultAdminUser bool) (string, error)

func (*SEsxiRootFs) GetName

func (m *SEsxiRootFs) GetName() string

func (*SEsxiRootFs) GetOs

func (m *SEsxiRootFs) GetOs() string

func (SEsxiRootFs) GetPartition

func (d SEsxiRootFs) GetPartition() IDiskPartition

func (*SEsxiRootFs) GetReleaseInfo

func (m *SEsxiRootFs) GetReleaseInfo(IDiskPartition) *deployapi.ReleaseInfo

func (SEsxiRootFs) IsCloudinitInstall

func (l SEsxiRootFs) IsCloudinitInstall() bool

func (*SEsxiRootFs) IsFsCaseInsensitive

func (m *SEsxiRootFs) IsFsCaseInsensitive() bool

func (SEsxiRootFs) IsResizeFsPartitionSupport

func (l SEsxiRootFs) IsResizeFsPartitionSupport() bool

func (*SEsxiRootFs) PrepareFsForTemplate

func (m *SEsxiRootFs) PrepareFsForTemplate(IDiskPartition) error

func (SEsxiRootFs) RootExcludeSignatures

func (d SEsxiRootFs) RootExcludeSignatures() []string

func (*SEsxiRootFs) RootSignatures

func (m *SEsxiRootFs) RootSignatures() []string

func (*SEsxiRootFs) String

func (m *SEsxiRootFs) String() string

type SFangdeDeskRootfs

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

func (*SFangdeDeskRootfs) AllowAdminLogin

func (d *SFangdeDeskRootfs) AllowAdminLogin() bool

func (SFangdeDeskRootfs) DeployHostname

func (d SFangdeDeskRootfs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (SFangdeDeskRootfs) DeployNetworkingScripts

func (d SFangdeDeskRootfs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (*SFangdeDeskRootfs) GetName

func (d *SFangdeDeskRootfs) GetName() string

func (*SFangdeDeskRootfs) GetReleaseInfo

func (d *SFangdeDeskRootfs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SFangdeDeskRootfs) PrepareFsForTemplate

func (d SFangdeDeskRootfs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SFangdeDeskRootfs) RootSignatures

func (d *SFangdeDeskRootfs) RootSignatures() []string

func (*SFangdeDeskRootfs) String

func (d *SFangdeDeskRootfs) String() string

type SFangdeRootFs

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

func (SFangdeRootFs) Centos5DeployNetworkingScripts

func (r SFangdeRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SFangdeRootFs) CleanNetworkScripts

func (r SFangdeRootFs) CleanNetworkScripts(rootFs IDiskPartition) error

func (SFangdeRootFs) DeployHostname

func (r SFangdeRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (*SFangdeRootFs) DeployNetworkingScripts

func (d *SFangdeRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SFangdeRootFs) DeployStandbyNetworkingScripts

func (r SFangdeRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (*SFangdeRootFs) DisableSerialConsole

func (c *SFangdeRootFs) DisableSerialConsole(rootFs IDiskPartition) error

func (*SFangdeRootFs) EnableSerialConsole

func (c *SFangdeRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error

func (*SFangdeRootFs) GetName

func (d *SFangdeRootFs) GetName() string

func (*SFangdeRootFs) GetReleaseInfo

func (d *SFangdeRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SFangdeRootFs) PrepareFsForTemplate

func (r SFangdeRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SFangdeRootFs) RootSignatures

func (d *SFangdeRootFs) RootSignatures() []string

func (*SFangdeRootFs) String

func (d *SFangdeRootFs) String() string

type SFedoraRootFs

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

func (SFedoraRootFs) Centos5DeployNetworkingScripts

func (r SFedoraRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SFedoraRootFs) CleanNetworkScripts

func (r SFedoraRootFs) CleanNetworkScripts(rootFs IDiskPartition) error

func (SFedoraRootFs) DeployHostname

func (r SFedoraRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (*SFedoraRootFs) DeployNetworkingScripts

func (c *SFedoraRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SFedoraRootFs) DeployStandbyNetworkingScripts

func (r SFedoraRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (*SFedoraRootFs) DisableSerialConsole

func (c *SFedoraRootFs) DisableSerialConsole(rootFs IDiskPartition) error

func (*SFedoraRootFs) EnableSerialConsole

func (c *SFedoraRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error

func (*SFedoraRootFs) GetName

func (c *SFedoraRootFs) GetName() string

func (*SFedoraRootFs) GetReleaseInfo

func (c *SFedoraRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SFedoraRootFs) PrepareFsForTemplate

func (r SFedoraRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SFedoraRootFs) RootSignatures

func (c *SFedoraRootFs) RootSignatures() []string

func (*SFedoraRootFs) String

func (c *SFedoraRootFs) String() string

type SFileInfo

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

SFileInfo implements os.FileInfo interface

func NewFileInfo

func NewFileInfo(name string, size int64, mode os.FileMode, isDir bool, stat *syscall.Stat_t) *SFileInfo

func (SFileInfo) IsDir

func (info SFileInfo) IsDir() bool

func (SFileInfo) ModTime

func (info SFileInfo) ModTime() time.Time

func (SFileInfo) Mode

func (info SFileInfo) Mode() os.FileMode

func (SFileInfo) Name

func (info SFileInfo) Name() string

func (SFileInfo) Size

func (info SFileInfo) Size() int64

func (SFileInfo) Sys

func (info SFileInfo) Sys() interface{}

type SGalaxyKylinRootFs

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

func (SGalaxyKylinRootFs) Centos5DeployNetworkingScripts

func (r SGalaxyKylinRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SGalaxyKylinRootFs) CleanNetworkScripts

func (r SGalaxyKylinRootFs) CleanNetworkScripts(rootFs IDiskPartition) error

func (SGalaxyKylinRootFs) DeployHostname

func (r SGalaxyKylinRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (*SGalaxyKylinRootFs) DeployNetworkingScripts

func (d *SGalaxyKylinRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SGalaxyKylinRootFs) DeployStandbyNetworkingScripts

func (r SGalaxyKylinRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (*SGalaxyKylinRootFs) DisableSerialConsole

func (c *SGalaxyKylinRootFs) DisableSerialConsole(rootFs IDiskPartition) error

func (*SGalaxyKylinRootFs) EnableSerialConsole

func (c *SGalaxyKylinRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error

func (*SGalaxyKylinRootFs) GetName

func (d *SGalaxyKylinRootFs) GetName() string

func (*SGalaxyKylinRootFs) GetReleaseInfo

func (d *SGalaxyKylinRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SGalaxyKylinRootFs) PrepareFsForTemplate

func (r SGalaxyKylinRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SGalaxyKylinRootFs) RootSignatures

func (d *SGalaxyKylinRootFs) RootSignatures() []string

func (*SGalaxyKylinRootFs) String

func (d *SGalaxyKylinRootFs) String() string

type SGentooRootFs

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

func (SGentooRootFs) ChangeUserPasswd

func (l SGentooRootFs) ChangeUserPasswd(rootFs IDiskPartition, account, gid, publicKey, password string) (string, error)

func (SGentooRootFs) DeployFstabScripts

func (l SGentooRootFs) DeployFstabScripts(rootFs IDiskPartition, disks []*deployapi.Disk) error

func (*SGentooRootFs) DeployHostname

func (d *SGentooRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (SGentooRootFs) DeployHosts

func (l SGentooRootFs) DeployHosts(rootFs IDiskPartition, hostname, domain string, ips []string) error

func (*SGentooRootFs) DeployNetworkingScripts

func (l *SGentooRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SGentooRootFs) DeployPublicKey

func (l SGentooRootFs) DeployPublicKey(rootFs IDiskPartition, selUsr string, pubkeys *deployapi.SSHKeys) error

func (SGentooRootFs) DeployQgaBlackList

func (l SGentooRootFs) DeployQgaBlackList(rootFs IDiskPartition) error

func (SGentooRootFs) DeployQgaService

func (l SGentooRootFs) DeployQgaService(rootFs IDiskPartition) error

func (SGentooRootFs) DeployStandbyNetworkingScripts

func (l SGentooRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (SGentooRootFs) DeployTelegraf

func (d SGentooRootFs) DeployTelegraf(config string) (bool, error)

func (SGentooRootFs) DeployUdevSubsystemScripts

func (l SGentooRootFs) DeployUdevSubsystemScripts(rootFs IDiskPartition) error

func (SGentooRootFs) DeployUserData

func (d SGentooRootFs) DeployUserData(userData string) error

func (SGentooRootFs) DeployYunionroot

func (l SGentooRootFs) DeployYunionroot(rootFs IDiskPartition, pubkeys *deployapi.SSHKeys, isInit, enableCloudInit bool) error

func (SGentooRootFs) DetectIsUEFISupport

func (l SGentooRootFs) DetectIsUEFISupport(part IDiskPartition) bool

func (SGentooRootFs) DisableCloudinit

func (l SGentooRootFs) DisableCloudinit(rootFs IDiskPartition)

func (SGentooRootFs) DisableSelinux

func (l SGentooRootFs) DisableSelinux(rootFs IDiskPartition)

func (SGentooRootFs) EnableUserSudo

func (l SGentooRootFs) EnableUserSudo(rootFs IDiskPartition, user string) error

func (SGentooRootFs) GetArch

func (l SGentooRootFs) GetArch(rootFs IDiskPartition) string

func (SGentooRootFs) GetLoginAccount

func (l SGentooRootFs) GetLoginAccount(rootFs IDiskPartition, sUser string, defaultRootUser bool, windowsDefaultAdminUser bool) (string, error)

func (*SGentooRootFs) GetName

func (d *SGentooRootFs) GetName() string

func (SGentooRootFs) GetOs

func (l SGentooRootFs) GetOs() string

func (*SGentooRootFs) GetReleaseInfo

func (d *SGentooRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SGentooRootFs) InstallQemuGuestAgentSystemd

func (d SGentooRootFs) InstallQemuGuestAgentSystemd() error

func (SGentooRootFs) IsCloudinitInstall

func (l SGentooRootFs) IsCloudinitInstall() bool

func (SGentooRootFs) PrepareFsForTemplate

func (l SGentooRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SGentooRootFs) RootSignatures

func (d *SGentooRootFs) RootSignatures() []string

func (*SGentooRootFs) String

func (d *SGentooRootFs) String() string

type SMacOSRootFs

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

func (SMacOSRootFs) AllowAdminLogin

func (r SMacOSRootFs) AllowAdminLogin() bool

func (*SMacOSRootFs) ChangeUserPasswd

func (m *SMacOSRootFs) ChangeUserPasswd(part IDiskPartition, account, gid, publicKey, password string) (string, error)

func (SMacOSRootFs) CleanNetworkScripts

func (r SMacOSRootFs) CleanNetworkScripts(rootFs IDiskPartition) error

func (*SMacOSRootFs) CommitChanges

func (m *SMacOSRootFs) CommitChanges(part IDiskPartition) error

func (SMacOSRootFs) DeployFiles

func (d SMacOSRootFs) DeployFiles(deploys []*deployapi.DeployContent) error

func (SMacOSRootFs) DeployFstabScripts

func (d SMacOSRootFs) DeployFstabScripts(_ IDiskPartition, _ []*deployapi.Disk) error

func (*SMacOSRootFs) DeployHostname

func (m *SMacOSRootFs) DeployHostname(part IDiskPartition, hostname, domain string) error

func (*SMacOSRootFs) DeployHosts

func (m *SMacOSRootFs) DeployHosts(part IDiskPartition, hn, domain string, ips []string) error

func (*SMacOSRootFs) DeployNetworkingScripts

func (m *SMacOSRootFs) DeployNetworkingScripts(rootfs IDiskPartition, nics []*types.SServerNic) error

func (*SMacOSRootFs) DeployPublicKey

func (m *SMacOSRootFs) DeployPublicKey(rootfs IDiskPartition, uname string, pubkeys *deployapi.SSHKeys) error

func (SMacOSRootFs) DeployQgaBlackList

func (m SMacOSRootFs) DeployQgaBlackList(part IDiskPartition) error

func (SMacOSRootFs) DeployQgaService

func (r SMacOSRootFs) DeployQgaService(part IDiskPartition) error

func (SMacOSRootFs) DeployStandbyNetworkingScripts

func (d SMacOSRootFs) DeployStandbyNetworkingScripts(part IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (SMacOSRootFs) DeployTelegraf

func (d SMacOSRootFs) DeployTelegraf(string) (bool, error)

func (SMacOSRootFs) DeployUdevSubsystemScripts

func (d SMacOSRootFs) DeployUdevSubsystemScripts(rootfs IDiskPartition) error

func (SMacOSRootFs) DeployUserData

func (d SMacOSRootFs) DeployUserData(userData string) error

func (SMacOSRootFs) DeployYunionroot

func (d SMacOSRootFs) DeployYunionroot(rootfs IDiskPartition, pubkeys *deployapi.SSHKeys, isInit, enableCloudInit bool) error

func (SMacOSRootFs) DetectIsUEFISupport

func (d SMacOSRootFs) DetectIsUEFISupport(IDiskPartition) bool

func (SMacOSRootFs) DisableSerialConsole

func (d SMacOSRootFs) DisableSerialConsole(rootfs IDiskPartition) error

func (SMacOSRootFs) EnableSerialConsole

func (d SMacOSRootFs) EnableSerialConsole(rootfs IDiskPartition, sysInfo *jsonutils.JSONDict) error

func (SMacOSRootFs) GetIRootFsDriver

func (d SMacOSRootFs) GetIRootFsDriver() IRootFsDriver

func (*SMacOSRootFs) GetLoginAccount

func (m *SMacOSRootFs) GetLoginAccount(rootFs IDiskPartition, user string, defaultRootUser bool, windowsDefaultAdminUser bool) (string, error)

func (*SMacOSRootFs) GetName

func (m *SMacOSRootFs) GetName() string

func (*SMacOSRootFs) GetOs

func (m *SMacOSRootFs) GetOs() string

func (SMacOSRootFs) GetPartition

func (d SMacOSRootFs) GetPartition() IDiskPartition

func (*SMacOSRootFs) GetReleaseInfo

func (m *SMacOSRootFs) GetReleaseInfo(IDiskPartition) *deployapi.ReleaseInfo

func (SMacOSRootFs) IsCloudinitInstall

func (l SMacOSRootFs) IsCloudinitInstall() bool

func (*SMacOSRootFs) IsFsCaseInsensitive

func (m *SMacOSRootFs) IsFsCaseInsensitive() bool

func (SMacOSRootFs) IsResizeFsPartitionSupport

func (l SMacOSRootFs) IsResizeFsPartitionSupport() bool

func (*SMacOSRootFs) PrepareFsForTemplate

func (m *SMacOSRootFs) PrepareFsForTemplate(IDiskPartition) error

func (SMacOSRootFs) RootExcludeSignatures

func (d SMacOSRootFs) RootExcludeSignatures() []string

func (*SMacOSRootFs) RootSignatures

func (m *SMacOSRootFs) RootSignatures() []string

func (*SMacOSRootFs) String

func (m *SMacOSRootFs) String() string

type SNeoKylinRootFs

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

func (*SNeoKylinRootFs) AllowAdminLogin

func (c *SNeoKylinRootFs) AllowAdminLogin() bool

func (SNeoKylinRootFs) Centos5DeployNetworkingScripts

func (r SNeoKylinRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SNeoKylinRootFs) CleanNetworkScripts

func (r SNeoKylinRootFs) CleanNetworkScripts(rootFs IDiskPartition) error

func (SNeoKylinRootFs) DeployHostname

func (r SNeoKylinRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (*SNeoKylinRootFs) DeployNetworkingScripts

func (d *SNeoKylinRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SNeoKylinRootFs) DeployStandbyNetworkingScripts

func (r SNeoKylinRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (*SNeoKylinRootFs) DisableSerialConsole

func (c *SNeoKylinRootFs) DisableSerialConsole(rootFs IDiskPartition) error

func (*SNeoKylinRootFs) EnableSerialConsole

func (c *SNeoKylinRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error

func (*SNeoKylinRootFs) GetName

func (d *SNeoKylinRootFs) GetName() string

func (*SNeoKylinRootFs) GetReleaseInfo

func (d *SNeoKylinRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SNeoKylinRootFs) PrepareFsForTemplate

func (r SNeoKylinRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SNeoKylinRootFs) RootSignatures

func (d *SNeoKylinRootFs) RootSignatures() []string

func (*SNeoKylinRootFs) String

func (d *SNeoKylinRootFs) String() string

type SOpenCloudOsRootFs

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

func (SOpenCloudOsRootFs) Centos5DeployNetworkingScripts

func (r SOpenCloudOsRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SOpenCloudOsRootFs) CleanNetworkScripts

func (r SOpenCloudOsRootFs) CleanNetworkScripts(rootFs IDiskPartition) error

func (SOpenCloudOsRootFs) DeployHostname

func (r SOpenCloudOsRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (*SOpenCloudOsRootFs) DeployNetworkingScripts

func (d *SOpenCloudOsRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SOpenCloudOsRootFs) DeployStandbyNetworkingScripts

func (r SOpenCloudOsRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (*SOpenCloudOsRootFs) DisableSerialConsole

func (c *SOpenCloudOsRootFs) DisableSerialConsole(rootFs IDiskPartition) error

func (*SOpenCloudOsRootFs) EnableSerialConsole

func (c *SOpenCloudOsRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error

func (*SOpenCloudOsRootFs) GetName

func (d *SOpenCloudOsRootFs) GetName() string

func (*SOpenCloudOsRootFs) GetReleaseInfo

func (d *SOpenCloudOsRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SOpenCloudOsRootFs) PrepareFsForTemplate

func (r SOpenCloudOsRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SOpenCloudOsRootFs) RootSignatures

func (d *SOpenCloudOsRootFs) RootSignatures() []string

func (*SOpenCloudOsRootFs) String

func (d *SOpenCloudOsRootFs) String() string

type SOpenEulerRootFs

type SOpenEulerRootFs struct {
	*SCentosRootFs
}

func (SOpenEulerRootFs) Centos5DeployNetworkingScripts

func (r SOpenEulerRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SOpenEulerRootFs) CleanNetworkScripts

func (r SOpenEulerRootFs) CleanNetworkScripts(rootFs IDiskPartition) error

func (SOpenEulerRootFs) DeployHostname

func (r SOpenEulerRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (*SOpenEulerRootFs) DeployNetworkingScripts

func (c *SOpenEulerRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SOpenEulerRootFs) DeployStandbyNetworkingScripts

func (r SOpenEulerRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (*SOpenEulerRootFs) GetName

func (c *SOpenEulerRootFs) GetName() string

func (*SOpenEulerRootFs) GetReleaseInfo

func (c *SOpenEulerRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SOpenEulerRootFs) PrepareFsForTemplate

func (r SOpenEulerRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SOpenEulerRootFs) RootSignatures

func (c *SOpenEulerRootFs) RootSignatures() []string

func (*SOpenEulerRootFs) String

func (c *SOpenEulerRootFs) String() string

type SOpenKylinRootFs

type SOpenKylinRootFs struct {
	*SUbuntuRootFs
}

func (*SOpenKylinRootFs) AllowAdminLogin

func (d *SOpenKylinRootFs) AllowAdminLogin() bool

func (SOpenKylinRootFs) DeployHostname

func (d SOpenKylinRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (SOpenKylinRootFs) DeployNetworkingScripts

func (d SOpenKylinRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (*SOpenKylinRootFs) GetName

func (d *SOpenKylinRootFs) GetName() string

func (*SOpenKylinRootFs) GetReleaseInfo

func (d *SOpenKylinRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SOpenKylinRootFs) PrepareFsForTemplate

func (d SOpenKylinRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SOpenKylinRootFs) RootSignatures

func (d *SOpenKylinRootFs) RootSignatures() []string

func (*SOpenKylinRootFs) String

func (d *SOpenKylinRootFs) String() string

type SOpenSuseRootFs

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

func (SOpenSuseRootFs) CleanNetworkScripts

func (r SOpenSuseRootFs) CleanNetworkScripts(rootFs IDiskPartition) error

func (SOpenSuseRootFs) DeployHostname

func (r SOpenSuseRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (*SOpenSuseRootFs) DeployNetworkingScripts

func (c *SOpenSuseRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SOpenSuseRootFs) DeployStandbyNetworkingScripts

func (r SOpenSuseRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (*SOpenSuseRootFs) GetName

func (c *SOpenSuseRootFs) GetName() string

func (*SOpenSuseRootFs) GetReleaseInfo

func (c *SOpenSuseRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SOpenSuseRootFs) PrepareFsForTemplate

func (r SOpenSuseRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (SOpenSuseRootFs) RootSignatures

func (r SOpenSuseRootFs) RootSignatures() []string

func (*SOpenSuseRootFs) String

func (c *SOpenSuseRootFs) String() string

type SOpenWrtRootFs

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

func (SOpenWrtRootFs) ChangeUserPasswd

func (l SOpenWrtRootFs) ChangeUserPasswd(rootFs IDiskPartition, account, gid, publicKey, password string) (string, error)

func (SOpenWrtRootFs) DeployFstabScripts

func (l SOpenWrtRootFs) DeployFstabScripts(rootFs IDiskPartition, disks []*deployapi.Disk) error

func (*SOpenWrtRootFs) DeployHostname

func (d *SOpenWrtRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (SOpenWrtRootFs) DeployHosts

func (l SOpenWrtRootFs) DeployHosts(rootFs IDiskPartition, hostname, domain string, ips []string) error

func (*SOpenWrtRootFs) DeployNetworkingScripts

func (d *SOpenWrtRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (*SOpenWrtRootFs) DeployPublicKey

func (d *SOpenWrtRootFs) DeployPublicKey(rootFs IDiskPartition, selUsr string, pubkeys *deployapi.SSHKeys) error

func (SOpenWrtRootFs) DeployQgaBlackList

func (l SOpenWrtRootFs) DeployQgaBlackList(rootFs IDiskPartition) error

func (SOpenWrtRootFs) DeployQgaService

func (l SOpenWrtRootFs) DeployQgaService(rootFs IDiskPartition) error

func (SOpenWrtRootFs) DeployStandbyNetworkingScripts

func (l SOpenWrtRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (SOpenWrtRootFs) DeployTelegraf

func (d SOpenWrtRootFs) DeployTelegraf(config string) (bool, error)

func (SOpenWrtRootFs) DeployUdevSubsystemScripts

func (l SOpenWrtRootFs) DeployUdevSubsystemScripts(rootFs IDiskPartition) error

func (SOpenWrtRootFs) DeployUserData

func (d SOpenWrtRootFs) DeployUserData(userData string) error

func (SOpenWrtRootFs) DeployYunionroot

func (l SOpenWrtRootFs) DeployYunionroot(rootFs IDiskPartition, pubkeys *deployapi.SSHKeys, isInit, enableCloudInit bool) error

func (SOpenWrtRootFs) DetectIsUEFISupport

func (l SOpenWrtRootFs) DetectIsUEFISupport(part IDiskPartition) bool

func (SOpenWrtRootFs) DisableCloudinit

func (l SOpenWrtRootFs) DisableCloudinit(rootFs IDiskPartition)

func (SOpenWrtRootFs) DisableSelinux

func (l SOpenWrtRootFs) DisableSelinux(rootFs IDiskPartition)

func (SOpenWrtRootFs) EnableUserSudo

func (l SOpenWrtRootFs) EnableUserSudo(rootFs IDiskPartition, user string) error

func (SOpenWrtRootFs) GetArch

func (l SOpenWrtRootFs) GetArch(rootFs IDiskPartition) string

func (SOpenWrtRootFs) GetLoginAccount

func (l SOpenWrtRootFs) GetLoginAccount(rootFs IDiskPartition, sUser string, defaultRootUser bool, windowsDefaultAdminUser bool) (string, error)

func (*SOpenWrtRootFs) GetName

func (d *SOpenWrtRootFs) GetName() string

func (SOpenWrtRootFs) GetOs

func (l SOpenWrtRootFs) GetOs() string

func (*SOpenWrtRootFs) GetReleaseInfo

func (d *SOpenWrtRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SOpenWrtRootFs) InstallQemuGuestAgentSystemd

func (d SOpenWrtRootFs) InstallQemuGuestAgentSystemd() error

func (SOpenWrtRootFs) IsCloudinitInstall

func (l SOpenWrtRootFs) IsCloudinitInstall() bool

func (SOpenWrtRootFs) PrepareFsForTemplate

func (l SOpenWrtRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SOpenWrtRootFs) RootSignatures

func (d *SOpenWrtRootFs) RootSignatures() []string

func (*SOpenWrtRootFs) String

func (d *SOpenWrtRootFs) String() string

type SPhoenixOSRootFs

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

func (SPhoenixOSRootFs) ChangeUserPasswd

func (m SPhoenixOSRootFs) ChangeUserPasswd(part IDiskPartition, account, gid, publicKey, password string) (string, error)

func (SPhoenixOSRootFs) CommitChanges

func (m SPhoenixOSRootFs) CommitChanges(part IDiskPartition) error

func (SPhoenixOSRootFs) DeployHostname

func (m SPhoenixOSRootFs) DeployHostname(part IDiskPartition, hostname, domain string) error

func (SPhoenixOSRootFs) DeployHosts

func (m SPhoenixOSRootFs) DeployHosts(part IDiskPartition, hn, domain string, ips []string) error

func (SPhoenixOSRootFs) DeployNetworkingScripts

func (m SPhoenixOSRootFs) DeployNetworkingScripts(rootfs IDiskPartition, nics []*types.SServerNic) error

func (SPhoenixOSRootFs) DeployPublicKey

func (m SPhoenixOSRootFs) DeployPublicKey(rootfs IDiskPartition, uname string, pubkeys *deployapi.SSHKeys) error

func (SPhoenixOSRootFs) GetLoginAccount

func (m SPhoenixOSRootFs) GetLoginAccount(rootFs IDiskPartition, user string, defaultRootUser bool, windowsDefaultAdminUser bool) (string, error)

func (*SPhoenixOSRootFs) GetName

func (m *SPhoenixOSRootFs) GetName() string

func (SPhoenixOSRootFs) GetOs

func (m SPhoenixOSRootFs) GetOs() string

func (SPhoenixOSRootFs) GetReleaseInfo

func (m SPhoenixOSRootFs) GetReleaseInfo(IDiskPartition) *deployapi.ReleaseInfo

func (SPhoenixOSRootFs) IsFsCaseInsensitive

func (m SPhoenixOSRootFs) IsFsCaseInsensitive() bool

func (SPhoenixOSRootFs) PrepareFsForTemplate

func (m SPhoenixOSRootFs) PrepareFsForTemplate(IDiskPartition) error

func (SPhoenixOSRootFs) RootSignatures

func (m SPhoenixOSRootFs) RootSignatures() []string

func (*SPhoenixOSRootFs) String

func (m *SPhoenixOSRootFs) String() string

type SRhelRootFs

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

func (SRhelRootFs) Centos5DeployNetworkingScripts

func (r SRhelRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SRhelRootFs) CleanNetworkScripts

func (r SRhelRootFs) CleanNetworkScripts(rootFs IDiskPartition) error

func (SRhelRootFs) DeployHostname

func (r SRhelRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (*SRhelRootFs) DeployNetworkingScripts

func (d *SRhelRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SRhelRootFs) DeployStandbyNetworkingScripts

func (r SRhelRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (*SRhelRootFs) DisableSerialConsole

func (c *SRhelRootFs) DisableSerialConsole(rootFs IDiskPartition) error

func (*SRhelRootFs) EnableSerialConsole

func (c *SRhelRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error

func (*SRhelRootFs) GetName

func (d *SRhelRootFs) GetName() string

func (*SRhelRootFs) GetReleaseInfo

func (d *SRhelRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SRhelRootFs) PrepareFsForTemplate

func (r SRhelRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (SRhelRootFs) RootSignatures

func (r SRhelRootFs) RootSignatures() []string

func (*SRhelRootFs) String

func (d *SRhelRootFs) String() string

type SRockyRootFs

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

func (SRockyRootFs) Centos5DeployNetworkingScripts

func (r SRockyRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SRockyRootFs) CleanNetworkScripts

func (r SRockyRootFs) CleanNetworkScripts(rootFs IDiskPartition) error

func (SRockyRootFs) DeployHostname

func (r SRockyRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (*SRockyRootFs) DeployNetworkingScripts

func (d *SRockyRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SRockyRootFs) DeployStandbyNetworkingScripts

func (r SRockyRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (*SRockyRootFs) DisableSerialConsole

func (c *SRockyRootFs) DisableSerialConsole(rootFs IDiskPartition) error

func (*SRockyRootFs) EnableSerialConsole

func (c *SRockyRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error

func (*SRockyRootFs) GetName

func (d *SRockyRootFs) GetName() string

func (*SRockyRootFs) GetReleaseInfo

func (d *SRockyRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SRockyRootFs) PrepareFsForTemplate

func (r SRockyRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SRockyRootFs) RootSignatures

func (d *SRockyRootFs) RootSignatures() []string

func (*SRockyRootFs) String

func (d *SRockyRootFs) String() string

type SUKylinRootfs

type SUKylinRootfs struct {
	*SUbuntuRootFs
}

func (*SUKylinRootfs) AllowAdminLogin

func (d *SUKylinRootfs) AllowAdminLogin() bool

func (SUKylinRootfs) DeployHostname

func (d SUKylinRootfs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (SUKylinRootfs) DeployNetworkingScripts

func (d SUKylinRootfs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (*SUKylinRootfs) GetName

func (d *SUKylinRootfs) GetName() string

func (*SUKylinRootfs) GetReleaseInfo

func (d *SUKylinRootfs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SUKylinRootfs) PrepareFsForTemplate

func (d SUKylinRootfs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SUKylinRootfs) RootSignatures

func (d *SUKylinRootfs) RootSignatures() []string

func (*SUKylinRootfs) String

func (d *SUKylinRootfs) String() string

type SUOSDesktopRootFs

type SUOSDesktopRootFs struct {
	*SUbuntuRootFs
}

func (*SUOSDesktopRootFs) AllowAdminLogin

func (d *SUOSDesktopRootFs) AllowAdminLogin() bool

func (SUOSDesktopRootFs) DeployHostname

func (d SUOSDesktopRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (SUOSDesktopRootFs) DeployNetworkingScripts

func (d SUOSDesktopRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (*SUOSDesktopRootFs) GetName

func (d *SUOSDesktopRootFs) GetName() string

func (*SUOSDesktopRootFs) GetReleaseInfo

func (d *SUOSDesktopRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SUOSDesktopRootFs) PrepareFsForTemplate

func (d SUOSDesktopRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SUOSDesktopRootFs) RootSignatures

func (d *SUOSDesktopRootFs) RootSignatures() []string

func (*SUOSDesktopRootFs) String

func (d *SUOSDesktopRootFs) String() string

type SUbuntuRootFs

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

func (SUbuntuRootFs) DeployHostname

func (d SUbuntuRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (SUbuntuRootFs) DeployNetworkingScripts

func (d SUbuntuRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (*SUbuntuRootFs) DisableSerialConcole

func (d *SUbuntuRootFs) DisableSerialConcole(rootFs IDiskPartition) error

func (*SUbuntuRootFs) EnableSerialConsole

func (d *SUbuntuRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error

func (*SUbuntuRootFs) GetName

func (d *SUbuntuRootFs) GetName() string

func (*SUbuntuRootFs) GetReleaseInfo

func (d *SUbuntuRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SUbuntuRootFs) PrepareFsForTemplate

func (d SUbuntuRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SUbuntuRootFs) RootSignatures

func (d *SUbuntuRootFs) RootSignatures() []string

func (*SUbuntuRootFs) String

func (d *SUbuntuRootFs) String() string

type SUnionOSRootFs

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

func (SUnionOSRootFs) Centos5DeployNetworkingScripts

func (r SUnionOSRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SUnionOSRootFs) CleanNetworkScripts

func (r SUnionOSRootFs) CleanNetworkScripts(rootFs IDiskPartition) error

func (SUnionOSRootFs) DeployHostname

func (r SUnionOSRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error

func (*SUnionOSRootFs) DeployNetworkingScripts

func (d *SUnionOSRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error

func (SUnionOSRootFs) DeployStandbyNetworkingScripts

func (r SUnionOSRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (*SUnionOSRootFs) DisableSerialConsole

func (c *SUnionOSRootFs) DisableSerialConsole(rootFs IDiskPartition) error

func (*SUnionOSRootFs) EnableSerialConsole

func (c *SUnionOSRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error

func (*SUnionOSRootFs) GetName

func (d *SUnionOSRootFs) GetName() string

func (*SUnionOSRootFs) GetReleaseInfo

func (d *SUnionOSRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo

func (SUnionOSRootFs) PrepareFsForTemplate

func (r SUnionOSRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error

func (*SUnionOSRootFs) RootSignatures

func (d *SUnionOSRootFs) RootSignatures() []string

func (*SUnionOSRootFs) String

func (d *SUnionOSRootFs) String() string

type SWindowsRootFs

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

func (SWindowsRootFs) AllowAdminLogin

func (r SWindowsRootFs) AllowAdminLogin() bool

func (*SWindowsRootFs) ChangeUserPasswd

func (w *SWindowsRootFs) ChangeUserPasswd(part IDiskPartition, account, gid, publicKey, password string) (string, error)

func (SWindowsRootFs) CleanNetworkScripts

func (r SWindowsRootFs) CleanNetworkScripts(rootFs IDiskPartition) error

func (*SWindowsRootFs) CommitChanges

func (w *SWindowsRootFs) CommitChanges(part IDiskPartition) error

func (SWindowsRootFs) DeployFiles

func (d SWindowsRootFs) DeployFiles(deploys []*deployapi.DeployContent) error

func (*SWindowsRootFs) DeployFstabScripts

func (w *SWindowsRootFs) DeployFstabScripts(rootFs IDiskPartition, disks []*deployapi.Disk) error

func (*SWindowsRootFs) DeployHostname

func (w *SWindowsRootFs) DeployHostname(part IDiskPartition, hostname, domain string) error

func (*SWindowsRootFs) DeployHosts

func (w *SWindowsRootFs) DeployHosts(part IDiskPartition, hn, domain string, ips []string) error

func (*SWindowsRootFs) DeployNetworkingScripts

func (w *SWindowsRootFs) DeployNetworkingScripts(rootfs IDiskPartition, nics []*types.SServerNic) error

func (*SWindowsRootFs) DeployPublicKey

func (w *SWindowsRootFs) DeployPublicKey(IDiskPartition, string, *deployapi.SSHKeys) error

func (*SWindowsRootFs) DeployQgaBlackList

func (w *SWindowsRootFs) DeployQgaBlackList(part IDiskPartition) error

func (*SWindowsRootFs) DeployQgaService

func (w *SWindowsRootFs) DeployQgaService(part IDiskPartition) error

func (SWindowsRootFs) DeployStandbyNetworkingScripts

func (d SWindowsRootFs) DeployStandbyNetworkingScripts(part IDiskPartition, nics, nicsStandby []*types.SServerNic) error

func (*SWindowsRootFs) DeployTelegraf

func (w *SWindowsRootFs) DeployTelegraf(config string) (bool, error)

func (SWindowsRootFs) DeployUdevSubsystemScripts

func (d SWindowsRootFs) DeployUdevSubsystemScripts(rootfs IDiskPartition) error

func (*SWindowsRootFs) DeployUserData

func (w *SWindowsRootFs) DeployUserData(userData string) error

func (SWindowsRootFs) DeployYunionroot

func (d SWindowsRootFs) DeployYunionroot(rootfs IDiskPartition, pubkeys *deployapi.SSHKeys, isInit, enableCloudInit bool) error

func (*SWindowsRootFs) DetectIsUEFISupport

func (w *SWindowsRootFs) DetectIsUEFISupport(part IDiskPartition) bool

func (SWindowsRootFs) DisableSerialConsole

func (d SWindowsRootFs) DisableSerialConsole(rootfs IDiskPartition) error

func (SWindowsRootFs) EnableSerialConsole

func (d SWindowsRootFs) EnableSerialConsole(rootfs IDiskPartition, sysInfo *jsonutils.JSONDict) error

func (*SWindowsRootFs) GetArch

func (w *SWindowsRootFs) GetArch(hostCpuArch string) string

func (SWindowsRootFs) GetIRootFsDriver

func (d SWindowsRootFs) GetIRootFsDriver() IRootFsDriver

func (*SWindowsRootFs) GetLoginAccount

func (w *SWindowsRootFs) GetLoginAccount(rootFs IDiskPartition, sUser string, defaultRootUser bool, windowsDefaultAdminUser bool) (string, error)

func (*SWindowsRootFs) GetName

func (w *SWindowsRootFs) GetName() string

func (*SWindowsRootFs) GetOs

func (w *SWindowsRootFs) GetOs() string

func (SWindowsRootFs) GetPartition

func (d SWindowsRootFs) GetPartition() IDiskPartition

func (*SWindowsRootFs) GetReleaseInfo

func (w *SWindowsRootFs) GetReleaseInfo(IDiskPartition) *deployapi.ReleaseInfo

func (SWindowsRootFs) IsCloudinitInstall

func (l SWindowsRootFs) IsCloudinitInstall() bool

func (*SWindowsRootFs) IsFsCaseInsensitive

func (w *SWindowsRootFs) IsFsCaseInsensitive() bool

func (*SWindowsRootFs) IsOldWindows

func (w *SWindowsRootFs) IsOldWindows() bool

func (*SWindowsRootFs) IsResizeFsPartitionSupport

func (l *SWindowsRootFs) IsResizeFsPartitionSupport() bool

func (*SWindowsRootFs) IsWindows10NonPro

func (w *SWindowsRootFs) IsWindows10NonPro() bool

func (*SWindowsRootFs) MakeGuestDebugCmd

func (w *SWindowsRootFs) MakeGuestDebugCmd(content string) string

func (*SWindowsRootFs) PrepareFsForTemplate

func (w *SWindowsRootFs) PrepareFsForTemplate(IDiskPartition) error

func (SWindowsRootFs) RootExcludeSignatures

func (d SWindowsRootFs) RootExcludeSignatures() []string

func (*SWindowsRootFs) RootSignatures

func (w *SWindowsRootFs) RootSignatures() []string

func (*SWindowsRootFs) String

func (w *SWindowsRootFs) String() string

Jump to

Keyboard shortcuts

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