github.com/argoproj/argo-cd@v1.8.7/util/assets/assets.go (about)

     1  package assets
     2  
     3  import (
     4  	"github.com/gobuffalo/packr"
     5  )
     6  
     7  var (
     8  	BuiltinPolicyCSV string
     9  	ModelConf        string
    10  	SwaggerJSON      string
    11  	BadgeSVG         string
    12  )
    13  
    14  func init() {
    15  	var err error
    16  	box := packr.NewBox("../../assets")
    17  	BuiltinPolicyCSV, err = box.MustString("builtin-policy.csv")
    18  	if err != nil {
    19  		panic(err)
    20  	}
    21  	ModelConf, err = box.MustString("model.conf")
    22  	if err != nil {
    23  		panic(err)
    24  	}
    25  	SwaggerJSON, err = box.MustString("swagger.json")
    26  	if err != nil {
    27  		panic(err)
    28  	}
    29  	BadgeSVG, err = box.MustString("badge.svg")
    30  	if err != nil {
    31  		panic(err)
    32  	}
    33  }