refactor: unify property function implementations

Rather than reimplementing the property functions in two different languages - and potentially having compatibility issues - standardize on golang for the implementation through the use of a generated binary.

This also implements all the list functions for use with shell-based plugins.

Note that the interface to the prop binary is experimental, and it should not be used directly.
This commit is contained in:
Jose Diaz-Gonzalez
2019-11-27 16:35:52 -05:00
parent 72d480c9dd
commit 4d9e8f5f7d
6 changed files with 328 additions and 103 deletions

10
plugins/common/Makefile Normal file
View File

@@ -0,0 +1,10 @@
BUILD = prop
PLUGIN_NAME = common
clean-prop:
rm -rf prop
prop: clean-prop **/**/prop.go
go build $(GO_ARGS) -o prop src/prop/prop.go
include ../../common.mk