Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cisco/lal-build-manager
/ functions
Functions
184 in github.com/cisco/lal-build-manager
⨍
Functions
184
◇
Types & classes
32
↓ 11 callers
Function
result_exit
(name: &str, x: LalResult<T>)
src/main.rs:21
↓ 10 callers
Function
build
Runs the `./BUILD` script in a container and packages artifacts. The function performs basic sanity checks, before shelling out to `docker run` to pe
src/build.rs:67
↓ 10 callers
Function
config_dir
Master override for where the .lal config lives
src/core/config.rs:23
↓ 10 callers
Method
get_container
Resolve an arbitrary container shorthand
src/core/config.rs:202
↓ 9 callers
Method
write
Overwrite `~/.lal/config` with serialized data from this struct
src/core/config.rs:188
↓ 8 callers
Function
is_ok
TODO: don't need to move T into here, but since they are joined..
tests/testmain.rs:24
↓ 8 callers
Function
verify
Verifies that `./INPUT` satisfies all strictness conditions. This first verifies that there are no key mismatches between `defaultConfig` and `config
src/verify.rs:21
↓ 6 callers
Method
as_path
Generate path for Manifest assuming pwd is the root
src/core/manifest.rs:72
↓ 6 callers
Function
fetch
Fetch all dependencies from `manifest.json` This will read, and HTTP GET all the dependencies at the specified versions. If the `core` bool is set, t
src/fetch.rs:18
↓ 6 callers
Function
fetch_release_build_and_publish
(backend: &T)
tests/testmain.rs:420
↓ 6 callers
Method
populate_from_input
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 fu
src/core/lockfile.rs:150
↓ 6 callers
Function
update
Pull the current environment from docker
src/env.rs:7
↓ 5 callers
Function
docker_run
Runs an arbitrary command in the configured docker environment This will mount the current directory as `~/volume` as well as a few conveniences, and
src/shell.rs:164
↓ 5 callers
Function
init
Generates a blank manifest in the current directory This will use the directory name as the assumed default component name Then fill in the blanks as
src/init.rs:14
↓ 4 callers
Function
publish
Publish a release build to the storage backend Meant to be done after a `lal build -r <component>` and requires publish credentials in the local `Con
src/publish.rs:11
↓ 4 callers
Function
status
Prints a fancy dependency tree of `./INPUT` to stdout. This is the quick version information of what you currently have in `./INPUT`. It prints the t
src/status.rs:73
↓ 3 callers
Method
all_dependencies
Merge dependencies and devDependencies into one convenience map
src/core/manifest.rs:119
↓ 3 callers
Function
clean
Clean old artifacts in cache directory This does the equivalent of find CACHEDIR -mindepth 3 -maxdepth 3 -type d With the correct mtime flags, then -
src/clean.rs:34
↓ 3 callers
Function
dependencies
Print the dependencies from the manifest
src/list.rs:43
↓ 3 callers
Function
ensure_dir_exists_fresh
Ensure a directory exists and is empty
src/core/ensure.rs:7
↓ 3 callers
Function
export
Export a specific component from the storage backend
src/export.rs:8
↓ 3 callers
Function
get_cache_dir
(backend: &T, name: &str, version: u32, env: &str)
src/storage/download.rs:11
↓ 3 callers
Method
get_cache_dir
(&self)
src/storage/local.rs:104
↓ 3 callers
Function
get_docker_image_id
Gets the ID of a docker container Uses the `docker images` command to find the image ID of the specified container. Will return a trimmed String cont
src/shell.rs:38
↓ 3 callers
Method
get_versions
(&self, name: &str, loc: &str)
src/storage/local.rs:39
↓ 3 callers
Function
hello
examples/libhello/hello.c:3
↓ 3 callers
Function
print
Outputs the update path to the current manifest for a specific component Given a component to propagate to the current one in your working directory,
src/propagate.rs:86
↓ 3 callers
Function
query
Prints a list of versions associated with a component
src/query.rs:7
↓ 3 callers
Function
remove
Remove specific components from `./INPUT` and the manifest. This takes multiple components strings (without versions), and if the component is found
src/remove.rs:13
↓ 3 callers
Method
retrieve_published_component
Locate a proper component, downloading it and caching if necessary
src/storage/download.rs:110
↓ 3 callers
Method
unpack_published_component
basic functionality for `fetch`/`update`
src/storage/download.rs:136
↓ 3 callers
Function
update_all
Wrapper around update that updates all components This will pass all dependencies or devDependencies to update. If the save flag is set, then the man
src/update.rs:112
↓ 3 callers
Function
upgrade
Check for and possibly upgrade lal when using musl releases This will query for the latest version, and upgrade in the one possible case. If a newer
src/upgrade.rs:144
↓ 2 callers
Function
analyze
Simple INPUT analyzer for the lockfile generator and `analyze_full`
src/core/input.rs:33
↓ 2 callers
Function
buildables
Print the buildable components from the `Manifest`
src/list.rs:7
↓ 2 callers
Function
clean_in_dir
helper for `lal::clean`
src/clean.rs:11
↓ 2 callers
Function
clear
Clears the local .lal/opts file
src/env.rs:32
↓ 2 callers
Function
compute
Compute the update sequence for a propagation
src/propagate.rs:30
↓ 2 callers
Function
configurations
Print the available configurations for a buildable Component
src/list.rs:23
↓ 2 callers
Function
configure
Create `~/.lal/config` with defaults A boolean option to discard the output is supplied for tests. A defaults file must be supplied to seed the new
src/configure.rs:196
↓ 2 callers
Function
create_lal_subdir
A startup helper used in a few places
src/core/manifest.rs:11
↓ 2 callers
Function
environments
Print the configured environments from the config
src/list.rs:35
↓ 2 callers
Function
extract_tarball_to_input
helper for the unpack_ functions
src/storage/download.rs:42
↓ 2 callers
Method
find_all_values
Recursive function to check for multiple version/environment (key) use
src/core/lockfile.rs:207
↓ 2 callers
Function
find_home_dir
()
src/core/config.rs:13
↓ 2 callers
Function
get_dependency_env_url
The URL for a component tarball under the one of the environment trees
src/storage/artifactory.rs:205
↓ 2 callers
Function
get_dependency_url_latest
( art_cfg: &ArtifactoryConfig, name: &str, env: &str, )
src/storage/artifactory.rs:223
↓ 2 callers
Method
get_latest_version
(&self, name: &str, loc: &str)
src/storage/local.rs:54
↓ 2 callers
Function
get_storage_versions
Query the Artifactory storage api This will get, then parse all results as u32s, and return this list. This assumes versoning is done via a single in
src/storage/artifactory.rs:114
↓ 2 callers
Function
http_download_to_path
simple request downloader
src/storage/artifactory.rs:72
↓ 2 callers
Function
hyper_req
simple request body fetcher
src/storage/artifactory.rs:60
↓ 2 callers
Method
retrieve_stashed_component
helper for unpack_, `export`
src/storage/download.rs:161
↓ 2 callers
Function
script
Runs a script in `.lal/scripts/` with supplied arguments in a docker shell This is a convenience helper for running things that aren't builds. E.g. `
src/shell.rs:327
↓ 2 callers
Function
set
Creates and sets the environment in the local .lal/opts file
src/env.rs:20
↓ 2 callers
Method
set_name
Attach a name to the lockfile
src/core/lockfile.rs:174
↓ 2 callers
Function
stash
Saves current build `./OUTPUT` to the local cache under a specific name This tars up `/OUTPUT` similar to how `build` is generating a tarball, then c
src/stash.rs:13
↓ 2 callers
Function
tar
Helper for stash and build
src/core/output.rs:7
↓ 2 callers
Function
upload_artifact
Upload a tarball to artifactory This is using a http basic auth PUT to artifactory using config credentials.
src/storage/artifactory.rs:143
↓ 2 callers
Method
verify
Verify assumptions about configurations
src/core/manifest.rs:153
↓ 1 callers
Function
analyze_full
Helper for `lal::status`
src/core/input.rs:69
↓ 1 callers
Method
attach_revision_id
Attach a revision id from source control
src/core/lockfile.rs:168
↓ 1 callers
Function
build_and_stash_update_self
(backend: &T)
tests/testmain.rs:338
↓ 1 callers
Function
build_docker_image
Builds a docker container Uses `docker build` to build a docker container with the specified instructions. It uses the --tag option to tag it with th
src/shell.rs:79
↓ 1 callers
Function
change_envs
()
tests/testmain.rs:199
↓ 1 callers
Function
check_mount
(name: &str)
src/core/config.rs:91
↓ 1 callers
Function
check_propagation
(leaf: &str)
tests/testmain.rs:583
↓ 1 callers
Function
clean_check
()
tests/testmain.rs:630
↓ 1 callers
Function
clean_input
()
src/fetch.rs:7
↓ 1 callers
Function
configure_yes
()
tests/testmain.rs:256
↓ 1 callers
Function
create_lal_dir
()
src/configure.rs:180
↓ 1 callers
Function
docker_sanity
()
src/configure.rs:24
↓ 1 callers
Function
docker_version_check
()
src/configure.rs:83
↓ 1 callers
Function
executable_on_path
(exe: &str)
src/configure.rs:9
↓ 1 callers
Function
export_check
(backend: &T)
tests/testmain.rs:662
↓ 1 callers
Function
extract_tarball
basic tarball extractor smaller than the INPUT extractor uses because it doesn't clear out anything
src/upgrade.rs:57
↓ 1 callers
Method
find_all_dependency_names
List all dependency names used by each dependency (not transitively)
src/core/lockfile.rs:250
↓ 1 callers
Method
find_all_dependency_versions
List all used versions used of each dependency
src/core/lockfile.rs:244
↓ 1 callers
Method
find_all_environments
List all used environments used of each dependency
src/core/lockfile.rs:247
↓ 1 callers
Function
find_valid_build_script
()
src/build.rs:10
↓ 1 callers
Function
fixup_docker_container
Fixes up docker container for use with given uid and gid Returns a container derived from the one passed as an argument, with the `lal` user having i
src/shell.rs:118
↓ 1 callers
Method
get_component_info
( &self, name: &str, version: Option<u32>, loc: &str, )
src/storage/local.rs:61
↓ 1 callers
Function
get_latest_lal_version
()
src/storage/artifactory.rs:291
↓ 1 callers
Method
get_latest_supported_versions
Get the latest versions of a component across all supported environments Because the versions have to be available in all environments, these numbers
src/storage/download.rs:86
↓ 1 callers
Function
get_latest_versions
This queries the API for the default location if a default exists, then all our current multi-builds must exist
src/storage/artifactory.rs:246
↓ 1 callers
Method
get_reverse_deps
List all dependees for each dependency
src/core/lockfile.rs:270
↓ 1 callers
Method
get_reverse_deps_transitively_for
List all dependees for a dependency transitively
src/core/lockfile.rs:312
↓ 1 callers
Function
get_storage_as_u32
Get the maximal version number from the storage api
src/storage/artifactory.rs:196
↓ 1 callers
Function
get_tarball_uri
Main entry point for install
src/storage/artifactory.rs:258
↓ 1 callers
Method
get_value
helper to extract specific keys out of a struct
src/core/lockfile.rs:196
↓ 1 callers
Function
greeting
tests/heylib/hey.c:3
↓ 1 callers
Function
handle_docker_cmds
( args: &ArgMatches, mf: &Manifest, cfg: &Config, env: &str, container: &Container, )
src/main.rs:175
↓ 1 callers
Function
handle_env_command
( args: &ArgMatches, cfg: &Config, env: &str, stickies: &StickyOptions, )
src/main.rs:105
↓ 1 callers
Function
handle_environment_agnostic_cmds
functions that need a manifest, but do not depend on environment values
src/main.rs:59
↓ 1 callers
Function
handle_manifest_agnostic_cmds
functions that work without a manifest, and thus can run without a set env
src/main.rs:32
↓ 1 callers
Function
handle_network_cmds
(args: &ArgMatches, mf: &Manifest, backend: &Backend, env: &str)
src/main.rs:86
↓ 1 callers
Function
handle_upgrade
(args: &ArgMatches, cfg: &Config)
src/main.rs:146
↓ 1 callers
Function
has_config_and_manifest
Tests need to be run in a directory with a manifest and ~/.lal + config must exist
tests/testmain.rs:299
↓ 1 callers
Function
identify_exe
()
src/upgrade.rs:33
↓ 1 callers
Function
init_force
Create manifest in a weird directory
tests/testmain.rs:277
↓ 1 callers
Function
init_ssl
()
tests/testmain.rs:38
next →
1–100 of 184, ranked by callers