Documentation ¶
Index ¶
- Variables
- type Matcher
- func And(ms ...Matcher) Matcher
- func AnyServiceName(expected echo.NamespacedNames) Matcher
- func Cluster(c cluster.Cluster) Matcher
- func Namespace(n namespace.Instance) Matcher
- func NamespaceName(ns string) Matcher
- func Network(n string) Matcher
- func Not(m Matcher) Matcher
- func Or(ms ...Matcher) Matcher
- func ServiceName(n echo.NamespacedName) Matcher
Constants ¶
This section is empty.
Variables ¶
var NotExternal = Not(External)
NotExternal is equivalent to Not(External)
var NotHeadless = Not(Headless)
NotHeadless is equivalent to Not(Headless)
var NotNaked = Not(Naked)
NotNaked is equivalent to Not(Naked)
var NotProxylessGRPC = Not(ProxylessGRPC)
NotProxylessGRPC is equivalent to Not(ProxylessGRPC)
var NotRegularPod = Not(RegularPod)
var NotTProxy = Not(TProxy)
var NotVM = Not(VM)
NotVM is matches against instances that are NOT VMs.
Functions ¶
This section is empty.
Types ¶
type Matcher ¶
Matcher is used to filter matching instances
External matches instances that have a custom DefaultHostHeader defined
Headless matches instances that are backed by headless services.
Naked matches instances that are Pods with a SidecarInject annotation equal to false.
ProxylessGRPC matches instances that are Pods with a SidecarInjectTemplate annotation equal to grpc.
var RegularPod Matcher = func(instance echo.Instance) bool {
return instance.Config().IsRegularPod()
}
RegularPod matches echos that don't meet any of the following criteria: - VM - Naked - Headless - TProxy - Multi-Subset
VM matches instances with DeployAsVM
func AnyServiceName ¶
func AnyServiceName(expected echo.NamespacedNames) Matcher
AnyServiceName matches instances if they have the same Service and Namespace as any of the provided instances.
func NamespaceName ¶
NamespaceName matches instances within the given namespace name.
func ServiceName ¶
func ServiceName(n echo.NamespacedName) Matcher
ServiceName matches instances with the given namespace and service name.
func (Matcher) FirstOrFail ¶
FirstOrFail calls First and then fails the test if an error occurs.