Documentation ¶
Index ¶
- func ExpectedPodAnnotations(podName string, imageShas []string, dump *Dump) (map[string]string, error)
- func ExpectedPodLabels(podName string, imageShas []string, dump *Dump) (map[string]string, error)
- func HubCodeLocationsWrongNumberOfScans(d *hub.Dump) []string
- func HubNotPerceptorImages(dump *Dump) []string
- func HubProjectsWrongNumberOfVersions(d *hub.Dump) []string
- func HubVersionsWrongNumberOfCodeLocations(d *hub.Dump) []string
- func KubeNotPerceptorFinishedPods(dump *Dump) (finishedKubePods []string, incorrectAnnotationsPods []string, ...)
- func KubeNotPerceptorImages(dump *Dump) []string
- func KubeNotPerceptorPods(dump *Dump) []string
- func PartiallyHandledKubePods(dump *kube.Dump) (partiallyAnnotatedKubePods []string, partiallyLabeledKubePods []string)
- func PerceptorNotHubImages(dump *Dump, allHubImagesSet map[string]bool) []string
- func PerceptorNotKubeFinishedPods(dump *Dump) []string
- func PerceptorNotKubeImages(dump *Dump) []string
- func PerceptorNotKubePods(dump *Dump) []string
- func PodShas(pod *kube.Pod) ([]string, error)
- func RemoveRegistryInfo(d string) string
- func ShortenLabelContent(data string) string
- func UnanalyzeablePods(dump *kube.Dump) []string
- func UnparseableKubeImages(dump *kube.Dump) []string
- type Dump
- type HubReport
- type KubePerceptorReport
- type KubeReport
- type MetaReport
- type PerceptorHubReport
- type Report
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpectedPodAnnotations ¶
func ExpectedPodAnnotations(podName string, imageShas []string, dump *Dump) (map[string]string, error)
ExpectedPodAnnotations .....
func ExpectedPodLabels ¶
ExpectedPodLabels .....
func HubCodeLocationsWrongNumberOfScans ¶
HubCodeLocationsWrongNumberOfScans .....
func HubNotPerceptorImages ¶
HubNotPerceptorImages .....
func HubProjectsWrongNumberOfVersions ¶
HubProjectsWrongNumberOfVersions .....
func HubVersionsWrongNumberOfCodeLocations ¶
HubVersionsWrongNumberOfCodeLocations .....
func KubeNotPerceptorFinishedPods ¶
func KubeNotPerceptorFinishedPods(dump *Dump) (finishedKubePods []string, incorrectAnnotationsPods []string, incorrectLabelsPods []string, unanalyzeablePods []string)
KubeNotPerceptorFinishedPods .....
func KubeNotPerceptorImages ¶
KubeNotPerceptorImages .....
func KubeNotPerceptorPods ¶
KubeNotPerceptorPods .....
func PartiallyHandledKubePods ¶
func PartiallyHandledKubePods(dump *kube.Dump) (partiallyAnnotatedKubePods []string, partiallyLabeledKubePods []string)
PartiallyHandledKubePods .....
func PerceptorNotHubImages ¶
PerceptorNotHubImages .....
func PerceptorNotKubeFinishedPods ¶
PerceptorNotKubeFinishedPods .....
func PerceptorNotKubeImages ¶
PerceptorNotKubeImages .....
func PerceptorNotKubePods ¶
PerceptorNotKubePods .....
func RemoveRegistryInfo ¶
RemoveRegistryInfo will take a string and return a string that removes any registry name information and replaces all / with .
func ShortenLabelContent ¶
ShortenLabelContent will ensure the data is less than the 63 character limit and doesn't contain any characters that are not allowed
func UnparseableKubeImages ¶
UnparseableKubeImages .....
Types ¶
type HubReport ¶
type HubReport struct { ProjectsMultipleVersions []string VersionsMultipleCodeLocations []string CodeLocationsMultipleScanSummaries []string }
HubReport .....
func (*HubReport) HumanReadableString ¶
HumanReadableString .....
type KubePerceptorReport ¶
type KubePerceptorReport struct { JustKubePods []string JustPerceptorPods []string JustKubeImages []string JustPerceptorImages []string // TODO: // In kube/openshift but not in perceptor scan results: // - finished pods (with annotations/labels) // - finished images (with annotations/labels) FinishedJustKubePods []string // In perceptor scan results but not in kube/openshift: // - scanned pods // - scanned images FinishedJustPerceptorPods []string ConflictingAnnotationsPods []string ConflictingLabelsPods []string UnanalyzeablePods []string }
KubePerceptorReport .....
func NewKubePerceptorReport ¶
func NewKubePerceptorReport(dump *Dump) *KubePerceptorReport
NewKubePerceptorReport .....
func (*KubePerceptorReport) HumanReadableString ¶
func (kr *KubePerceptorReport) HumanReadableString() string
HumanReadableString .....
type KubeReport ¶
type KubeReport struct { UnanalyzeablePods []string UnparseableImages []string PartiallyAnnotatedPods []string PartiallyLabeledPods []string }
KubeReport .....
func (*KubeReport) HumanReadableString ¶
func (k *KubeReport) HumanReadableString() string
HumanReadableString .....
type MetaReport ¶
MetaReport .....
func (*MetaReport) HumanReadableString ¶
func (m *MetaReport) HumanReadableString() string
HumanReadableString .....
type PerceptorHubReport ¶
type PerceptorHubReport struct { JustPerceptorImages []string JustHubImages []string // contains filtered or unexported fields }
PerceptorHubReport .....
func NewPerceptorHubReport ¶
func NewPerceptorHubReport(dump *Dump) *PerceptorHubReport
NewPerceptorHubReport .....
func (*PerceptorHubReport) HumanReadableString ¶
func (p *PerceptorHubReport) HumanReadableString() string
HumanReadableString .....
type Report ¶
type Report struct { Dump *Dump Meta *MetaReport Kube *KubeReport KubePerceptor *KubePerceptorReport PerceptorHub *PerceptorHubReport Hubs map[string]*HubReport }
Report .....
func (*Report) HumanReadableString ¶
HumanReadableString .....