Documentation ¶
Index ¶
- Constants
- func ISO8601DurationString(d time.Duration) string
- type Communicator
- func (c *Communicator) Download(string, io.Writer) error
- func (c *Communicator) Start(cmd *packer.RemoteCmd) (err error)
- func (c *Communicator) StartElevated(cmd *packer.RemoteCmd) (err error)
- func (c *Communicator) StartUnelevated(cmd *packer.RemoteCmd) (err error)
- func (c *Communicator) Upload(dst string, input io.Reader, ignored *os.FileInfo) error
- func (c *Communicator) UploadDir(dst string, src string, excl []string) error
Constants ¶
View Source
const ElevatedShellTemplate = `` /* 2744-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func ISO8601DurationString ¶
Types ¶
type Communicator ¶
type Communicator struct {
// contains filtered or unexported fields
}
func New ¶
func New(endpoint *winrm.Endpoint, user string, password string, timeout time.Duration) (*Communicator, error)
Creates a new packer.Communicator implementation over WinRM. Called when Packer tries to connect to WinRM
func (*Communicator) StartElevated ¶
func (c *Communicator) StartElevated(cmd *packer.RemoteCmd) (err error)
func (*Communicator) StartUnelevated ¶
func (c *Communicator) StartUnelevated(cmd *packer.RemoteCmd) (err error)
Click to show internal directories.
Click to hide internal directories.