models

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	METADATA_KEY_LAST_PREPPED_VERSION = "last-prepped-version"
)

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *gorm.DB) error

Types

type MLModel

type MLModel struct {
	gorm.Model
	Name        string `gorm:"index:ml_model_name_namespace_id_unique,unique"`
	NamespaceID uint   `gorm:"index:ml_model_name_namespace_id_unique,unique"`
	Namespace   Namespace
}

type MLModelTag

type MLModelTag struct {
	gorm.Model
	TagName          string `gorm:"index:ml_model_tag_ml_model_id_unique,unique"`
	MLModelID        uint   `gorm:"index:ml_model_tag_ml_model_id_unique,unique"`
	MLModel          MLModel
	MLModelVersionID uint
	MLModelVersion   MLModelVersion
}

type MLModelVersion

type MLModelVersion struct {
	gorm.Model
	MLModelID uint
	MLModel   MLModel
}

type MLModelVersionFile

type MLModelVersionFile struct {
	gorm.Model
	MLModelVersionID uint
	MLModelVersion   MLModelVersion
}

type Namespace

type Namespace struct {
	gorm.Model
	Name string `gorm:"index:namespace_name_unique,unique"`
}

type ServiceMetadata

type ServiceMetadata struct {
	gorm.Model
	Key   string `gorm:"index:service_metadata_key_unique,unique"`
	Value string
}

Jump to

Keyboard shortcuts

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