Documentation ¶
Overview ¶
Package matchutils provides utils to match network services and network service endpoints
Index ¶
- func IsSubset(a, b, values map[string]string) bool
- func MatchEndpoint(nsLabels map[string]string, ns *registry.NetworkService, ...) []*registry.NetworkServiceEndpoint
- func MatchNetworkServiceEndpoints(left, right *registry.NetworkServiceEndpoint) bool
- func MatchNetworkServices(left, right *registry.NetworkService) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSubset ¶ added in v1.1.0
IsSubset checks if B is a subset of A. Tries to process values for each B value.
func MatchEndpoint ¶ added in v1.11.0
func MatchEndpoint(nsLabels map[string]string, ns *registry.NetworkService, nses ...*registry.NetworkServiceEndpoint) []*registry.NetworkServiceEndpoint
MatchEndpoint filters input nses by network service configuration. Returns the same nses list if no matches are declared in the network service.
func MatchNetworkServiceEndpoints ¶
func MatchNetworkServiceEndpoints(left, right *registry.NetworkServiceEndpoint) bool
MatchNetworkServiceEndpoints returns true if two network service endpoints are matched
func MatchNetworkServices ¶
func MatchNetworkServices(left, right *registry.NetworkService) bool
MatchNetworkServices returns true if two network services are matched
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.