app

package
v0.0.0-...-040dba6 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

type Catalog struct {
	Db    *bun.DB
	Store catalog.StoreInterface
}

Catalog implements the catalog.Catalog interface and provides the user-facing server part (as well as some basic management methods)

func NewCatalog

func NewCatalog(db *bun.DB, ctx context.Context) *Catalog

func (*Catalog) FindNextUpgrade

func (cat *Catalog) FindNextUpgrade(state *catalog.ClientState) (*catalog.UpgradeStep, error)

func (*Catalog) FindUpgradePath

func (cat *Catalog) FindUpgradePath(state *catalog.ClientState) (*catalog.UpgradePath, error)

func (*Catalog) ListLatestReleases

func (cat *Catalog) ListLatestReleases(limit int) error

ListLatestReleases is an internal function for server management

func (*Catalog) RegisterClient

func (cat *Catalog) RegisterClient(vendor string, product string, variant string) (*catalog.ClientState, error)

func (*Catalog) ShouldUpgrade

func (cat *Catalog) ShouldUpgrade(state *catalog.ClientState) (catalog.Criticality, error)

Jump to

Keyboard shortcuts

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