image_helper

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ImageInfoMetadataKey = "vmclarity/internal/image_info"

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageInfo

type ImageInfo struct {
	Name    string
	ID      string
	Tags    []string
	Digests []string
}

func (*ImageInfo) FromMetadata

func (image *ImageInfo) FromMetadata(metadata map[string]string) error

func (*ImageInfo) GetHashFromRepoDigests

func (image *ImageInfo) GetHashFromRepoDigests() string

func (*ImageInfo) GetHashFromRepoDigestsOrImageID

func (image *ImageInfo) GetHashFromRepoDigestsOrImageID() (string, error)

func (*ImageInfo) ToContainerImageInfo

func (image *ImageInfo) ToContainerImageInfo() (*types.ContainerImageInfo, error)

func (*ImageInfo) ToMetadata

func (image *ImageInfo) ToMetadata() map[string]string

ToMetadata note that only one ImageInfo can be specified in metadata as it is always found under ImageInfoMetadataKey key.

Jump to

Keyboard shortcuts

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