GoogleCloudPlatform / config-validator

Golang library which provides functionality to evaluate GCP resources against Rego-based policies
Apache License 2.0
45 stars 34 forks source link

Refactor to allow initializing validator without a file system #155

Closed MartinPetkov closed 3 years ago

MartinPetkov commented 3 years ago

This splits up some of the config loading functions to allow calling them with the contents of policy constraint and policy library files, without reading from the file system. This makes it possible for another system using GCV as a library to initialize a validator by directly providing config values and not needing to read from the file system.

The semantics and usage of existing init and config loading functions are unchanged.

MartinPetkov commented 3 years ago

@morgante ?