sort

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MPL-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 ArtifactStartDesc

type ArtifactStartDesc []*pb.PushedArtifact

ArtifactStartDesc sorts builds by start time descending (most recent first). For the opposite, use sort.Reverse.

func (ArtifactStartDesc) Len

func (s ArtifactStartDesc) Len() int

func (ArtifactStartDesc) Less

func (s ArtifactStartDesc) Less(i, j int) bool

func (ArtifactStartDesc) Swap

func (s ArtifactStartDesc) Swap(i, j int)

type BuildStartDesc

type BuildStartDesc []*pb.Build

BuildStartDesc sorts builds by start time descending (most recent first). For the opposite, use sort.Reverse.

func (BuildStartDesc) Len

func (s BuildStartDesc) Len() int

func (BuildStartDesc) Less

func (s BuildStartDesc) Less(i, j int) bool

func (BuildStartDesc) Swap

func (s BuildStartDesc) Swap(i, j int)

type ConfigName

type ConfigName []*pb.ConfigVar

ConfigName sorts config variables by name.

func (ConfigName) Len

func (s ConfigName) Len() int

func (ConfigName) Less

func (s ConfigName) Less(i, j int) bool

func (ConfigName) Swap

func (s ConfigName) Swap(i, j int)

type DeploymentCompleteDesc

type DeploymentCompleteDesc []*pb.Deployment

DeploymentCompleteDesc sorts deployments by completion time descending.

func (DeploymentCompleteDesc) Len

func (s DeploymentCompleteDesc) Len() int

func (DeploymentCompleteDesc) Less

func (s DeploymentCompleteDesc) Less(i, j int) bool

func (DeploymentCompleteDesc) Swap

func (s DeploymentCompleteDesc) Swap(i, j int)

type DeploymentStartDesc

type DeploymentStartDesc []*pb.Deployment

DeploymentStartDesc sorts deployments by start time descending.

func (DeploymentStartDesc) Len

func (s DeploymentStartDesc) Len() int

func (DeploymentStartDesc) Less

func (s DeploymentStartDesc) Less(i, j int) bool

func (DeploymentStartDesc) Swap

func (s DeploymentStartDesc) Swap(i, j int)

Jump to

Keyboard shortcuts

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