common

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package common provides utility functions for the IDSEC CLI, including self-update functionality for checking and managing application versions using GitHub releases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSelfUpgrader

func GetSelfUpgrader() (*selfupdate.Updater, error)

GetSelfUpgrader creates and configures a GitHub self-updater instance.

func IsLatestVersion

func IsLatestVersion() (bool, *semver.Version, error)

IsLatestVersion checks if the current application version is the latest available, bounded by latestVersionCheckTimeout.

On timeout the function returns a non-nil error; callers using the established `if err == nil && !isLatest` pattern (e.g. CommonActionsExecution) silently treat the result as inconclusive, surfacing nothing to the user. The in-flight HTTP request is left to complete in the background and its result is discarded; this is a deliberate trade-off because the vendored selfupdate library does not expose a context for cancellation.

Types

This section is empty.

Directories

Path Synopsis
Package args provides command-line argument handling utilities for the IDSEC SDK.
Package args provides command-line argument handling utilities for the IDSEC SDK.
Package deprecation provides helpers for marking CLI commands and flags as deprecated without hiding them from Cobra/pflag help output.
Package deprecation provides helpers for marking CLI commands and flags as deprecated without hiding them from Cobra/pflag help output.

Jump to

Keyboard shortcuts

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