ocibuild_manifest (ocibuild v0.10.4)
View SourceOCI image manifest builder.
The manifest ties together the config and layers that make up an image. Compliant with the OCI Image Specification.
See: https://github.com/opencontainers/image-spec/blob/main/manifest.md
Summary
Functions
Build an OCI image manifest from config and layer descriptors.
Build an OCI image manifest from config and layer descriptors with annotations.
OCI image config media type.
OCI layer media type (gzip compressed).
OCI layer media type for specified compression.
OCI image manifest media type.
Types
-type descriptor() :: #{binary() := binary() | non_neg_integer()}.
-type manifest() :: #{binary() := integer() | binary() | descriptor() | [descriptor()] | map()}.
Functions
-spec build(descriptor(), [descriptor()]) -> {binary(), binary()}.
Build an OCI image manifest from config and layer descriptors.
-spec build(descriptor(), [descriptor()], map()) -> {binary(), binary()}.
Build an OCI image manifest from config and layer descriptors with annotations.
-spec config_media_type() -> binary().
OCI image config media type.
-spec layer_media_type() -> binary().
OCI layer media type (gzip compressed).
-spec layer_media_type(gzip | zstd | none) -> binary().
OCI layer media type for specified compression.
-spec media_type() -> binary().
OCI image manifest media type.