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.

              Source Files