Documentation ¶
Index ¶
- type Client
- type ClientConnectRetryStrategy
- type ClientFactory
- type ClientImpl
- type ClientOpts
- type ComboRunner
- type ConnectionOpts
- type DeploymentFetcher
- type HostBuilder
- type InstanceWriter
- type InteractiveRunner
- type NonInteractiveRunner
- type Provider
- type ResultsWriter
- type Runner
- type SCPArgs
- type SCPRunner
- type SCPRunnerImpl
- type SSHArgs
- type Session
- type SessionImpl
- type SessionImplOpts
- type StreamingWriter
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConnectRetryStrategy ¶ added in v0.0.146
type ClientConnectRetryStrategy struct { ConnectionRefusedTimeout time.Duration AuthFailureTimeout time.Duration TimeService clock.Clock // contains filtered or unexported fields }
func (*ClientConnectRetryStrategy) IsRetryable ¶ added in v0.0.146
func (s *ClientConnectRetryStrategy) IsRetryable(err error) bool
type ClientFactory ¶ added in v0.0.146
type ClientFactory struct {
// contains filtered or unexported fields
}
func NewClientFactory ¶ added in v0.0.146
func NewClientFactory(logger boshlog.Logger) ClientFactory
func (ClientFactory) New ¶ added in v0.0.146
func (f ClientFactory) New(opts ClientOpts) Client
type ClientImpl ¶ added in v0.0.146
type ClientImpl struct {
// contains filtered or unexported fields
}
func (*ClientImpl) Dial ¶ added in v0.0.146
func (s *ClientImpl) Dial(n, addr string) (net.Conn, error)
func (*ClientImpl) Listen ¶ added in v0.0.146
func (s *ClientImpl) Listen(n, addr string) (net.Listener, error)
func (*ClientImpl) Start ¶ added in v0.0.146
func (s *ClientImpl) Start() error
func (*ClientImpl) Stop ¶ added in v0.0.146
func (s *ClientImpl) Stop() error
type ClientOpts ¶ added in v0.0.146
type ComboRunner ¶
type ComboRunner struct {
// contains filtered or unexported fields
}
func NewComboRunner ¶
type ConnectionOpts ¶
type DeploymentFetcher ¶
type DeploymentFetcher func() (boshdir.Deployment, error)
type HostBuilder ¶
type HostBuilder interface {
BuildHost(slug boshdir.AllOrInstanceGroupOrInstanceSlug, username string, deploymentFetcher DeploymentFetcher) (boshdir.Host, error)
}
func NewHostBuilder ¶
func NewHostBuilder() HostBuilder
type InstanceWriter ¶
type InteractiveRunner ¶
type InteractiveRunner struct {
// contains filtered or unexported fields
}
func NewInteractiveRunner ¶
func NewInteractiveRunner(comboRunner ComboRunner) InteractiveRunner
func (InteractiveRunner) Run ¶
func (r InteractiveRunner) Run(connOpts ConnectionOpts, result boshdir.SSHResult, rawCmd []string) error
type NonInteractiveRunner ¶
type NonInteractiveRunner struct {
// contains filtered or unexported fields
}
func NewNonInteractiveRunner ¶
func NewNonInteractiveRunner(comboRunner ComboRunner) NonInteractiveRunner
func (NonInteractiveRunner) Run ¶
func (r NonInteractiveRunner) Run(connOpts ConnectionOpts, result boshdir.SSHResult, rawCmd []string) error
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func (Provider) NewResultsSSHRunner ¶
func (Provider) NewSCPRunner ¶
func (Provider) NewSSHRunner ¶
type ResultsWriter ¶
type ResultsWriter struct {
// contains filtered or unexported fields
}
func NewResultsWriter ¶
func NewResultsWriter(ui boshui.UI) *ResultsWriter
func (*ResultsWriter) Flush ¶
func (w *ResultsWriter) Flush()
func (*ResultsWriter) ForInstance ¶
func (w *ResultsWriter) ForInstance(jobName, indexOrID string) InstanceWriter
type SCPArgs ¶
type SCPArgs struct {
// contains filtered or unexported fields
}
func NewSCPArgs ¶
func (SCPArgs) AllOrInstanceGroupOrInstanceSlug ¶ added in v0.0.102
func (a SCPArgs) AllOrInstanceGroupOrInstanceSlug() (boshdir.AllOrInstanceGroupOrInstanceSlug, error)
type SCPRunnerImpl ¶
type SCPRunnerImpl struct {
// contains filtered or unexported fields
}
func NewSCPRunner ¶
func NewSCPRunner(comboRunner ComboRunner) SCPRunnerImpl
func (SCPRunnerImpl) Run ¶
func (r SCPRunnerImpl) Run(connOpts ConnectionOpts, result boshdir.SSHResult, scpArgs SCPArgs) error
type SSHArgs ¶
type SSHArgs struct { ConnOpts ConnectionOpts Result boshdir.SSHResult ForceTTY bool PrivKeyFile boshsys.File KnownHostsFile boshsys.File CmdExistenceChecker cmdExistenceChecker Socks5Proxy *proxy.Socks5Proxy // contains filtered or unexported fields }
func NewSSHArgs ¶
type SessionImpl ¶
type SessionImpl struct {
// contains filtered or unexported fields
}
func NewSessionImpl ¶
func NewSessionImpl( connOpts ConnectionOpts, sessOpts SessionImplOpts, result boshdir.SSHResult, fs boshsys.FileSystem, ) *SessionImpl
func (*SessionImpl) Finish ¶
func (r *SessionImpl) Finish() error
func (*SessionImpl) Start ¶
func (r *SessionImpl) Start() (SSHArgs, error)
type SessionImplOpts ¶
type SessionImplOpts struct {
ForceTTY bool
}
type StreamingWriter ¶
type StreamingWriter struct {
// contains filtered or unexported fields
}
func NewStreamingWriter ¶
func NewStreamingWriter(comboWriter *boshui.ComboWriter) *StreamingWriter
func (StreamingWriter) Flush ¶
func (w StreamingWriter) Flush()
func (StreamingWriter) ForInstance ¶
func (w StreamingWriter) ForInstance(jobName, indexOrID string) InstanceWriter
type Writer ¶
type Writer interface { ForInstance(jobName, indexOrID string) InstanceWriter Flush() }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.