MCPcopy Create free account

hub / github.com/aristanetworks/goarista / functions

Functions923 in github.com/aristanetworks/goarista

↓ 902 callersFunctionNew
New wraps the given value in a Key. This function panics if the value passed in isn't allowed in a Key or doesn't implement value.Value.
key/key.go:106
↓ 125 callersFunctionNewMap
NewMap creates a new Map from a list of key-value pairs, so long as the list is of even length.
key/map.go:22
↓ 111 callersMethodString
()
key/key.go:23
↓ 80 callersMethodSet
Set registers a path p with a value. If the path was already registered with a value it returns false and true otherwise.
path/map.go:134
↓ 76 callersFunctionNew
New constructs a path from a variable number of elements. Each element may either be a key.Key or a value that can be wrapped by a key.Key.
path/path.go:17
↓ 45 callersMethodEqual
(other interface{})
key/key.go:24
↓ 45 callersMethodPointer
()
key/pointer.go:13
↓ 41 callersFunctionNewPointer
NewPointer creates a new pointer to a path.
key/pointer.go:17
↓ 37 callersMethodType
Type returns the golang type string. This method is required by pflag library.
flag/map.go:45
↓ 33 callersMethodClose
()
cmd/ocredis/main.go:33
↓ 33 callersFunctionDeepEqual
DeepEqual is a faster implementation of reflect.DeepEqual that: - Has a reflection-free fast-path for all the common types we use. - Gives data types
test/deepequal.go:26
↓ 30 callersFunctionDiff
Diff returns the difference of two objects in a human readable format. An empty string is returned when there is no difference. To avoid confusing dif
test/diff.go:30
↓ 29 callersMethodRun
Run is the main loop of the client. It connects to the LANZ server and reads the notifications, decodes them and sends them to the channel. In case of
lanz/client.go:33
↓ 26 callersMethodLen
Len returns the length of the Map
key/map.go:73
↓ 23 callersFunctionnewPathKey
(e ...interface{})
key/path_test.go:40
↓ 21 callersFunctionmakePath
(pathStr string)
cmd/ocprometheus/collector_test.go:86
↓ 19 callersMethodKey
()
key/key.go:22
↓ 17 callersFunctiontoPtr
(val interface{})
elasticsearch/json_test.go:29
↓ 16 callersMethodError
()
test/data_test.go:52
↓ 15 callersMethodSet
Set adds a key-value pair to the Map
key/map.go:238
↓ 14 callersMethodWrite
(proto.Message)
kafka/producer/producer.go:22
↓ 14 callersFunctionprettyPrint
(v reflect.Value, done ptrSet, depth int)
test/pretty.go:39
↓ 13 callersMethodGet
Get retrieves the value stored with key k from the Map
key/map.go:277
↓ 12 callersMethodAdd
Add delta
monitor/types.go:22
↓ 12 callersFunctionEqual
Equal returns whether path a and path b are the same length and whether each element in b corresponds to the same element in a.
path/path.go:77
↓ 12 callersMethodLen
()
test/diff.go:276
↓ 12 callersFunctionstringify
(key interface{})
key/stringify.go:118
↓ 11 callersFunctionForceExport
ForceExport returns a new reflect.Value that is identical to the one passed in argument except that it's considered as an exported symbol even if in r
areflect/force.go:25
↓ 11 callersFunctionnewPoint
(t *testing.T, measurement string, tags map[string]string, fields map[string]interface{}, timeString string)
cmd/test2influxdb/main_test.go:41
↓ 10 callersMethodError
package to tests
cmd/test2influxdb/main.go:160
↓ 10 callersMethodError
()
kafka/gnmi/encoder.go:26
↓ 10 callersMethodGet
Get returns the value registered with an exact match of a path p. If there is no exact match for p, Get returns nil and false. If p has an exact match
path/map.go:114
↓ 10 callersMethodSet
Set atomically associates the given Var to the given key.
monitor/map.go:51
↓ 10 callersFunctionStrPath
StrPath builds a human-readable form of a gnmi path. e.g. /a/b/c[e=f]
gnmi/path.go:74
↓ 10 callersFunctionp
(s ...string)
gnmi/path_test.go:16
↓ 10 callersFunctionusageAndExit
(s string)
cmd/gnmi/main.go:34
↓ 9 callersMethodIter
Iter applies func f to every key-value pair in the Map
key/map.go:335
↓ 9 callersFunctionnewTimeSeries
newTimeSeries returns a newly allocated timeseries that covers the requested period with the given resolution.
monitor/stats/timeseries.go:43
↓ 9 callersFunctionupdateSeenBlocks
(curBlock block, seen []block)
sizeof/sizeof.go:84
↓ 8 callersMethodDel
Del removes an entry with key k from the Map
key/map.go:298
↓ 8 callersMethodadvance
()
monitor/stats/counter.go:59
↓ 8 callersFunctiondeepEqual
(a, b interface{}, seen map[edge]struct{})
test/deepequal.go:36
↓ 8 callersFunctiongnmiUpdate
(path string, value *pb.TypedValue)
elasticsearch/json_test.go:22
↓ 8 callersMethodupdate
Process a notification and update or create the corresponding metrics.
cmd/ocprometheus/collector.go:52
↓ 7 callersMethodIsEmpty
IsEmpty returns true if no paths have been registered, false otherwise.
path/map.go:106
↓ 7 callersFunctionParseGNMIElements
ParseGNMIElements builds up a gnmi path, from user-supplied text
gnmi/path.go:151
↓ 7 callersMethodStop
Stops the client.
lanz/client.go:35
↓ 7 callersMethodadvance
()
monitor/stats/tracker.go:66
↓ 7 callersFunctionmakeResponse
(notif *pb.Notification)
cmd/ocprometheus/collector_test.go:80
↓ 7 callersFunctionparseElement
parseElement parses a path element, according to the gNMI specification. See https://github.com/openconfig/reference/blame/master/rpc/gnmi/gnmi-path-c
gnmi/path.go:171
↓ 7 callersFunctionstringToGNMIPath
(path string)
elasticsearch/json_test.go:17
↓ 6 callersMethodDelete
Delete unregisters the value registered with a path. It returns true if a value was deleted and false otherwise.
path/map.go:160
↓ 6 callersFunctionDo
Do takes a function which it will call in the network namespace specified by nsName. The goroutine that calls this will lock itself to its current OS
netns/netns.go:61
↓ 6 callersMethodRead
(p []byte)
lanz/client_test.go:38
↓ 6 callersMethodSet
(s string)
cmd/test2influxdb/main.go:68
↓ 6 callersMethodVisit
Visit calls a function fn for every value in the Map that is registered with a match of a path p. In the general case, time complexity is linear with
path/map.go:44
↓ 6 callersFunctionescape
escape checks if the string is a valid utf-8 string. If it is, it will return the string as is. If it is not, it will return the base64 representation
key/stringify.go:111
↓ 6 callersFunctionhashInterface
(v interface{})
key/composite.go:7
↓ 6 callersFunctionisKnownBlock
Check if this current block is already fully contained in our list of seen blocks
sizeof/sizeof.go:111
↓ 6 callersFunctionmakeMetrics
(cfg *Config, expValues map[source]float64, notification *pb.Notification, prevMetrics map[source]*labelledMe
cmd/ocprometheus/collector_test.go:18
↓ 6 callersFunctionparseConfig
Parses the config and creates the descriptors for each path and device.
cmd/ocprometheus/config.go:73
↓ 5 callersMethodAccept
Accept accepts a connection on the listener socket.
netns/nslistener.go:161
↓ 5 callersMethodAddr
Addr returns the local address of the listener.
netns/nslistener.go:175
↓ 5 callersFunctionParseAddress
ParseAddress takes in an address string, parsing out the address and an optional VRF name. It returns the namespace corresponding to the VRF. The expe
netns/address.go:18
↓ 5 callersFunctionPrettyPrint
PrettyPrint tries to display a human readable version of an interface
test/pretty.go:18
↓ 5 callersMethodSend
(*gnmi.SubscribeResponse)
gnmireverse/gnmireverse.pb.go:114
↓ 5 callersFunctionSetTOS
SetTOS will set the TOS byte on a unix system. It's intended to be used in a net.Dialer's Control function.
dscp/dscp.go:38
↓ 5 callersFunctionShouldPanicWith
ShouldPanicWith will test is a function is panicking with a specific message
test/panic.go:28
↓ 5 callersFunctionSplitPath
SplitPath splits a gnmi path according to the spec. See https://github.com/openconfig/reference/blob/master/rpc/gnmi/gnmi-path-conventions.md No valid
gnmi/path.go:47
↓ 5 callersFunctionStringifyCollection
StringifyCollection safely returns a string representation of a map[Key]interface{} that is similar in form to the standard stringification of a map,
key/stringify.go:131
↓ 5 callersFunctionaccumulator
(counter map[int]int)
path/map_test.go:16
↓ 5 callersFunctionhashSlice
(s []interface{})
key/composite.go:65
↓ 5 callersFunctionkeyEqual
(a, b interface{})
key/key.go:207
↓ 5 callersFunctionlaunchClient
(ch chan<- *pb.LanzRecord, conn lanz.ConnectReadCloser)
lanz/client_test.go:76
↓ 5 callersMethodset
set sets the current value of the timeseries.
monitor/stats/timeseries.go:86
↓ 5 callersFunctionsliceEqual
(a, b []interface{})
key/key.go:190
↓ 5 callersFunctionsliceToPath
(s []interface{})
key/key.go:87
↓ 4 callersFunctionAppend
Append appends a variable number of elements to a path. Each element may either be a key.Key or a value that can be wrapped by a key.Key. Note that ca
path/path.go:26
↓ 4 callersMethodEncode
(proto.Message)
kafka/encoder.go:23
↓ 4 callersMethodHash
()
key/map.go:195
↓ 4 callersFunctionNewMockConnection
***************************************************/ NewMockConnection returns an influxDBConnection with a "fake" client for offline testing.
influxlib/testlib.go:64
↓ 4 callersMethodRecv
()
gnmireverse/gnmireverse.pb.go:161
↓ 4 callersFunctionSortedKeys
SortedKeys returns the keys of the given map, in a sorted order.
key/sort.go:12
↓ 4 callersFunctionStrUpdateVal
StrUpdateVal will return a string representing the value within the supplied update
gnmi/operation.go:112
↓ 4 callersMethodValue
Value returns the current value of the counter.
monitor/stats/counter.go:68
↓ 4 callersFunctionaddPathToMap
addPathToMap creates a map[string]interface{} from a path. It returns the node in the map corresponding to the last element in the path
openconfig/json.go:114
↓ 4 callersMethodaddUnits
(hist string)
monitor/histogram.go:61
↓ 4 callersFunctionarbitration
(role string, id *gnmi_ext.Uint128)
gnmi/arbitration_test.go:16
↓ 4 callersMethoddelta
delta returns the difference between the newest and oldest values from the timeseries.
monitor/stats/timeseries.go:124
↓ 4 callersFunctionelectionID
(high, low uint64)
gnmi/arbitration_test.go:25
↓ 4 callersFunctionhashMapString
(m map[string]interface{})
key/composite.go:40
↓ 4 callersMethodheadValue
headValue returns the latest value from the timeseries.
monitor/stats/timeseries.go:96
↓ 4 callersFunctionmkKey
(i int)
key/key_test.go:649
↓ 4 callersFunctionparseNumber
Convert our json.Number to either an int64, uint64, or float64.
cmd/octsdb/main.go:232
↓ 4 callersFunctionsliceToPointer
(s []interface{})
key/key.go:99
↓ 4 callersFunctiontestStream
()
lanz/client_test.go:108
↓ 3 callersFunctionClone
Clone returns a new path with the same elements as in the provided path.
path/path.go:68
↓ 3 callersMethodDeepEqual
(other interface{}, comparer func(a, b interface{}) bool)
test/deepequal.go:33
↓ 3 callersMethodEqual
(other interface{})
key/map.go:196
↓ 3 callersFunctionFromString
FromString constructs a path from the elements resulting from a split of the input string by "/". Strings that do not lead with a '/' are accepted but
path/path.go:120
next →1–100 of 923, ranked by callers