image

package
v1.14.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ImageType = cel.ObjectType("kyverno.image")

Functions

func ImageLib

func ImageLib() cel.EnvOption

Types

type Image

type Image struct {
	ImageReference
}

func (Image) ConvertToNative

func (v Image) ConvertToNative(typeDesc reflect.Type) (any, error)

func (Image) ConvertToType

func (v Image) ConvertToType(typeVal ref.Type) ref.Val

func (Image) Equal

func (v Image) Equal(other ref.Val) ref.Val

func (Image) Type

func (v Image) Type() ref.Type

func (Image) Value

func (v Image) Value() any

type ImageReference

type ImageReference struct {
	Image      string `json:"image,omitempty"`
	Registry   string `json:"registry,omitempty"`
	Repository string `json:"repository,omitempty"`
	Identifier string `json:"identifier,omitempty"`
	Tag        string `json:"tag,omitempty"`
	Digest     string `json:"digest,omitempty"`
}

func ConvertToImageRef

func ConvertToImageRef(ref name.Reference) ImageReference

Jump to

Keyboard shortcuts

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