winrm

package
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2017 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL