Documentation
¶
Index ¶
- func RegisterVersion(api huma.API, versionService *VersionService)
- type GetAppVersionInput
- type GetAppVersionOutput
- type GetVersionInput
- type GetVersionOutput
- type VersionHandler
- type VersionService
- func (s *VersionService) GetAppVersionInfo(ctx context.Context) *version.Info
- func (s *VersionService) GetLatestVersion(ctx context.Context) (string, error)
- func (s *VersionService) GetVersionInformation(ctx context.Context, currentVersion string) (*version.Check, error)
- func (s *VersionService) IsNewer(latest, current string) bool
- func (s *VersionService) ReleaseURL(version string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterVersion ¶
func RegisterVersion(api huma.API, versionService *VersionService)
RegisterVersion registers version endpoints.
Types ¶
type GetAppVersionInput ¶
type GetAppVersionInput struct{}
type GetAppVersionOutput ¶
type GetVersionInput ¶
type GetVersionInput struct {
Current string `query:"current" doc:"Current version to compare against"`
}
type GetVersionOutput ¶
type VersionHandler ¶
type VersionHandler struct {
// contains filtered or unexported fields
}
VersionHandler handles version information endpoints.
func (*VersionHandler) GetAppVersion ¶
func (h *VersionHandler) GetAppVersion(ctx context.Context, _ *GetAppVersionInput) (*GetAppVersionOutput, error)
GetAppVersion returns the current application version.
func (*VersionHandler) GetVersion ¶
func (h *VersionHandler) GetVersion(ctx context.Context, input *GetVersionInput) (*GetVersionOutput, error)
GetVersion returns version information with optional update check.
type VersionService ¶
type VersionService struct {
// contains filtered or unexported fields
}
func NewVersionService ¶
func NewVersionService(httpClient *http.Client, disabled bool, version string, revision string, containerRegistryService *registry.ContainerRegistryService, dockerService *docker.DockerClientService, imageUpdateService *imageupdate.ImageUpdateService) *VersionService
func (*VersionService) GetAppVersionInfo ¶
func (s *VersionService) GetAppVersionInfo(ctx context.Context) *version.Info
GetAppVersionInfo returns application version information including display version
func (*VersionService) GetLatestVersion ¶
func (s *VersionService) GetLatestVersion(ctx context.Context) (string, error)
func (*VersionService) GetVersionInformation ¶
func (*VersionService) IsNewer ¶
func (s *VersionService) IsNewer(latest, current string) bool
func (*VersionService) ReleaseURL ¶
func (s *VersionService) ReleaseURL(version string) string
Click to show internal directories.
Click to hide internal directories.