output

package
v0.0.0-...-b227c85 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FormatNames = make([]string, 0, len(formats))
)

Functions

This section is empty.

Types

type Format

type Format format
const (
	FormatJSON         Format = "json"
	FormatJSONL        Format = "jsonl"
	FormatMarkdown     Format = "markdown"
	FormatMarkdownWide Format = "markdown-wide"
	FormatJUnit        Format = "junit"
)

func ParseFormatName

func ParseFormatName(s string) (Format, bool)

type Module

type Module struct {
	Path              string `json:"path,omitempty"`
	Name              string `json:"name,omitempty"`
	Type              string `json:"type,omitempty"`
	Source            string `json:"source,omitempty"`
	VersionConstraint string `json:"constraint,omitempty"`
	Version           string `json:"version,omitempty"`
}

func (*Module) SortKey

func (m *Module) SortKey() string

type Modules

type Modules []Module

func (Modules) Len

func (m Modules) Len() int

func (Modules) Less

func (m Modules) Less(i, j int) bool

func (Modules) Swap

func (m Modules) Swap(i, j int)

func (Modules) Write

func (m Modules) Write(w io.Writer, as Format) error

func (Modules) WriteJSON

func (m Modules) WriteJSON(w io.Writer) error

func (Modules) WriteJSONL

func (m Modules) WriteJSONL(w io.Writer) error

func (Modules) WriteJUnit

func (m Modules) WriteJUnit(w io.Writer) error

func (Modules) WriteMarkdown

func (m Modules) WriteMarkdown(w io.Writer) error

func (Modules) WriteMarkdownWide

func (m Modules) WriteMarkdownWide(w io.Writer) error

type Update

type Update struct {
	Path              string `json:"path,omitempty"`
	Name              string `json:"name,omitempty"`
	Source            string `json:"source,omitempty"`
	VersionConstraint string `json:"constraint,omitempty"`
	Version           string `json:"version,omitempty"`
	LatestMatching    string `json:"latestMatching,omitempty"`
	LatestOverall     string `json:"latestOverall,omitempty"`
	MatchingUpdate    bool   `json:"matchingUpdate,omitempty"`
	NonMatchingUpdate bool   `json:"nonMatchingUpdate,omitempty"`
}

func (*Update) SortKey

func (u *Update) SortKey() string

type Updates

type Updates []Update

func (Updates) Format

func (u Updates) Format(w io.Writer, as Format) error

func (Updates) GenerateSed

func (u Updates) GenerateSed()

func (Updates) Len

func (u Updates) Len() int

func (Updates) Less

func (u Updates) Less(i, j int) bool

func (Updates) Swap

func (u Updates) Swap(i, j int)

func (Updates) WriteJSON

func (u Updates) WriteJSON(w io.Writer) error

func (Updates) WriteJSONL

func (u Updates) WriteJSONL(w io.Writer) error

func (Updates) WriteJUnit

func (u Updates) WriteJUnit(w io.Writer) error

func (Updates) WriteMarkdown

func (u Updates) WriteMarkdown(w io.Writer) error

func (Updates) WriteMarkdownWide

func (u Updates) WriteMarkdownWide(w io.Writer) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL