Documentation ¶
Overview ¶
Package facts implements alternate fact types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle struct {
// contains filtered or unexported fields
}
Bundle is a set of facts about different packages.
This is used to serialize a collection of facts about different packages, which will be loaded and evaluated lazily.
func BundleFrom ¶
BundleFrom may be used to create a new bundle that deserializes the contents of the given file.
Note that there is no explicit close mechanism, and the underlying file will be closed only when the object is finalized.
type Package ¶
Package is a set of facts about a single package.
These use the types.Object as the key because this is canonical. Normally, this is canonical only in the context of a single types.Package. However, because all imports are shared across all packages, there is a single canonical types.Object shared among all packages being analyzed.
func (*Package) ExportFact ¶
ExportFact exports an object fact.
func (*Package) ImportFact ¶
ImportFact imports an object fact.
type Serializer ¶
Serializer is used for fact serialization.
It generalizes over the Package and Bundle types.