github.com/verrazzano/verrazzano@v1.7.1/tools/psr/embed.go (about)

     1  // Copyright (c) 2022, Oracle and/or its affiliates.
     2  // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  
     4  // Package psr is ued to reference the embedded manifest files in the binary.
     5  // The embed.go file needs to be in an ancestor directory of the psr/manifests directory or the code
     6  // will not be able to access the manifests.
     7  package psr
     8  
     9  import (
    10  	"embed"
    11  )
    12  
    13  //go:embed manifests
    14  var manifests embed.FS
    15  
    16  // GetEmbeddedManifests returns the embedded manifests
    17  func GetEmbeddedManifests() embed.FS {
    18  	return manifests
    19  }