Finding
typeFinding is one attested finding.
Value
v0.Finding
Attestation
typeAttestation is a scan result posted by an attester.
Value
v0.Attestation
AuthorReply
typeAuthorReply is an author's response to a Passport.
Value
v0.AuthorReply
record
typerecord holds everything known about one package.
Value
v0.record
maxFindings
untyped bigintValue
(64 <untyped> bigint)
maxHistory
untyped bigintValue
(50 <untyped> bigint)
maxReplies
untyped bigintValue
(20 <untyped> bigint)
maxNoteLen
untyped bigintValue
(280 <untyped> bigint)
maxRecent
untyped bigintValue
(10 <untyped> bigint)
Attest
func(pkgpath string, sourceHash string, scannerVersion string, rulesetHash string, toolchain string, reportHash string, reportURI string, findings string, directAtRisk int, indirectAtRisk int, unverified int) uint64Attest records a scan result for pkgpath. Attesters only. findings is a ";"-separated list of "RULE,severity,LABEL,file,line" entries ("" for none). Score, grade and verdict are computed here from the findings and dependency counts.
- OID
- 04140f…4a02:3
Attest details
getRecord
func(pkgpath string) *v0.record- OID
- 04140f…4a02:5
getRecord details
addToAuthor
func(author .uverse.address, pkgpath string)- OID
- 04140f…4a02:6
addToAuthor details
markRecent
func(pkgpath string)- OID
- 04140f…4a02:7
markRecent details
countProven
func(fs []v0.Finding) int- OID
- 04140f…4a02:8
countProven details
parseFindings
func(s string) []v0.FindingparseFindings validates and decodes the findings argument.
- OID
- 04140f…4a02:9
parseFindings details
isRuleID
func(s string) bool- OID
- 04140f…4a02:10
isRuleID details
isGnoFile
func(s string) bool- OID
- 04140f…4a02:11
isGnoFile details
isHex64
func(s string) bool- OID
- 04140f…4a02:12
isHex64 details
isToken
func(s string) boolisToken accepts short version strings such as "0.1.0" or "master.1+f0f9c70".
- OID
- 04140f…4a02:13
isToken details
validReportURI
func(s string) bool- OID
- 04140f…4a02:14
validReportURI details
admin
.uverse.addressValue
<gnolang.StringValue>
attesters
*v0.Tree// address -> true
- OID
- 04140f…4a02:17
attesters details
selfPath
stringValue
"gno.land/r/g19wmd95cwm3s0w0c5592tgu3zh4zgrtlggvugnj/bouncer/v0"
requests
*v0.Tree// request id -> \*request
- OID
- 04140f…4a02:21
requests details
openByRequester
*v0.Tree// address -> request id (one open each)
- OID
- 04140f…4a02:24
openByRequester details
openRequests
*v0.Tree// request id -> true, open ones only
- OID
- 04140f…4a02:27
openRequests details
requestID
v0.IDValue
<zero>
records
*v0.Tree// pkgpath -> \*record
- OID
- 04140f…4a02:31
records details
byAuthor
*v0.Tree// author address -> \*avl.Tree (pkgpath -> true)
- OID
- 04140f…4a02:34
byAuthor details
attestationID
v0.IDValue
<zero>
recent
[]string// pkgpaths, most recently attested first
Value
<zero>
disputes
*v0.Tree// dispute id -> \*dispute
- OID
- 04140f…4a02:39
disputes details
disputeID
v0.IDValue
<zero>
totalFindings
intValue
0
totalProven
intValue
0
init.35
func()- OID
- 04140f…4a02:44
init.35 details
assertAdmin
func()- OID
- 04140f…4a02:46
assertAdmin details
assertAttester
func() .uverse.address- OID
- 04140f…4a02:47
assertAttester details
AddAttester
func(addr .uverse.address)AddAttester allows addr to post attestations.
- OID
- 04140f…4a02:48
AddAttester details
RemoveAttester
func(addr .uverse.address)RemoveAttester revokes addr. Its past attestations stay on record.
- OID
- 04140f…4a02:49
RemoveAttester details
TransferAdmin
func(next .uverse.address)TransferAdmin hands the admin role to next.
- OID
- 04140f…4a02:50
TransferAdmin details
Admin
func() .uverse.address- OID
- 04140f…4a02:51
Admin details
IsAttester
func(addr .uverse.address) boolIsAttester reports whether addr may post attestations.
- OID
- 04140f…4a02:52
IsAttester details
Attesters
func() [].uverse.address- OID
- 04140f…4a02:53
Attesters details
maxPkgPathLen
untyped bigintValue
(200 <untyped> bigint)
validPkgPath
func(p string) boolvalidPkgPath accepts gno.land/r/... and gno.land/p/... paths of at least a namespace and a name, made of lowercase letters, digits and underscores.
- OID
- 04140f…4a02:54
validPkgPath details
authorOf
func(pkgpath string) (.uverse.address, bool)- OID
- 04140f…4a02:55
authorOf details
DisputeRecord
typeDisputeRecord is a challenge to an attestation, backed by a different report.
Value
v0.DisputeRecord
dispute
typeValue
v0.dispute
disputeKey
func(id uint64) string- OID
- 04140f…4a02:56
disputeKey details
Dispute
func(pkgpath string, reportHash string, note string) uint64Dispute files a challenge against the latest attestation of pkgpath, backed by a report with a different hash. One open dispute per filer per package.
- OID
- 04140f…4a02:58
Dispute details
ResolveDispute
func(id uint64, resolution string)ResolveDispute closes a dispute with a resolution note. Admin or an attester.
- OID
- 04140f…4a02:59
ResolveDispute details
hasOpenDispute
func(pkgpath string, filer .uverse.address) bool- OID
- 04140f…4a02:60
hasOpenDispute details
DisputesFor
func(pkgpath string) []v0.DisputeRecordDisputesFor returns copies of every dispute on pkgpath, oldest first.
- OID
- 04140f…4a02:61
DisputesFor details
Reply
func(pkgpath string, note string, successor string)Reply lets the author of an address-namespace package answer its Passport and, optionally, name the fixed version (successor) in the same namespace.
- OID
- 04140f…4a02:62
Reply details
copyAttestation
func(a v0.Attestation) v0.AttestationcopyAttestation returns a deep copy (the Findings slice is copied too).
- OID
- 04140f…4a02:63
copyAttestation details
Latest
func(pkgpath string) (v0.Attestation, bool)Latest returns the newest attestation for pkgpath.
- OID
- 04140f…4a02:65
Latest details
History
func(pkgpath string) []v0.AttestationHistory returns every attestation for pkgpath, oldest first.
- OID
- 04140f…4a02:66
History details
Replies
func(pkgpath string) []v0.AuthorReplyReplies returns the author's replies on pkgpath, oldest first.
- OID
- 04140f…4a02:67
Replies details
Score
func(pkgpath string) (int, bool)Score returns the latest score for pkgpath.
- OID
- 04140f…4a02:68
Score details
ByAuthor
func(addr .uverse.address) []stringByAuthor returns the attested packages in addr's namespace, sorted.
- OID
- 04140f…4a02:69
ByAuthor details
Policy
typePolicy is an integration policy for Check. The zero value is the most conservative: no PROVEN findings, no open disputes, any score.
Value
v0.Policy
Strict
func() v0.PolicyStrict: score 90 or more, no PROVEN findings, every dependency verified, no open disputes.
- OID
- 04140f…4a02:70
Strict details
Standard
func() v0.PolicyStandard: score 75 or more and no PROVEN Critical.
- OID
- 04140f…4a02:71
Standard details
Custom
func(minScore int) v0.PolicyCustom starts a policy at minScore that is otherwise as strict as the zero value; loosen it with the With methods: bouncer.Custom(60).WithProvenOther().WithOpenDisputes() Other realms must build policies this way: the VM refuses to allocate a Bouncer type in a foreign realm, so a bouncer.Policy{...} literal written in another realm panics.
- OID
- 04140f…4a02:72
Custom details
Check
func(pkgpath string, p v0.Policy) boolCheck reports whether the latest attestation of pkgpath satisfies p. An unattested package never passes.
- OID
- 04140f…4a02:73
Check details
Render
func(path string) stringRender serves the Tavern pages: "" Noticeboard "realm/<pkgpath>" Passport
- OID
- 04140f…4a02:74
Render details
webPath
func() stringwebPath is this realm's gnoweb URL path ("/r/...").
- OID
- 04140f…4a02:76
webPath details
passportLink
func(pkgpath string) stringpassportLink links to pkgpath's Passport. pkgpath is a validated path (lowercase letters, digits, underscores and slashes), so it is URL-safe.
- OID
- 04140f…4a02:77
passportLink details
verdictText
func(v string) string- OID
- 04140f…4a02:78
verdictText details
date
func(unix int64) string- OID
- 04140f…4a02:79
date details
renderNoticeboard
func() string- OID
- 04140f…4a02:80
renderNoticeboard details
renderPassport
func(pkgpath string) string- OID
- 04140f…4a02:81
renderPassport details
latestSuccessor
func(rec *v0.record) stringlatestSuccessor returns the newest successor an author named.
- OID
- 04140f…4a02:82
latestSuccessor details
diffRules
func(prev []v0.Finding, next []v0.Finding) stringdiffRules describes which rules appeared or were resolved between scans.
- OID
- 04140f…4a02:83
diffRules details
reportURL
func(uri string) stringreportURL turns a stored report URI into a safe link target. IPFS URIs go through the IPFS gateway gnoweb itself uses, since links need https.
- OID
- 04140f…4a02:84
reportURL details
ruleGuidance
func(rule string) (title string, guide string, fix string)ruleGuidance is the fix guidance, written once per rule.
- OID
- 04140f…4a02:85
ruleGuidance details
Request
typeRequest is a scan request, as returned by reads.
Value
v0.Request
request
typeValue
v0.request
requestKey
func(id uint64) string- OID
- 04140f…4a02:86
requestKey details
RequestScan
func(pkgpath string) uint64RequestScan asks the scanner bot to scan pkgpath. Each address may have one open request at a time.
- OID
- 04140f…4a02:88
RequestScan details
CancelRequest
func()CancelRequest withdraws the caller's open request.
- OID
- 04140f…4a02:89
CancelRequest details
CloseRequest
func(id uint64, note string)CloseRequest lets an attester close a request it cannot serve, such as a package that does not exist.
- OID
- 04140f…4a02:90
CloseRequest details
finishRequest
func(id uint64, status string, note string)- OID
- 04140f…4a02:91
finishRequest details
closeRequestsFor
func(pkgpath string)closeRequestsFor marks every open request for pkgpath as attested.
- OID
- 04140f…4a02:92
closeRequestsFor details
GetRequest
func(id uint64) (v0.Request, bool)GetRequest returns a copy of request id.
- OID
- 04140f…4a02:93
GetRequest details
OpenRequests
func(limit int) []v0.RequestOpenRequests returns up to limit open requests, oldest first, for the scanner bot.
- OID
- 04140f…4a02:94
OpenRequests details
LabelProven
untyped stringLabels, exactly as the prover writes them.
Value
"PROVEN"
LabelNotReproduced
untyped stringLabels, exactly as the prover writes them.
Value
"NOT REPRODUCED"
LabelStaticWarning
untyped stringLabels, exactly as the prover writes them.
Value
"STATIC WARNING"
SeverityCritical
untyped stringSeverities.
Value
"critical"
SeverityHigh
untyped stringSeverities.
Value
"high"
SeverityMedium
untyped stringSeverities.
Value
"medium"
VerdictNotRecommended
untyped string// any PROVEN Critical or High
Value
"not-recommended"
VerdictReview
untyped string// any Critical or High warning
Value
"review"
VerdictClear
untyped string// no known Critical or High issues
Value
"clear"
Disclaimer
untyped stringDisclaimer is shown on every Passport.
Value
"A high score means Bouncer found no issues with its current rules. It is not a guarantee of safety."
Deps
typeDeps counts dependency trust for an attestation.
Value
v0.Deps
computeScore
func(fs []v0.Finding, d v0.Deps) intcomputeScore applies the formula: start at 100, deduct, floor at 0.
- OID
- 04140f…4a02:95
computeScore details
gradeOf
func(score int) string- OID
- 04140f…4a02:97
gradeOf details
verdictOf
func(fs []v0.Finding) string- OID
- 04140f…4a02:98
verdictOf details
ScoreFor
func(fs []v0.Finding, d v0.Deps) (score int, grade string, verdict string)ScoreFor exposes the formula, so anyone can check an attestation or score a report before attesting it.
- OID
- 04140f…4a02:99