mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
8d321f0856
These built-ins will allow policies to more easily make comparisons on semantic version strings. I am doing this because I recently needed to write policy concerning versions of installed software in Kubernetes environments. I feel this is a better solution than implementing such a feature in Rego: https://gist.github.com/charlieegan3/76dbec05c65164ac98dfec74b1381c5a is_valid is to allow users to gate access to the compare function which fails if the input is not a valid version string. The semver functionality is vendored from the coreos package based on the discussion here: https://github.com/open-policy-agent/opa/pull/2538#pullrequestreview-448422711 Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
36 lines
1.7 KiB
Modula-2
36 lines
1.7 KiB
Modula-2
module github.com/open-policy-agent/opa
|
|
|
|
go 1.12
|
|
|
|
require (
|
|
github.com/OneOfOne/xxhash v1.2.7
|
|
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 // indirect
|
|
github.com/cpuguy83/go-md2man v1.0.10 // indirect
|
|
github.com/fsnotify/fsnotify v1.4.7 // indirect
|
|
github.com/ghodss/yaml v0.0.0-20180820084758-c7ce16629ff4
|
|
github.com/gobwas/glob v0.2.3
|
|
github.com/gogo/protobuf v1.3.0 // indirect
|
|
github.com/golang/protobuf v0.0.0-20181025225059-d3de96c4c28e // indirect
|
|
github.com/gorilla/mux v0.0.0-20181024020800-521ea7b17d02
|
|
github.com/inconshreveable/mousetrap v1.0.0 // indirect
|
|
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
|
|
github.com/mattn/go-runewidth v0.0.0-20181025052659-b20a3daf6a39 // indirect
|
|
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
|
|
github.com/olekukonko/tablewriter v0.0.1
|
|
github.com/peterh/liner v0.0.0-20170211195444-bf27d3ba8e1d
|
|
github.com/pkg/errors v0.0.0-20181023235946-059132a15dd0
|
|
github.com/prometheus/client_golang v0.0.0-20181025174421-f30f42803563
|
|
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910 // indirect
|
|
github.com/prometheus/common v0.0.0-20181020173914-7e9e6cabbd39 // indirect
|
|
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d // indirect
|
|
github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a
|
|
github.com/sirupsen/logrus v1.4.1
|
|
github.com/spf13/cobra v0.0.0-20181021141114-fe5e611709b0
|
|
github.com/spf13/pflag v0.0.0-20181024212040-082b515c9490
|
|
github.com/yashtewari/glob-intersection v0.0.0-20180916065949-5c77d914dd0b
|
|
golang.org/x/lint v0.0.0-20181023182221-1baf3a9d7d67
|
|
golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72
|
|
gopkg.in/fsnotify.v1 v1.4.7
|
|
gopkg.in/yaml.v2 v2.2.1
|
|
)
|