mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 06:46:36 +01:00
23 lines
306 B
Go
23 lines
306 B
Go
//go:build !release
|
|
// +build !release
|
|
|
|
//go:generate go run assets_generate.go
|
|
|
|
package data
|
|
|
|
import (
|
|
"net/http"
|
|
"os"
|
|
)
|
|
|
|
// Assets contains project assets.
|
|
var Assets http.FileSystem
|
|
|
|
func init() {
|
|
dir := os.Getenv("OPENSHIFT_INSTALL_DATA")
|
|
if dir == "" {
|
|
dir = "data"
|
|
}
|
|
Assets = http.Dir(dir)
|
|
}
|