pub fn split_policy_scopes(
policy: PolicyArgs,
) -> (PolicyArgs, Option<PolicyArgs>)Expand description
Split PolicyArgs into the path-scoped part and an optional
identity-scoped part. kopia rejects --max-parallel-snapshots on a
path-scoped policy (“max parallel snapshots cannot be specified for paths,
only global, username@hostname or @hostname” — the policy_knobs e2e
regression), so that one knob must be applied in a second policy set
against the bare username@hostname identity. Pure.