report

package
v2.2.3+incompatible Latest Latest
Warning

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

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

Documentation

Index

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

func ExpectedPodLabels(podName string, imageShas []string, dump *Dump) (map[string]string, error)

ExpectedPodLabels .....

func HubCodeLocationsWrongNumberOfScans

func HubCodeLocationsWrongNumberOfScans(d *hub.Dump) []string

HubCodeLocationsWrongNumberOfScans .....

func HubNotPerceptorImages

func HubNotPerceptorImages(dump *Dump) []string

HubNotPerceptorImages .....

func HubProjectsWrongNumberOfVersions

func HubProjectsWrongNumberOfVersions(d *hub.Dump) []string

HubProjectsWrongNumberOfVersions .....

func HubVersionsWrongNumberOfCodeLocations

func HubVersionsWrongNumberOfCodeLocations(d *hub.Dump) []string

HubVersionsWrongNumberOfCodeLocations .....

func KubeNotPerceptorFinishedPods

func KubeNotPerceptorFinishedPods(dump *Dump) (finishedKubePods []string, incorrectAnnotationsPods []string, incorrectLabelsPods []string, unanalyzeablePods []string)

KubeNotPerceptorFinishedPods .....

func KubeNotPerceptorImages

func KubeNotPerceptorImages(dump *Dump) []string

KubeNotPerceptorImages .....

func KubeNotPerceptorPods

func KubeNotPerceptorPods(dump *Dump) []string

KubeNotPerceptorPods .....

func PartiallyHandledKubePods

func PartiallyHandledKubePods(dump *kube.Dump) (partiallyAnnotatedKubePods []string, partiallyLabeledKubePods []string)

PartiallyHandledKubePods .....

func PerceptorNotHubImages

func PerceptorNotHubImages(dump *Dump, allHubImagesSet map[string]bool) []string

PerceptorNotHubImages .....

func PerceptorNotKubeFinishedPods

func PerceptorNotKubeFinishedPods(dump *Dump) []string

PerceptorNotKubeFinishedPods .....

func PerceptorNotKubeImages

func PerceptorNotKubeImages(dump *Dump) []string

PerceptorNotKubeImages .....

func PerceptorNotKubePods

func PerceptorNotKubePods(dump *Dump) []string

PerceptorNotKubePods .....

func PodShas

func PodShas(pod *kube.Pod) ([]string, error)

PodShas .....

func RemoveRegistryInfo

func RemoveRegistryInfo(d string) string

RemoveRegistryInfo will take a string and return a string that removes any registry name information and replaces all / with .

func ShortenLabelContent

func ShortenLabelContent(data string) string

ShortenLabelContent will ensure the data is less than the 63 character limit and doesn't contain any characters that are not allowed

func UnanalyzeablePods

func UnanalyzeablePods(dump *kube.Dump) []string

UnanalyzeablePods .....

func UnparseableKubeImages

func UnparseableKubeImages(dump *kube.Dump) []string

UnparseableKubeImages .....

Types

type Dump

type Dump struct {
	Kube      *kube.Dump
	Perceptor *perceptor.Dump
	Hubs      map[string]*hub.Dump
}

Dump .....

func NewDump

func NewDump(kube *kube.Dump, perceptor *perceptor.Dump, hubs map[string]*hub.Dump) *Dump

NewDump .....

type HubReport

type HubReport struct {
	ProjectsMultipleVersions           []string
	VersionsMultipleCodeLocations      []string
	CodeLocationsMultipleScanSummaries []string
}

HubReport .....

func NewHubReport

func NewHubReport(dump *hub.Dump) *HubReport

NewHubReport .....

func (*HubReport) HumanReadableString

func (h *HubReport) HumanReadableString(host string) string

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 NewKubeReport

func NewKubeReport(dump *kube.Dump) *KubeReport

NewKubeReport .....

func (*KubeReport) HumanReadableString

func (k *KubeReport) HumanReadableString() string

HumanReadableString .....

type MetaReport

type MetaReport struct {
	KubeMeta    *kube.Meta
	HubVersions map[string]string
}

MetaReport .....

func NewMetaReport

func NewMetaReport(dump *Dump) *MetaReport

NewMetaReport .....

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 NewReport

func NewReport(dump *Dump) *Report

NewReport .....

func (*Report) HumanReadableString

func (r *Report) HumanReadableString() string

HumanReadableString .....

Jump to

Keyboard shortcuts

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