mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: crenshaw-dev <[email protected]>
36 lines
656 B
Go
36 lines
656 B
Go
package assets
|
|
|
|
import (
|
|
"github.com/argoproj/argo-cd/v3/assets"
|
|
)
|
|
|
|
var (
|
|
BuiltinPolicyCSV string
|
|
ModelConf string
|
|
SwaggerJSON string
|
|
BadgeSVG string
|
|
)
|
|
|
|
func init() {
|
|
data, err := assets.Embedded.ReadFile("builtin-policy.csv")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
BuiltinPolicyCSV = string(data)
|
|
data, err = assets.Embedded.ReadFile("model.conf")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
ModelConf = string(data)
|
|
data, err = assets.Embedded.ReadFile("swagger.json")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
SwaggerJSON = string(data)
|
|
data, err = assets.Embedded.ReadFile("badge.svg")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
BadgeSVG = string(data)
|
|
}
|