Documentation ¶
Index ¶
- func ApiextensionsJsonToKyvernoConditions(in apiextensions.JSON) (interface{}, error)
- func BuildStandardExtractors(tags ...string) []imageExtractor
- func DeserializeJSONArray[T any](in apiextensions.JSON) ([]T, error)
- func ExtractImagesFromResource(resource unstructured.Unstructured, configs kyvernov1.ImageExtractorConfigs, ...) (map[string]map[string]ImageInfo, error)
- type ImageInfo
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:"-"` }
Click to show internal directories.
Click to hide internal directories.