package endpoints
import "k8s.io/client-go/1.4/pkg/api/endpoints"
Index ¶
- Constants
- func LessEndpointAddress(a, b *api.EndpointAddress) bool
- func RepackSubsets(subsets []api.EndpointSubset) []api.EndpointSubset
- func SortSubsets(subsets []api.EndpointSubset) []api.EndpointSubset
- type HostRecord
Constants ¶
const ( // TODO: to be deleted after v1.3 is released // Its value is the json representation of map[string(IP)][HostRecord] // example: '{"10.245.1.6":{"HostName":"my-webserver"}}' PodHostnamesAnnotation = "endpoints.beta.kubernetes.io/hostnames-map" )
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.
Types ¶
type HostRecord ¶
type HostRecord struct { HostName string }
TODO: to be deleted after v1.3 is released
Source Files ¶
util.go
- Version
- v1.4.0
- Published
- Oct 17, 2016
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 2 seconds ago –
Tools for package owners.