MCPcopy
hub / github.com/cilium/cilium / filterVarP

Function filterVarP

hubble/cmd/observe/flows_filter.go:820–837  ·  view source on GitHub ↗
(
	name string,
	short string,
	of *flowFilter,
	def []string,
	desc string,
)

Source from the content-addressed store, hash-verified

818}
819
820func filterVarP(
821 name string,
822 short string,
823 of *flowFilter,
824 def []string,
825 desc string,
826) (pflag.Value, flagName, shortName, flagDesc) {
827 d := &filterDispatch{
828 name: name,
829 def: def,
830 flowFilter: of,
831 }
832 for _, val := range def {
833 d.flowFilter.Set(name, val, false /* do not track */)
834
835 }
836 return d, name, short, desc
837}

Callers 1

newFlowsCmdHelperFunction · 0.85

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…