Files
Stephan Renatus b15601876e go: cleanup old build flags
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
2026-02-12 08:42:05 +01:00

20 lines
559 B
Go

package bundle
import (
"io/fs"
v1 "github.com/open-policy-agent/opa/v1/bundle"
)
// NewFSLoader returns a basic DirectoryLoader implementation
// that will load files from a fs.FS interface
func NewFSLoader(filesystem fs.FS) (DirectoryLoader, error) {
return v1.NewFSLoader(filesystem)
}
// NewFSLoaderWithRoot returns a basic DirectoryLoader implementation
// that will load files from a fs.FS interface at the supplied root
func NewFSLoaderWithRoot(filesystem fs.FS, root string) DirectoryLoader {
return v1.NewFSLoaderWithRoot(filesystem, root)
}