Documentation
¶
Index ¶
- Constants
- func RawUnifiedDiff(results []diff.Result) string
- type DiagnosticsMode
- type DiffStyle
- type MarkdownOptions
- type MarkdownResult
- func DiffMarkdown(result app.DiffResult, options MarkdownOptions) ([]byte, MarkdownResult, error)
- func ImageDiffMarkdown(result app.ImageDiffResult, options MarkdownOptions) ([]byte, MarkdownResult, error)
- func WriteDiffMarkdown(w io.Writer, result app.DiffResult, options MarkdownOptions) (MarkdownResult, error)
- func WriteImageDiffMarkdown(w io.Writer, result app.ImageDiffResult, options MarkdownOptions) (MarkdownResult, error)
Constants ¶
View Source
const ( OutputMarkdown = "markdown" DefaultMaxBytes = 60000 MinPositiveMaxByte = 1024 )
Variables ¶
This section is empty.
Functions ¶
func RawUnifiedDiff ¶
Types ¶
type DiagnosticsMode ¶ added in v0.2.8
type DiagnosticsMode string
DiagnosticsMode controls how much of the diagnostics list the markdown report embeds. Summary warning/error counts are always kept.
const ( // DiagnosticsModeAll lists errors openly and collapses warnings inside a // <details> block. DiagnosticsModeAll DiagnosticsMode = "all" // DiagnosticsModeErrors lists errors openly and omits warnings entirely. DiagnosticsModeErrors DiagnosticsMode = "errors" // DiagnosticsModeNone omits the diagnostics section entirely. DiagnosticsModeNone DiagnosticsMode = "none" )
func ParseDiagnosticsMode ¶ added in v0.2.8
func ParseDiagnosticsMode(value string) (DiagnosticsMode, error)
func (DiagnosticsMode) Normalize ¶ added in v0.2.8
func (mode DiagnosticsMode) Normalize() DiagnosticsMode
func (DiagnosticsMode) Validate ¶ added in v0.2.8
func (mode DiagnosticsMode) Validate() error
type DiffStyle ¶ added in v0.3.6
type DiffStyle string
DiffStyle selects how each Application's changes are written inside its markdown <details> block. Summary counts, byte budgets, and the raw and HTML side outputs always use the unified diff.
func ParseDiffStyle ¶ added in v0.3.6
type MarkdownOptions ¶
type MarkdownResult ¶
func DiffMarkdown ¶
func DiffMarkdown(result app.DiffResult, options MarkdownOptions) ([]byte, MarkdownResult, error)
func ImageDiffMarkdown ¶
func ImageDiffMarkdown(result app.ImageDiffResult, options MarkdownOptions) ([]byte, MarkdownResult, error)
func WriteDiffMarkdown ¶
func WriteDiffMarkdown(w io.Writer, result app.DiffResult, options MarkdownOptions) (MarkdownResult, error)
func WriteImageDiffMarkdown ¶
func WriteImageDiffMarkdown(w io.Writer, result app.ImageDiffResult, options MarkdownOptions) (MarkdownResult, error)
Directories
¶
| Path | Synopsis |
|---|---|
|
Package dyffreport renders manifest diff results with the dyff library (https://github.com/homeport/dyff).
|
Package dyffreport renders manifest diff results with the dyff library (https://github.com/homeport/dyff). |
Click to show internal directories.
Click to hide internal directories.