unprefix_unescape_ref

Function unprefix_unescape_ref 

Source
pub fn unprefix_unescape_ref(prefix: &str, ostree_ref: &str) -> Result<String>
Expand description

Remove a prefix from an ostree ref, and return the unescaped remainder.

ยงExamples:

use ostree_ext::refescape;
let s = "registry:quay.io/coreos/fedora:latest";
assert_eq!(refescape::unprefix_unescape_ref("container", "container/registry_3A_quay_2E_io/coreos/fedora_3A_latest")?, s);