parsers

package
v0.0.0-...-42893f0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SemverRegex = "^[0-9]+[.][0-9]+[.][0-9]$"
View Source
var VersionRegex = "[0-9]+[.][0-9]+(?:[.][0-9]+)?"

VersionRegex matches a major and minor, optional third group

Functions

func GetVersions

func GetVersions(contenders []string, filters []string, startAtVersion string, endAtVersion string, skipVersions []string, includeVersions []string) []string

func HasSemanticVersions

func HasSemanticVersions(contenders []string) bool

func SortVersions

func SortVersions(contenders []string) []string

Types

type BuildResult

type BuildResult struct {
	Name          string            `json:"name,omitempty"`
	ContainerName string            `json:"container_name,omitempty"`
	Context       string            `json:"context,omitempty"`
	Filename      string            `json:"filename,omitempty"`
	Parser        string            `json:"parser,omitempty"`
	BuildArgs     map[string]string `json:"buildargs,omitempty"`
	CommandPrefix string            `json:"command_prefix,omitempty"`
	Description   string            `json:"description,omitempty"`
}

A BuildResult needs more information (e.g., versions) to be given to a build matrix

type BuildVariable

type BuildVariable struct {
	Name   string
	Values []string
}

BuildVariable holds a key (name) and one or more values to parameterize over

type Result

type Result struct {
	Name       string `json:"name,omitempty"`
	Filename   string `json:"filename,omitempty"`
	Parser     string `json:"parser,omitempty"`
	Identifier string `json:"id,omitempty"`
}

type Update

type Update struct {
	Original string
	Updated  string
	LineNo   int
}

An update to a FROM includes the original content and update

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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