mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00

Throw an error if a specified tag does not exist. Also make sure that the user input is normalized as we already do for `podman tag`. To prevent regressions, add a set of end-to-end and systemd tests. Last but not least, update the docs and add bash completions. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
18 lines
543 B
Go
18 lines
543 B
Go
package image
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
// Copied directly from libpod errors to avoid circular imports
|
|
var (
|
|
// ErrNoSuchCtr indicates the requested container does not exist
|
|
ErrNoSuchCtr = errors.New("no such container")
|
|
// ErrNoSuchPod indicates the requested pod does not exist
|
|
ErrNoSuchPod = errors.New("no such pod")
|
|
// ErrNoSuchImage indicates the requested image does not exist
|
|
ErrNoSuchImage = errors.New("no such image")
|
|
// ErrNoSuchTag indicates the requested image tag does not exist
|
|
ErrNoSuchTag = errors.New("no such tag")
|
|
)
|