juju: github.com/juju/juju/api/sshclient Index | Files

package sshclient

import "github.com/juju/juju/api/sshclient"

Index

Package Files

facade.go

type Facade Uses

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

func NewFacade Uses

func NewFacade(callCloser base.APICallCloser) *Facade

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

func (*Facade) AllAddresses Uses

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 Uses

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 Uses

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 Uses

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 Uses

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.

Package sshclient imports 4 packages (graph) and is imported by 17 packages. Updated 2019-08-25. Refresh now. Tools for package owners.