cmd

package
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 43 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL