Documentation ¶
Index ¶
- type Facade
- func (facade *Facade) AllAddresses(target string) ([]string, error)
- func (facade *Facade) PrivateAddress(target string) (string, error)
- func (facade *Facade) Proxy() (bool, error)
- func (facade *Facade) PublicAddress(target string) (string, error)
- func (facade *Facade) PublicKeys(target string) ([]string, error)
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 ¶
AllAddresses returns all addresses for the SSH target provided. The target may be provided as a machine ID or unit name.
func (*Facade) PrivateAddress ¶
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 ¶
Proxy returns whether SSH connections should be proxied through the controller hosts for the associated model.
func (*Facade) PublicAddress ¶
PublicAddress returns the public address for the SSH target provided. The target may be provided as a machine ID or unit name.
Click to show internal directories.
Click to hide internal directories.