Documentation
¶
Index ¶
- func Dial(forward types.DialCloser, dialHost types.HostOption) (*winrm.Client, error)
- func New(opts types.HostOptions) (types.Host, error)
- type Host
- func (h *Host) Close() error
- func (h *Host) DownloadDirectory(ctx context.Context, from string) (types.DirectoryReadCloser, error)
- func (h *Host) DownloadFile(ctx context.Context, from string) (types.FileReadCloser, error)
- func (h *Host) Execute(ctx context.Context, cmd string, args ...string) error
- func (h *Host) ExecuteWithOutput(ctx context.Context, cmd string, args ...string) ([]byte, error)
- func (h *Host) Shell(ctx context.Context, cmdArgs ...string) (types.Terminal, error)
- func (h *Host) State(ctx context.Context) (types.HostStatus, error)
- func (h *Host) UploadDirectory(ctx context.Context, from types.DirectoryReader, to string) error
- func (h *Host) UploadFile(ctx context.Context, from types.FileReader, to string) (err error)
- type Terminal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dial ¶
func Dial( forward types.DialCloser, dialHost types.HostOption, ) (*winrm.Client, error)
Types ¶
type Host ¶
type Host struct {
// contains filtered or unexported fields
}
func (*Host) DownloadDirectory ¶
func (*Host) DownloadFile ¶
func (*Host) ExecuteWithOutput ¶
func (*Host) UploadDirectory ¶
func (*Host) UploadFile ¶
Click to show internal directories.
Click to hide internal directories.