You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow each connection object to also have a "name". If the name is provided it can be used for lookups. Otherwise, the host is assumed to be the name,
In ConcourseClientConfiguration
create a list of connections
add any config defined at the root (e.g., host, port, username, password, environment) to the list of connections at the front
for methods like getHost(), getPort() etc return the relevant pieces of the first connection object
add method getConfiguration(String name) -> that returns anonymous ConcouseClientConfiguration that pulls from the list of connections with that name or host if it exists otherwise null
In Concourse (driver handler)
add method connect(String name, ConcourseClientConfiguration config) that will pull the relevant configuration using getConfiguration() and use that to establish the connection
Be sure to test instances where some of the configuration does not have a host. Maybe internally need to store this as a mapping from name/host to the configuration object for fast look up?
When connecting to multiple hosts it would be nice to have username/password, etc stored in a single prefs file.
Something like
connections: [
{
host: a,
username: blah,
password: blah,
environment: blah
},
{
host: b,
username: blah
},
]
There could be a
connections
key that takes a value that is an array of connection objects.Other options for key names to consider:
servers
deployments
instances
credentials
The text was updated successfully, but these errors were encountered: