Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelPlugin ¶
type ModelPlugin struct { ID string Port uint Info api.ModelInfo Client api.ModelPluginServiceClient }
ModelPlugin is a record of information compiled from the configuration model plugin
func (*ModelPlugin) GetPathValues ¶
func (p *ModelPlugin) GetPathValues(ctx context.Context, pathPrefix string, jsonData []byte) ([]*configapi.PathValue, error)
GetPathValues extracts typed path values from the specified configuration change JSON
type PluginRegistry ¶
type PluginRegistry struct {
// contains filtered or unexported fields
}
PluginRegistry is a set of available configuration model plugins
func NewPluginRegistry ¶
func NewPluginRegistry(ports ...uint) *PluginRegistry
NewPluginRegistry creates a plugin registry that will search the specified gRPC ports to look for model plugins
func (*PluginRegistry) GetPlugin ¶
func (r *PluginRegistry) GetPlugin(id string) (*ModelPlugin, bool)
GetPlugin returns the plugin with the specified ID
func (*PluginRegistry) GetPlugins ¶
func (r *PluginRegistry) GetPlugins() []*ModelPlugin
GetPlugins returns list of all registered plugins
Click to show internal directories.
Click to hide internal directories.