Files
podman/cmd/podman/remoteclientconfig/errors.go
baude dc7ae31171 podman-remote.conf enablement
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>
2019-05-30 09:41:17 -05:00

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")
)