Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

validator_scores source realm

Functions 12

func AddCandidates

crossing Action
1func AddCandidates(cur realm, number int, payload string)
source

AddCandidates adds one candidate per payload line to the open edition. Publisher only. The whole payload is validated before anything is stored.

func CandidateJSON

Action
1func CandidateJSON(operator string) string
source

CandidateJSON returns the operator's entries across sealed editions, in edition order; "entries" is [] for an unknown address.

func DiscardOpen

crossing Action
1func DiscardOpen(cur realm)
source

DiscardOpen drops the open edition. Publisher only. Its number is reused by the next OpenEdition. The slot is cleared first so the backing array does not keep the discarded edition stored.

func GetAdmin

Action
1func GetAdmin() string
source

GetAdmin returns the admin address, for post-deployment checks.

func OpenEdition

crossing Action
1func OpenEdition(cur realm, computedAt, scorecardSHA256, arenas string) int
source

OpenEdition starts a new edition and returns its number. Publisher only. arenas is a comma-separated list, for example "challenge,test13,firedrill".

func OpenEditionJSON

Action
1func OpenEditionJSON() string
source

OpenEditionJSON returns the open edition (number, scorecard hash and the operators already added, in the order added), or "null".

func Render

1func Render(_ string) string
source

Render shows the latest sealed edition as a Markdown table. The path is ignored.

func Seal

crossing Action
1func Seal(cur realm, number int, expectedCount int)
source

Seal closes the open edition for good. Publisher only. It fails unless the edition holds exactly expectedCount candidates (at least one).

func SetPublisher

crossing Action
1func SetPublisher(cur realm, addr address)
source

SetPublisher replaces the publisher. Admin only.

Dependencies

Source Files 7