Documentation
¶
Overview ¶
Package sbomfs implements an fs.FS backed by protobom SBOM node properties.
Files are stored as properties on the root nodes of an SBOM document. A property with Name "sbomfs:hello.txt" and Data containing base64-encoded bytes represents a file named "hello.txt" with those decoded bytes as content.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS implements fs.FS, fs.ReadFileFS, and fs.ReadDirFS backed by protobom SBOM node properties. Files are stored as base64-encoded property values on the document's root nodes.
func (*FS) ReadDir ¶
ReadDir reads the root directory and returns its entries. It implements fs.ReadDirFS.
func (*FS) ReadFile ¶
ReadFile reads the named file and returns its contents. It implements fs.ReadFileFS.
func (*FS) RemoveFile ¶
RemoveFile removes the named file from the filesystem.