package labelsort

import "github.com/coreos/rkt/common/labelsort"

Index

Functions

func RankedName

func RankedName(li, lj types.Label) bool

RankedName compares the label names of li, lj lexically returning true if li.Name < lj.Name, else false. The names "version", "os", and "arch" always have lower ranks in that order, hence "version" < "os" < "arch" < [any other label name]

Types

type By

type By func(li, lj types.Label) bool

By is a functional type which compares two labels li, lj, returning true if li < lj, else false.

func (By) Sort

func (by By) Sort(ls types.Labels)

Source Files

labelsort.go

Version
v1.30.0 (latest)
Published
Apr 13, 2018
Platform
linux/amd64
Imports
2 packages
Last checked
4 days ago

Tools for package owners.