Documentation ¶
Index ¶
- func StartPullerAndProcessModels(downloader *Downloader, commands <-chan ModelOp, logger *zap.SugaredLogger)
- func SyncModelDir(modelDir string, logger *zap.SugaredLogger) (map[string]modelWrapper, error)
- type Downloader
- type FileError
- type ModelChannel
- type ModelOp
- type OpType
- type Puller
- type WaitGroupWrapper
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartPullerAndProcessModels ¶
func StartPullerAndProcessModels(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 // contains filtered or unexported fields }
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 }
type WaitGroupWrapper ¶
type WaitGroupWrapper struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.