Skip to main content

targets_resource

Function targets_resource 

Source
pub fn targets_resource(
    target_resources: &Option<Vec<String>>,
    resource_id: &str,
) -> bool
Expand description

Whether an environment variable with these target_resources reaches resource_id: every resource when unset, else an exact id or a prefix* pattern. Env delivery and the permissions that follow from it (such as reading a deployer secret) share this one rule.