winrm

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2015 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

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(config *Config) (*Communicator, error)

New creates a new communicator implementation over WinRM.

func (*Communicator) Download

func (c *Communicator) Download(src string, dst io.Writer) error

func (*Communicator) Start

func (c *Communicator) Start(rc *packer.RemoteCmd) error

Start implementation of communicator.Communicator interface

func (*Communicator) Upload

func (c *Communicator) Upload(path string, input io.Reader, _ *os.FileInfo) error

Upload implementation of communicator.Communicator interface

func (*Communicator) UploadDir

func (c *Communicator) UploadDir(dst string, src string, exclude []string) error

UploadDir implementation of communicator.Communicator interface

type Config

type Config struct {
	Host     string
	Port     int
	Username string
	Password string
	Timeout  time.Duration
}

Config is used to configure the WinRM connection

Jump to

Keyboard shortcuts

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