Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Translator ¶
type Translator interface { // Translate translates the appropriate VirtualService and DestinationRule for the given Destination. // returns nil if no VirtualService or DestinationRule is required for the Destination (i.e. if no VirtualService/DestinationRule features are required, such as subsets). // Output resources will be added to the output.Builder // Errors caused by invalid user config will be reported using the Reporter. Translate( in input.LocalSnapshot, destination *discoveryv1.Destination, outputs istio.Builder, reporter reporting.Reporter, ) }
the VirtualService translator translates a Destination into a VirtualService.
func NewTranslator ¶
func NewTranslator( ctx context.Context, userSupplied input.RemoteSnapshot, clusterDomains hostutils.ClusterDomainRegistry, decoratorFactory decorators.Factory, destinations discoveryv1sets.DestinationSet, ) Translator
Directories ¶
Path | Synopsis |
---|---|
mocks
Package mock_authorizationpolicy is a generated GoMock package.
|
Package mock_authorizationpolicy is a generated GoMock package. |
mocks
Package mock_destinationrule is a generated GoMock package.
|
Package mock_destinationrule is a generated GoMock package. |
Package mock_destination is a generated GoMock package.
|
Package mock_destination is a generated GoMock package. |
mocks
Package mock_virtualservice is a generated GoMock package.
|
Package mock_virtualservice is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.