Dist-Zilla-Plugin-Docker-API

 view release on metacpan or  search on metacpan

dist_zilla_docker_api_plugin_plan.md  view on Meta::CPAN

  auth      => $auth,
);

$client->inspect_image($image_ref);
$client->image_exists_locally($image_ref);
$client->remote_tag_exists($image_ref); # optional registry helper
```

### `...::Progress`

Docker build/push endpoints return streaming progress records. The plugin should parse these and forward:

```text
stream/status/progress -> log_debug or log
errorDetail/error      -> log_fatal
aux.ID                 -> captured image ID
```

Important: do not treat HTTP 200 alone as success. Docker build/push can return a successful HTTP response while the stream contains an error event. The adapter must parse the stream completely.

### `...::Registry`

dist_zilla_docker_api_plugin_plan.md  view on Meta::CPAN


has docker => (
  is       => 'ro',
  required => 1,
);

sub build_image {
  my ($self, %arg) = @_;

  # Adapter maps normalized plugin args to API::Docker method calls.
  # It must consume the full streaming response and return a Result object.
}

sub push_image {
  my ($self, %arg) = @_;

  # Must consume the whole push stream and detect errorDetail.
}

sub tag_image {
  my ($self, %arg) = @_;



( run in 0.491 second using v1.01-cache-2.11-cpan-140bd7fdf52 )