image

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HpcrSelectImage

func HpcrSelectImage(imageJsonData, versionSpec string) (string, string, string, string, error)

HpcrSelectImage - function to return the latest HPVS image

func IsCandidateImage

func IsCandidateImage(img Image) bool

IsCandidateImage - function to check if image JSON data belong to Hyper Protect Image

func PickLatestImage

func PickLatestImage(hyperProtectImages []ImageVersion, version string) (string, string, string, string, error)

PickLatestImage - function to pick the latest Hyper Protect Image

Types

type Image

type Image struct {
	Architecture string `json:"architecture"`
	ID           string `json:"id"`
	Name         string `json:"name"`
	OS           string `json:"os"`
	Status       string `json:"status"`
	Visibility   string `json:"visibility"`
	Checksum     string `json:"checksum"`
}

type ImageVersion

type ImageVersion struct {
	ID       string
	Checksum string
	Name     string
	Version  *semver.Version
}

Jump to

Keyboard shortcuts

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