Documentation ¶
Index ¶
- Constants
- 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 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 ( 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 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 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 }
Click to show internal directories.
Click to hide internal directories.