Versions in this module Expand all Collapse all v0 v0.0.12 Feb 8, 2021 Changes in this version + const TestPEMContents + func CommHost(host string, statebagKey string) func(multistep.StateBag) (string, error) + func ProxyTransportDecorator() winrmcmd.Transporter + func ProxyTransportDecoratorWithNTLM() winrmcmd.Transporter + func RefreshProxyFromEnvironment(req *http.Request) (*url.URL, error) + func TestPEM(t *testing.T) string + type Config struct + PauseBeforeConnect time.Duration + Type string + func (*Config) FlatMapstructure() interface{ ... } + func (c *Config) Host() string + func (c *Config) Password() string + func (c *Config) Port() int + func (c *Config) Prepare(ctx *interpolate.Context) []error + func (c *Config) ReadSSHPrivateKeyFile() ([]byte, error) + func (c *Config) SSHConfigFunc() func(multistep.StateBag) (*ssh.ClientConfig, error) + func (c *Config) User() string + type FlatConfig struct + PauseBeforeConnect *string + SSHAgentAuth *bool + SSHBastionAgentAuth *bool + SSHBastionCertificateFile *string + SSHBastionHost *string + SSHBastionInteractive *bool + SSHBastionPassword *string + SSHBastionPort *int + SSHBastionPrivateKeyFile *string + SSHBastionUsername *string + SSHCertificateFile *string + SSHCiphers []string + SSHClearAuthorizedKeys *bool + SSHDisableAgentForwarding *bool + SSHFileTransferMethod *string + SSHHandshakeAttempts *int + SSHHost *string + SSHKEXAlgos []string + SSHKeepAliveInterval *string + SSHKeyPairName *string + SSHLocalTunnels []string + SSHPassword *string + SSHPort *int + SSHPrivateKey []byte + SSHPrivateKeyFile *string + SSHProxyHost *string + SSHProxyPassword *string + SSHProxyPort *int + SSHProxyUsername *string + SSHPty *bool + SSHPublicKey []byte + SSHReadWriteTimeout *string + SSHRemoteTunnels []string + SSHTemporaryKeyPairBits *int + SSHTemporaryKeyPairName *string + SSHTemporaryKeyPairType *string + SSHTimeout *string + SSHUsername *string + SSHWaitTimeout *string + Type *string + WinRMHost *string + WinRMInsecure *bool + WinRMNoProxy *bool + WinRMPassword *string + WinRMPort *int + WinRMTimeout *string + WinRMUseNTLM *bool + WinRMUseSSL *bool + WinRMUser *string + func (*FlatConfig) HCL2Spec() map[string]hcldec.Spec + type FlatSSH struct + SSHAgentAuth *bool + SSHBastionAgentAuth *bool + SSHBastionCertificateFile *string + SSHBastionHost *string + SSHBastionInteractive *bool + SSHBastionPassword *string + SSHBastionPort *int + SSHBastionPrivateKeyFile *string + SSHBastionUsername *string + SSHCertificateFile *string + SSHCiphers []string + SSHClearAuthorizedKeys *bool + SSHDisableAgentForwarding *bool + SSHFileTransferMethod *string + SSHHandshakeAttempts *int + SSHHost *string + SSHKEXAlgos []string + SSHKeepAliveInterval *string + SSHKeyPairName *string + SSHLocalTunnels []string + SSHPassword *string + SSHPort *int + SSHPrivateKey []byte + SSHPrivateKeyFile *string + SSHProxyHost *string + SSHProxyPassword *string + SSHProxyPort *int + SSHProxyUsername *string + SSHPty *bool + SSHPublicKey []byte + SSHReadWriteTimeout *string + SSHRemoteTunnels []string + SSHTemporaryKeyPairBits *int + SSHTemporaryKeyPairName *string + SSHTemporaryKeyPairType *string + SSHTimeout *string + SSHUsername *string + SSHWaitTimeout *string + func (*FlatSSH) HCL2Spec() map[string]hcldec.Spec + type FlatSSHTemporaryKeyPair struct + SSHTemporaryKeyPairBits *int + SSHTemporaryKeyPairType *string + func (*FlatSSHTemporaryKeyPair) HCL2Spec() map[string]hcldec.Spec + type FlatWinRM struct + WinRMHost *string + WinRMInsecure *bool + WinRMNoProxy *bool + WinRMPassword *string + WinRMPort *int + WinRMTimeout *string + WinRMUseNTLM *bool + WinRMUseSSL *bool + WinRMUser *string + func (*FlatWinRM) HCL2Spec() map[string]hcldec.Spec + type SSH struct + SSHAgentAuth bool + SSHBastionAgentAuth bool + SSHBastionCertificateFile string + SSHBastionHost string + SSHBastionInteractive bool + SSHBastionPassword string + SSHBastionPort int + SSHBastionPrivateKeyFile string + SSHBastionUsername string + SSHCertificateFile string + SSHCiphers []string + SSHClearAuthorizedKeys bool + SSHDisableAgentForwarding bool + SSHFileTransferMethod string + SSHHandshakeAttempts int + SSHHost string + SSHKEXAlgos []string + SSHKeepAliveInterval time.Duration + SSHKeyPairName string + SSHLocalTunnels []string + SSHPassword string + SSHPort int + SSHPrivateKey []byte + SSHPrivateKeyFile string + SSHProxyHost string + SSHProxyPassword string + SSHProxyPort int + SSHProxyUsername string + SSHPty bool + SSHPublicKey []byte + SSHReadWriteTimeout time.Duration + SSHRemoteTunnels []string + SSHTemporaryKeyPairName string + SSHTimeout time.Duration + SSHUsername string + SSHWaitTimeout time.Duration + func (*SSH) FlatMapstructure() interface{ ... } + func (c *SSH) ConfigSpec() hcldec.ObjectSpec + func (c *SSH) Configure(raws ...interface{}) ([]string, error) + type SSHInterface struct + SSHIPVersion string + SSHInterface string + type SSHTemporaryKeyPair struct + SSHTemporaryKeyPairBits int + SSHTemporaryKeyPairType string + func (*SSHTemporaryKeyPair) FlatMapstructure() interface{ ... } + type StepConnect struct + Config *Config + CustomConnect map[string]multistep.Step + Host func(multistep.StateBag) (string, error) + SSHConfig func(multistep.StateBag) (*gossh.ClientConfig, error) + SSHPort func(multistep.StateBag) (int, error) + WinRMConfig func(multistep.StateBag) (*WinRMConfig, error) + WinRMPort func(multistep.StateBag) (int, error) + func (s *StepConnect) Cleanup(state multistep.StateBag) + func (s *StepConnect) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepConnectSSH struct + Config *Config + Host func(multistep.StateBag) (string, error) + SSHConfig func(multistep.StateBag) (*gossh.ClientConfig, error) + SSHPort func(multistep.StateBag) (int, error) + func (s *StepConnectSSH) Cleanup(multistep.StateBag) + func (s *StepConnectSSH) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepConnectWinRM struct + Config *Config + Host func(multistep.StateBag) (string, error) + WinRMConfig func(multistep.StateBag) (*WinRMConfig, error) + WinRMPort func(multistep.StateBag) (int, error) + func (s *StepConnectWinRM) Cleanup(multistep.StateBag) + func (s *StepConnectWinRM) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepDumpSSHKey struct + Path string + SSH *SSH + func (s *StepDumpSSHKey) Cleanup(state multistep.StateBag) + func (s *StepDumpSSHKey) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepSSHKeyGen struct + CommConf *Config + func (s *StepSSHKeyGen) Cleanup(state multistep.StateBag) + func (s *StepSSHKeyGen) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type WinRM struct + WinRMHost string + WinRMInsecure bool + WinRMNoProxy bool + WinRMPassword string + WinRMPort int + WinRMTimeout time.Duration + WinRMTransportDecorator func() winrm.Transporter + WinRMUseNTLM bool + WinRMUseSSL bool + WinRMUser string + func (*WinRM) FlatMapstructure() interface{ ... } + func (c *WinRM) ConfigSpec() hcldec.ObjectSpec + func (c *WinRM) Configure(raws ...interface{}) ([]string, error) + type WinRMConfig struct + Password string + Username string