endpoints

package
v1.13.5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LessEndpointAddress added in v1.1.0

func LessEndpointAddress(a, b *api.EndpointAddress) bool

LessEndpointAddress compares IP addresses lexicographically and returns true if first argument is lesser than second

func RepackSubsets

func RepackSubsets(subsets []api.EndpointSubset) []api.EndpointSubset

RepackSubsets takes a slice of EndpointSubset objects, expands it to the full representation, and then repacks that into the canonical layout. This ensures that code which operates on these objects can rely on the common form for things like comparison. The result is a newly allocated slice.

func SortSubsets

func SortSubsets(subsets []api.EndpointSubset) []api.EndpointSubset

SortSubsets sorts an array of EndpointSubset objects in place. For ease of use it returns the input slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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