NAME

Container::Builder::Layer::Tar - Make a container layer based upon a Tar file.

DESCRIPTION

Container::Builder::Layer::Tar implements Container::Builder::Layer and can be used to create container layers based upon a TAR archive file.

It actually doesn't do anything to the TAR archive being passed to it. It merely provides a way to create a valid Container::Builder::Layer object for a given TAR file.

METHODS

new(data => 'a valid TAR archive string')

Create a Container::Builder::Layer::Tar object containing the TAR passed as data.

generate_artifact()

Returns the TAR archive.

get_media_type()

Return the media type of the container. This is the mime type of the layer. Possibilities are application/vnd.oci.image.layer.v1.tar or application/vnd.oci.image.layer.v1.tar+gzip.

get_digest()

Returns the SHA256 digest of the generated layer.

get_size()

Returns the size (length) of the generated layer.

AUTHOR

Adriaan Dens <adri@cpan.org>

COPYRIGHT

Copyright 2026- Adriaan Dens

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Part of the Container::Builder module.
https://github.com/opencontainers/image-spec/blob/main/layer.md