epslices

package
v0.13.10 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const SlicesServiceIndexName = "ServiceName"

Variables

This section is empty.

Functions

func IsConditionReady

func IsConditionReady(conditions discovery.EndpointConditions) bool

IsConditionReady tells if the conditions represent a ready state, interpreting nil ready as ready.

func ServiceKeyForSlice

func ServiceKeyForSlice(endpointSlice *discovery.EndpointSlice) (types.NamespacedName, error)

func SlicesServiceIndex

func SlicesServiceIndex(obj interface{}) ([]string, error)

Types

type EpsOrSliceType

type EpsOrSliceType int
const (
	Unknown EpsOrSliceType = iota
	Eps
	Slices
)

type EpsOrSlices

type EpsOrSlices struct {
	Type      EpsOrSliceType
	EpVal     *v1.Endpoints
	SlicesVal []discovery.EndpointSlice
}

Jump to

Keyboard shortcuts

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