sorter

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sorter

type Sorter struct {
	// contains filtered or unexported fields
}

func NewSorter

func NewSorter(logger *log.Logger, semverConverter semverConverter) *Sorter

func (Sorter) SortBySemver

func (s Sorter) SortBySemver(input []pivnet.Release) ([]pivnet.Release, error)

SortBySemver returns the provided releases, ordered by semantic versioning, in descending order i.e. [4.2.3, 1.2.1, 1.2.0] If a version cannot be parsed as semantic versioning, this is logged to stdout and that release is not returned. No error is returned in this case. Therefore the number of returned releases may be fewer than the number of provided releases.

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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