oci

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 14 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() (*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