CernVM-FS
2.12.0
|
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 |
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.
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.
|
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().
|
private |
Definition at line 246 of file docker_injector.py.
|
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().
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.
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.