src/Repositories/DockerRegistryCatalogRepository.php 1 location
|
@@ 30-37 (lines=8) @@
|
27 |
|
* |
28 |
|
* @return Collection |
29 |
|
*/ |
30 |
|
public function list(): Collection |
31 |
|
{ |
32 |
|
$request = $this->client->call('get', '_catalog'); |
33 |
|
|
34 |
|
$response = json_decode($request->getBody(), true); |
35 |
|
|
36 |
|
return new Collection($response['repositories']); |
37 |
|
} |
38 |
|
} |
39 |
|
|
src/Repositories/DockerRegistryTagsRepository.php 1 location
|
@@ 49-56 (lines=8) @@
|
46 |
|
* |
47 |
|
* @return Collection |
48 |
|
*/ |
49 |
|
public function list(): Collection |
50 |
|
{ |
51 |
|
$request = $this->client->call('get', $this->getImage().'/tags/list'); |
52 |
|
|
53 |
|
$response = json_decode($request->getBody(), true); |
54 |
|
|
55 |
|
return new Collection($response['tags']); |
56 |
|
} |
57 |
|
} |
58 |
|
|