Skip to content

Commit

Permalink
Restrict access of handling.rs functions again
Browse files Browse the repository at this point in the history
  • Loading branch information
Malax committed Mar 1, 2024
1 parent d5915b7 commit 0d75cf7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libcnb/src/layer/handling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ enum Sboms {
}

/// Does not error if the layer doesn't exist.
pub(crate) fn delete_layer<P: AsRef<Path>>(
fn delete_layer<P: AsRef<Path>>(
layers_dir: P,
layer_name: &LayerName,
) -> Result<(), DeleteLayerError> {
Expand All @@ -304,7 +304,7 @@ pub(crate) fn delete_layer<P: AsRef<Path>>(
Ok(())
}

pub(crate) fn replace_layer_sboms<P: AsRef<Path>>(
fn replace_layer_sboms<P: AsRef<Path>>(
layers_dir: P,
layer_name: &LayerName,
sboms: &[Sbom],
Expand All @@ -331,7 +331,7 @@ pub(crate) fn replace_layer_sboms<P: AsRef<Path>>(
Ok(())
}

pub(crate) fn replace_layer_exec_d_programs<P: AsRef<Path>>(
fn replace_layer_exec_d_programs<P: AsRef<Path>>(
layers_dir: P,
layer_name: &LayerName,
exec_d_programs: &HashMap<String, PathBuf>,
Expand Down Expand Up @@ -372,7 +372,7 @@ pub(crate) fn replace_layer_exec_d_programs<P: AsRef<Path>>(
Ok(())
}

pub(crate) fn write_layer_metadata<M: Serialize, P: AsRef<Path>>(
fn write_layer_metadata<M: Serialize, P: AsRef<Path>>(
layers_dir: P,
layer_name: &LayerName,
layer_content_metadata: &LayerContentMetadata<M>,
Expand Down Expand Up @@ -413,7 +413,7 @@ fn write_layer<M: Serialize, P: AsRef<Path>>(
Ok(())
}

pub(crate) fn read_layer<M: DeserializeOwned, P: AsRef<Path>>(
fn read_layer<M: DeserializeOwned, P: AsRef<Path>>(
layers_dir: P,
layer_name: &LayerName,
) -> Result<Option<LayerData<M>>, ReadLayerError> {
Expand Down

0 comments on commit 0d75cf7

Please sign in to comment.