module V1::Partial

Overview

Module Partial defines methods for building up a V1::Image from minimal subsets that are sufficient for defining a V1::Image.

Extended Modules

Defined in:

v1/partial/partial.cr
v1/partial/image.cr
v1/partial/with.cr
v1/partial/compressed.cr
v1/partial/uncompressed.cr

Instance Method Summary

Instance Method Detail

def blob_size(i : WithManifest, h : V1::Hash) #

blob_size is a helper for implementing v1.Image


[View source]
def blob_to_diff_id(i : WithManifestAndConfigFile, h : V1::Hash) #

blob_to_diff_id is a helper for mapping between compressed and uncompressed blob hashes.


[View source]
def compressed_to_image(cic : CompressedImageCore) #

compressed_to_image fills in the missing methods from a CompressedImageCore so that it implements v1.Image


[View source]
def compressed_to_layer(ul) #

fills in the missing methods from a compressed layer, so that it implements V1::Layer


[View source]
def config_file(i : WithRawConfigFile) #

config_file is a helper for implementing v1 image


[View source]
def config_layer(i) #

ConfigLayer implements v1.Layer from the raw config bytes. This is so that clients (e.g. remote) can access the config as a blob.


[View source]
def config_name(i : WithRawConfigFile) #

config_name is a helper for implementing v1 image


[View source]
def diff_ids(i : WithConfigFile) #

helper for implementing v1 image


[View source]
def diff_to_blob(i : WithManifestAndConfigFile, h : V1::Hash) #

diff_to_blob is a helper for mapping between uncompressed and compressed blob hashes


[View source]
def digest(i : WithRawManifest) #

digest is helper for implementing v1 image


[View source]
def fs_layers(mf : WithManifest) #

fs_layers is a helper for implementing v1 image


[View source]
def layer(wul : WithUncompressedLayer, h : V1::Hash) #

Layer is the same as Blob, but takes the "diff id".


[View source]
def manifest(i : WithRawManifest) #

manifest is a helper for implementing v1 image


[View source]
def raw_config_file(i : WithConfigFile) : Bytes #

helper for implementing v1 image


[View source]
def raw_manifest(i : WithManifest) #

raw_manifest is a helper for implementing v1 image


[View source]
def uncompressed_blob(b : WithBlob, h : V1::Hash) #

uncompressed_blob returns an IO for streaming the blob's contents uncompressed


[View source]
def uncompressed_to_image(uic : UncompressedImageCore) #

fills in the missing methods from an uncompressedimagecore so that it implements V1::Image


[View source]
def uncompressed_to_layer(ul : UncompressedLayer) #

uncompressed_to_layer fills int he missing methods from an uncompressed layer so that it implements V1::Layer


[View source]