Help us shape the future of Go! Take the 2026 Go Developer Survey

versioncheck

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package versioncheck inspects installed Agent components without mutating them. NPM-backed components are compared with the registry in one batched check; script/manual/project agents fall back to their local binary version.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(agentCatalog *catalog.Service) *Service

func (*Service) Check

func (s *Service) Check(ctx context.Context, force bool) ([]model.AgentVersionInfo, int64, error)

Check returns installed Agent version information. The mutex deliberately spans the external probes: duplicate page loads share one bounded check rather than spawning competing npm registry requests.

func (*Service) Invalidate

func (s *Service) Invalidate()

Invalidate drops the process-local result cache after an install, upgrade or uninstall changes the set of Agent components.

Jump to

Keyboard shortcuts

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