Cache Map #
Maps an input hash to a structure of output artifact content hashes.
These mappings are stored in a per-package JSON Lines file in the Lake cache.
Equations
Instances For
The current version of the input-to-output mappings file format.
Equations
Instances For
Loads a CacheMap from a JSON Lines file.
Errors if the file is ill-formatted or the read fails for other reasons.
Equations
Instances For
Equations
Instances For
Save a CacheMap to a JSON Lines file.
Entries already in the file but not in the map will not be removed.
Equations
Instances For
Associate output data with the given the input hash.
Equations
Instances For
Extract each output from their structured data into a flat array of artifact descriptions.
Equations
Instances For
Cache Ref #
Associate output data with the given the input hash.
Equations
Instances For
Local Cache #
Returns the artifact directory for the Lake cache.
Equations
Instances For
Returns the path to artifact in the Lake cache with extension ext.
Equations
Instances For
Returns the artifact in the Lake cache corresponding the given artifact description.
Equations
Instances For
Returns the artifact in the Lake cache corresponding the given artifact description. Errors if missing.
Equations
Instances For
Returns path to the artifact for each output. Errors if any are missing.
Equations
Instances For
The directory where input-to-output mappings are stored in the Lake cache.
Equations
Instances For
The file containing the outputs of the given input for the package.
Equations
Instances For
Cache the outputs corresponding to the given input for the package.
Equations
Instances For
The directory where input-to-output mappings of downloaded package revisions are cached.
Equations
Instances For
Returns path to the input-to-output mappings of a downloaded package revision.
Equations
Instances For
Remote Cache Service #
Configuration of a remote cache service (e.g., Reservoir or an S3 bucket).
A given configuration is not required to support all cache service functions, and no validation
of the configuration is performed by its operations. Users should construct a service that supports
the desired functions by using CacheService's smart constructors
(e.g., reservoir, uploadService).
- key : String
- artifactEndpoint : String
- revisionEndpoint : String
- isReservoir : Bool
Is this a Reservoir cache service configuration?
- apiEndpoint : String
- repoScope : Bool
Instances For
Constructors #
Constructs a CacheService for a Reservoir endpoint.
Equations
Instances For
Constructs a CacheService to upload artifacts and/or outputs to an S3 endpoint.
Equations
Instances For
Constructs a CacheService to download artifacts and/or outputs from to an S3 endpoint.
Equations
Instances For
Constructs a CacheService to download just artifacts from to an S3 endpoint.
Equations
Instances For
Reconfigures the cache service to interpret scopes as repositories (or not if false).
For custom endpoints, if true, Lake will augment the provided scope with
toolchain and platform information in a manner similar to Reservoir.
Equations
Instances For
Artifact Transfer #
The MIME type of Lake/Reservoir artifact.
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Output Transfer #
The MIME type of Lake/Reservoir input-to-output mappings for a Git revision.