Documentation
¶
Index ¶
Constants ¶
View Source
const ( // EnvvarWorkspaceRoot names the environment variable we check for the workspace root path EnvvarWorkspaceRoot = "LEEWAY_WORKSPACE_ROOT" // EnvvarRemoteCacheBucket configures a bucket name. This enables the use of RemoteStorage EnvvarRemoteCacheBucket = "LEEWAY_REMOTE_CACHE_BUCKET" // EnvvarRemoteCacheStorage configures a Remote Storage Provider. Default is GCP EnvvarRemoteCacheStorage = "LEEWAY_REMOTE_CACHE_STORAGE" )
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetPackagePath ¶ added in v0.10.4
func GetPackagePath(pkg *leeway.Package, localCache cache.LocalCache) (packagePath string)
GetPackagePath retrieves the filesystem path to a package's cached archive. It first checks the local cache, and if not found, attempts to download the package from the remote cache. This function verifies that SBOM is enabled in the workspace settings and returns the path to the package archive. If the package cannot be found in either cache, it exits with a fatal error.
Types ¶
This section is empty.
Source Files
¶
- bashCompletion.go
- build.go
- collect.go
- describe-const.go
- describe-dependants.go
- describe-dependencies.go
- describe-environment-manifest.go
- describe-gitinfo.go
- describe-manifest.go
- describe-script.go
- describe-tree.go
- describe.go
- exec.go
- experiemental-unmount.go
- experimental-mount.go
- export.go
- fmt.go
- init.go
- link.go
- plumbing-exec.go
- plumbing.go
- provenance-assert.go
- provenance-export.go
- provenance.go
- root.go
- run.go
- sbom-export.go
- sbom-scan.go
- sbom.go
- version.go
- vet.go
Click to show internal directories.
Click to hide internal directories.