Documentation ¶
Overview ¶
Package model implements model storage/deployment client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ViamModelDotDir = filepath.Join(os.Getenv("HOME"), ".viam", "models")
ViamModelDotDir is the default model directory a model will deployed into, unless otherwise specified.
Functions ¶
func NewClient ¶
func NewClient(conn rpc.ClientConn) v1.ModelServiceClient
NewClient constructs a new pb.ModelServiceClient using the passed in connection.
func NewConnection ¶
func NewConnection(logger *zap.SugaredLogger, address string, rpcOpts []rpc.DialOption) (rpc.ClientConn, error)
NewConnection builds a connection to the passed address with the passed rpcOpts.
Types ¶
type Manager ¶
type Manager interface { DownloadModels(cfg *config.Config, modelsToDeploy []*Model, errorChannel chan error) Close() }
Manager is responsible for deploying model files.
func NewDefaultManager ¶
NewDefaultManager returns the default Manager that syncs data to app.viam.com.
func NewManager ¶
func NewManager(logger golog.Logger, partID string, client v1.ModelServiceClient, conn rpc.ClientConn, httpClient httpClient, ) (Manager, error)
NewManager returns a new model Manager.
type ManagerConstructor ¶
ManagerConstructor is a function for building a Manager.
Click to show internal directories.
Click to hide internal directories.