Documentation
¶
Overview ¶
Package changes builds, fingerprints and summarises structured change records (contract.Change) produced by compare plugins, so every plugin reports changes the same way and a governance policy can judge them per kind.
Index ¶
- Constants
- func Counts(cs []contract.Change) (breaking, nonBreaking int)
- func Fingerprint(kind, pointer string) string
- func Kind(object, property, action string) string
- func New(kind, pointer string, breaking bool, message string) contract.Change
- func RenderText(cs []contract.Change) string
- func Sort(cs []contract.Change)
Constants ¶
const ( ActionAdded = "added" ActionRemoved = "removed" ActionModified = "modified" )
Actions are the last segment of a change kind.
Variables ¶
This section is empty.
Functions ¶
func Fingerprint ¶
Fingerprint is the sha256 of a change's kind and pointer.
func New ¶
New builds a change with its default level (error when breaking, warn otherwise) and fingerprint.
func RenderText ¶
RenderText renders changes as compare plugin raw output: one "BREAKING|NON-BREAKING kind pointer: message" line per change and a total.
Types ¶
This section is empty.