Function brane_tsk::docker::hash_container

source ·
pub async fn hash_container(
    container_path: impl AsRef<Path>,
) -> Result<String, Error>
Expand description

Given an already downloaded container, computes the SHA-256 hash of it.

§Arguments

  • container_path: The path to the container image file to hash.

§Returns

The hash, as a sha2::Digest.

§Errors

This function may error if we failed to read the given file.