api

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiextensionsJsonToKyvernoConditions added in v1.9.0

func ApiextensionsJsonToKyvernoConditions(in apiextensions.JSON) (interface{}, error)

ApiextensionsJsonToKyvernoConditions takes in user-provided conditions in abstract apiextensions.JSON form and converts it into []kyverno.Condition or kyverno.AnyAllConditions according to its content. it also helps in validating the condtions as it returns an error when the conditions are provided wrongfully by the user.

func BuildStandardExtractors

func BuildStandardExtractors(tags ...string) []imageExtractor

func DeserializeJSONArray added in v1.9.0

func DeserializeJSONArray[T any](in apiextensions.JSON) ([]T, error)

Deserialize "apiextensions.JSON" to a typed array

func ExtractImagesFromResource

func ExtractImagesFromResource(resource unstructured.Unstructured, configs kyvernov1.ImageExtractorConfigs, cfg config.Configuration) (map[string]map[string]ImageInfo, error)

Types

type ImageInfo

type ImageInfo struct {
	imageutils.ImageInfo
	// Pointer is the path to the image object in the resource
	Pointer string `json:"jsonPointer"`
}

Jump to

Keyboard shortcuts

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