kubernetesk8s.io/kubernetes/pkg/api/endpoints Index | Files

package endpoints

import "k8s.io/kubernetes/pkg/api/endpoints"

Index

Functions

func LessEndpointAddress

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

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.

Source Files

util.go

Version
v1.8.0-rc.1
Published
Sep 23, 2017
Platform
js/wasm
Imports
8 packages
Last checked
11 seconds ago

Tools for package owners.