sorter

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespaceSort

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

NamespaceSort implements the sort.Interface{}

func NewNamespaceSorter

func NewNamespaceSorter(objs []corev1.Namespace, ascending bool) *NamespaceSort

NewNamespaceSorter ...

func (*NamespaceSort) Len

func (s *NamespaceSort) Len() int

Len is the number of elements in the collection.

func (*NamespaceSort) Less

func (s *NamespaceSort) Less(i, j int) bool

Less reports whether the element with index i should sort before the element with index j.

func (*NamespaceSort) Swap

func (s *NamespaceSort) Swap(i, j int)

Swap swaps the elements with indexes i and j.

type ProjectSort

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

ProjectSort implements sort.Interface{}

func NewProjectSorter

func NewProjectSorter(objs []v1alpha1.Project, ascending bool) *ProjectSort

NewProjectSorter ...

func (*ProjectSort) Len

func (s *ProjectSort) Len() int

Len is the number of elements in the collection.

func (*ProjectSort) Less

func (s *ProjectSort) Less(i, j int) bool

Less reports whether the element with index i should sort before the element with index j.

func (*ProjectSort) Swap

func (s *ProjectSort) Swap(i, j int)

Swap swaps the elements with indexes i and j.

type ResourceSort

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

ResourceSort implements the sort.Interface{}

func NewResourceSorter

func NewResourceSorter(objs []v1alpha1.Resource, ascending bool) *ResourceSort

NewResourceSorter ...

func (*ResourceSort) Len

func (s *ResourceSort) Len() int

Len is the number of elements in the collection.

func (*ResourceSort) Less

func (s *ResourceSort) Less(i, j int) bool

Less reports whether the element with index i should sort before the element with index j.

func (*ResourceSort) Swap

func (s *ResourceSort) Swap(i, j int)

Swap swaps the elements with indexes i and j.

type SecretSort

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

SecretSort implements the sort.Interface{}

func NewSecretSorter

func NewSecretSorter(objs []corev1.Secret, ascending bool) *SecretSort

NewSecretSorter ...

func (*SecretSort) Len

func (s *SecretSort) Len() int

Len is the number of elements in the collection.

func (*SecretSort) Less

func (s *SecretSort) Less(i, j int) bool

Less reports whether the element with index i should sort before the element with index j.

func (*SecretSort) Swap

func (s *SecretSort) Swap(i, j int)

Swap swaps the elements with indexes i and j.

type StageSort

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

StageSort implements the sort.Interface{}

func NewStageSorter

func NewStageSorter(objs []v1alpha1.Stage, ascending bool) *StageSort

NewStageSorter ...

func (*StageSort) Len

func (s *StageSort) Len() int

Len is the number of elements in the collection.

func (*StageSort) Less

func (s *StageSort) Less(i, j int) bool

Less reports whether the element with index i should sort before the element with index j.

func (*StageSort) Swap

func (s *StageSort) Swap(i, j int)

Swap swaps the elements with indexes i and j.

type WorkflowRunSort

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

WorkflowRunSort implements the sort.Interface{}

func NewWorkflowRunSorter

func NewWorkflowRunSorter(objs []v1alpha1.WorkflowRun, ascending bool) *WorkflowRunSort

NewWorkflowRunSorter ...

func (*WorkflowRunSort) Len

func (s *WorkflowRunSort) Len() int

Len is the number of elements in the collection.

func (*WorkflowRunSort) Less

func (s *WorkflowRunSort) Less(i, j int) bool

Less reports whether the element with index i should sort before the element with index j.

func (*WorkflowRunSort) Swap

func (s *WorkflowRunSort) Swap(i, j int)

Swap swaps the elements with indexes i and j.

type WorkflowSort

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

WorkflowSort implements the sort.Interface{}

func NewWorkflowSorter

func NewWorkflowSorter(objs []v1alpha1.Workflow, ascending bool) *WorkflowSort

NewWorkflowSorter ...

func (*WorkflowSort) Len

func (s *WorkflowSort) Len() int

Len is the number of elements in the collection.

func (*WorkflowSort) Less

func (s *WorkflowSort) Less(i, j int) bool

Less reports whether the element with index i should sort before the element with index j.

func (*WorkflowSort) Swap

func (s *WorkflowSort) Swap(i, j int)

Swap swaps the elements with indexes i and j.

type WorkflowTriggerSort

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

WorkflowTriggerSort implements the sort.Interface{}

func NewWorkflowTriggerSorter

func NewWorkflowTriggerSorter(objs []v1alpha1.WorkflowTrigger, ascending bool) *WorkflowTriggerSort

NewWorkflowTriggerSorter ...

func (*WorkflowTriggerSort) Len

func (s *WorkflowTriggerSort) Len() int

Len is the number of elements in the collection.

func (*WorkflowTriggerSort) Less

func (s *WorkflowTriggerSort) Less(i, j int) bool

Less reports whether the element with index i should sort before the element with index j.

func (*WorkflowTriggerSort) Swap

func (s *WorkflowTriggerSort) Swap(i, j int)

Swap swaps the elements with indexes i and j.

Jump to

Keyboard shortcuts

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