grim/convey
Clone
Summary
Browse
Changes
Graph
Update to Go 1.21 and use some new helpers
5 months ago, Elliott Sales de Andrade
adb6eb2a7d21
Update to Go 1.21 and use some new helpers
`strings.Cut` was added in 1.18, and `maps`/`slices` in 1.21.
Testing Done:
Ran `go test ./...`
Reviewed at https://reviews.imfreedom.org/r/2870/
package
podman
import
(
"errors"
)
var
(
// common errors
ErrNoImage
=
errors
.
New
(
"no image specified"
)
// build errors
ErrNoContainerfile
=
errors
.
New
(
"no container file specified"
)
ErrContextOutsideOfWorkspace
=
errors
.
New
(
"context is outside of the workspace"
)
// login/logout errors
ErrNoRegistry
=
errors
.
New
(
"no registry specified"
)
ErrNoUsername
=
errors
.
New
(
"no username provided"
)
ErrNoPassword
=
errors
.
New
(
"no password provided"
)
// pull/push errors
ErrNoTags
=
errors
.
New
(
"no tags specified"
)
// tag errors
ErrNoTargets
=
errors
.
New
(
"no targets specified"
)
)