sshclient

package
v0.0.0-...-a0d7459 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Facade

type Facade struct {
	base.ClientFacade
	// contains filtered or unexported fields
}

func NewFacade

func NewFacade(callCloser base.APICallCloser) *Facade

NewFacade returns a new Facade based on an existing API connection.

func (*Facade) AllAddresses

func (facade *Facade) AllAddresses(target string) ([]string, error)

AllAddresses returns all addresses for the SSH target provided. The target may be provided as a machine ID or unit name.

func (*Facade) PrivateAddress

func (facade *Facade) PrivateAddress(target string) (string, error)

PrivateAddress returns the private address for the SSH target provided. The target may be provided as a machine ID or unit name.

func (*Facade) Proxy

func (facade *Facade) Proxy() (bool, error)

Proxy returns whether SSH connections should be proxied through the controller hosts for the associated model.

func (*Facade) PublicAddress

func (facade *Facade) PublicAddress(target string) (string, error)

PublicAddress returns the public address for the SSH target provided. The target may be provided as a machine ID or unit name.

func (*Facade) PublicKeys

func (facade *Facade) PublicKeys(target string) ([]string, error)

PublicKeys returns the SSH public host keys for the SSH target provided. The target may be provided as a machine ID or unit name.

Jump to

Keyboard shortcuts

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