Documentation
¶
Index ¶
- type Cmd
- type Credential
- type Option
- func UseHostName() Option
- func WithAllowRedirection() Option
- func WithAuthentication(auth string) Option
- func WithCertificateThumbprint(thumbprint string) Option
- func WithNetworkAccess() Option
- func WithPort(port int) Option
- func WithSSL() Option
- func WithUsernamePassword(username, password string) Option
- type Session
- type Shell
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
Cmd holds information for creating a command to be run in powershell
type Credential ¶
type Credential struct {
// contains filtered or unexported fields
}
Credential holds the id and username for a PSCredential
type Option ¶
func UseHostName ¶
func UseHostName() Option
func WithAllowRedirection ¶
func WithAllowRedirection() Option
func WithAuthentication ¶
func WithNetworkAccess ¶
func WithNetworkAccess() Option
func WithUsernamePassword ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session is a remote-session
func (*Session) SetCredential ¶
func (s *Session) SetCredential(cred *Credential)
SetCredential sets a specific credential which will be used to run commands within the session
type Shell ¶
type Shell struct {
// contains filtered or unexported fields
}
Shell holds the underlying powershell-process and pipes for stdin, stdout and stderr
Click to show internal directories.
Click to hide internal directories.