CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
docker_injector.DockerInjector Class Reference

Public Member Functions

def __init__
 
def setup
 
def unpack
 
def update
 

Public Attributes

 dxfObject
 
 image_manifest
 
 fat_manifest
 

Private Member Functions

def _get_manifest
 
def _get_fat_manifest
 
def _build_init_tar
 

Detailed Description

The main class of the Docker injector which injects new versions of a layer into 
OCI images retrieved from an OCI compliant distribution API

Definition at line 147 of file docker_injector.py.

Constructor & Destructor Documentation

def docker_injector.DockerInjector.__init__ (   self,
  host,
  repo,
  alias,
  user,
  pw 
)
Initializes the injector by downloading both the slim and the fat image manifest

Definition at line 152 of file docker_injector.py.

Member Function Documentation

def docker_injector.DockerInjector._build_init_tar (   self)
private
Builds an empty /cvmfs tar and uploads it to the registry

:rtype: tuple
:returns: Tuple containing the tar digest and gz digest

Definition at line 254 of file docker_injector.py.

Referenced by docker_injector.DockerInjector.setup().

Here is the call graph for this function:

Here is the caller graph for this function:

def docker_injector.DockerInjector._get_fat_manifest (   self,
  image_manifest 
)
private

Definition at line 246 of file docker_injector.py.

def docker_injector.DockerInjector._get_manifest (   self,
  alias 
)
private

Definition at line 243 of file docker_injector.py.

def docker_injector.DockerInjector.setup (   self,
  push_alias 
)
Sets an image up for layer injection

Definition at line 162 of file docker_injector.py.

Referenced by docker_injector.DockerInjector.update().

Here is the call graph for this function:

Here is the caller graph for this function:

def docker_injector.DockerInjector.unpack (   self,
  dest_dir 
)
Unpacks the current version of a layer into the dest_dir directory in order to update it

Definition at line 178 of file docker_injector.py.

def docker_injector.DockerInjector.update (   self,
  src_dir,
  push_alias 
)
Packs and uploads the contents of src_dir as a layer and injects the layer into the image.
The new layer version is stored under the tag push_alias

Definition at line 206 of file docker_injector.py.

Here is the call graph for this function:

Member Data Documentation

docker_injector.DockerInjector.dxfObject

Definition at line 158 of file docker_injector.py.

docker_injector.DockerInjector.fat_manifest

Definition at line 160 of file docker_injector.py.

docker_injector.DockerInjector.image_manifest

Definition at line 159 of file docker_injector.py.


The documentation for this class was generated from the following file: