Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using github.com/distribution/reference for pdcs/images #369

Merged
merged 1 commit into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/containers/common v0.55.3
github.com/containers/podman/v4 v4.6.2
github.com/containers/storage v1.50.2
github.com/docker/distribution v2.8.3+incompatible
github.com/distribution/reference v0.5.0
github.com/docker/docker v24.0.7+incompatible
github.com/docker/go-units v0.5.0
github.com/gdamore/tcell/v2 v2.6.0
Expand Down Expand Up @@ -47,7 +47,7 @@ require (
github.com/cyberphone/json-canonicalization v0.0.0-20230514072755-504adb8a8af1 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/disiqueira/gotree/v3 v3.0.2 // indirect
github.com/distribution/reference v0.5.0 // indirect
github.com/docker/distribution v2.8.3+incompatible // indirect
github.com/docker/docker-credential-helpers v0.7.0 // indirect
github.com/docker/go-connections v0.4.1-0.20210727194412-58542c764a11 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion pdcs/images/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/containers/podman-tui/pdcs/registry"
"github.com/containers/podman/v4/pkg/bindings/images"
"github.com/containers/podman/v4/pkg/domain/entities"
"github.com/docker/distribution/reference"
"github.com/distribution/reference"
"github.com/pkg/errors"
"github.com/rs/zerolog/log"
)
Expand Down
4 changes: 2 additions & 2 deletions ui/images/imgdialogs/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func (d *ImageSearchDialog) Draw(screen tcell.Screen) {
d.layout.Draw(screen)
}

//InputHandler returns input handler function for this primitive
// InputHandler returns input handler function for this primitive
func (d *ImageSearchDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive)) {
return d.WrapInputHandler(func(event *tcell.EventKey, setFocus func(p tview.Primitive)) {
log.Debug().Msgf("confirm dialog: event %v received", event)
Expand Down Expand Up @@ -354,7 +354,7 @@ func (d *ImageSearchDialog) GetSearchText() string {
return d.input.GetText()
}

//GetSelectedItem returns selected image name from search result table
// GetSelectedItem returns selected image name from search result table
func (d *ImageSearchDialog) GetSelectedItem() string {
row, _ := d.searchResult.GetSelection()
if row >= 0 {
Expand Down
Loading