winrm

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2017 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base64Pipe added in v1.0.1

type Base64Pipe struct {
	// contains filtered or unexported fields
}

func (*Base64Pipe) ReadFrom added in v1.0.1

func (d *Base64Pipe) ReadFrom(r io.Reader) (int64, error)

func (*Base64Pipe) Write added in v1.0.1

func (d *Base64Pipe) Write(p []byte) (int, error)

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) DownloadDir added in v0.9.0

func (c *Communicator) DownloadDir(src string, dst string, exclude []string) 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
	Https              bool
	Insecure           bool
	TransportDecorator func() winrm.Transporter
}

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