kubernetes: k8s.io/kubernetes/pkg/api/v1/endpoints Index | Files

package endpoints

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

Index

Package Files

util.go

func LessEndpointAddress Uses

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

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

func RepackSubsets Uses

func RepackSubsets(subsets []v1.EndpointSubset) []v1.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 Uses

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

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

Package endpoints imports 8 packages (graph) and is imported by 5 packages. Updated 2018-09-27. Refresh now. Tools for package owners.