mirror of
https://github.com/containers/podman.git
synced 2025-12-10 07:42:12 +08:00
add the ability for the podman remote client to use a configuration file which describes its connections. users can now define a connection the configuration and then call it by name like: podman-remote -c connection1 and the destination and user will be derived from the configuration file. if no -c is provided, we look for a connection in the configuration file designated as 'default'. If the configuration file has only one connection, it will be deemed the 'default'. Signed-off-by: baude <bbaude@redhat.com>
15 lines
633 B
Go
15 lines
633 B
Go
package remoteclientconfig
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
// ErrNoDefaultConnection no default connection is defined in the podman-remote.conf file
|
|
ErrNoDefaultConnection = errors.New("no default connection is defined")
|
|
// ErrNoDefinedConnections no connections are defined in the podman-remote.conf file
|
|
ErrNoDefinedConnections = errors.New("no remote connections have been defined")
|
|
// ErrConnectionNotFound unable to lookup connection by name
|
|
ErrConnectionNotFound = errors.New("remote connection not found by name")
|
|
// ErrNoConfigationFile no config file found
|
|
ErrNoConfigationFile = errors.New("no configuration file found")
|
|
)
|