package
2.5.1+incompatible
Repository: https://github.com/ligato/vpp-agent.git
Documentation: pkg.go.dev

# Functions

GetKey returns complete key for gived model, including key prefix defined by model specification.
GetModel returns registered model for the given proto message.
GetModelForKey returns registered model for the given key or error.
GetName.
GetKeyPrefix returns key prefix for gived model.
No description provided by the author
Key is a shorthand for the GetKey for avoid error checking.
Marshal is helper function for marshalling items.
Model returns registered model for the given proto message.
ModelForItem.
Name is a shorthand for the GetName for avoid error checking.
No description provided by the author
Path is a shorthand for the GetPath for avoid error checking.
Register registers the protobuf message with given model specification.
RegisteredModels returns all registered modules.
Unmarshal is helper function for unmarshalling items.
UnmarshalLazyValue is helper function for unmarshalling from datasync.LazyValue.
WithNameTemplate returns option for models which sets function for generating name of instances using custom template.

# Type aliases

ModelOption defines function type which sets model options.
NameFunc represents function which can name model instance.
Spec defines model specification used for registering model.