12 Package Inputs
(require denxi/input) | package: denxi |
The plinth acts as a placeholder for a value used to retrieve an artifact. If the plinth does not hold an instance of artifact, then we use that value in the digsite metaphor to find an artifact.
procedure
(make-package-input name [plinth]) → package-input?
name : string? plinth : (or/c any/c artifact?) = #f
value
procedure
(input-ref name) → (subprogram/c package-input?)
name : string?
procedure
(find-input inputs name) → (subprogram/c package-input?)
inputs : (listof package-input?) name : string?
procedure
(release-input input) → (subprogram/c void?)
input : package-input?
procedure
(resolve-input input) → (subprogram/c path-string?)
input : package-input?
P may fail for many possible reasons, which will appear in the program log.
procedure
(keep-input name) → (subprogram/c path-string?)
name : string?
Use for inputs that you do not intend to release.
struct
(struct $input:not-found $input ())
struct
(struct untrusted-source (input) #:extra-constructor-name make-untrusted-source) input : package-input?
This is the only source that includes all possible safety checks and customizations defined by the launcher, making it suitable for use with arbitrary data.
procedure
(find-artifact-for-input in) → (subprogram/c artifact?)
in : package-input?