sort

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: MPL-2.0 Imports: 4 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 ConfigResolution added in v0.6.0

type ConfigResolution []*pb.ConfigVar

ConfigResolution sorts a set of config variables such that if they were evaluated in-order to see if they match an environment, you can always take the most recent match as the current value. i.e. conflict resolution is handled for you in the iteration order.

func (ConfigResolution) Len added in v0.6.0

func (s ConfigResolution) Len() int

func (ConfigResolution) Less added in v0.6.0

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

func (ConfigResolution) Swap added in v0.6.0

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

type DeploymentBundleCompleteDesc added in v0.5.0

type DeploymentBundleCompleteDesc []*pb.UI_DeploymentBundle

DeploymentBundleCompleteDesc sorts deployment bundles by completion time descending.

func (DeploymentBundleCompleteDesc) Len added in v0.5.0

func (DeploymentBundleCompleteDesc) Less added in v0.5.0

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

func (DeploymentBundleCompleteDesc) Swap added in v0.5.0

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

type DeploymentBundleStartDesc added in v0.5.0

type DeploymentBundleStartDesc []*pb.UI_DeploymentBundle

DeploymentBundleStartDesc sorts deployment bundles by start time descending.

func (DeploymentBundleStartDesc) Len added in v0.5.0

func (DeploymentBundleStartDesc) Less added in v0.5.0

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

func (DeploymentBundleStartDesc) Swap added in v0.5.0

func (s DeploymentBundleStartDesc) 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)

type ReleaseBundleCompleteDesc added in v0.5.2

type ReleaseBundleCompleteDesc []*pb.UI_ReleaseBundle

ReleaseBundleCompleteDesc sorts deployment bundles by completion time descending.

func (ReleaseBundleCompleteDesc) Len added in v0.5.2

func (ReleaseBundleCompleteDesc) Less added in v0.5.2

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

func (ReleaseBundleCompleteDesc) Swap added in v0.5.2

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

Jump to

Keyboard shortcuts

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