Skip to content

prefapp/eixo-distribution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Eixo::Distribution - Suite of Perl modules to interact with Docker::Distribution

SYNOPSIS

use Eixo::Distribution::Api;

my $a = Eixo::Distribution::Api->new('http://127.0.0.1:5000'); 

# list images
my ($image) = $a->images->list;

# get images tag
my @tags = $a->images->tags($image);

# load an image
my $i = $a->images->get(name=>$image, reference=>"latest");

# see total size (in bytes)
$i->manifest->totalSize;

# image manifest
$i->manifest;

# delete the blobs and manifest of an image
$i->delete;

    # Important!! In the actual revision of the Docker::Distribution, the blobs and manifest are only marked 
    # to be erased. To really delete them, it is necessary to run an administrative task (cf. garbage-collect)

DESCRIPTION

The purpose of this library is to provide a set of modules to interact in a simple, but powerful way, with the Docker remote api

DEPENDENCIES

Currently this module has the following dependencies:

  • Eixo::Base >= 1.200,

  • Eixo::Rest >= 1.020,

    To support https we use LWP::Protocol::https module that needs ssl dev libraries installed in system.

    In ubuntu/debian:

    apt-get install libssl-dev
  • JSON >= 2.50,

  • Net::HTTP >= 6.06,

  • HTTP::Server::Simple::CGI (for testing purpose)

CAVEATS

DEVELOPMENT

AUTHOR

Francisco Maseda, <frmadem@gmail.com>

Javier Gomez, <alambike@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2016, Francisco Maseda

Copyright (C) 2016, Javier Gómez

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages