Documentation
¶
Overview ¶
Package artifactgen builds a data-only Go module and a platform selector from an already-built lance-c shared library and its matching header.
The generated module embeds a zstd-compressed copy of the library. It does not import the root module, link native code, or download anything. The generated selector is normally copied into internal/bundled, which is the only package that imports internal/loader for compiled-in activation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct {
Target string
LibraryName string
CompressedSize int64
CompressedSHA256 string
UncompressedSize int64
UncompressedSHA256 string
UpstreamCommit string
HeaderSHA256 string
}
Metadata records the checksums and provenance written into the generated module.
type Options ¶
type Options struct {
LibraryPath string
HeaderPath string
Target string
ModulePath string
OutDir string
SelectorPackage string
UpstreamRepo string
UpstreamCommit string
HeaderSHA256 string
}
Options configures one generated artifact module.