IsProviderScheme takes a policy reference and returns whether it's referencing to an external provider or not
(ref string)
| 266 | |
| 267 | // IsProviderScheme takes a policy reference and returns whether it's referencing to an external provider or not |
| 268 | func IsProviderScheme(ref string) bool { |
| 269 | scheme, _ := RefParts(ref) |
| 270 | return scheme == chainloopScheme || scheme == "" |
| 271 | } |
| 272 | |
| 273 | // ProviderRef represents a policy provider reference |
| 274 | type ProviderRef struct { |