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.crv1/partial/image.cr
v1/partial/with.cr
v1/partial/compressed.cr
v1/partial/uncompressed.cr
Instance Method Summary
-
#blob_size(i : WithManifest, h : V1::Hash)
blob_size is a helper for implementing v1.Image
-
#blob_to_diff_id(i : WithManifestAndConfigFile, h : V1::Hash)
blob_to_diff_id is a helper for mapping between compressed and uncompressed blob hashes.
-
#compressed_to_image(cic : CompressedImageCore)
compressed_to_image fills in the missing methods from a CompressedImageCore so that it implements v1.Image
-
#compressed_to_layer(ul)
fills in the missing methods from a compressed layer, so that it implements V1::Layer
-
#config_file(i : WithRawConfigFile)
config_file is a helper for implementing v1 image
-
#config_layer(i)
ConfigLayer implements v1.Layer from the raw config bytes.
-
#config_name(i : WithRawConfigFile)
config_name is a helper for implementing v1 image
-
#diff_ids(i : WithConfigFile)
helper for implementing v1 image
-
#diff_to_blob(i : WithManifestAndConfigFile, h : V1::Hash)
diff_to_blob is a helper for mapping between uncompressed and compressed blob hashes
-
#digest(i : WithRawManifest)
digest is helper for implementing v1 image
-
#fs_layers(mf : WithManifest)
fs_layers is a helper for implementing v1 image
-
#layer(wul : WithUncompressedLayer, h : V1::Hash)
Layer is the same as Blob, but takes the "diff id".
-
#manifest(i : WithRawManifest)
manifest is a helper for implementing v1 image
-
#raw_config_file(i : WithConfigFile) : Bytes
helper for implementing v1 image
-
#raw_manifest(i : WithManifest)
raw_manifest is a helper for implementing v1 image
-
#uncompressed_blob(b : WithBlob, h : V1::Hash)
uncompressed_blob returns an IO for streaming the blob's contents uncompressed
-
#uncompressed_to_image(uic : UncompressedImageCore)
fills in the missing methods from an uncompressedimagecore so that it implements V1::Image
-
#uncompressed_to_layer(ul : UncompressedLayer)
uncompressed_to_layer fills int he missing methods from an uncompressed layer so that it implements V1::Layer
Instance Method Detail
blob_size is a helper for implementing v1.Image
blob_to_diff_id is a helper for mapping between compressed and uncompressed blob hashes.
compressed_to_image fills in the missing methods from a CompressedImageCore so that it implements v1.Image
fills in the missing methods from a compressed layer, so that it implements V1::Layer
ConfigLayer implements v1.Layer from the raw config bytes. This is so that clients (e.g. remote) can access the config as a blob.
diff_to_blob is a helper for mapping between uncompressed and compressed blob hashes
Layer is the same as Blob, but takes the "diff id".
uncompressed_blob returns an IO for streaming the blob's contents uncompressed
fills in the missing methods from an uncompressedimagecore so that it implements V1::Image
uncompressed_to_layer fills int he missing methods from an uncompressed layer so that it implements V1::Layer