Documentation
¶
Index ¶
- Variables
- type Facade
- func (facade *Facade) AllAddresses(ctx context.Context, target string) ([]string, error)
- func (facade *Facade) ModelCredentialForSSH(ctx context.Context) (cloudspec.CloudSpec, error)
- func (facade *Facade) PrivateAddress(ctx context.Context, target string) (string, error)
- func (facade *Facade) Proxy(ctx context.Context) (bool, error)
- func (facade *Facade) PublicAddress(ctx context.Context, target string) (string, error)
- func (facade *Facade) PublicKeys(ctx context.Context, target string) ([]string, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
var WithTracer = base.WithTracer
WithTracer returns an Option that configures the Client to use the supplied tracer.
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, options ...Option) *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) ModelCredentialForSSH ¶
ModelCredentialForSSH returns a cloud spec for ssh purpose. This facade call is only used for k8s model.
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.