winrm

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package winrm implements the WinRM communicator. Plugin maintainers should not import this package directly, instead using the tooling in the "packer-plugin-sdk/communicator" module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base64Pipe

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

func (*Base64Pipe) ReadFrom

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

func (*Base64Pipe) Write

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

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

func (*Communicator) Start

func (c *Communicator) Start(ctx context.Context, rc *packersdk.RemoteCmd) error

Start implementation of communicator.Communicator interface

func (*Communicator) Upload

func (c *Communicator) Upload(path string, input io.Reader, fi *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