Documentation ¶
Overview ¶
Package catalog is a generated GoMock package.
Package catalog implements the MeshCataloger interface, which forms the central component in OSM that transforms outputs from all other components (SMI policies, Kubernetes services, endpoints etc.) into configuration that is consumed by the the proxy control plane component to program sidecar proxies. Reference: https://github.com/openservicemesh/osm/blob/main/DESIGN.md#5-mesh-catalog
Index ¶
- Constants
- type MeshCatalog
- func (mc *MeshCatalog) GetEgressTrafficPolicy(serviceIdentity identity.ServiceIdentity) (*trafficpolicy.EgressTrafficPolicy, error)
- func (mc *MeshCatalog) GetIngressTrafficPolicy(svc service.MeshService) (*trafficpolicy.IngressTrafficPolicy, error)
- func (mc *MeshCatalog) GetKubeController() k8s.Controller
- func (mc *MeshCatalog) GetPortToProtocolMappingForService(svc service.MeshService) (map[uint32]string, error)
- func (mc *MeshCatalog) GetResolvableServiceEndpoints(svc service.MeshService) ([]endpoint.Endpoint, error)
- func (mc *MeshCatalog) GetServiceHostnames(meshService service.MeshService, locality service.Locality) ([]string, error)
- func (mc *MeshCatalog) GetTargetPortToProtocolMappingForService(svc service.MeshService) (map[uint32]string, error)
- func (mc *MeshCatalog) GetWeightedClustersForUpstream(upstream service.MeshService) []service.WeightedCluster
- func (mc *MeshCatalog) ListEndpointsForServiceIdentity(downstreamIdentity identity.ServiceIdentity, upstreamSvc service.MeshService) ([]endpoint.Endpoint, error)
- func (mc *MeshCatalog) ListInboundServiceIdentities(upstream identity.ServiceIdentity) ([]identity.ServiceIdentity, error)
- func (mc *MeshCatalog) ListInboundTrafficPolicies(upstreamIdentity identity.ServiceIdentity, ...) []*trafficpolicy.InboundTrafficPolicy
- func (mc *MeshCatalog) ListInboundTrafficTargetsWithRoutes(upstream identity.ServiceIdentity) ([]trafficpolicy.TrafficTargetWithRoutes, error)
- func (mc *MeshCatalog) ListMeshServicesForIdentity(identity identity.ServiceIdentity) []service.MeshService
- func (mc *MeshCatalog) ListMonitoredNamespaces() []string
- func (mc *MeshCatalog) ListOutboundServiceIdentities(downstream identity.ServiceIdentity) ([]identity.ServiceIdentity, error)
- func (mc *MeshCatalog) ListOutboundServicesForIdentity(serviceIdentity identity.ServiceIdentity) []service.MeshService
- func (mc *MeshCatalog) ListOutboundServicesForMulticlusterGateway() []service.MeshService
- func (mc *MeshCatalog) ListOutboundTrafficPolicies(downstreamIdentity identity.ServiceIdentity) []*trafficpolicy.OutboundTrafficPolicy
- func (mc *MeshCatalog) ListSMIPolicies() ([]*split.TrafficSplit, []identity.K8sServiceAccount, []*spec.HTTPRouteGroup, ...)
- func (mc *MeshCatalog) ListServiceIdentitiesForService(svc service.MeshService) ([]identity.ServiceIdentity, error)
- type MeshCataloger
- type MockMeshCataloger
- func (m *MockMeshCataloger) EXPECT() *MockMeshCatalogerMockRecorder
- func (m *MockMeshCataloger) GetEgressTrafficPolicy(arg0 identity.ServiceIdentity) (*trafficpolicy.EgressTrafficPolicy, error)
- func (m *MockMeshCataloger) GetIngressTrafficPolicy(arg0 service.MeshService) (*trafficpolicy.IngressTrafficPolicy, error)
- func (m *MockMeshCataloger) GetKubeController() k8s.Controller
- func (m *MockMeshCataloger) GetPortToProtocolMappingForService(arg0 service.MeshService) (map[uint32]string, error)
- func (m *MockMeshCataloger) GetResolvableServiceEndpoints(arg0 service.MeshService) ([]endpoint.Endpoint, error)
- func (m *MockMeshCataloger) GetServiceHostnames(arg0 service.MeshService, arg1 service.Locality) ([]string, error)
- func (m *MockMeshCataloger) GetTargetPortToProtocolMappingForService(arg0 service.MeshService) (map[uint32]string, error)
- func (m *MockMeshCataloger) GetWeightedClustersForUpstream(arg0 service.MeshService) []service.WeightedCluster
- func (m *MockMeshCataloger) ListEndpointsForServiceIdentity(arg0 identity.ServiceIdentity, arg1 service.MeshService) ([]endpoint.Endpoint, error)
- func (m *MockMeshCataloger) ListInboundServiceIdentities(arg0 identity.ServiceIdentity) ([]identity.ServiceIdentity, error)
- func (m *MockMeshCataloger) ListInboundTrafficPolicies(arg0 identity.ServiceIdentity, arg1 []service.MeshService) []*trafficpolicy.InboundTrafficPolicy
- func (m *MockMeshCataloger) ListInboundTrafficTargetsWithRoutes(arg0 identity.ServiceIdentity) ([]trafficpolicy.TrafficTargetWithRoutes, error)
- func (m *MockMeshCataloger) ListMeshServicesForIdentity(arg0 identity.ServiceIdentity) []service.MeshService
- func (m *MockMeshCataloger) ListOutboundServiceIdentities(arg0 identity.ServiceIdentity) ([]identity.ServiceIdentity, error)
- func (m *MockMeshCataloger) ListOutboundServicesForIdentity(arg0 identity.ServiceIdentity) []service.MeshService
- func (m *MockMeshCataloger) ListOutboundServicesForMulticlusterGateway() []service.MeshService
- func (m *MockMeshCataloger) ListOutboundTrafficPolicies(arg0 identity.ServiceIdentity) []*trafficpolicy.OutboundTrafficPolicy
- func (m *MockMeshCataloger) ListServiceIdentitiesForService(arg0 service.MeshService) ([]identity.ServiceIdentity, error)
- type MockMeshCatalogerMockRecorder
- func (mr *MockMeshCatalogerMockRecorder) GetEgressTrafficPolicy(arg0 interface{}) *gomock.Call
- func (mr *MockMeshCatalogerMockRecorder) GetIngressTrafficPolicy(arg0 interface{}) *gomock.Call
- func (mr *MockMeshCatalogerMockRecorder) GetKubeController() *gomock.Call
- func (mr *MockMeshCatalogerMockRecorder) GetPortToProtocolMappingForService(arg0 interface{}) *gomock.Call
- func (mr *MockMeshCatalogerMockRecorder) GetResolvableServiceEndpoints(arg0 interface{}) *gomock.Call
- func (mr *MockMeshCatalogerMockRecorder) GetServiceHostnames(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockMeshCatalogerMockRecorder) GetTargetPortToProtocolMappingForService(arg0 interface{}) *gomock.Call
- func (mr *MockMeshCatalogerMockRecorder) GetWeightedClustersForUpstream(arg0 interface{}) *gomock.Call
- func (mr *MockMeshCatalogerMockRecorder) ListEndpointsForServiceIdentity(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockMeshCatalogerMockRecorder) ListInboundServiceIdentities(arg0 interface{}) *gomock.Call
- func (mr *MockMeshCatalogerMockRecorder) ListInboundTrafficPolicies(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockMeshCatalogerMockRecorder) ListInboundTrafficTargetsWithRoutes(arg0 interface{}) *gomock.Call
- func (mr *MockMeshCatalogerMockRecorder) ListMeshServicesForIdentity(arg0 interface{}) *gomock.Call
- func (mr *MockMeshCatalogerMockRecorder) ListOutboundServiceIdentities(arg0 interface{}) *gomock.Call
- func (mr *MockMeshCatalogerMockRecorder) ListOutboundServicesForIdentity(arg0 interface{}) *gomock.Call
- func (mr *MockMeshCatalogerMockRecorder) ListOutboundServicesForMulticlusterGateway() *gomock.Call
- func (mr *MockMeshCatalogerMockRecorder) ListOutboundTrafficPolicies(arg0 interface{}) *gomock.Call
- func (mr *MockMeshCatalogerMockRecorder) ListServiceIdentitiesForService(arg0 interface{}) *gomock.Call
Constants ¶
const ( // AllowPartialHostnamesMatch is used to allow a partial/subset match on hostnames in traffic policies AllowPartialHostnamesMatch bool = true // DisallowPartialHostnamesMatch is used to disallow a partial/subset match on hostnames in traffic policies DisallowPartialHostnamesMatch bool = false )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MeshCatalog ¶
type MeshCatalog struct {
// contains filtered or unexported fields
}
MeshCatalog is the struct for the service catalog
func NewFakeMeshCatalog ¶
func NewFakeMeshCatalog(kubeClient kubernetes.Interface, meshConfigClient versioned.Interface) *MeshCatalog
NewFakeMeshCatalog creates a new struct implementing catalog.MeshCataloger interface used for testing.
func NewMeshCatalog ¶
func NewMeshCatalog(kubeController k8s.Controller, meshSpec smi.MeshSpec, certManager certificate.Manager, ingressMonitor ingress.Monitor, policyController policy.Controller, stop <-chan struct{}, cfg configurator.Configurator, serviceProviders []service.Provider, endpointsProviders []endpoint.Provider) *MeshCatalog
NewMeshCatalog creates a new service catalog
func (*MeshCatalog) GetEgressTrafficPolicy ¶ added in v0.9.0
func (mc *MeshCatalog) GetEgressTrafficPolicy(serviceIdentity identity.ServiceIdentity) (*trafficpolicy.EgressTrafficPolicy, error)
GetEgressTrafficPolicy returns the Egress traffic policy associated with the given service identity
func (*MeshCatalog) GetIngressTrafficPolicy ¶ added in v0.10.0
func (mc *MeshCatalog) GetIngressTrafficPolicy(svc service.MeshService) (*trafficpolicy.IngressTrafficPolicy, error)
GetIngressTrafficPolicy returns the ingress traffic policy for the given mesh service Depending on if the IngressBackend API is enabled, the policies will be generated either from the IngressBackend or Kubernetes Ingress API.
func (*MeshCatalog) GetKubeController ¶ added in v0.9.1
func (mc *MeshCatalog) GetKubeController() k8s.Controller
GetKubeController returns the kube controller instance handling the current cluster
func (*MeshCatalog) GetPortToProtocolMappingForService ¶ added in v0.6.0
func (mc *MeshCatalog) GetPortToProtocolMappingForService(svc service.MeshService) (map[uint32]string, error)
GetPortToProtocolMappingForService returns a mapping of the service's ports to their corresponding application protocol, where the ports returned are the ones used by downstream clients in their requests. This can be different from the ports actually exposed by the application binary, ie. 'spec.ports[].port' instead of 'spec.ports[].targetPort' for a Kubernetes service.
func (*MeshCatalog) GetResolvableServiceEndpoints ¶ added in v0.4.0
func (mc *MeshCatalog) GetResolvableServiceEndpoints(svc service.MeshService) ([]endpoint.Endpoint, error)
GetResolvableServiceEndpoints returns the resolvable set of endpoint over which a service is accessible using its FQDN
func (*MeshCatalog) GetServiceHostnames ¶ added in v0.10.0
func (mc *MeshCatalog) GetServiceHostnames(meshService service.MeshService, locality service.Locality) ([]string, error)
GetServiceHostnames returns a list of hostnames corresponding to the service. If the service is in the same namespace, it returns the shorthand hostname for the service that does not include its namespace, ex: bookstore, bookstore:80
func (*MeshCatalog) GetTargetPortToProtocolMappingForService ¶ added in v0.7.0
func (mc *MeshCatalog) GetTargetPortToProtocolMappingForService(svc service.MeshService) (map[uint32]string, error)
GetTargetPortToProtocolMappingForService returns a mapping of the service's ports to their corresponding application protocol. The ports returned are the actual ports on which the application exposes the service derived from the service's endpoints, ie. 'spec.ports[].targetPort' instead of 'spec.ports[].port' for a Kubernetes service. The function ensures the port:protocol mapping is the same across different endpoint providers for the service, and returns an error otherwise.
func (*MeshCatalog) GetWeightedClustersForUpstream ¶ added in v0.9.0
func (mc *MeshCatalog) GetWeightedClustersForUpstream(upstream service.MeshService) []service.WeightedCluster
GetWeightedClustersForUpstream returns Envoy cluster weights for the given upstream service, the apex service of a TrafficSplit.
func (*MeshCatalog) ListEndpointsForServiceIdentity ¶ added in v0.10.0
func (mc *MeshCatalog) ListEndpointsForServiceIdentity(downstreamIdentity identity.ServiceIdentity, upstreamSvc service.MeshService) ([]endpoint.Endpoint, error)
ListEndpointsForServiceIdentity returns a list of endpoints that belongs to an upstream service accounts from the given downstream identity's perspective Note: ServiceIdentity must be in the format "name.namespace" [https://github.com/openservicemesh/osm/issues/3188]
func (*MeshCatalog) ListInboundServiceIdentities ¶ added in v0.10.0
func (mc *MeshCatalog) ListInboundServiceIdentities(upstream identity.ServiceIdentity) ([]identity.ServiceIdentity, error)
ListInboundServiceIdentities lists the downstream service identities that are allowed to connect to the given service identity Note: ServiceIdentity must be in the format "name.namespace" [https://github.com/openservicemesh/osm/issues/3188]
func (*MeshCatalog) ListInboundTrafficPolicies ¶ added in v0.8.0
func (mc *MeshCatalog) ListInboundTrafficPolicies(upstreamIdentity identity.ServiceIdentity, upstreamServices []service.MeshService) []*trafficpolicy.InboundTrafficPolicy
ListInboundTrafficPolicies returns all inbound traffic policies 1. from service discovery for permissive mode 2. for the given service account and upstream services from SMI Traffic Target and Traffic Split Note: ServiceIdentity must be in the format "name.namespace" [https://github.com/openservicemesh/osm/issues/3188]
func (*MeshCatalog) ListInboundTrafficTargetsWithRoutes ¶ added in v0.7.0
func (mc *MeshCatalog) ListInboundTrafficTargetsWithRoutes(upstream identity.ServiceIdentity) ([]trafficpolicy.TrafficTargetWithRoutes, error)
ListInboundTrafficTargetsWithRoutes returns a list traffic target objects composed of its routes for the given destination service account Note: ServiceIdentity must be in the format "name.namespace" [https://github.com/openservicemesh/osm/issues/3188]
func (*MeshCatalog) ListMeshServicesForIdentity ¶ added in v0.9.0
func (mc *MeshCatalog) ListMeshServicesForIdentity(identity identity.ServiceIdentity) []service.MeshService
ListMeshServicesForIdentity returns a list of services the service with the given identity can communicate with, including apex TrafficSplit services.
func (*MeshCatalog) ListMonitoredNamespaces ¶ added in v0.1.0
func (mc *MeshCatalog) ListMonitoredNamespaces() []string
ListMonitoredNamespaces returns all namespaces that the mesh is monitoring.
func (*MeshCatalog) ListOutboundServiceIdentities ¶ added in v0.10.0
func (mc *MeshCatalog) ListOutboundServiceIdentities(downstream identity.ServiceIdentity) ([]identity.ServiceIdentity, error)
ListOutboundServiceIdentities lists the upstream service identities the given service identity are allowed to connect to Note: ServiceIdentity must be in the format "name.namespace" [https://github.com/openservicemesh/osm/issues/3188]
func (*MeshCatalog) ListOutboundServicesForIdentity ¶ added in v0.10.0
func (mc *MeshCatalog) ListOutboundServicesForIdentity(serviceIdentity identity.ServiceIdentity) []service.MeshService
ListOutboundServicesForIdentity list the services the given service account is allowed to initiate outbound connections to Note: ServiceIdentity must be in the format "name.namespace" [https://github.com/openservicemesh/osm/issues/3188]
func (*MeshCatalog) ListOutboundServicesForMulticlusterGateway ¶ added in v0.10.0
func (mc *MeshCatalog) ListOutboundServicesForMulticlusterGateway() []service.MeshService
ListOutboundServicesForMulticlusterGateway lists the upstream services for the multicluster gateway TODO: improve code by combining with ListOutboundServicesForIdentity
func (*MeshCatalog) ListOutboundTrafficPolicies ¶ added in v0.8.0
func (mc *MeshCatalog) ListOutboundTrafficPolicies(downstreamIdentity identity.ServiceIdentity) []*trafficpolicy.OutboundTrafficPolicy
ListOutboundTrafficPolicies returns all outbound traffic policies 1. from service discovery for permissive mode 2. for the given service account from SMI Traffic Target and Traffic Split Note: ServiceIdentity must be in the format "name.namespace" [https://github.com/openservicemesh/osm/issues/3188]
func (*MeshCatalog) ListSMIPolicies ¶
func (mc *MeshCatalog) ListSMIPolicies() ([]*split.TrafficSplit, []identity.K8sServiceAccount, []*spec.HTTPRouteGroup, []*access.TrafficTarget)
ListSMIPolicies returns all policies OSM is aware of.
func (*MeshCatalog) ListServiceIdentitiesForService ¶ added in v0.9.0
func (mc *MeshCatalog) ListServiceIdentitiesForService(svc service.MeshService) ([]identity.ServiceIdentity, error)
ListServiceIdentitiesForService lists the service identities associated with the given mesh service.
type MeshCataloger ¶
type MeshCataloger interface { // ListInboundTrafficPolicies returns all inbound traffic policies related to the given service identity and inbound services ListInboundTrafficPolicies(identity.ServiceIdentity, []service.MeshService) []*trafficpolicy.InboundTrafficPolicy // ListOutboundTrafficPolicies returns all outbound traffic policies related to the given service identity ListOutboundTrafficPolicies(identity.ServiceIdentity) []*trafficpolicy.OutboundTrafficPolicy // ListOutboundServicesForIdentity list the services the given service identity is allowed to initiate outbound connections to ListOutboundServicesForIdentity(identity.ServiceIdentity) []service.MeshService // ListOutboundServicesForMulticlusterGateway lists the upstream services for the multicluster gateway ListOutboundServicesForMulticlusterGateway() []service.MeshService // ListInboundServiceIdentities lists the downstream service identities that are allowed to connect to the given service identity ListInboundServiceIdentities(identity.ServiceIdentity) ([]identity.ServiceIdentity, error) // ListOutboundServiceIdentities lists the upstream service identities the given service identity are allowed to connect to ListOutboundServiceIdentities(identity.ServiceIdentity) ([]identity.ServiceIdentity, error) // ListServiceIdentitiesForService lists the service identities associated with the given service ListServiceIdentitiesForService(service.MeshService) ([]identity.ServiceIdentity, error) // ListEndpointsForServiceIdentity returns the list of endpoints backing a service and its allowed service identities ListEndpointsForServiceIdentity(identity.ServiceIdentity, service.MeshService) ([]endpoint.Endpoint, error) // GetResolvableServiceEndpoints returns the resolvable set of endpoint over which a service is accessible using its FQDN. // These are the endpoint destinations we'd expect client applications sends the traffic towards to, when attempting to // reach a specific service. // If no LB/virtual IPs are assigned to the service, GetResolvableServiceEndpoints will return ListEndpointsForService GetResolvableServiceEndpoints(service.MeshService) ([]endpoint.Endpoint, error) // GetIngressTrafficPolicy returns the ingress traffic policy for the given mesh service GetIngressTrafficPolicy(service.MeshService) (*trafficpolicy.IngressTrafficPolicy, error) // GetTargetPortToProtocolMappingForService returns a mapping of the service's ports to their corresponding application protocol. // The ports returned are the actual ports on which the application exposes the service derived from the service's endpoints, // ie. 'spec.ports[].targetPort' instead of 'spec.ports[].port' for a Kubernetes service. GetTargetPortToProtocolMappingForService(service.MeshService) (map[uint32]string, error) // GetPortToProtocolMappingForService returns a mapping of the service's ports to their corresponding application protocol, // where the ports returned are the ones used by downstream clients in their requests. This can be different from the ports // actually exposed by the application binary, ie. 'spec.ports[].port' instead of 'spec.ports[].targetPort' for a Kubernetes service. GetPortToProtocolMappingForService(service.MeshService) (map[uint32]string, error) // ListInboundTrafficTargetsWithRoutes returns a list traffic target objects composed of its routes for the given destination service identity ListInboundTrafficTargetsWithRoutes(identity.ServiceIdentity) ([]trafficpolicy.TrafficTargetWithRoutes, error) // GetWeightedClustersForUpstream lists the weighted cluster backends corresponding to the upstream service. GetWeightedClustersForUpstream(service.MeshService) []service.WeightedCluster // ListMeshServicesForIdentity lists the services for a given service identity. ListMeshServicesForIdentity(identity.ServiceIdentity) []service.MeshService // GetEgressTrafficPolicy returns the Egress traffic policy associated with the given service identity. GetEgressTrafficPolicy(identity.ServiceIdentity) (*trafficpolicy.EgressTrafficPolicy, error) // GetKubeController returns the kube controller instance handling the current cluster GetKubeController() k8s.Controller // GetServiceHostnames returns the hostnames for this service, based on the locality of the source. GetServiceHostnames(service.MeshService, service.Locality) ([]string, error) }
MeshCataloger is the mechanism by which the Service Mesh controller discovers all Envoy proxies connected to the catalog.
type MockMeshCataloger ¶ added in v0.4.1
type MockMeshCataloger struct {
// contains filtered or unexported fields
}
MockMeshCataloger is a mock of MeshCataloger interface
func NewMockMeshCataloger ¶ added in v0.4.1
func NewMockMeshCataloger(ctrl *gomock.Controller) *MockMeshCataloger
NewMockMeshCataloger creates a new mock instance
func (*MockMeshCataloger) EXPECT ¶ added in v0.4.1
func (m *MockMeshCataloger) EXPECT() *MockMeshCatalogerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMeshCataloger) GetEgressTrafficPolicy ¶ added in v0.9.0
func (m *MockMeshCataloger) GetEgressTrafficPolicy(arg0 identity.ServiceIdentity) (*trafficpolicy.EgressTrafficPolicy, error)
GetEgressTrafficPolicy mocks base method
func (*MockMeshCataloger) GetIngressTrafficPolicy ¶ added in v0.10.0
func (m *MockMeshCataloger) GetIngressTrafficPolicy(arg0 service.MeshService) (*trafficpolicy.IngressTrafficPolicy, error)
GetIngressTrafficPolicy mocks base method
func (*MockMeshCataloger) GetKubeController ¶ added in v0.9.1
func (m *MockMeshCataloger) GetKubeController() k8s.Controller
GetKubeController mocks base method
func (*MockMeshCataloger) GetPortToProtocolMappingForService ¶ added in v0.6.0
func (m *MockMeshCataloger) GetPortToProtocolMappingForService(arg0 service.MeshService) (map[uint32]string, error)
GetPortToProtocolMappingForService mocks base method
func (*MockMeshCataloger) GetResolvableServiceEndpoints ¶ added in v0.4.1
func (m *MockMeshCataloger) GetResolvableServiceEndpoints(arg0 service.MeshService) ([]endpoint.Endpoint, error)
GetResolvableServiceEndpoints mocks base method
func (*MockMeshCataloger) GetServiceHostnames ¶ added in v0.10.0
func (m *MockMeshCataloger) GetServiceHostnames(arg0 service.MeshService, arg1 service.Locality) ([]string, error)
GetServiceHostnames mocks base method
func (*MockMeshCataloger) GetTargetPortToProtocolMappingForService ¶ added in v0.7.0
func (m *MockMeshCataloger) GetTargetPortToProtocolMappingForService(arg0 service.MeshService) (map[uint32]string, error)
GetTargetPortToProtocolMappingForService mocks base method
func (*MockMeshCataloger) GetWeightedClustersForUpstream ¶ added in v0.9.0
func (m *MockMeshCataloger) GetWeightedClustersForUpstream(arg0 service.MeshService) []service.WeightedCluster
GetWeightedClustersForUpstream mocks base method
func (*MockMeshCataloger) ListEndpointsForServiceIdentity ¶ added in v0.10.0
func (m *MockMeshCataloger) ListEndpointsForServiceIdentity(arg0 identity.ServiceIdentity, arg1 service.MeshService) ([]endpoint.Endpoint, error)
ListEndpointsForServiceIdentity mocks base method
func (*MockMeshCataloger) ListInboundServiceIdentities ¶ added in v0.10.0
func (m *MockMeshCataloger) ListInboundServiceIdentities(arg0 identity.ServiceIdentity) ([]identity.ServiceIdentity, error)
ListInboundServiceIdentities mocks base method
func (*MockMeshCataloger) ListInboundTrafficPolicies ¶ added in v0.8.0
func (m *MockMeshCataloger) ListInboundTrafficPolicies(arg0 identity.ServiceIdentity, arg1 []service.MeshService) []*trafficpolicy.InboundTrafficPolicy
ListInboundTrafficPolicies mocks base method
func (*MockMeshCataloger) ListInboundTrafficTargetsWithRoutes ¶ added in v0.7.0
func (m *MockMeshCataloger) ListInboundTrafficTargetsWithRoutes(arg0 identity.ServiceIdentity) ([]trafficpolicy.TrafficTargetWithRoutes, error)
ListInboundTrafficTargetsWithRoutes mocks base method
func (*MockMeshCataloger) ListMeshServicesForIdentity ¶ added in v0.9.0
func (m *MockMeshCataloger) ListMeshServicesForIdentity(arg0 identity.ServiceIdentity) []service.MeshService
ListMeshServicesForIdentity mocks base method
func (*MockMeshCataloger) ListOutboundServiceIdentities ¶ added in v0.10.0
func (m *MockMeshCataloger) ListOutboundServiceIdentities(arg0 identity.ServiceIdentity) ([]identity.ServiceIdentity, error)
ListOutboundServiceIdentities mocks base method
func (*MockMeshCataloger) ListOutboundServicesForIdentity ¶ added in v0.10.0
func (m *MockMeshCataloger) ListOutboundServicesForIdentity(arg0 identity.ServiceIdentity) []service.MeshService
ListOutboundServicesForIdentity mocks base method
func (*MockMeshCataloger) ListOutboundServicesForMulticlusterGateway ¶ added in v0.10.0
func (m *MockMeshCataloger) ListOutboundServicesForMulticlusterGateway() []service.MeshService
ListOutboundServicesForMulticlusterGateway mocks base method
func (*MockMeshCataloger) ListOutboundTrafficPolicies ¶ added in v0.8.0
func (m *MockMeshCataloger) ListOutboundTrafficPolicies(arg0 identity.ServiceIdentity) []*trafficpolicy.OutboundTrafficPolicy
ListOutboundTrafficPolicies mocks base method
func (*MockMeshCataloger) ListServiceIdentitiesForService ¶ added in v0.9.0
func (m *MockMeshCataloger) ListServiceIdentitiesForService(arg0 service.MeshService) ([]identity.ServiceIdentity, error)
ListServiceIdentitiesForService mocks base method
type MockMeshCatalogerMockRecorder ¶ added in v0.4.1
type MockMeshCatalogerMockRecorder struct {
// contains filtered or unexported fields
}
MockMeshCatalogerMockRecorder is the mock recorder for MockMeshCataloger
func (*MockMeshCatalogerMockRecorder) GetEgressTrafficPolicy ¶ added in v0.9.0
func (mr *MockMeshCatalogerMockRecorder) GetEgressTrafficPolicy(arg0 interface{}) *gomock.Call
GetEgressTrafficPolicy indicates an expected call of GetEgressTrafficPolicy
func (*MockMeshCatalogerMockRecorder) GetIngressTrafficPolicy ¶ added in v0.10.0
func (mr *MockMeshCatalogerMockRecorder) GetIngressTrafficPolicy(arg0 interface{}) *gomock.Call
GetIngressTrafficPolicy indicates an expected call of GetIngressTrafficPolicy
func (*MockMeshCatalogerMockRecorder) GetKubeController ¶ added in v0.9.1
func (mr *MockMeshCatalogerMockRecorder) GetKubeController() *gomock.Call
GetKubeController indicates an expected call of GetKubeController
func (*MockMeshCatalogerMockRecorder) GetPortToProtocolMappingForService ¶ added in v0.6.0
func (mr *MockMeshCatalogerMockRecorder) GetPortToProtocolMappingForService(arg0 interface{}) *gomock.Call
GetPortToProtocolMappingForService indicates an expected call of GetPortToProtocolMappingForService
func (*MockMeshCatalogerMockRecorder) GetResolvableServiceEndpoints ¶ added in v0.4.1
func (mr *MockMeshCatalogerMockRecorder) GetResolvableServiceEndpoints(arg0 interface{}) *gomock.Call
GetResolvableServiceEndpoints indicates an expected call of GetResolvableServiceEndpoints
func (*MockMeshCatalogerMockRecorder) GetServiceHostnames ¶ added in v0.10.0
func (mr *MockMeshCatalogerMockRecorder) GetServiceHostnames(arg0, arg1 interface{}) *gomock.Call
GetServiceHostnames indicates an expected call of GetServiceHostnames
func (*MockMeshCatalogerMockRecorder) GetTargetPortToProtocolMappingForService ¶ added in v0.7.0
func (mr *MockMeshCatalogerMockRecorder) GetTargetPortToProtocolMappingForService(arg0 interface{}) *gomock.Call
GetTargetPortToProtocolMappingForService indicates an expected call of GetTargetPortToProtocolMappingForService
func (*MockMeshCatalogerMockRecorder) GetWeightedClustersForUpstream ¶ added in v0.9.0
func (mr *MockMeshCatalogerMockRecorder) GetWeightedClustersForUpstream(arg0 interface{}) *gomock.Call
GetWeightedClustersForUpstream indicates an expected call of GetWeightedClustersForUpstream
func (*MockMeshCatalogerMockRecorder) ListEndpointsForServiceIdentity ¶ added in v0.10.0
func (mr *MockMeshCatalogerMockRecorder) ListEndpointsForServiceIdentity(arg0, arg1 interface{}) *gomock.Call
ListEndpointsForServiceIdentity indicates an expected call of ListEndpointsForServiceIdentity
func (*MockMeshCatalogerMockRecorder) ListInboundServiceIdentities ¶ added in v0.10.0
func (mr *MockMeshCatalogerMockRecorder) ListInboundServiceIdentities(arg0 interface{}) *gomock.Call
ListInboundServiceIdentities indicates an expected call of ListInboundServiceIdentities
func (*MockMeshCatalogerMockRecorder) ListInboundTrafficPolicies ¶ added in v0.8.0
func (mr *MockMeshCatalogerMockRecorder) ListInboundTrafficPolicies(arg0, arg1 interface{}) *gomock.Call
ListInboundTrafficPolicies indicates an expected call of ListInboundTrafficPolicies
func (*MockMeshCatalogerMockRecorder) ListInboundTrafficTargetsWithRoutes ¶ added in v0.7.0
func (mr *MockMeshCatalogerMockRecorder) ListInboundTrafficTargetsWithRoutes(arg0 interface{}) *gomock.Call
ListInboundTrafficTargetsWithRoutes indicates an expected call of ListInboundTrafficTargetsWithRoutes
func (*MockMeshCatalogerMockRecorder) ListMeshServicesForIdentity ¶ added in v0.9.0
func (mr *MockMeshCatalogerMockRecorder) ListMeshServicesForIdentity(arg0 interface{}) *gomock.Call
ListMeshServicesForIdentity indicates an expected call of ListMeshServicesForIdentity
func (*MockMeshCatalogerMockRecorder) ListOutboundServiceIdentities ¶ added in v0.10.0
func (mr *MockMeshCatalogerMockRecorder) ListOutboundServiceIdentities(arg0 interface{}) *gomock.Call
ListOutboundServiceIdentities indicates an expected call of ListOutboundServiceIdentities
func (*MockMeshCatalogerMockRecorder) ListOutboundServicesForIdentity ¶ added in v0.10.0
func (mr *MockMeshCatalogerMockRecorder) ListOutboundServicesForIdentity(arg0 interface{}) *gomock.Call
ListOutboundServicesForIdentity indicates an expected call of ListOutboundServicesForIdentity
func (*MockMeshCatalogerMockRecorder) ListOutboundServicesForMulticlusterGateway ¶ added in v0.10.0
func (mr *MockMeshCatalogerMockRecorder) ListOutboundServicesForMulticlusterGateway() *gomock.Call
ListOutboundServicesForMulticlusterGateway indicates an expected call of ListOutboundServicesForMulticlusterGateway
func (*MockMeshCatalogerMockRecorder) ListOutboundTrafficPolicies ¶ added in v0.8.0
func (mr *MockMeshCatalogerMockRecorder) ListOutboundTrafficPolicies(arg0 interface{}) *gomock.Call
ListOutboundTrafficPolicies indicates an expected call of ListOutboundTrafficPolicies
func (*MockMeshCatalogerMockRecorder) ListServiceIdentitiesForService ¶ added in v0.9.0
func (mr *MockMeshCatalogerMockRecorder) ListServiceIdentitiesForService(arg0 interface{}) *gomock.Call
ListServiceIdentitiesForService indicates an expected call of ListServiceIdentitiesForService