winrm

package
v0.0.0-...-41ccd4a Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2018 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	Host string
	User string
	Pass string
}

Representation of a remote machine that WinRM can connect to.

type Result

type Result struct {
	Stdout   string
	Stderr   string
	ExitCode int
}

type Shell

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

TODO: Should probably be an interface.

func NewShell

func NewShell(host Host) (*Shell, error)

func (*Shell) Close

func (s *Shell) Close() error

func (*Shell) Execute

func (s *Shell) Execute(command string) (*Result, error)

Jump to

Keyboard shortcuts

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