Documentation ¶
Index ¶
- Constants
- Variables
- func BuildPropStr(prop map[string]string) string
- func DeployAuthorizedKeys(rootFs IDiskPartition, usrDir string, pubkeys *deployapi.SSHKeys, replace bool) error
- func GetRootfsDrivers() []newRootFsDriverFunc
- func Init(initPrivatePrefixes []string, cloudrootDir string) error
- func MergeAuthorizedKeys(oldKeys string, pubkeys *deployapi.SSHKeys) string
- func NewNetplanConfig(allNics []*types.SServerNic, bondNics []*types.SServerNic) *netplan.Configuration
- func ParsePropStr(lines string) map[string]string
- func ToServerNics(nics []*deployapi.Nic) []*types.SServerNic
- type IDebianRootFsDriver
- type IDiskPartition
- type IRootFsDriver
- func NewAndroidRootFs(part IDiskPartition) IRootFsDriver
- func NewAnolisRootFs(part IDiskPartition) IRootFsDriver
- func NewArchLinuxRootFs(part IDiskPartition) IRootFsDriver
- func NewCentosRootFs(part IDiskPartition) IRootFsDriver
- func NewCirrosNewRootFs(part IDiskPartition) IRootFsDriver
- func NewCirrosRootFs(part IDiskPartition) IRootFsDriver
- func NewCoreOsRootFs(part IDiskPartition) IRootFsDriver
- func NewDebianRootFs(part IDiskPartition) IRootFsDriver
- func NewEsxiRootFs(part IDiskPartition) IRootFsDriver
- func NewFangdeDeskRootfs(part IDiskPartition) IRootFsDriver
- func NewFangdeRootFs(part IDiskPartition) IRootFsDriver
- func NewFedoraRootFs(part IDiskPartition) IRootFsDriver
- func NewGalaxyKylinRootFs(part IDiskPartition) IRootFsDriver
- func NewGentooRootFs(part IDiskPartition) IRootFsDriver
- func NewMacOSRootFs(part IDiskPartition) IRootFsDriver
- func NewNeoKylinRootFs(part IDiskPartition) IRootFsDriver
- func NewOpenEulerRootFs(part IDiskPartition) IRootFsDriver
- func NewOpenWrtRootFs(part IDiskPartition) IRootFsDriver
- func NewPhoenixOSRootFs(part IDiskPartition) IRootFsDriver
- func NewRhelRootFs(part IDiskPartition) IRootFsDriver
- func NewUKylinRootfs(part IDiskPartition) IRootFsDriver
- func NewUbuntuRootFs(part IDiskPartition) IRootFsDriver
- func NewUnionOSRootFs(part IDiskPartition) IRootFsDriver
- func NewWindowsRootFs(part IDiskPartition) IRootFsDriver
- type SAndroidRootFs
- func (m SAndroidRootFs) ChangeUserPasswd(part IDiskPartition, account, gid, publicKey, password string) (string, error)
- func (m SAndroidRootFs) CommitChanges(part IDiskPartition) error
- func (m SAndroidRootFs) DeployHostname(part IDiskPartition, hostname, domain string) error
- func (m SAndroidRootFs) DeployHosts(part IDiskPartition, hn, domain string, ips []string) error
- func (m SAndroidRootFs) DeployNetworkingScripts(rootfs IDiskPartition, nics []*types.SServerNic) error
- func (m SAndroidRootFs) DeployPublicKey(rootfs IDiskPartition, uname string, pubkeys *deployapi.SSHKeys) error
- func (m SAndroidRootFs) GetLoginAccount(rootFs IDiskPartition, user string, defaultRootUser bool, ...) (string, error)
- func (m *SAndroidRootFs) GetName() string
- func (m SAndroidRootFs) GetOs() string
- func (m SAndroidRootFs) GetReleaseInfo(IDiskPartition) *deployapi.ReleaseInfo
- func (m SAndroidRootFs) IsFsCaseInsensitive() bool
- func (m SAndroidRootFs) PrepareFsForTemplate(IDiskPartition) error
- func (m SAndroidRootFs) RootSignatures() []string
- func (m *SAndroidRootFs) String() string
- type SAnolisRootFs
- func (r SAnolisRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (r SAnolisRootFs) CleanNetworkScripts(rootFs IDiskPartition) error
- func (r SAnolisRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error
- func (d *SAnolisRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (r SAnolisRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error
- func (c *SAnolisRootFs) DisableSerialConsole(rootFs IDiskPartition) error
- func (c *SAnolisRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error
- func (d *SAnolisRootFs) GetName() string
- func (d *SAnolisRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
- func (r SAnolisRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error
- func (d *SAnolisRootFs) RootSignatures() []string
- func (d *SAnolisRootFs) String() string
- type SArchLinuxRootFs
- func (l SArchLinuxRootFs) ChangeUserPasswd(rootFs IDiskPartition, account, gid, publicKey, password string) (string, error)
- func (l SArchLinuxRootFs) DeployFstabScripts(rootFs IDiskPartition, disks []*deployapi.Disk) error
- func (d *SArchLinuxRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error
- func (l SArchLinuxRootFs) DeployHosts(rootFs IDiskPartition, hostname, domain string, ips []string) error
- func (l SArchLinuxRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (l SArchLinuxRootFs) DeployPublicKey(rootFs IDiskPartition, selUsr string, pubkeys *deployapi.SSHKeys) error
- func (l SArchLinuxRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error
- func (d SArchLinuxRootFs) DeployTelegraf(config string) (bool, error)
- func (l SArchLinuxRootFs) DeployYunionroot(rootFs IDiskPartition, pubkeys *deployapi.SSHKeys, ...) error
- func (l SArchLinuxRootFs) DetectIsUEFISupport(part IDiskPartition) bool
- func (l SArchLinuxRootFs) DisableCloudinit(rootFs IDiskPartition)
- func (l SArchLinuxRootFs) DisableSelinux(rootFs IDiskPartition)
- func (l SArchLinuxRootFs) EnableUserSudo(rootFs IDiskPartition, user string) error
- func (l SArchLinuxRootFs) GetArch(rootFs IDiskPartition) string
- func (l SArchLinuxRootFs) GetLoginAccount(rootFs IDiskPartition, sUser string, defaultRootUser bool, ...) (string, error)
- func (d *SArchLinuxRootFs) GetName() string
- func (l SArchLinuxRootFs) GetOs() string
- func (d *SArchLinuxRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
- func (l SArchLinuxRootFs) IsCloudinitInstall() bool
- func (l SArchLinuxRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error
- func (d *SArchLinuxRootFs) RootSignatures() []string
- func (d *SArchLinuxRootFs) String() string
- type SCentosRootFs
- func (r SCentosRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (r SCentosRootFs) CleanNetworkScripts(rootFs IDiskPartition) error
- func (r SCentosRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error
- func (c *SCentosRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (r SCentosRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error
- func (c *SCentosRootFs) DisableSerialConsole(rootFs IDiskPartition) error
- func (c *SCentosRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error
- func (c *SCentosRootFs) GetName() string
- func (c *SCentosRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
- func (r SCentosRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error
- func (c *SCentosRootFs) RootSignatures() []string
- func (c *SCentosRootFs) String() string
- type SCirrosNewRootFs
- func (d SCirrosNewRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error
- func (d SCirrosNewRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (d *SCirrosNewRootFs) DistroName() string
- func (d *SCirrosNewRootFs) GetName() string
- func (d *SCirrosNewRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
- func (d SCirrosNewRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error
- func (d *SCirrosNewRootFs) RootSignatures() []string
- func (d *SCirrosNewRootFs) String() string
- func (d *SCirrosNewRootFs) VersionFilePath() string
- type SCirrosRootFs
- func (d SCirrosRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error
- func (d SCirrosRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (d *SCirrosRootFs) DistroName() string
- func (d *SCirrosRootFs) GetName() string
- func (d *SCirrosRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
- func (d SCirrosRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error
- func (d *SCirrosRootFs) RootSignatures() []string
- func (d *SCirrosRootFs) String() string
- func (d *SCirrosRootFs) VersionFilePath() string
- type SCoreOsRootFs
- func (d *SCoreOsRootFs) ChangeUserPasswd(rootFs IDiskPartition, account, gid, publicKey, password string) (string, error)
- func (r SCoreOsRootFs) CleanNetworkScripts(rootFs IDiskPartition) error
- func (d *SCoreOsRootFs) CommitChanges(IDiskPartition) error
- func (d *SCoreOsRootFs) DeployFiles(deploys []*deployapi.DeployContent) error
- func (d *SCoreOsRootFs) DeployFstabScripts(rootFs IDiskPartition, disks []*deployapi.Disk) error
- func (d *SCoreOsRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error
- func (d *SCoreOsRootFs) DeployHosts(rootFs IDiskPartition, hostname, domain string, ips []string) error
- func (d *SCoreOsRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (d *SCoreOsRootFs) DeployPublicKey(rootFs IDiskPartition, selUsr string, pubkeys *deployapi.SSHKeys) error
- func (d SCoreOsRootFs) DeployStandbyNetworkingScripts(part IDiskPartition, nics, nicsStandby []*types.SServerNic) error
- func (d SCoreOsRootFs) DeployTelegraf(string) (bool, error)
- func (d SCoreOsRootFs) DeployUdevSubsystemScripts(rootfs IDiskPartition) error
- func (d SCoreOsRootFs) DeployYunionroot(rootfs IDiskPartition, pubkeys *deployapi.SSHKeys, ...) error
- func (d SCoreOsRootFs) DetectIsUEFISupport(IDiskPartition) bool
- func (d SCoreOsRootFs) DisableSerialConsole(rootfs IDiskPartition) error
- func (d SCoreOsRootFs) EnableSerialConsole(rootfs IDiskPartition, sysInfo *jsonutils.JSONDict) error
- func (d *SCoreOsRootFs) GetConfig() *coreosutils.SCloudConfig
- func (d *SCoreOsRootFs) GetLoginAccount(rootFs IDiskPartition, user string, defaultRootUser bool, ...) (string, error)
- func (d *SCoreOsRootFs) GetName() string
- func (d *SCoreOsRootFs) GetOs() string
- func (d SCoreOsRootFs) GetPartition() IDiskPartition
- func (d *SCoreOsRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
- func (l SCoreOsRootFs) IsCloudinitInstall() bool
- func (d SCoreOsRootFs) IsFsCaseInsensitive() bool
- func (l SCoreOsRootFs) IsResizeFsPartitionSupport() bool
- func (d *SCoreOsRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error
- func (d SCoreOsRootFs) RootExcludeSignatures() []string
- func (d *SCoreOsRootFs) RootSignatures() []string
- func (d *SCoreOsRootFs) String() string
- type SDebianRootFs
- func (d SDebianRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error
- func (d SDebianRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (d *SDebianRootFs) DistroName() string
- func (d *SDebianRootFs) GetName() string
- func (d *SDebianRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
- func (d SDebianRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error
- func (d *SDebianRootFs) RootExcludeSignatures() []string
- func (d *SDebianRootFs) RootSignatures() []string
- func (d *SDebianRootFs) String() string
- func (d *SDebianRootFs) VersionFilePath() string
- type SEsxiRootFs
- func (m *SEsxiRootFs) ChangeUserPasswd(part IDiskPartition, account, gid, publicKey, password string) (string, error)
- func (r SEsxiRootFs) CleanNetworkScripts(rootFs IDiskPartition) error
- func (d SEsxiRootFs) CommitChanges(rootfs IDiskPartition) error
- func (d SEsxiRootFs) DeployFiles(deploys []*deployapi.DeployContent) error
- func (d SEsxiRootFs) DeployFstabScripts(_ IDiskPartition, _ []*deployapi.Disk) error
- func (m *SEsxiRootFs) DeployHostname(part IDiskPartition, hostname, domain string) error
- func (m *SEsxiRootFs) DeployHosts(part IDiskPartition, hn, domain string, ips []string) error
- func (m *SEsxiRootFs) DeployNetworkingScripts(rootfs IDiskPartition, nics []*types.SServerNic) error
- func (m *SEsxiRootFs) DeployPublicKey(rootfs IDiskPartition, uname string, pubkeys *deployapi.SSHKeys) error
- func (d SEsxiRootFs) DeployStandbyNetworkingScripts(part IDiskPartition, nics, nicsStandby []*types.SServerNic) error
- func (d SEsxiRootFs) DeployTelegraf(string) (bool, error)
- func (d SEsxiRootFs) DeployUdevSubsystemScripts(rootfs IDiskPartition) error
- func (d SEsxiRootFs) DeployYunionroot(rootfs IDiskPartition, pubkeys *deployapi.SSHKeys, ...) error
- func (d SEsxiRootFs) DetectIsUEFISupport(IDiskPartition) bool
- func (d SEsxiRootFs) DisableSerialConsole(rootfs IDiskPartition) error
- func (d SEsxiRootFs) EnableSerialConsole(rootfs IDiskPartition, sysInfo *jsonutils.JSONDict) error
- func (m *SEsxiRootFs) GetLoginAccount(rootFs IDiskPartition, user string, defaultRootUser bool, ...) (string, error)
- func (m *SEsxiRootFs) GetName() string
- func (m *SEsxiRootFs) GetOs() string
- func (d SEsxiRootFs) GetPartition() IDiskPartition
- func (m *SEsxiRootFs) GetReleaseInfo(IDiskPartition) *deployapi.ReleaseInfo
- func (l SEsxiRootFs) IsCloudinitInstall() bool
- func (m *SEsxiRootFs) IsFsCaseInsensitive() bool
- func (l SEsxiRootFs) IsResizeFsPartitionSupport() bool
- func (m *SEsxiRootFs) PrepareFsForTemplate(IDiskPartition) error
- func (d SEsxiRootFs) RootExcludeSignatures() []string
- func (m *SEsxiRootFs) RootSignatures() []string
- func (m *SEsxiRootFs) String() string
- type SFangdeDeskRootfs
- func (d SFangdeDeskRootfs) DeployHostname(rootFs IDiskPartition, hn, domain string) error
- func (d SFangdeDeskRootfs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (d *SFangdeDeskRootfs) GetName() string
- func (d *SFangdeDeskRootfs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
- func (d SFangdeDeskRootfs) PrepareFsForTemplate(rootFs IDiskPartition) error
- func (d *SFangdeDeskRootfs) RootSignatures() []string
- func (d *SFangdeDeskRootfs) String() string
- type SFangdeRootFs
- func (r SFangdeRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (r SFangdeRootFs) CleanNetworkScripts(rootFs IDiskPartition) error
- func (r SFangdeRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error
- func (d *SFangdeRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (r SFangdeRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error
- func (c *SFangdeRootFs) DisableSerialConsole(rootFs IDiskPartition) error
- func (c *SFangdeRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error
- func (d *SFangdeRootFs) GetName() string
- func (d *SFangdeRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
- func (r SFangdeRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error
- func (d *SFangdeRootFs) RootSignatures() []string
- func (d *SFangdeRootFs) String() string
- type SFedoraRootFs
- func (r SFedoraRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (r SFedoraRootFs) CleanNetworkScripts(rootFs IDiskPartition) error
- func (r SFedoraRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error
- func (c *SFedoraRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (r SFedoraRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error
- func (c *SFedoraRootFs) DisableSerialConsole(rootFs IDiskPartition) error
- func (c *SFedoraRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error
- func (c *SFedoraRootFs) GetName() string
- func (c *SFedoraRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
- func (r SFedoraRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error
- func (c *SFedoraRootFs) RootSignatures() []string
- func (c *SFedoraRootFs) String() string
- type SGalaxyKylinRootFs
- func (r SGalaxyKylinRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (r SGalaxyKylinRootFs) CleanNetworkScripts(rootFs IDiskPartition) error
- func (r SGalaxyKylinRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error
- func (d *SGalaxyKylinRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (r SGalaxyKylinRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error
- func (c *SGalaxyKylinRootFs) DisableSerialConsole(rootFs IDiskPartition) error
- func (c *SGalaxyKylinRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error
- func (d *SGalaxyKylinRootFs) GetName() string
- func (d *SGalaxyKylinRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
- func (r SGalaxyKylinRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error
- func (d *SGalaxyKylinRootFs) RootSignatures() []string
- func (d *SGalaxyKylinRootFs) String() string
- type SGentooRootFs
- func (l SGentooRootFs) ChangeUserPasswd(rootFs IDiskPartition, account, gid, publicKey, password string) (string, error)
- func (l SGentooRootFs) DeployFstabScripts(rootFs IDiskPartition, disks []*deployapi.Disk) error
- func (d *SGentooRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error
- func (l SGentooRootFs) DeployHosts(rootFs IDiskPartition, hostname, domain string, ips []string) error
- func (l *SGentooRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (l SGentooRootFs) DeployPublicKey(rootFs IDiskPartition, selUsr string, pubkeys *deployapi.SSHKeys) error
- func (l SGentooRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error
- func (d SGentooRootFs) DeployTelegraf(config string) (bool, error)
- func (l SGentooRootFs) DeployYunionroot(rootFs IDiskPartition, pubkeys *deployapi.SSHKeys, ...) error
- func (l SGentooRootFs) DetectIsUEFISupport(part IDiskPartition) bool
- func (l SGentooRootFs) DisableCloudinit(rootFs IDiskPartition)
- func (l SGentooRootFs) DisableSelinux(rootFs IDiskPartition)
- func (l SGentooRootFs) EnableUserSudo(rootFs IDiskPartition, user string) error
- func (l SGentooRootFs) GetArch(rootFs IDiskPartition) string
- func (l SGentooRootFs) GetLoginAccount(rootFs IDiskPartition, sUser string, defaultRootUser bool, ...) (string, error)
- func (d *SGentooRootFs) GetName() string
- func (l SGentooRootFs) GetOs() string
- func (d *SGentooRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
- func (l SGentooRootFs) IsCloudinitInstall() bool
- func (l SGentooRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error
- func (d *SGentooRootFs) RootSignatures() []string
- func (d *SGentooRootFs) String() string
- type SMacOSRootFs
- func (m *SMacOSRootFs) ChangeUserPasswd(part IDiskPartition, account, gid, publicKey, password string) (string, error)
- func (r SMacOSRootFs) CleanNetworkScripts(rootFs IDiskPartition) error
- func (m *SMacOSRootFs) CommitChanges(part IDiskPartition) error
- func (d SMacOSRootFs) DeployFiles(deploys []*deployapi.DeployContent) error
- func (d SMacOSRootFs) DeployFstabScripts(_ IDiskPartition, _ []*deployapi.Disk) error
- func (m *SMacOSRootFs) DeployHostname(part IDiskPartition, hostname, domain string) error
- func (m *SMacOSRootFs) DeployHosts(part IDiskPartition, hn, domain string, ips []string) error
- func (m *SMacOSRootFs) DeployNetworkingScripts(rootfs IDiskPartition, nics []*types.SServerNic) error
- func (m *SMacOSRootFs) DeployPublicKey(rootfs IDiskPartition, uname string, pubkeys *deployapi.SSHKeys) error
- func (d SMacOSRootFs) DeployStandbyNetworkingScripts(part IDiskPartition, nics, nicsStandby []*types.SServerNic) error
- func (d SMacOSRootFs) DeployTelegraf(string) (bool, error)
- func (d SMacOSRootFs) DeployUdevSubsystemScripts(rootfs IDiskPartition) error
- func (d SMacOSRootFs) DeployYunionroot(rootfs IDiskPartition, pubkeys *deployapi.SSHKeys, ...) error
- func (d SMacOSRootFs) DetectIsUEFISupport(IDiskPartition) bool
- func (d SMacOSRootFs) DisableSerialConsole(rootfs IDiskPartition) error
- func (d SMacOSRootFs) EnableSerialConsole(rootfs IDiskPartition, sysInfo *jsonutils.JSONDict) error
- func (m *SMacOSRootFs) GetLoginAccount(rootFs IDiskPartition, user string, defaultRootUser bool, ...) (string, error)
- func (m *SMacOSRootFs) GetName() string
- func (m *SMacOSRootFs) GetOs() string
- func (d SMacOSRootFs) GetPartition() IDiskPartition
- func (m *SMacOSRootFs) GetReleaseInfo(IDiskPartition) *deployapi.ReleaseInfo
- func (l SMacOSRootFs) IsCloudinitInstall() bool
- func (m *SMacOSRootFs) IsFsCaseInsensitive() bool
- func (l SMacOSRootFs) IsResizeFsPartitionSupport() bool
- func (m *SMacOSRootFs) PrepareFsForTemplate(IDiskPartition) error
- func (d SMacOSRootFs) RootExcludeSignatures() []string
- func (m *SMacOSRootFs) RootSignatures() []string
- func (m *SMacOSRootFs) String() string
- type SNeoKylinRootFs
- func (r SNeoKylinRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (r SNeoKylinRootFs) CleanNetworkScripts(rootFs IDiskPartition) error
- func (r SNeoKylinRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error
- func (d *SNeoKylinRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (r SNeoKylinRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error
- func (c *SNeoKylinRootFs) DisableSerialConsole(rootFs IDiskPartition) error
- func (c *SNeoKylinRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error
- func (d *SNeoKylinRootFs) GetName() string
- func (d *SNeoKylinRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
- func (r SNeoKylinRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error
- func (d *SNeoKylinRootFs) RootSignatures() []string
- func (d *SNeoKylinRootFs) String() string
- type SOpenEulerRootFs
- func (r SOpenEulerRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (r SOpenEulerRootFs) CleanNetworkScripts(rootFs IDiskPartition) error
- func (r SOpenEulerRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error
- func (c *SOpenEulerRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (r SOpenEulerRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error
- func (c *SOpenEulerRootFs) GetName() string
- func (c *SOpenEulerRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
- func (r SOpenEulerRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error
- func (c *SOpenEulerRootFs) RootSignatures() []string
- func (c *SOpenEulerRootFs) String() string
- type SOpenWrtRootFs
- func (l SOpenWrtRootFs) ChangeUserPasswd(rootFs IDiskPartition, account, gid, publicKey, password string) (string, error)
- func (l SOpenWrtRootFs) DeployFstabScripts(rootFs IDiskPartition, disks []*deployapi.Disk) error
- func (d *SOpenWrtRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error
- func (l SOpenWrtRootFs) DeployHosts(rootFs IDiskPartition, hostname, domain string, ips []string) error
- func (d *SOpenWrtRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (d *SOpenWrtRootFs) DeployPublicKey(rootFs IDiskPartition, selUsr string, pubkeys *deployapi.SSHKeys) error
- func (l SOpenWrtRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error
- func (d SOpenWrtRootFs) DeployTelegraf(config string) (bool, error)
- func (l SOpenWrtRootFs) DeployYunionroot(rootFs IDiskPartition, pubkeys *deployapi.SSHKeys, ...) error
- func (l SOpenWrtRootFs) DetectIsUEFISupport(part IDiskPartition) bool
- func (l SOpenWrtRootFs) DisableCloudinit(rootFs IDiskPartition)
- func (l SOpenWrtRootFs) DisableSelinux(rootFs IDiskPartition)
- func (l SOpenWrtRootFs) EnableUserSudo(rootFs IDiskPartition, user string) error
- func (l SOpenWrtRootFs) GetArch(rootFs IDiskPartition) string
- func (l SOpenWrtRootFs) GetLoginAccount(rootFs IDiskPartition, sUser string, defaultRootUser bool, ...) (string, error)
- func (d *SOpenWrtRootFs) GetName() string
- func (l SOpenWrtRootFs) GetOs() string
- func (d *SOpenWrtRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
- func (l SOpenWrtRootFs) IsCloudinitInstall() bool
- func (l SOpenWrtRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error
- func (d *SOpenWrtRootFs) RootSignatures() []string
- func (d *SOpenWrtRootFs) String() string
- type SPhoenixOSRootFs
- func (m SPhoenixOSRootFs) ChangeUserPasswd(part IDiskPartition, account, gid, publicKey, password string) (string, error)
- func (m SPhoenixOSRootFs) CommitChanges(part IDiskPartition) error
- func (m SPhoenixOSRootFs) DeployHostname(part IDiskPartition, hostname, domain string) error
- func (m SPhoenixOSRootFs) DeployHosts(part IDiskPartition, hn, domain string, ips []string) error
- func (m SPhoenixOSRootFs) DeployNetworkingScripts(rootfs IDiskPartition, nics []*types.SServerNic) error
- func (m SPhoenixOSRootFs) DeployPublicKey(rootfs IDiskPartition, uname string, pubkeys *deployapi.SSHKeys) error
- func (m SPhoenixOSRootFs) GetLoginAccount(rootFs IDiskPartition, user string, defaultRootUser bool, ...) (string, error)
- func (m *SPhoenixOSRootFs) GetName() string
- func (m SPhoenixOSRootFs) GetOs() string
- func (m SPhoenixOSRootFs) GetReleaseInfo(IDiskPartition) *deployapi.ReleaseInfo
- func (m SPhoenixOSRootFs) IsFsCaseInsensitive() bool
- func (m SPhoenixOSRootFs) PrepareFsForTemplate(IDiskPartition) error
- func (m SPhoenixOSRootFs) RootSignatures() []string
- func (m *SPhoenixOSRootFs) String() string
- type SRhelRootFs
- func (r SRhelRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (r SRhelRootFs) CleanNetworkScripts(rootFs IDiskPartition) error
- func (r SRhelRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error
- func (d *SRhelRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (r SRhelRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error
- func (c *SRhelRootFs) DisableSerialConsole(rootFs IDiskPartition) error
- func (c *SRhelRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error
- func (d *SRhelRootFs) GetName() string
- func (d *SRhelRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
- func (r SRhelRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error
- func (r SRhelRootFs) RootSignatures() []string
- func (d *SRhelRootFs) String() string
- type SUKylinRootfs
- func (d SUKylinRootfs) DeployHostname(rootFs IDiskPartition, hn, domain string) error
- func (d SUKylinRootfs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (d *SUKylinRootfs) GetName() string
- func (d *SUKylinRootfs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
- func (d SUKylinRootfs) PrepareFsForTemplate(rootFs IDiskPartition) error
- func (d *SUKylinRootfs) RootSignatures() []string
- func (d *SUKylinRootfs) String() string
- type SUbuntuRootFs
- func (d SUbuntuRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error
- func (d SUbuntuRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (d *SUbuntuRootFs) DisableSerialConcole(rootFs IDiskPartition) error
- func (d *SUbuntuRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error
- func (d *SUbuntuRootFs) GetName() string
- func (d *SUbuntuRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
- func (d SUbuntuRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error
- func (d *SUbuntuRootFs) RootSignatures() []string
- func (d *SUbuntuRootFs) String() string
- type SUnionOSRootFs
- func (r SUnionOSRootFs) Centos5DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (r SUnionOSRootFs) CleanNetworkScripts(rootFs IDiskPartition) error
- func (r SUnionOSRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error
- func (d *SUnionOSRootFs) DeployNetworkingScripts(rootFs IDiskPartition, nics []*types.SServerNic) error
- func (r SUnionOSRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error
- func (c *SUnionOSRootFs) DisableSerialConsole(rootFs IDiskPartition) error
- func (c *SUnionOSRootFs) EnableSerialConsole(rootFs IDiskPartition, sysInfo *jsonutils.JSONDict) error
- func (d *SUnionOSRootFs) GetName() string
- func (d *SUnionOSRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
- func (r SUnionOSRootFs) PrepareFsForTemplate(rootFs IDiskPartition) error
- func (d *SUnionOSRootFs) RootSignatures() []string
- func (d *SUnionOSRootFs) String() string
- type SWindowsRootFs
- func (w *SWindowsRootFs) ChangeUserPasswd(part IDiskPartition, account, gid, publicKey, password string) (string, error)
- func (r SWindowsRootFs) CleanNetworkScripts(rootFs IDiskPartition) error
- func (w *SWindowsRootFs) CommitChanges(part IDiskPartition) error
- func (d SWindowsRootFs) DeployFiles(deploys []*deployapi.DeployContent) error
- func (w *SWindowsRootFs) DeployFstabScripts(rootFs IDiskPartition, disks []*deployapi.Disk) error
- func (w *SWindowsRootFs) DeployHostname(part IDiskPartition, hostname, domain string) error
- func (w *SWindowsRootFs) DeployHosts(part IDiskPartition, hn, domain string, ips []string) error
- func (w *SWindowsRootFs) DeployNetworkingScripts(rootfs IDiskPartition, nics []*types.SServerNic) error
- func (w *SWindowsRootFs) DeployPublicKey(IDiskPartition, string, *deployapi.SSHKeys) error
- func (d SWindowsRootFs) DeployStandbyNetworkingScripts(part IDiskPartition, nics, nicsStandby []*types.SServerNic) error
- func (w *SWindowsRootFs) DeployTelegraf(config string) (bool, error)
- func (d SWindowsRootFs) DeployUdevSubsystemScripts(rootfs IDiskPartition) error
- func (d SWindowsRootFs) DeployYunionroot(rootfs IDiskPartition, pubkeys *deployapi.SSHKeys, ...) error
- func (w *SWindowsRootFs) DetectIsUEFISupport(part IDiskPartition) bool
- func (d SWindowsRootFs) DisableSerialConsole(rootfs IDiskPartition) error
- func (d SWindowsRootFs) EnableSerialConsole(rootfs IDiskPartition, sysInfo *jsonutils.JSONDict) error
- func (w *SWindowsRootFs) GetLoginAccount(rootFs IDiskPartition, sUser string, defaultRootUser bool, ...) (string, error)
- func (w *SWindowsRootFs) GetName() string
- func (w *SWindowsRootFs) GetOs() string
- func (d SWindowsRootFs) GetPartition() IDiskPartition
- func (w *SWindowsRootFs) GetReleaseInfo(IDiskPartition) *deployapi.ReleaseInfo
- func (l SWindowsRootFs) IsCloudinitInstall() bool
- func (w *SWindowsRootFs) IsFsCaseInsensitive() bool
- func (w *SWindowsRootFs) IsOldWindows() bool
- func (l *SWindowsRootFs) IsResizeFsPartitionSupport() bool
- func (w *SWindowsRootFs) IsWindows10() bool
- func (w *SWindowsRootFs) MakeGuestDebugCmd(content string) string
- func (w *SWindowsRootFs) PrepareFsForTemplate(IDiskPartition) error
- func (d SWindowsRootFs) RootExcludeSignatures() []string
- func (w *SWindowsRootFs) RootSignatures() []string
- func (w *SWindowsRootFs) String() string
Constants ¶
View Source
const ( ROOT_USER = "root" YUNIONROOT_USER = "cloudroot" TELEGRAF_BINARY_PATH = "/opt/yunion/bin/telegraf" SUPERVISE_BINARY_PATH = "/opt/yunion/bin/supervise" )
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" )
View Source
const WinScriptChangePassword = `` /* 785-byte string literal not displayed */
View Source
const WinScriptMountDisk = `` /* 13976-byte string literal not displayed */
Variables ¶
View Source
var (
NetDevPrefix = "eth"
)
Functions ¶
func BuildPropStr ¶
func DeployAuthorizedKeys ¶
func GetRootfsDrivers ¶
func GetRootfsDrivers() []newRootFsDriverFunc
func MergeAuthorizedKeys ¶
func NewNetplanConfig ¶
func NewNetplanConfig(allNics []*types.SServerNic, bondNics []*types.SServerNic) *netplan.Configuration
func ParsePropStr ¶
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() }
type IRootFsDriver ¶
type IRootFsDriver interface { 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 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 DeployTelegraf(config string) (bool, error) DetectIsUEFISupport(IDiskPartition) bool IsCloudinitInstall() bool IsResizeFsPartitionSupport() bool PrepareFsForTemplate(IDiskPartition) error CleanNetworkScripts(rootFs IDiskPartition) error }
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 NewOpenEulerRootFs ¶
func NewOpenEulerRootFs(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 NewUKylinRootfs ¶
func NewUKylinRootfs(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 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 (*SAndroidRootFs) GetName ¶
func (m *SAndroidRootFs) GetName() 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) DeployStandbyNetworkingScripts ¶
func (l SArchLinuxRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error
func (SArchLinuxRootFs) DeployTelegraf ¶
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 (*SArchLinuxRootFs) GetName ¶
func (d *SArchLinuxRootFs) GetName() string
func (*SArchLinuxRootFs) GetReleaseInfo ¶
func (d *SArchLinuxRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
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) 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) DeployStandbyNetworkingScripts ¶
func (d SCoreOsRootFs) DeployStandbyNetworkingScripts(part IDiskPartition, nics, nicsStandby []*types.SServerNic) error
func (SCoreOsRootFs) DeployTelegraf ¶
func (SCoreOsRootFs) DeployUdevSubsystemScripts ¶
func (d SCoreOsRootFs) DeployUdevSubsystemScripts(rootfs IDiskPartition) 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) 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) 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) DeployStandbyNetworkingScripts ¶
func (d SEsxiRootFs) DeployStandbyNetworkingScripts(part IDiskPartition, nics, nicsStandby []*types.SServerNic) error
func (SEsxiRootFs) DeployTelegraf ¶
func (SEsxiRootFs) DeployUdevSubsystemScripts ¶
func (d SEsxiRootFs) DeployUdevSubsystemScripts(rootfs IDiskPartition) 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) 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 {
*SUbuntuRootFs
}
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 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) DeployStandbyNetworkingScripts ¶
func (l SGentooRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error
func (SGentooRootFs) DeployTelegraf ¶
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 (*SGentooRootFs) GetName ¶
func (d *SGentooRootFs) GetName() string
func (*SGentooRootFs) GetReleaseInfo ¶
func (d *SGentooRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
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) 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) DeployStandbyNetworkingScripts ¶
func (d SMacOSRootFs) DeployStandbyNetworkingScripts(part IDiskPartition, nics, nicsStandby []*types.SServerNic) error
func (SMacOSRootFs) DeployTelegraf ¶
func (SMacOSRootFs) DeployUdevSubsystemScripts ¶
func (d SMacOSRootFs) DeployUdevSubsystemScripts(rootfs IDiskPartition) 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) 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) 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 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 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) DeployStandbyNetworkingScripts ¶
func (l SOpenWrtRootFs) DeployStandbyNetworkingScripts(rootFs IDiskPartition, nics, nicsStandby []*types.SServerNic) error
func (SOpenWrtRootFs) DeployTelegraf ¶
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 (*SOpenWrtRootFs) GetName ¶
func (d *SOpenWrtRootFs) GetName() string
func (*SOpenWrtRootFs) GetReleaseInfo ¶
func (d *SOpenWrtRootFs) GetReleaseInfo(rootFs IDiskPartition) *deployapi.ReleaseInfo
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 (*SPhoenixOSRootFs) GetName ¶
func (m *SPhoenixOSRootFs) GetName() 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 SUKylinRootfs ¶
type SUKylinRootfs struct {
*SUbuntuRootFs
}
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 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) 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) 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) 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) 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) IsWindows10 ¶
func (w *SWindowsRootFs) IsWindows10() 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
Click to show internal directories.
Click to hide internal directories.