Files
argo-cd/util/assets/assets.go
Alexander Matyushentsev c26c07d938 Improve status badge feature (#1844)
* Improve status badge feature

* Add status badge tests
2019-07-01 12:10:36 -07:00

34 lines
572 B
Go

package assets
import (
"github.com/gobuffalo/packr"
)
var (
BuiltinPolicyCSV string
ModelConf string
SwaggerJSON string
BadgeSVG string
)
func init() {
var err error
box := packr.NewBox("../../assets")
BuiltinPolicyCSV, err = box.MustString("builtin-policy.csv")
if err != nil {
panic(err)
}
ModelConf, err = box.MustString("model.conf")
if err != nil {
panic(err)
}
SwaggerJSON, err = box.MustString("swagger.json")
if err != nil {
panic(err)
}
BadgeSVG, err = box.MustString("badge.svg")
if err != nil {
panic(err)
}
}