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" // EnvvarSLSACacheVerification enables SLSA verification for cached artifacts EnvvarSLSACacheVerification = "LEEWAY_SLSA_CACHE_VERIFICATION" // EnvvarSLSASourceURI configures the expected source URI for SLSA verification EnvvarSLSASourceURI = "LEEWAY_SLSA_SOURCE_URI" // EnvvarSLSARequireAttestation requires SLSA attestations (missing/invalid → build locally) EnvvarSLSARequireAttestation = "LEEWAY_SLSA_REQUIRE_ATTESTATION" // EnvvarEnableInFlightChecksums enables in-flight checksumming of cache artifacts EnvvarEnableInFlightChecksums = "LEEWAY_ENABLE_IN_FLIGHT_CHECKSUMS" // EnvvarDockerExportToCache controls whether Docker images are exported to cache instead of pushed directly EnvvarDockerExportToCache = "LEEWAY_DOCKER_EXPORT_TO_CACHE" // EnvvarDefaultCacheLevel sets the default cache level EnvvarDefaultCacheLevel = "LEEWAY_DEFAULT_CACHE_LEVEL" // EnvvarSegmentKey configures Segment analytics key EnvvarSegmentKey = "LEEWAY_SEGMENT_KEY" // EnvvarTrace enables tracing output EnvvarTrace = "LEEWAY_TRACE" // EnvvarProvenanceKeypath configures provenance key path EnvvarProvenanceKeypath = "LEEWAY_PROVENANCE_KEYPATH" // EnvvarExperimental enables experimental features EnvvarExperimental = "LEEWAY_EXPERIMENTAL" // EnvvarMaxSigningConcurrency configures maximum concurrent signing operations EnvvarMaxSigningConcurrency = "LEEWAY_MAX_SIGNING_CONCURRENCY" )
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 ¶
type CleanupFunc ¶ added in v0.16.0
type CleanupFunc func()
CleanupFunc is a function that performs cleanup operations and must be deferred
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
- experimental-mount.go
- experimental-unmount.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
- sign-cache.go
- version.go
- vet.go
Click to show internal directories.
Click to hide internal directories.