Discover Packages
github.com/emnify/vpp-agent
plugins
kvscheduler
internal
utils
package
Version:
v2.0.0-alpha+incompatible
Opens a new window with list of versions in this module.
Published: Oct 15, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
DependsOn returns true if k1 depends on k2 based on dependencies from <deps>.
ErrorToString converts error to string.
ProtoToString converts proto message to string.
TopologicalOrder orders keys topologically by Kahn's algorithm to respect
the given dependencies.
deps = map{ key -> <set of keys the given key depends on> }
type KeySet map[string ]struct{}
KeySet is a set of keys.
NewKeySet returns a new instance of empty KeySet.
Add adds key into the set.
DeepCopy returns a deep-copy of the key set.
Del removes key from the set.
Has returns true if the given key is in the set.
Intersect returns a new key set that contains keys present in both sets.
String return human-readable string representation of the ket-set.
Subtract removes keys from <ks> that are in both key sets.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.