models

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	BaseModel
	ArtifactKey
	Dataset            Dataset        `gorm:"association_autocreate:false"`
	ArtifactData       []ArtifactData `` /* 174-byte string literal not displayed */
	SerializedMetadata []byte
}

type ArtifactData

type ArtifactData struct {
	BaseModel
	ArtifactKey
	Name     string `gorm:"primary_key"`
	Location string
}

type ArtifactKey

type ArtifactKey struct {
	DatasetProject string `gorm:"primary_key"`
	DatasetName    string `gorm:"primary_key"`
	DatasetDomain  string `gorm:"primary_key"`
	DatasetVersion string `gorm:"primary_key"`
	ArtifactID     string `gorm:"primary_key"`
}

type BaseModel

type BaseModel struct {
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt *time.Time `sql:"index"`
}

type Dataset

type Dataset struct {
	BaseModel
	DatasetKey
	SerializedMetadata []byte
}

type DatasetKey

type DatasetKey struct {
	Project string `gorm:"primary_key"`
	Name    string `gorm:"primary_key"`
	Domain  string `gorm:"primary_key"`
	Version string `gorm:"primary_key"`
}

type Tag

type Tag struct {
	BaseModel
	TagKey
	ArtifactID string
	Artifact   Artifact `` /* 174-byte string literal not displayed */
}

type TagKey

type TagKey struct {
	DatasetProject string `gorm:"primary_key"`
	DatasetName    string `gorm:"primary_key"`
	DatasetDomain  string `gorm:"primary_key"`
	DatasetVersion string `gorm:"primary_key"`
	TagName        string `gorm:"primary_key"`
}

Jump to

Keyboard shortcuts

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