version

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: BSD-3-Clause Imports: 33 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterVersion

func RegisterVersion(api huma.API, versionService *VersionService)

Types

type GetAppVersionInput

type GetAppVersionInput struct{}

type GetAppVersionOutput

type GetAppVersionOutput struct {
	Body types.VersionInfo
}

type GetVersionInput

type GetVersionInput struct {
	Current string `query:"current" doc:"Current version to compare against"`
}

type GetVersionOutput

type GetVersionOutput struct {
	Body types.VersionCheck
}

type VersionHandler

type VersionHandler struct {
	// contains filtered or unexported fields
}

func (*VersionHandler) GetAppVersion

func (*VersionHandler) GetVersion

func (h *VersionHandler) GetVersion(ctx context.Context, input *GetVersionInput) (*GetVersionOutput, error)

type VersionService

type VersionService struct {
	// contains filtered or unexported fields
}

func NewVersionService

func NewVersionService(p VersionServiceParams) *VersionService

func (*VersionService) GetAppVersionInfo

func (s *VersionService) GetAppVersionInfo(ctx context.Context) *types.VersionInfo

func (*VersionService) GetLatestVersion

func (s *VersionService) GetLatestVersion(ctx context.Context) (string, error)

func (*VersionService) GetVersionInformation

func (s *VersionService) GetVersionInformation(ctx context.Context, currentVersion string) (*types.VersionCheck, error)

func (*VersionService) IsNewer

func (s *VersionService) IsNewer(latest, current string) bool

func (*VersionService) ReleaseURL

func (s *VersionService) ReleaseURL(localVersion string) string

func (*VersionService) RunStreamProducer

func (s *VersionService) RunStreamProducer(ctx context.Context, events chan<- types.VersionStreamEvent)

type VersionServiceParams

type VersionServiceParams struct {
	HTTPClient               *http.Client
	ContainerRegistryService *registry.ContainerRegistryService
	DockerService            *docker.DockerClientService
	EventService             *event.EventService
	ImageUpdateService       *imageupdate.ImageUpdateService
	SettingsService          *settings.SettingsService
	AppVersion               string
	Revision                 string
}

Jump to

Keyboard shortcuts

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