Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func StartPuller ¶
func StartPuller(downloader Downloader, commands <-chan ModelOp, logger *zap.SugaredLogger)
func SyncModelDir ¶
func SyncModelDir(modelDir string, logger *zap.SugaredLogger) (map[string]modelWrapper, error)
Types ¶
type Downloader ¶
type Downloader struct { ModelDir string Providers map[storage.Protocol]storage.Provider Logger *zap.SugaredLogger }
func (*Downloader) DownloadModel ¶
func (d *Downloader) DownloadModel(modelName string, modelSpec *v1alpha1.ModelSpec) error
type ModelChannel ¶
type ModelChannel struct {
// contains filtered or unexported fields
}
type Puller ¶
type Puller struct { Downloader Downloader // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.