Function brane_ctl::packages::hash

source ·
pub async fn hash(
    node_config_path: impl Into<PathBuf>,
    image: impl Into<String>,
) -> Result<(), Error>
Expand description

Attempts to hash the given container for use in policies.

§Arguments

  • node_config_path: The path to the node config file that contains environment settings for this node.

§Returns

Nothing directly, but does print the hash to stdout.

§Errors

This function errors if we failed to find the given image or if we failed to hash the file.