s3modelprovider

package
v0.0.0-...-0e5f22e Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Location

type S3Location struct {
	Bucket string
	// The model "folder" on s3
	KeyPrefix string
}

type S3ModelProvider

type S3ModelProvider struct {
	Bucket       string
	ModelBaseDir string
	// contains filtered or unexported fields
}

func NewS3ModelProvider

func NewS3ModelProvider(bucket string, modelBaseDir string) (*S3ModelProvider, error)

func (S3ModelProvider) LoadModel

func (provider S3ModelProvider) LoadModel(modelName string, modelVersion int64, destinationDir string) (*cachemanager.Model, error)

func (S3ModelProvider) ModelSize

func (provider S3ModelProvider) ModelSize(modelName string, modelVersion int64) (int64, error)

Jump to

Keyboard shortcuts

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