Documentation ¶
Index ¶
- Constants
- func CloseFileIgnore(file *os.File)
- func ExcludeTestFilter() filter.LoaderFilter
- func JSONRoundTrip(from any, to any) error
- func LoadRegalBundleFS(fs files.FS) (bundle.Bundle, error)
- func LoadRegalBundlePath(path string) (bundle.Bundle, error)
- func MustJSONRoundTrip(from any, to any)
- func MustLoadRegalBundleFS(fs files.FS) bundle.Bundle
- func MustLoadRegalBundlePath(path string) bundle.Bundle
- func MustYAMLToMap(from io.Reader) (m map[string]any)
- func ToMap(a any) map[string]any
Constants ¶
View Source
const PathSeparator = string(os.PathSeparator)
Variables ¶
This section is empty.
Functions ¶
func CloseFileIgnore ¶
CloseFileIgnore closes file ignoring errors, mainly for deferred cleanup.
func ExcludeTestFilter ¶
func ExcludeTestFilter() filter.LoaderFilter
func JSONRoundTrip ¶
JSONRoundTrip convert any value to JSON and back again.
func LoadRegalBundleFS ¶
LoadRegalBundleFS loads bundle embedded from policy and data directory.
func LoadRegalBundlePath ¶
LoadRegalBundlePath loads bundle from path.
func MustJSONRoundTrip ¶ added in v0.8.0
MustJSONRoundTrip convert any value to JSON and back again, exit on failure.
func MustLoadRegalBundleFS ¶
MustLoadRegalBundleFS loads bundle embedded from policy and data directory, exit on failure.
func MustLoadRegalBundlePath ¶
MustLoadRegalBundlePath loads bundle from path, exit on failure.
func MustYAMLToMap ¶
MustYAMLToMap creates a map from reader, expecting YAML content, or fail.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.