mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-02 17:50:39 +00:00
They both passed tests separately and were no source-line conflicts ... but shit happens.
This commit is contained in:
@@ -44,7 +44,7 @@ type Registry interface {
|
||||
WatchContainerUpdates(ContainerUpdateWatcher)
|
||||
GetContainer(string) (Container, bool)
|
||||
GetContainerByPrefix(string) (Container, bool)
|
||||
GetContainerImage(string) (*docker_client.APIImages, bool)
|
||||
GetContainerImage(string) (docker_client.APIImages, bool)
|
||||
}
|
||||
|
||||
// ContainerUpdateWatcher is the type of functions that get called when containers are updated.
|
||||
@@ -417,7 +417,7 @@ func (r *registry) GetContainerByPrefix(prefix string) (Container, bool) {
|
||||
return nil, false
|
||||
}
|
||||
|
||||
func (r *registry) GetContainerImage(id string) (*docker_client.APIImages, bool) {
|
||||
func (r *registry) GetContainerImage(id string) (docker_client.APIImages, bool) {
|
||||
r.RLock()
|
||||
defer r.RUnlock()
|
||||
image, ok := r.images[id]
|
||||
|
||||
@@ -48,7 +48,7 @@ func (r *mockRegistry) GetContainer(_ string) (docker.Container, bool) { return
|
||||
|
||||
func (r *mockRegistry) GetContainerByPrefix(_ string) (docker.Container, bool) { return nil, false }
|
||||
|
||||
func (r *mockRegistry) GetContainerImage(id string) (*client.APIImages, bool) {
|
||||
func (r *mockRegistry) GetContainerImage(id string) (client.APIImages, bool) {
|
||||
image, ok := r.images[id]
|
||||
return image, ok
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user