Documentation ¶
Index ¶
- Constants
- func FilterClusters(clusters []envoy.Cluster, fqdn, address string, port int) []envoy.Cluster
- func FilterEndpoints(endpoints []envoy.Endpoint, address string, port int) []envoy.Endpoint
- func FilterListeners(listeners []envoy.Listener, address string, port int) []envoy.Listener
- type ReadCommand
Constants ¶
const ( Table = "table" JSON = "json" Raw = "raw" )
Variables ¶
This section is empty.
Functions ¶
func FilterClusters ¶
FilterClusters takes a slice of clusters along with parameters for filtering those clusters.
- `fqdn` filters clusters to only those with fully qualified domain names which contain the given value.
- `address` filters clusters to only those with endpoint addresses which contain the given value.
- `port` filters clusters to only those with endpoint addresses with ports that match the given value. If -1 is passed, no filtering will occur.
The filters are applied in combination such that a cluster must adhere to all of the filtering values which are passed in.
func FilterEndpoints ¶
FilterEndpoints takes a slice of endpoints along with parameters for filtering those endpoints:
- `address` filters endpoints to only those with an address which contains the given value.
- `port` filters endpoints to only those with an address which has a port that matches the given value. If -1 is passed, no filtering will occur.
The filters are applied in combination such that an endpoint must adhere to all of the filtering values which are passed in.
func FilterListeners ¶
FilterListeners takes a slice of listeners along with parameters for filtering those endpoints:
- `address` filters listeners to only those with an address which contains the given value.
- `port` filters listeners to only those with an address which has a port that matches the given value. If -1 is passed, no filtering will occur.
The filters are applied in combination such that an listener must adhere to all of the filtering values which are passed in.
Types ¶
type ReadCommand ¶
type ReadCommand struct { *common.BaseCommand // contains filtered or unexported fields }
func (*ReadCommand) AutocompleteArgs ¶
func (c *ReadCommand) AutocompleteArgs() complete.Predictor
AutocompleteArgs returns the argument predictor for this command. Since argument completion is not supported, this will return complete.PredictNothing.
func (*ReadCommand) AutocompleteFlags ¶
func (c *ReadCommand) AutocompleteFlags() complete.Flags
AutocompleteFlags returns a mapping of supported flags and autocomplete options for this command. The map key for the Flags map should be the complete flag such as "-foo" or "--foo".
func (*ReadCommand) Help ¶
func (c *ReadCommand) Help() string
func (*ReadCommand) Run ¶
func (c *ReadCommand) Run(args []string) int
func (*ReadCommand) Synopsis ¶
func (c *ReadCommand) Synopsis() string