models

package
v0.0.0-...-137f822 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Release     = "release"
	Development = "dev"
)

Functions

func Init

func Init() (err error)

Init models

func Shutdown

func Shutdown()

Shutdown models

func StoreImage

func StoreImage(img *Image) (err error)

Types

type Image

type Image struct {
	ID       uint   `gorm:"primarykey" json:"-"`
	Name     string `json:"name" gorm:"index:idx_name,unique"`
	Source   string `json:"source"`
	Version  string `json:"version"`
	RepoType string `json:"-"`
}

func GetAllImages

func GetAllImages(repoType string) (imgs []*Image, err error)

func GetImage

func GetImage(name string, repoType string) (img *Image, err error)

Jump to

Keyboard shortcuts

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