adapter

package
v1.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2020 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

An adapter satisfies SSH requests (from an Ansible client) by delegating SSH exec and subsystem commands to a packer.Communicator.

func NewAdapter

func NewAdapter(done <-chan struct{}, l net.Listener, config *ssh.ServerConfig, sftpCmd string, ui packer.Ui, comm packer.Communicator) *Adapter

func (*Adapter) Handle

func (c *Adapter) Handle(conn net.Conn, ui packer.Ui) error

func (*Adapter) Serve

func (c *Adapter) Serve()

func (*Adapter) Shutdown

func (c *Adapter) Shutdown()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL