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.
Instances For
The current version of the input-to-output mappings file format.
Instances For
Parse a Cache from a JSON Lines string.
If platformIndependent := true, all mappings within the file are considered
platform-independent. Otherwise, they are considered platform-dependent.
Instances For
Loads a CacheMap from a JSON Lines file.
Errors if the file is ill-formatted or the read fails for other reasons.
If platformIndependent := true, all mappings within the file are considered
platform-independent. Otherwise, they are considered platform-dependent.
Instances For
Loads a CacheMap from a JSON Lines file. Returns none if the file does not exist.
Errors if the manifest is ill-formatted or the read fails for other reasons.
If platformIndependent := true, all mappings within the file are considered
platform-independent. Otherwise, they are considered platform-dependent.
Instances For
Save a CacheMap to a JSON Lines file.
Entries already in the file but not in the map will not be removed.
Instances For
Write a CacheMap to a JSON Lines file.
If platformIndependent := true, platform-dependent mappings within the map
will not be written to the file.
Instances For
Associate output data with the given the input hash.
Instances For
Extract each output from their structured data into a flat array of artifact descriptions.
Instances For
Cache Ref #
Associate output data with the given the input hash.
Instances For
Cache Service Name #
The identifier used for the default Reservoir service (i.e., reservoir).
Instances For
Constructs a service identifier from a user-provided name.
Instances For
Returns the string representation of the service identifier.
Instances For
Cache Service Scope #
Constructs a generic service scope from a user-provided string.
Instances For
Constructs a service scope from a GitHub repository name.
Instances For
Returns whether this is a repository scope.
Instances For
Returns a string representation of the scope.
Instances For
Cache Output #
The current version of the output file format.
Instances For
- data : Lean.Json
- service? : Option CacheServiceName
- scope? : Option CacheServiceScope
Instances For
For internal use only.
Instances For
Local Cache #
Returns the artifact directory for the Lake cache.
Instances For
Returns the path to artifact in the Lake cache with extension ext.
Instances For
Returns the artifact in the Lake cache corresponding the given artifact description.
Instances For
Returns the artifact in the Lake cache corresponding the given artifact description. Errors if missing.
Instances For
The directory where input-to-output mappings are stored in the Lake cache.
Instances For
The file containing the outputs of the given input for the package.
Instances For
Cache the outputs corresponding to the given input for the package.
Instances For
Cache the input-to-outputs mappings from a CacheMap.
Instances For
Retrieve the cached outputs corresponding to the given input for the package (if any).
Instances For
The directory where input-to-output mappings of downloaded package revisions are cached.
Instances For
Returns path to the input-to-output mappings of a downloaded package revision.
Instances For
Cache Platform #
An indicator that no platform should be included in a cache scope.
Instances For
The identifier of the host platform (e.g., System.Platform.target).
Instances For
Constructs a platform identifier from a user-provided string.
Instances For
Returns the length of the platform identifier in Unicode code points.
Instances For
Returns a string representation of the platform identifier.
Instances For
Cache Toolchain #
An indicator that no toolchain should be included in a cache scope.
Instances For
Constructs a toolchain identifier from a user-provided string.
Instances For
Returns the length of the toolchain identifier in Unicode code points.
Instances For
Returns a string representation of the toolchain identifier.
Instances For
Remote Cache Service #
For internal use only.
Instances For
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).
- impl : CacheServiceImpl
Instances For
Returns the name (if any) used to identify the service.
Instances For
Returns whether this is a Reservoir cache service configuration.
Instances For
Constructors #
Constructs a CacheService for a Reservoir endpoint.
Instances For
Constructs a CacheService to upload artifacts and/or outputs to an S3 endpoint.
Instances For
Constructs a CacheService to download artifacts and/or outputs from an S3 endpoint.
Instances For
Constructs a CacheService to download just artifacts from an S3 endpoint.
Instances For
Reconfigures the cache service to use the provided key (for uploads).
Instances For
Artifact Transfer #
The MIME type of a Lake/Reservoir artifact.
Instances For
Instances For
Instances For
Instances For
Multi-Artifact Transfer #
Instances For
Instances For
Instances For
Output Transfer #
The MIME type of a Lake/Reservoir input-to-output mappings for a Git revision.