db

package
v0.0.0-...-67dfe03 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 9 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

func GetResource

func GetResource(name string) (*Resource, error)

GetResource gets resource info in db

Jump to

Keyboard shortcuts

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