Documentation
¶
Index ¶
- Constants
- Variables
- type Cmd
- type Config
- type WinRM
- func (wr *WinRM) Close() error
- func (wr *WinRM) Copy(ctx context.Context, fromPath, toPath string, fn client.IOTraceFn) error
- func (wr *WinRM) Execute(ctx context.Context, shell string, opts ...client.ExecOption) (client.ICmd, error)
- func (wr *WinRM) Get(ctx context.Context, src, dst string, opts ...client.GetOption) error
- func (wr *WinRM) Name() string
- func (wr *WinRM) Put(ctx context.Context, src, dst string, opts ...client.PutOption) error
- func (wr *WinRM) ReadFile(ctx context.Context, name string) ([]byte, error)
- func (wr *WinRM) Stat(ctx context.Context, name string) (*client.Stat, error)
- func (wr *WinRM) Write(ctx context.Context, toPath string, src *os.File, fn client.IOTraceFn) error
Constants ¶
View Source
const ( DefaultWinRMUser = "Administrator" DefaultWinRMPort = 5985 )
Variables ¶
View Source
var ( ErrAlreadyStarted = errors.New("cmd already started") ErrNotStarted = errors.New("cmd not started") )
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
func (*Cmd) CombinedOutput ¶
Click to show internal directories.
Click to hide internal directories.