Struct lal::Lockfile [] [src]

pub struct Lockfile {
    pub name: String,
    pub config: String,
    pub container: Container,
    pub environment: String,
    pub defaultEnv: Option<String>,
    pub sha: Option<String>,
    pub version: String,
    pub tool: String,
    pub built: Option<String>,
    pub dependencies: BTreeMap<String, Lockfile>,
}

Representation of lockfile.json

Fields

Name of the component built

Build configuration used

Container and tag used to build

Name of the environment for the container at the time

Name of the default environment set in the manifest

Revision id from version control

Version of the component built

Version of the lal tool

Built timestamp

Recursive map of dependencies used

Methods

impl Lockfile
[src]

[src]

Initialize an empty Lockfile with defaults

If no version is given, the version is EXPERIMENTAL-{randhex} for Colony.

[src]

Opened lockfile at a path

[src]

A reader from ARTIFACT directory

[src]

Read all the lockfiles in INPUT to generate the full lockfile

NB: This currently reads all the lockfiles partially in analyze, the re-reads them fully in read_lockfile_from_component so can be sped up.

[src]

Attach a default environment to the lockfile

[src]

Attach a revision id from source control

[src]

Attach a name to the lockfile

[src]

Write the current Lockfile struct to a Path

impl Lockfile
[src]

[src]

List all used versions used of each dependency

[src]

List all used environments used of each dependency

[src]

List all dependency names used by each dependency (not transitively)

impl Lockfile
[src]

Reverse dependency methods

Similar to the above ones - requires a populated lockfile to make sense.

[src]

List all dependees for each dependency

[src]

List all dependees for a dependency transitively

Trait Implementations

impl Debug for Lockfile
[src]

[src]

Formats the value using the given formatter.

impl Default for Lockfile
[src]

Generates a temporary empty lockfile for internal analysis

[src]

Returns the "default value" for a type. Read more