rules/oci/toolchain/index.js
Developer reference: this page includes exported implementation details. BUILD authors should prefer the User API reference.
CRANE_TOOL
const CRANE_TOOL
Undocumented.
craneArtifactName()
craneArtifactName(version, plat)
Undocumented.
craneDownloadUrl()
craneDownloadUrl(version, plat)
Undocumented.
craneSupportedPlatforms()
craneSupportedPlatforms()
Undocumented.
craneCacheKey()
craneCacheKey(version, plat)
Undocumented.
CraneToolchain (implementation class)
class CraneToolchain
Implementation class. BUILD files should use craneToolchain().
Undocumented.
craneToolchain()
craneToolchain(version, opts = {})
Declare a Crane version and return the graph-native executable tool. Lockfile/default policy remains owned by this configuration API. matching lockfile entry (warns instead of failing). to use instead of the shipped one.
| Parameter | Type | Description |
|---|---|---|
| version | string | |
| [opts] | object | |
| [opts.default=false] | boolean | |
| [opts.unverified=false] | boolean | Allow downloading without a |
| [opts.lockfile] | string | Address of a workspace-owned lockfile |
craneGenLockfiles()
craneGenLockfiles(version, opts = {})
The [GEN_LOCKFILES] root for a crane toolchain version. This is a separate function from craneToolchain(). craneToolchain() returns a frozen tool() handle. A frozen object cannot hold an extra property.
| Parameter | Type | Description |
|---|---|---|
| [version] | string | |
| [opts] | object | |
| [opts.lockfile] | string | Address override for the generated lockfile. |
Returns: object { [GEN_LOCKFILES]: ... }.
resolveCraneToolchainVersion()
resolveCraneToolchainVersion(version)
Undocumented.
craneGraphTool()
craneGraphTool(version)
Build Crane from a verified archive as an ordinary artifact-producing graph.
defaultCraneToolchainVersion()
defaultCraneToolchainVersion()
Undocumented.
defaultCraneToolchain()
defaultCraneToolchain()
Undocumented.