NAME

Container::Builder::Layer::Directory - Make a container layer consisting of a single directory.

DESCRIPTION

Container::Builder::Layer::Directory implements Container::Builder::Layer and can be used to create container layers which contain a single directory.

METHODS

new(path => '/', mode => 0755, uid => 1337, gid => 1337)

Create a Container::Builder::Layer::Directory object. As arguments pass in the details of the directory that you want to have in your container layer.

generate_artifact()

Returns a TAR file as a scalar, that contains a single directory.

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