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

Public Member Functions

def __init__
 
def get_fat_manif_digest
 
def init_cvmfs_layer
 
def inject
 
def as_JSON
 

Public Attributes

 manif
 

Detailed Description

Class which represents the "slim" image manifest used by the OCI distribution spec

Definition at line 109 of file docker_injector.py.

Constructor & Destructor Documentation

def docker_injector.ImageManifest.__init__ (   self,
  manif 
)

Definition at line 113 of file docker_injector.py.

Member Function Documentation

def docker_injector.ImageManifest.as_JSON (   self)

Definition at line 143 of file docker_injector.py.

def docker_injector.ImageManifest.get_fat_manif_digest (   self)
Method for retrieving the digest (content address) of the manifest.

Definition at line 115 of file docker_injector.py.

def docker_injector.ImageManifest.init_cvmfs_layer (   self,
  layer_digest,
  layer_size,
  manifest_digest,
  manifest_size 
)
Method which initializes the cvmfs injection capability by adding an empty /cvmfs layer
to the image's slim manifest

Definition at line 121 of file docker_injector.py.

def docker_injector.ImageManifest.inject (   self,
  old,
  new,
  layer_size,
  manifest_digest,
  manifest_size 
)
Injects a new version of the layer by replacing the corresponding digest

Definition at line 133 of file docker_injector.py.

Member Data Documentation


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