Document shared source version checks
This commit is contained in:
15
records.go
15
records.go
@@ -197,14 +197,21 @@ type SourceInfo struct {
|
||||
Kind SourceKind
|
||||
UnderlayIndex int
|
||||
ImportedFrom *Location
|
||||
// VersionCheck is the sanitized source-local version declaration observed
|
||||
// during an enabled source-version load. It is nil otherwise.
|
||||
// VersionCheck is sanitized evidence for source-local declaration processing
|
||||
// in an enabled source-version load. It is nil when that processing did not
|
||||
// occur, including default mode and synthetic CLI sources. During callbacks
|
||||
// and failed loads, text is conservatively withheld; successful final source
|
||||
// records reflect completed sensitivity classification.
|
||||
VersionCheck *SourceVersionCheck
|
||||
}
|
||||
|
||||
// SourceVersionCheck describes a source-local version declaration observed
|
||||
// during an enabled load. Text is empty when classification or conservative
|
||||
// early-access redaction withholds it; Present and Null retain their meaning.
|
||||
// during an enabled load. A non-nil record with Present false records observed
|
||||
// absence, but does not imply that a checker ran or accepted a value. Text is
|
||||
// empty when sensitivity classification or conservative callback-time/failed-
|
||||
// load redaction withholds it; Present and Null retain their meaning. Copies
|
||||
// returned by source queries are detached. See docs/config.md for disclosure
|
||||
// and lifecycle details.
|
||||
type SourceVersionCheck struct {
|
||||
Path Path
|
||||
Version Version
|
||||
|
||||
Reference in New Issue
Block a user