client

package
v0.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication

type Authentication func(host inventory.Host) (Handler, error)

func BasicConnect

func BasicConnect() (Authentication, error)

func KeyConnect

func KeyConnect(keyfile string) (Authentication, error)

type Deployment

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

func NewDeployment

func NewDeployment(template, loggingDir string) Deployment

func (*Deployment) Deploy

func (d *Deployment) Deploy(inv *inventory.Inventory, auth Authentication) error

type Handler

type Handler interface {
	Send(string) (string, error)
	io.Closer
}

type SSHHandler

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

func (*SSHHandler) Close

func (h *SSHHandler) Close() error

func (*SSHHandler) Send

func (h *SSHHandler) Send(command string) (string, error)

Send opens a new session to the SSH server and sends the passed string. The standard output from the server is returned.

Jump to

Keyboard shortcuts

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