image

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 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 Checksums added in v1.4.0

type Checksums struct {
	Sha256 string `json:"sha256"`
}

type File added in v1.4.0

type File struct {
	Checksums Checksums `json:"checksums"`
}

type Image

type Image struct {
	ID           string      `json:"id"`
	Name         string      `json:"name"`
	Status       string      `json:"status"`
	Visibility   string      `json:"visibility"`
	Architecture string      `json:"architecture"`
	Os           string      `json:"os"`
	File         *File       `json:"file,omitempty"`
	Checksum     string      `json:"checksum"`
	OSRaw        interface{} `json:"operating_system"`
}

type ImageVersion

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

type OperatingSystem added in v1.4.0

type OperatingSystem struct {
	Name         string `json:"name"`
	Architecture string `json:"architecture"`
}

Jump to

Keyboard shortcuts

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