db

package
v0.0.0-...-6005cdf Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteResource

func DeleteResource(name string) error

DeleteResource deletes resource info in db

func SaveResource

func SaveResource(name string, typeMeta, objectMeta, spec interface{}) error

SaveResource saves resource info in db

Types

type Resource

type Resource struct {
	gorm.Model
	Name       string `gorm:"unique"`
	TypeMeta   string
	ObjectMeta string
	Spec       string
}

Resource defines resource (e.g., dataset, model, jointinferenceservice) table

Jump to

Keyboard shortcuts

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