Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PoolOptions ¶
type PoolOptions struct {
RemoteControlOptions RemoteControlOptions
MaxSize int
AttritionDelay time.Duration
}
type RemoteControl ¶
type RemoteControl struct {
OnStdout func([]byte)
// contains filtered or unexported fields
}
func StartRemoteControl ¶
func StartRemoteControl(ctx context.Context, opts RemoteControlOptions) (*RemoteControl, error)
func (*RemoteControl) Close ¶
func (rc *RemoteControl) Close() error
func (*RemoteControl) Kill ¶
func (rc *RemoteControl) Kill() error
func (*RemoteControl) RunCommand ¶
func (rc *RemoteControl) RunCommand(args []string) error
type RemoteControlOptions ¶
type RemoteControlPool ¶
type RemoteControlPool struct {
// contains filtered or unexported fields
}
func NewPool ¶
func NewPool(ctx context.Context, opts PoolOptions) *RemoteControlPool
func (*RemoteControlPool) Close ¶
func (p *RemoteControlPool) Close()
func (*RemoteControlPool) Get ¶
func (p *RemoteControlPool) Get() (*RemoteControl, error)
func (*RemoteControlPool) Recycle ¶
func (p *RemoteControlPool) Recycle(rc *RemoteControl)
Click to show internal directories.
Click to hide internal directories.