Documentation ¶
Index ¶
- Constants
- func AllowedIsoVolumeName() schema.SchemaValidateDiagFunc
- func GetWinrmClient(config *Config) (winrmClient *winrm.Client, err error)
- func IntBetween(min, max int) schema.SchemaValidateDiagFunc
- func IntInSlice(valid []int) schema.SchemaValidateDiagFunc
- func IsDivisibleBy(logicalSize int) schema.SchemaValidateDiagFunc
- func New(version string, commit string) func() *schema.Provider
- func StringKeyInMap(valid interface{}, ignoreCase bool) schema.SchemaValidateDiagFunc
- func ValueOrIntBetween(value, min, max int) schema.SchemaValidateDiagFunc
- type Config
Constants ¶
View Source
const ( DefaultHost = "127.0.0.1" DefaultUseHTTPS = true DefaultAllowInsecure = false DefaultAllowNTLM = true DefaultKerberosRealm = "" DefaultKerberosServicePrincipalName = "" DefaultKerberosConfig = "/etc/krb5.conf" DefaultKerberosCredentialCache = "" DefaultTLSServerName = "" // DefaultUser is used if there is no user given DefaultUser = "Administrator" // DefaultPort is used if there is no port given DefaultPort = 5986 DefaultCACertFile = "" DefaultCertFile = "" DefaultKeyFile = "" // DefaultScriptPath is used as the path to copy the file to // for remote execution if not provided otherwise. DefaultScriptPath = "C:/Temp/terraform_%RAND%.cmd" // DefaultTimeout is used if there is no timeout given DefaultTimeoutString = "30s" )
View Source
const ( ReadIsoImageTimeout = 1 * time.Minute CreateIsoImageTimeout = 5 * time.Minute UpdateIsoImageTimeout = 5 * time.Minute DeleteIsoImageTimeout = 1 * time.Minute )
View Source
const ( MaxUint32 = 4294967295 ReadMachineInstanceTimeout = 2 * time.Minute CreateMachineInstanceTimeout = 30 * time.Minute UpdateMachineInstanceTimeout = 30 * time.Minute DeleteMachineInstanceTimeout = 5 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func AllowedIsoVolumeName ¶ added in v1.2.0
func AllowedIsoVolumeName() schema.SchemaValidateDiagFunc
The string is limited to 15 characters.
For ISO 9660 discs, the volume name can use the following characters:
"A" through "Z" "0" through "9" "_" (underscore)
For Joliet and UDF discs, the volume name can use the following characters:
"a" through "z" "A" through "Z" "0" through "9" "." (period) "_" (underscore)
func GetWinrmClient ¶
New creates a new communicator implementation over WinRM.
func IntBetween ¶
func IntBetween(min, max int) schema.SchemaValidateDiagFunc
func IntInSlice ¶
func IntInSlice(valid []int) schema.SchemaValidateDiagFunc
func IsDivisibleBy ¶
func IsDivisibleBy(logicalSize int) schema.SchemaValidateDiagFunc
func StringKeyInMap ¶ added in v1.2.0
func StringKeyInMap(valid interface{}, ignoreCase bool) schema.SchemaValidateDiagFunc
func ValueOrIntBetween ¶
func ValueOrIntBetween(value, min, max int) schema.SchemaValidateDiagFunc
Types ¶
type Config ¶
type Config struct { Version string Commit string TerraformVersion string User string Password string Host string Port int HTTPS bool Insecure bool KrbRealm string KrbSpn string KrbConfig string KrbCCache string NTLM bool TLSServerName string CACert []byte Cert []byte Key []byte ScriptPath string Timeout string }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.