Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoutesBySpecificity ¶
type RoutesBySpecificity []*networkingv1alpha3spec.HTTPRoute
func (RoutesBySpecificity) Len ¶
func (b RoutesBySpecificity) Len() int
func (RoutesBySpecificity) Less ¶
func (b RoutesBySpecificity) Less(i, j int) bool
func (RoutesBySpecificity) Swap ¶
func (b RoutesBySpecificity) Swap(i, j int)
type Translator ¶
type Translator interface { /* Translate translates the appropriate VirtualService for the given Destination. returns nil if no VirtualService is required for the Destination (i.e. if no VirtualService features are required, such as subsets). If sourceMeshInstallation is specified, hostnames in the translated VirtualService will use global FQDNs if the Destination exists in a different cluster from the specified mesh (i.e. is a federated Destination). Otherwise, assume translation for cluster that the Destination exists in and use local FQDNs. Errors caused by invalid user config will be reported using the Reporter. Note that the input snapshot DestinationSet contains the given Destination. */ Translate( ctx context.Context, in input.LocalSnapshot, destination *discoveryv1.Destination, sourceMeshInstallation *discoveryv1.MeshInstallation, reporter reporting.Reporter, ) *networkingv1alpha3.VirtualService }
Translator translates a Destination into a VirtualService.
func NewTranslator ¶
func NewTranslator( userVirtualServices v1alpha3sets.VirtualServiceSet, clusterDomains hostutils.ClusterDomainRegistry, decoratorFactory decorators.Factory, ) Translator
Click to show internal directories.
Click to hide internal directories.