checkpoint

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MPL-2.0 Imports: 17 Imported by: 7 modules, 2 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

This section is empty.

Types

type LatestVersion

type LatestVersion struct {
	Product                  product.Product
	Timeout                  time.Duration
	SkipChecksumVerification bool
	InstallDir               string

	// LicenseDir represents directory path where to install license files.
	// If empty, license files will placed in the same directory as the binary.
	LicenseDir string

	// ArmoredPublicKey is a public PGP key in ASCII/armor format to use
	// instead of built-in pubkey to verify signature of downloaded checksums
	ArmoredPublicKey string

	// HTTPClient represents the client to use for making
	// all round trips between the library (client) and the server.
	//
	// Defaults to [httpclient.New] with logger passed through if set via [SetLogger] earlier.
	//
	// Caller is responsible for passing logger to the client via [httpclient.WithLogger]
	// when overriding defaults.
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

LatestVersion installs the latest version known to Checkpoint to OS temp directory, or to InstallDir (if not empty)

func (*LatestVersion) Install

func (lv *LatestVersion) Install(ctx context.Context) (string, error)

func (*LatestVersion) IsSourceImpl

func (*LatestVersion) IsSourceImpl() isrc.InstallSrcSigil

func (*LatestVersion) Remove

func (lv *LatestVersion) Remove(ctx context.Context) error

func (*LatestVersion) SetLogger

func (lv *LatestVersion) SetLogger(logger *log.Logger)

SetLogger sets log.Logger to log internal debug messages.

If you override HTTPClient you may also need to pass logger there via httpclient.WithLogger.

func (*LatestVersion) Validate

func (lv *LatestVersion) Validate() error

Jump to

Keyboard shortcuts

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