model

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerImage

type ContainerImage struct {
	Hash     string
	HashType string
	Status   ImageFuzzStatus
}

ContainerImage container image struct that contains a fuzz status

func ContainerImageFromString

func ContainerImageFromString(hashString string, statusString string) (image ContainerImage, convErr error)

ContainerImageFromString create ContainerImage from a string in format hashtype:hash and a string representing the status as an int

func CreateContainerImage

func CreateContainerImage(hash string, hashType string, status ImageFuzzStatus) (ContainerImage, error)

func CreateContainerImagesFromPod

func CreateContainerImagesFromPod(l logger.Logger, pod *apiv1.Pod) ([]ContainerImage, error)

CreateContainerImagesFromPod extracts container info from a pod and converts their images to ContainerImages

func (ContainerImage) String

func (img ContainerImage) String() (key string, status string)

String ContainerImage to string representation

func (ContainerImage) Verify

func (img ContainerImage) Verify() error

Verify verifies if this model is valid, model is not valid if some non nullable properties are empty or nil

type ImageFuzzStatus

type ImageFuzzStatus int
const (
	NotFuzzed ImageFuzzStatus = iota
	Fuzzed
	BeingFuzzed
)

Jump to

Keyboard shortcuts

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