ProxyConnection class
Instructions for how to connect to a remote endpoint via a bastion host.
Constructors
-
ProxyConnection({Input<
String> ? agentSocketPath, Input<int> ? dialErrorLimit, required Input<String> host, Input<String> ? hostKey, Input<String> ? password, Input<int> ? perDialTimeout, Input<double> ? port, Input<String> ? privateKey, Input<String> ? privateKeyPassword, Input<String> ? user}) -
Creates a new ProxyConnection.
agentSocketPathSSH Agent socket path. Default to environment variable SSH_AUTH_SOCK if present.dialErrorLimitMax allowed errors on trying to dial the remote host. -1 set count to unlimited. Default value is 10.hostThe address of the bastion host to connect to.hostKeyThe expected host key to verify the server's identity. If not provided, the host key will be ignored.passwordThe password we should use for the connection to the bastion host.perDialTimeoutMax number of seconds for each dial attempt. 0 implies no maximum. Default value is 15 seconds.portThe port of the bastion host to connect to.privateKeyThe contents of an SSH key to use for the connection. This takes preference over the password if provided.privateKeyPasswordThe password to use in case the private key is encrypted.userThe user that we should use for the connection to the bastion host.const -
ProxyConnection.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
agentSocketPath
→ Input<
String> ? -
SSH Agent socket path. Default to environment variable SSH_AUTH_SOCK if present.
final
-
dialErrorLimit
→ Input<
int> ? -
Max allowed errors on trying to dial the remote host. -1 set count to unlimited. Default value is 10.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
host
→ Input<
String> -
The address of the bastion host to connect to.
final
-
hostKey
→ Input<
String> ? -
The expected host key to verify the server's identity. If not provided, the host key will be ignored.
final
-
password
→ Input<
String> ? -
The password we should use for the connection to the bastion host.
final
-
perDialTimeout
→ Input<
int> ? -
Max number of seconds for each dial attempt. 0 implies no maximum. Default value is 15 seconds.
final
-
port
→ Input<
double> ? -
The port of the bastion host to connect to.
final
-
privateKey
→ Input<
String> ? -
The contents of an SSH key to use for the connection. This takes preference over the password if provided.
final
-
privateKeyPassword
→ Input<
String> ? -
The password to use in case the private key is encrypted.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
user
→ Input<
String> ? -
The user that we should use for the connection to the bastion host.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited