Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface {
// With adds a new Echo configuration to the Builder. Once built, the instance
// pointer will be updated to point at the new Instance.
With(i *echo.Instance, cfg echo.Config) Builder
// WithConfig mimics the behavior of With, but does not allow passing a reference
// and returns an echoboot builder rather than a generic echo builder.
// TODO rename this to With, and the old method to WithInstance
WithConfig(cfg echo.Config) Builder
// WithClusters will cause subsequent With or WithConfig calls to be applied to the given clusters.
WithClusters(...cluster.Cluster) Builder
// Build and initialize all Echo Instances. Upon returning, the Instance pointers
// are assigned and all Instances are ready to communicate with each other.
Build() (echo.Instances, error)
BuildOrFail(t test.Failer) echo.Instances
}
Builder for a group of collaborating Echo Instances. Once built, all Instances in the group:
- Are ready to receive traffic, and
- Can call every other Instance in the group (i.e. have received Envoy config from Pilot).
If a test needs to verify that one Instance is NOT reachable from another, there are a couple of options:
- Build a group while all Instances ARE reachable. Then apply a policy disallowing the communication.
- Build the source and destination Instances in separate groups and then call `source.WaitUntilCallable(destination)`.
Click to show internal directories.
Click to hide internal directories.