Documentation
¶
Index ¶
- type InstalledPackage
- type Installer
- func (i *Installer) Install(info *registry.PackageInfo) error
- func (i *Installer) InstallAll(m *manifest.Manifest, projectDir string, forceResolve bool) error
- func (i *Installer) InstallAllWithOptions(m *manifest.Manifest, projectDir string, forceResolve bool, opts Options) error
- func (i *Installer) InstallJar(dep manifest.JavaDependency) error
- func (i *Installer) JarsDir() string
- func (i *Installer) List() ([]InstalledPackage, error)
- func (i *Installer) PackagesDir() string
- func (i *Installer) Remove(name string) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstalledPackage ¶
InstalledPackage is a summary of an installed BDL package.
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
Installer manages package installation into the fglpkg home directory.
func New ¶
New creates an Installer rooted at home. The githubToken is used to authenticate downloads from private GitHub repos; pass "" if not needed.
func (*Installer) Install ¶
func (i *Installer) Install(info *registry.PackageInfo) error
Install downloads, verifies, and unpacks a single BDL package.
func (*Installer) InstallAll ¶
InstallAll resolves or reads from the lock file, then installs every BDL package and Java JAR. If a valid lock file exists and matches the current environment, it is used directly (no network resolution needed). Pass forceResolve=true to bypass the lock and re-resolve from scratch (used by `fglpkg update`).
func (*Installer) InstallAllWithOptions ¶ added in v1.7.0
func (i *Installer) InstallAllWithOptions(m *manifest.Manifest, projectDir string, forceResolve bool, opts Options) error
InstallAllWithOptions is InstallAll with caller-controlled options.
func (*Installer) InstallJar ¶
func (i *Installer) InstallJar(dep manifest.JavaDependency) error
InstallJar downloads and verifies a Java JAR into the jars directory. The JAR checksum field on JavaDependency is optional; if empty the integrity check is skipped (Maven Central is trusted by default).
func (*Installer) List ¶
func (i *Installer) List() ([]InstalledPackage, error)
List returns all currently installed BDL packages by scanning the packages dir.
func (*Installer) PackagesDir ¶
PackagesDir returns the path where BDL packages are installed.