docker_hub_api 1.0.9 copy "docker_hub_api: ^1.0.9" to clipboard
docker_hub_api: ^1.0.9 copied to clipboard

The Docker Registry HTTP API interacts with instances of the docker registry, which is a service to manage information about docker images.

DockerHub API #

The Docker Registry HTTP API is the protocol to facilitate distribution of images to the docker engine.

It interacts with instances of the docker registry, which is a service to manage information about docker images and enable their distribution.

Usage #

import 'package:docker_hub_api/docker_hub_api.dart';

void main() async {
  var repo = DockerRepository('nginx');

  var images = await repo.images(page: 1);

  var image = images.first;

  print(image.user);
  print(image.name);
  print(image.namespace);
  print(image.repository_type);
  print(image.status);
  print(image.description);
  print(image.is_private);
  print(image.is_automated);
  print(image.can_edit);
  print(image.star_count);
  print(image.pull_count);
  print(image.last_updated);
  print(image.is_migrated);
  print(image.has_starred);
  print(image.full_description);
  print(image.affiliation);
  print(repo.imageCount);
  print(repo.pageCount);
}

1
likes
40
pub points
0%
popularity

Publisher

verified publisherluizeof.com.br

The Docker Registry HTTP API interacts with instances of the docker registry, which is a service to manage information about docker images.

Repository (GitHub)
View/report issues

License

GPL-3.0 (LICENSE)

Dependencies

http

More

Packages that depend on docker_hub_api