Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomizationLicenseDataMode ¶
type CustomizationLicenseDataMode string
CustomizationLicenseDataMode is an enumeration of the different license modes.
const ( // CustomizationLicenseDataModePerSeat indicates that a client access // license has been purchased for each computer that accesses the // VirtualCenter server. CustomizationLicenseDataModePerSeat CustomizationLicenseDataMode = "perSeat" // CustomizationLicenseDataModePerServer indicates that client access // licenses have been purchased for the server, allowing a certain number of // concurrent connections to the VirtualCenter server. CustomizationLicenseDataModePerServer CustomizationLicenseDataMode = "perServer" )
type DomainPasswordSecretKeySelector ¶
type DomainPasswordSecretKeySelector struct {
// Name is the name of the secret.
Name string `json:"name"`
// Key is the key in the secret that specifies the requested data.
Key string `json:"key"`
}
DomainPasswordSecretKeySelector references the password value from a Secret resource.
func (*DomainPasswordSecretKeySelector) DeepCopy ¶
func (in *DomainPasswordSecretKeySelector) DeepCopy() *DomainPasswordSecretKeySelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DomainPasswordSecretKeySelector.
func (*DomainPasswordSecretKeySelector) DeepCopyInto ¶
func (in *DomainPasswordSecretKeySelector) DeepCopyInto(out *DomainPasswordSecretKeySelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GUIRunOnce ¶
type GUIRunOnce struct {
// Commands is a list of commands to run at first user logon, after guest
// customization.
Commands []string `json:"commands,omitempty"`
}
GUIRunOnce maps to the GuiRunOnce key in the sysprep.xml answer file.
func (*GUIRunOnce) DeepCopy ¶
func (in *GUIRunOnce) DeepCopy() *GUIRunOnce
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GUIRunOnce.
func (*GUIRunOnce) DeepCopyInto ¶
func (in *GUIRunOnce) DeepCopyInto(out *GUIRunOnce)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GUIUnattended ¶
type GUIUnattended struct {
// AutoLogon determine whether the machine automatically logs on as
// Administrator.
//
// Please note if AutoLogon is true, then Password must be set or guest
// customization will fail.
AutoLogon bool `json:"autoLogon,omitempty"`
// AutoLogonCount specifies the number of times the machine should
// automatically log on as Administrator.
//
// Generally it should be 1, but if your setup requires a number of reboots,
// you may want to increase it. This number may be determined by the list of
// commands executed by the GuiRunOnce command.
//
// Please note this field must be specified with a non-zero positive integer
// if AutoLogon is true.
AutoLogonCount int32 `json:"autoLogonCount,omitempty"`
// Password is the new administrator password for the machine.
//
// To specify that the password should be set to blank (that is, no
// password), set the password value to NULL. Because of encryption, "" is
// NOT a valid value.
//
// Please note if the password is set to blank and AutoLogon is true, the
// guest customization will fail.
//
// If the XML file is generated by the VirtualCenter Customization Wizard,
// then the password is encrypted. Otherwise, the client should set the
// plainText attribute to true, so that the customization process does not
// attempt to decrypt the string.
//
// When not explicitly specified, the Key field for the selector defaults to
// `password`.
Password *PasswordSecretKeySelector `json:"password,omitempty"`
// TimeZone is the time zone index for the virtual machine.
//
// Please note that numbers correspond to time zones listed at
// https://bit.ly/3Rzv8oL.
//
// Defaults to UTC.
TimeZone int32 `json:"timeZone"`
}
GUIUnattended maps to the GuiUnattended key in the sysprep.xml answer file.
func (*GUIUnattended) DeepCopy ¶
func (in *GUIUnattended) DeepCopy() *GUIUnattended
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GUIUnattended.
func (*GUIUnattended) DeepCopyInto ¶
func (in *GUIUnattended) DeepCopyInto(out *GUIUnattended)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Identification ¶
type Identification struct {
// DomainAdmin is the domain user account used for authentication if the
// virtual machine is joining a domain. The user does not need to be a
// domain administrator, but the account must have the privileges required
// to add computers to the domain.
DomainAdmin string `json:"domainAdmin,omitempty"`
// DomainAdminPassword is the password for the domain user account used for
// authentication if the virtual machine is joining a domain.
//
// When not explicitly specified, the Key field for the selector defaults to
// `domain_admin_password`.
DomainAdminPassword *DomainPasswordSecretKeySelector `json:"domainAdminPassword,omitempty"`
// DomainOU is the MachineObjectOU which specifies the full LDAP path name of
// the OU to which the computer belongs.
DomainOU string `json:"domainOU,omitempty"`
// JoinWorkgroup is the workgroup that the virtual machine should join. If
// this value is supplied, then the fields spec.network.domain,
// spec.bootstrap.sysprep.identification.domainAdmin, and
// spec.bootstrap.sysprep.identification.domainAdminPassword must be empty.
JoinWorkgroup string `json:"joinWorkgroup,omitempty"`
}
Identification maps to the Identification key in the sysprep.xml answer file and provides information needed to join a workgroup or domain.
func (*Identification) DeepCopy ¶
func (in *Identification) DeepCopy() *Identification
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Identification.
func (*Identification) DeepCopyInto ¶
func (in *Identification) DeepCopyInto(out *Identification)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LicenseFilePrintData ¶
type LicenseFilePrintData struct {
// AutoMode specifies the server licensing mode.
AutoMode CustomizationLicenseDataMode `json:"autoMode"`
// AutoUsers indicates the number of client licenses purchased for the
// VirtualCenter server being installed.
//
// Please note this value is ignored unless AutoMode is PerServer.
AutoUsers *int32 `json:"autoUsers,omitempty"`
}
LicenseFilePrintData maps to the LicenseFilePrintData key in the sysprep.xml answer file and provides information needed to join a workgroup or domain.
func (*LicenseFilePrintData) DeepCopy ¶
func (in *LicenseFilePrintData) DeepCopy() *LicenseFilePrintData
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseFilePrintData.
func (*LicenseFilePrintData) DeepCopyInto ¶
func (in *LicenseFilePrintData) DeepCopyInto(out *LicenseFilePrintData)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PasswordSecretKeySelector ¶
type PasswordSecretKeySelector struct {
// Name is the name of the secret.
Name string `json:"name"`
// Key is the key in the secret that specifies the requested data.
Key string `json:"key"`
}
PasswordSecretKeySelector references the password value from a Secret resource.
func (*PasswordSecretKeySelector) DeepCopy ¶
func (in *PasswordSecretKeySelector) DeepCopy() *PasswordSecretKeySelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PasswordSecretKeySelector.
func (*PasswordSecretKeySelector) DeepCopyInto ¶
func (in *PasswordSecretKeySelector) DeepCopyInto(out *PasswordSecretKeySelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProductIDSecretKeySelector ¶
type ProductIDSecretKeySelector struct {
// Name is the name of the secret.
Name string `json:"name"`
// Key is the key in the secret that specifies the requested data.
Key string `json:"key"`
}
ProductIDSecretKeySelector references the ProductID value from a Secret resource.
func (*ProductIDSecretKeySelector) DeepCopy ¶
func (in *ProductIDSecretKeySelector) DeepCopy() *ProductIDSecretKeySelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProductIDSecretKeySelector.
func (*ProductIDSecretKeySelector) DeepCopyInto ¶
func (in *ProductIDSecretKeySelector) DeepCopyInto(out *ProductIDSecretKeySelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Sysprep ¶
type Sysprep struct {
// GUIRunOnce is a representation of the Sysprep GuiRunOnce key.
GUIRunOnce *GUIRunOnce `json:"guiRunOnce,omitempty"`
// GUIUnattended is a representation of the Sysprep GUIUnattended key.
GUIUnattended *GUIUnattended `json:"guiUnattended,omitempty"`
// Identification is a representation of the Sysprep Identification key.
Identification *Identification `json:"identification,omitempty"`
// LicenseFilePrintData is a representation of the Sysprep
// LicenseFilePrintData key.
//
// Please note this is required only for Windows 2000 Server and Windows
// Server 2003.
LicenseFilePrintData *LicenseFilePrintData `json:"licenseFilePrintData,omitempty"`
// UserData is a representation of the Sysprep UserData key.
UserData UserData `json:"userData"`
}
Sysprep describes the object representation of a Windows sysprep.xml answer file.
All fields and their values are transferred into the sysprep.xml file that VirtualCenter stores on the target virtual disk.
For more detailed information, please see https://technet.microsoft.com/en-us/library/cc771830(v=ws.10).aspx.
func (*Sysprep) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sysprep.
func (*Sysprep) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UserData ¶
type UserData struct {
// FullName is the user's full name.
FullName string `json:"fullName"`
// OrgName is the name of the user's organization.
OrgName string `json:"orgName"`
// ProductID is a valid serial number.
//
// Please note unless the VirtualMachineImage was installed with a volume
// license key, ProductID must be set or guest customization will fail.
//
// When not explicitly specified, the Key field for the selector defaults to
// `domain_admin_password`.
ProductID *ProductIDSecretKeySelector `json:"productID,omitempty"`
}
UserData maps to the UserData key in the sysprep.xml answer file and provides personal data pertaining to the owner of the virtual machine.
func (*UserData) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserData.
func (*UserData) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.