winrm

package
v0.0.0-...-3513a05 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransportWinRM

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

func New

func New(user, pass, host string, port int) (*TransportWinRM, error)

func (*TransportWinRM) Check

func (tr *TransportWinRM) Check() (kernel, arch string, err error)

func (*TransportWinRM) Copy

func (tr *TransportWinRM) Copy(content io.Reader, dst string, mode os.FileMode) error

Rewritten for simplicity version of very quick winrm file copy through stdin for io.Reader from: https://github.com/jbrekelmans/go-winrm/blob/master/copier.go

func (*TransportWinRM) Execute

func (tr *TransportWinRM) Execute(cmd string, stdout, stderr io.Writer) (err error)

func (*TransportWinRM) ExecuteInput

func (tr *TransportWinRM) ExecuteInput(cmd string, stdin io.Reader, stdout, stderr io.Writer) (err error)

Jump to

Keyboard shortcuts

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