modelregistry

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPath

func GetPath(dir, target, replace string) (string, error)

GetPath :

func NewService

func NewService(registry *ConfigModelRegistry, cache *plugincache.PluginCache, compiler *plugincompiler.PluginCompiler) northbound.Service

NewService :

Types

type Config

type Config struct {
	Path string `yaml:"path" json:"path"`
}

Config is a model plugin registry config

type ConfigModelRegistry

type ConfigModelRegistry struct {
	Config Config
	// contains filtered or unexported fields
}

ConfigModelRegistry is a registry of config models

func NewConfigModelRegistry

func NewConfigModelRegistry(config Config) *ConfigModelRegistry

NewConfigModelRegistry creates a new config model registry

func (*ConfigModelRegistry) AddModel

func (r *ConfigModelRegistry) AddModel(model configmodel.ModelInfo) error

AddModel adds a model to the registry

func (*ConfigModelRegistry) GetModel

func (r *ConfigModelRegistry) GetModel(name configmodel.Name, version configmodel.Version) (configmodel.ModelInfo, error)

GetModel gets a model by name and version

func (*ConfigModelRegistry) ListModels

func (r *ConfigModelRegistry) ListModels() ([]configmodel.ModelInfo, error)

ListModels lists models in the registry

func (*ConfigModelRegistry) RemoveModel

func (r *ConfigModelRegistry) RemoveModel(name configmodel.Name, version configmodel.Version) error

RemoveModel removes a model from the registry

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is a registry server

func (*Server) DeleteModel

DeleteModel :

func (*Server) GetModel

GetModel :

func (*Server) ListModels

ListModels :

func (*Server) PushModel

PushModel :

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service :

func (*Service) Register

func (s *Service) Register(r *grpc.Server)

Register :

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL