Documentation
¶
Index ¶
- type Catalog
- func (cat *Catalog) FindNextUpgrade(state *catalog.ClientState) (*catalog.UpgradeStep, error)
- func (cat *Catalog) FindUpgradePath(state *catalog.ClientState) (*catalog.UpgradePath, error)
- func (cat *Catalog) ListLatestReleases(limit int) error
- func (cat *Catalog) RegisterClient(vendor string, product string, variant string) (*catalog.ClientState, error)
- func (cat *Catalog) ShouldUpgrade(state *catalog.ClientState) (catalog.Criticality, error)
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 (*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 ¶
ListLatestReleases is an internal function for server management
func (*Catalog) RegisterClient ¶
func (*Catalog) ShouldUpgrade ¶
func (cat *Catalog) ShouldUpgrade(state *catalog.ClientState) (catalog.Criticality, error)
Click to show internal directories.
Click to hide internal directories.