PolicySource in an interface representing the location a policy source. Must implement the GetPolicy() method.
| 63 | // PolicySource in an interface representing the location a policy source. |
| 64 | // Must implement the GetPolicy() method. |
| 65 | type PolicySource interface { |
| 66 | GetPolicy(ctx context.Context, dest string, showMsg bool) (string, error) |
| 67 | PolicyUrl() string |
| 68 | Subdir() string |
| 69 | Type() PolicyType |
| 70 | } |
| 71 | |
| 72 | type PolicyUrl struct { |
| 73 | // A string containing a go-getter style source url compatible with conftest pull |
no outgoing calls
no test coverage detected