Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aristanetworks/goarista
/ functions
Functions
923 in github.com/aristanetworks/goarista
⨍
Functions
923
◇
Types & classes
177
↓ 902 callers
Function
New
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 callers
Function
NewMap
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 callers
Method
String
()
key/key.go:23
↓ 80 callers
Method
Set
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 callers
Function
New
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 callers
Method
Equal
(other interface{})
key/key.go:24
↓ 45 callers
Method
Pointer
()
key/pointer.go:13
↓ 41 callers
Function
NewPointer
NewPointer creates a new pointer to a path.
key/pointer.go:17
↓ 37 callers
Method
Type
Type returns the golang type string. This method is required by pflag library.
flag/map.go:45
↓ 33 callers
Method
Close
()
cmd/ocredis/main.go:33
↓ 33 callers
Function
DeepEqual
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 callers
Function
Diff
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 callers
Method
Run
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 callers
Method
Len
Len returns the length of the Map
key/map.go:73
↓ 23 callers
Function
newPathKey
(e ...interface{})
key/path_test.go:40
↓ 21 callers
Function
makePath
(pathStr string)
cmd/ocprometheus/collector_test.go:86
↓ 19 callers
Method
Key
()
key/key.go:22
↓ 17 callers
Function
toPtr
(val interface{})
elasticsearch/json_test.go:29
↓ 16 callers
Method
Error
()
test/data_test.go:52
↓ 15 callers
Method
Set
Set adds a key-value pair to the Map
key/map.go:238
↓ 14 callers
Method
Write
(proto.Message)
kafka/producer/producer.go:22
↓ 14 callers
Function
prettyPrint
(v reflect.Value, done ptrSet, depth int)
test/pretty.go:39
↓ 13 callers
Method
Get
Get retrieves the value stored with key k from the Map
key/map.go:277
↓ 12 callers
Method
Add
Add delta
monitor/types.go:22
↓ 12 callers
Function
Equal
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 callers
Method
Len
()
test/diff.go:276
↓ 12 callers
Function
stringify
(key interface{})
key/stringify.go:118
↓ 11 callers
Function
ForceExport
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 callers
Function
newPoint
(t *testing.T, measurement string, tags map[string]string, fields map[string]interface{}, timeString string)
cmd/test2influxdb/main_test.go:41
↓ 10 callers
Method
Error
package to tests
cmd/test2influxdb/main.go:160
↓ 10 callers
Method
Error
()
kafka/gnmi/encoder.go:26
↓ 10 callers
Method
Get
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 callers
Method
Set
Set atomically associates the given Var to the given key.
monitor/map.go:51
↓ 10 callers
Function
StrPath
StrPath builds a human-readable form of a gnmi path. e.g. /a/b/c[e=f]
gnmi/path.go:74
↓ 10 callers
Function
p
(s ...string)
gnmi/path_test.go:16
↓ 10 callers
Function
usageAndExit
(s string)
cmd/gnmi/main.go:34
↓ 9 callers
Method
Iter
Iter applies func f to every key-value pair in the Map
key/map.go:335
↓ 9 callers
Function
newTimeSeries
newTimeSeries returns a newly allocated timeseries that covers the requested period with the given resolution.
monitor/stats/timeseries.go:43
↓ 9 callers
Function
updateSeenBlocks
(curBlock block, seen []block)
sizeof/sizeof.go:84
↓ 8 callers
Method
Del
Del removes an entry with key k from the Map
key/map.go:298
↓ 8 callers
Method
advance
()
monitor/stats/counter.go:59
↓ 8 callers
Function
deepEqual
(a, b interface{}, seen map[edge]struct{})
test/deepequal.go:36
↓ 8 callers
Function
gnmiUpdate
(path string, value *pb.TypedValue)
elasticsearch/json_test.go:22
↓ 8 callers
Method
update
Process a notification and update or create the corresponding metrics.
cmd/ocprometheus/collector.go:52
↓ 7 callers
Method
IsEmpty
IsEmpty returns true if no paths have been registered, false otherwise.
path/map.go:106
↓ 7 callers
Function
ParseGNMIElements
ParseGNMIElements builds up a gnmi path, from user-supplied text
gnmi/path.go:151
↓ 7 callers
Method
Stop
Stops the client.
lanz/client.go:35
↓ 7 callers
Method
advance
()
monitor/stats/tracker.go:66
↓ 7 callers
Function
makeResponse
(notif *pb.Notification)
cmd/ocprometheus/collector_test.go:80
↓ 7 callers
Function
parseElement
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 callers
Function
stringToGNMIPath
(path string)
elasticsearch/json_test.go:17
↓ 6 callers
Method
Delete
Delete unregisters the value registered with a path. It returns true if a value was deleted and false otherwise.
path/map.go:160
↓ 6 callers
Function
Do
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 callers
Method
Read
(p []byte)
lanz/client_test.go:38
↓ 6 callers
Method
Set
(s string)
cmd/test2influxdb/main.go:68
↓ 6 callers
Method
Visit
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 callers
Function
escape
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 callers
Function
hashInterface
(v interface{})
key/composite.go:7
↓ 6 callers
Function
isKnownBlock
Check if this current block is already fully contained in our list of seen blocks
sizeof/sizeof.go:111
↓ 6 callers
Function
makeMetrics
(cfg *Config, expValues map[source]float64, notification *pb.Notification, prevMetrics map[source]*labelledMe
cmd/ocprometheus/collector_test.go:18
↓ 6 callers
Function
parseConfig
Parses the config and creates the descriptors for each path and device.
cmd/ocprometheus/config.go:73
↓ 5 callers
Method
Accept
Accept accepts a connection on the listener socket.
netns/nslistener.go:161
↓ 5 callers
Method
Addr
Addr returns the local address of the listener.
netns/nslistener.go:175
↓ 5 callers
Function
ParseAddress
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 callers
Function
PrettyPrint
PrettyPrint tries to display a human readable version of an interface
test/pretty.go:18
↓ 5 callers
Method
Send
(*gnmi.SubscribeResponse)
gnmireverse/gnmireverse.pb.go:114
↓ 5 callers
Function
SetTOS
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 callers
Function
ShouldPanicWith
ShouldPanicWith will test is a function is panicking with a specific message
test/panic.go:28
↓ 5 callers
Function
SplitPath
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 callers
Function
StringifyCollection
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 callers
Function
accumulator
(counter map[int]int)
path/map_test.go:16
↓ 5 callers
Function
hashSlice
(s []interface{})
key/composite.go:65
↓ 5 callers
Function
keyEqual
(a, b interface{})
key/key.go:207
↓ 5 callers
Function
launchClient
(ch chan<- *pb.LanzRecord, conn lanz.ConnectReadCloser)
lanz/client_test.go:76
↓ 5 callers
Method
set
set sets the current value of the timeseries.
monitor/stats/timeseries.go:86
↓ 5 callers
Function
sliceEqual
(a, b []interface{})
key/key.go:190
↓ 5 callers
Function
sliceToPath
(s []interface{})
key/key.go:87
↓ 4 callers
Function
Append
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 callers
Method
Encode
(proto.Message)
kafka/encoder.go:23
↓ 4 callers
Method
Hash
()
key/map.go:195
↓ 4 callers
Function
NewMockConnection
***************************************************/ NewMockConnection returns an influxDBConnection with a "fake" client for offline testing.
influxlib/testlib.go:64
↓ 4 callers
Method
Recv
()
gnmireverse/gnmireverse.pb.go:161
↓ 4 callers
Function
SortedKeys
SortedKeys returns the keys of the given map, in a sorted order.
key/sort.go:12
↓ 4 callers
Function
StrUpdateVal
StrUpdateVal will return a string representing the value within the supplied update
gnmi/operation.go:112
↓ 4 callers
Method
Value
Value returns the current value of the counter.
monitor/stats/counter.go:68
↓ 4 callers
Function
addPathToMap
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 callers
Method
addUnits
(hist string)
monitor/histogram.go:61
↓ 4 callers
Function
arbitration
(role string, id *gnmi_ext.Uint128)
gnmi/arbitration_test.go:16
↓ 4 callers
Method
delta
delta returns the difference between the newest and oldest values from the timeseries.
monitor/stats/timeseries.go:124
↓ 4 callers
Function
electionID
(high, low uint64)
gnmi/arbitration_test.go:25
↓ 4 callers
Function
hashMapString
(m map[string]interface{})
key/composite.go:40
↓ 4 callers
Method
headValue
headValue returns the latest value from the timeseries.
monitor/stats/timeseries.go:96
↓ 4 callers
Function
mkKey
(i int)
key/key_test.go:649
↓ 4 callers
Function
parseNumber
Convert our json.Number to either an int64, uint64, or float64.
cmd/octsdb/main.go:232
↓ 4 callers
Function
sliceToPointer
(s []interface{})
key/key.go:99
↓ 4 callers
Function
testStream
()
lanz/client_test.go:108
↓ 3 callers
Function
Clone
Clone returns a new path with the same elements as in the provided path.
path/path.go:68
↓ 3 callers
Method
DeepEqual
(other interface{}, comparer func(a, b interface{}) bool)
test/deepequal.go:33
↓ 3 callers
Method
Equal
(other interface{})
key/map.go:196
↓ 3 callers
Function
FromString
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