github.com/openshift/installer@v1.4.17/data/assets.go (about)

     1  //go:build !release
     2  // +build !release
     3  
     4  //go:generate go run assets_generate.go
     5  
     6  package data
     7  
     8  import (
     9  	"net/http"
    10  	"os"
    11  )
    12  
    13  // Assets contains project assets.
    14  var Assets http.FileSystem
    15  
    16  func init() {
    17  	dir := os.Getenv("OPENSHIFT_INSTALL_DATA")
    18  	if dir == "" {
    19  		dir = "data"
    20  	}
    21  	Assets = http.Dir(dir)
    22  }