oci

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOCIUpdateChecker

func NewOCIUpdateChecker(artifact string) updatechecker.UpdateChecker

Types

type OCIUpdateChecker

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

func (OCIUpdateChecker) DownloadVersion

func (c OCIUpdateChecker) DownloadVersion(version string, requireChecksumMatch bool) (string, error)

DownloadVersion will download and extract the specific version, returning a path to the extracted file in the archive it's the responsibility of the caller to clean up the extracted file

func (OCIUpdateChecker) GetLatestVersion

func (c OCIUpdateChecker) GetLatestVersion(timeout time.Duration) (*updatechecker.VersionInfo, error)

GetLatestVersion will return the latest version information from the oci repository

Jump to

Keyboard shortcuts

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