windurs

package
v0.0.0-...-554b602 Latest Latest
Warning

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

Go to latest
Published: May 24, 2015 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(addr, user, pass string) (*Client, error)

func (*Client) Cmd

func (c *Client) Cmd(stdout, stderr io.Writer, impersonate bool, arguments ...string) (int, error)

func (*Client) Info

func (c *Client) Info() (*Info, error)

func (*Client) List

func (c *Client) List(remotePath string) ([]FileItem, error)

type FileItem

type FileItem struct {
	Name          string
	Path          string
	Mode          string
	LastWriteTime string
	Length        int
}

type Info

type Info struct {
	WinRM      WinrmConfig
	PowerShell PsSettings
}

type PsSettings

type PsSettings struct {
	Version         string
	ExecutionPolicy string
}

type WinrmConfig

type WinrmConfig struct {
	MaxEnvelopeSizeKB int `xml:"MaxEnvelopeSizekb"`
	MaxTimeoutMS      int `xml:"MaxTimeoutms"`
	Service           WinrmServiceConfig
	Winrs             WinrmWinrsConfig
}

type WinrmServiceConfig

type WinrmServiceConfig struct {
	MaxConnections                 int
	MaxConcurrentOperations        int
	MaxConcurrentOperationsPerUser int
}

type WinrmWinrsConfig

type WinrmWinrsConfig struct {
	MaxMemoryPerShellMB  int
	MaxShellsPerUser     int
	MaxConcurrentUsers   int
	MaxProcessesPerShell int
}

Jump to

Keyboard shortcuts

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