@canonical/jujulib
Version:
Juju API client
133 lines (120 loc) • 2.98 kB
TypeScript
/**
Juju SSHClient version 5.
This facade is available on:
Controller-machine-agent
Machine-agent
Unit-agent
Models
NOTE: This file was generated using the Juju schema
from Juju 3.6.14 at the git SHA b08ad63.
Do not manually edit this file.
*/
import { ConnectionInfo, Transport } from "../../client.js";
import { Facade } from "../../types.js";
export interface CloudCredential {
attrs?: Record<string, string>;
"auth-type": string;
redacted?: string[];
}
export interface CloudSpec {
cacertificates?: string[];
credential?: CloudCredential;
endpoint?: string;
"identity-endpoint"?: string;
"is-controller-cloud"?: boolean;
name: string;
region?: string;
"skip-tls-verify"?: boolean;
"storage-endpoint"?: string;
type: string;
}
export interface CloudSpecResult {
error?: Error;
result?: CloudSpec;
}
export interface Entities {
entities: Entity[];
}
export interface Entity {
tag: string;
}
export interface Error {
code: string;
info?: AdditionalProperties;
message: string;
}
export interface PublicSSHHostKeyResult {
error?: Error;
"jump-server-public-key": number[];
"public-key": number[];
}
export interface SSHAddressResult {
address?: string;
error?: Error;
}
export interface SSHAddressResults {
results: SSHAddressResult[];
}
export interface SSHAddressesResult {
addresses: string[];
error?: Error;
}
export interface SSHAddressesResults {
results: SSHAddressesResult[];
}
export interface SSHProxyResult {
"use-proxy": boolean;
}
export interface SSHPublicKeysResult {
error?: Error;
"public-keys"?: string[];
}
export interface SSHPublicKeysResults {
results: SSHPublicKeysResult[];
}
export interface SSHVirtualHostKeyRequestArg {
hostname: string;
}
export interface VirtualHostnameTargetArg {
container?: string;
tag: string;
}
export interface AdditionalProperties {
[key: string]: any;
}
/**
*/
declare class SSHClientV5 implements Facade {
static NAME: string;
static VERSION: number;
NAME: string;
VERSION: number;
_transport: Transport;
_info: ConnectionInfo;
constructor(transport: Transport, info: ConnectionInfo);
/**
*/
allAddresses(params: Entities): Promise<SSHAddressesResults>;
/**
*/
modelCredentialForSSH(params: any): Promise<CloudSpecResult>;
/**
*/
privateAddress(params: Entities): Promise<SSHAddressResults>;
/**
*/
proxy(params: any): Promise<SSHProxyResult>;
/**
*/
publicAddress(params: Entities): Promise<SSHAddressResults>;
/**
*/
publicHostKeyForTarget(params: SSHVirtualHostKeyRequestArg): Promise<PublicSSHHostKeyResult>;
/**
*/
publicKeys(params: Entities): Promise<SSHPublicKeysResults>;
/**
*/
virtualHostname(params: VirtualHostnameTargetArg): Promise<SSHAddressResult>;
}
export default SSHClientV5;