read

package
v0.0.0-...-19ab7e0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2024 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Table = "table"
	JSON  = "json"
	Raw   = "raw"
)

Variables

This section is empty.

Functions

func FilterClusters

func FilterClusters(clusters []envoy.Cluster, fqdn, address string, port int) []envoy.Cluster

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

func FilterEndpoints(endpoints []envoy.Endpoint, address string, port int) []envoy.Endpoint

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

func FilterListeners(listeners []envoy.Listener, address string, port int) []envoy.Listener

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL