Documentation
¶
Index ¶
Constants ¶
View Source
const APIVersion = "1"
View Source
const LockfileName = "almd-lock.toml"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Lockfile ¶
type Lockfile struct {
ApiVersion string `toml:"api_version"`
Package map[string]PackageEntry `toml:"package"`
}
Lockfile represents the structure of the almd-lock.toml file.
func Load ¶
Load loads the lockfile from the given project root path. If the lockfile doesn't exist, it returns a new Lockfile instance.
func (*Lockfile) AddOrUpdatePackage ¶
AddOrUpdatePackage adds or updates a package entry in the lockfile.
type PackageEntry ¶
type PackageEntry struct {
Source string `toml:"source"`
Path string `toml:"path"`
Hash string `toml:"hash"`
}
PackageEntry represents a single package entry in the lockfile.
Click to show internal directories.
Click to hide internal directories.