sort

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByChartVersion

func ByChartVersion(versions []registryv1.ChartVersion) []registryv1.ChartVersion

ByChartVersion sort chart versions from high to low

Types

type ByVersion

type ByVersion []registryv1.ChartVersion

ByVersion implements sort.Interface for []ChartVersion based on the version field.

func (ByVersion) Len

func (a ByVersion) Len() int

func (ByVersion) Less

func (a ByVersion) Less(i, j int) bool

func (ByVersion) Swap

func (a ByVersion) Swap(i, j int)

Jump to

Keyboard shortcuts

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