Documentation ¶
Index ¶
- Constants
- type Communicator
- func (c *Communicator) Connect(o terraform.UIOutput) error
- func (c *Communicator) Disconnect() error
- func (c *Communicator) ScriptPath() string
- func (c *Communicator) Start(rc *remote.Cmd) error
- func (c *Communicator) Timeout() time.Duration
- func (c *Communicator) Upload(path string, input io.Reader) error
- func (c *Communicator) UploadDir(dst string, src string) error
- func (c *Communicator) UploadScript(path string, input io.Reader) error
Constants ¶
View Source
const ( // DefaultUser is used if there is no user given DefaultUser = "Administrator" // DefaultPort is used if there is no port given DefaultPort = 5985 // 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 DefaultTimeout = 5 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Communicator ¶
type Communicator struct {
// contains filtered or unexported fields
}
Communicator represents the WinRM communicator
func New ¶
func New(s *terraform.InstanceState) (*Communicator, error)
New creates a new communicator implementation over WinRM.
func (*Communicator) Connect ¶
func (c *Communicator) Connect(o terraform.UIOutput) error
Connect implementation of communicator.Communicator interface
func (*Communicator) Disconnect ¶
func (c *Communicator) Disconnect() error
Disconnect implementation of communicator.Communicator interface
func (*Communicator) ScriptPath ¶
func (c *Communicator) ScriptPath() string
ScriptPath implementation of communicator.Communicator interface
func (*Communicator) Start ¶
func (c *Communicator) Start(rc *remote.Cmd) error
Start implementation of communicator.Communicator interface
func (*Communicator) Timeout ¶
func (c *Communicator) Timeout() time.Duration
Timeout implementation of communicator.Communicator interface
func (*Communicator) Upload ¶
func (c *Communicator) Upload(path string, input io.Reader) error
Upload implementation of communicator.Communicator interface
func (*Communicator) UploadDir ¶
func (c *Communicator) UploadDir(dst string, src string) error
UploadDir implementation of communicator.Communicator interface
func (*Communicator) UploadScript ¶
func (c *Communicator) UploadScript(path string, input io.Reader) error
UploadScript implementation of communicator.Communicator interface
Click to show internal directories.
Click to hide internal directories.