go-latestver

command module
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

README

Go Report Card

Luzifer / Go-LatestVer

Go-LatestVer is a replacement for the outdated and no longer maintained latestver following the same idea: Monitor a bunch of different sources of software in a single location using different kinds of fetchers, providing an API to have these information available in a single place and provide an UI to the user to look up versions easily.

Usage

Usage of go-latestver:
      --badge-gen-instance string     Where to find the badge-gen instance to use badges from (default "https://badges.fyi/")
      --base-url string               Base-URL the application is reachable at (default "https://example.com/")
      --check-distribution duration   Checks are executed at static times every [value] (default 1h0m0s)
  -c, --config string                 Configuration file with catalog entries (default "config.yaml")
      --listen string                 Port/IP to listen on (default ":3000")
      --log-level string              Log level (debug, info, warn, error, fatal) (default "info")
      --storage string                Storage adapter to use (mysql, postgres, sqlite) (default "sqlite")
      --storage-dsn string            DSN to connect to the database (default "file::memory:?cache=shared")
      --version                       Prints current version and exits
      --watch-config                  Whether to watch the config file for changes (default true)

The documentation for the format of the config file can be found in the docs/config.md file.

To use the github_release fetcher without hitting the API limits quite fast provide GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET of an OAuth App in environment variables.

Screenshots

Catalog Index

Catalog Entry

Global Changelog

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
config
Package config holds the definition of the configuration file and some methods to load and validate it
Package config holds the definition of the configuration file and some methods to load and validate it
database
Package database implements a wrapper around the real database with some helper functions to store catalog / log entries
Package database implements a wrapper around the real database with some helper functions to store catalog / log entries
fetcher
Package fetcher contains the implementations of fetchers to retrieve current versions for the catalog entries
Package fetcher contains the implementations of fetchers to retrieve current versions for the catalog entries
helpers
Package helpers contains helper functions to avoid code duplication
Package helpers contains helper functions to avoid code duplication
version
Package version contains parsers and methods to validate versions and version updates
Package version contains parsers and methods to validate versions and version updates

Jump to

Keyboard shortcuts

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