package
0.0.0-20200515191345-65129fa9c341
Repository: https://github.com/blackducksoftware/opssight-connector.git
Documentation: pkg.go.dev

# Functions

CompareBlackDuckAnnotationJSON takes 2 strings that are marshaled BlackDuckAnnotations and compares them.
CreateBlackDuckPolicyAnnotation returns an annotation containing policy violations.
CreateBlackDuckVulnerabilityAnnotation returns an annotation containing vulnerabilities.
CreateImageAnnotations returns a map of annotations from a ImageAnnotationData object.
CreateImageLabels returns a map of labels from a ImageAnnotationData object.
CreatePodAnnotations returns a map of annotations from a PodAnnotationData object.
CreatePodLabels returns a map of labels from a PodAnnotationData objectfunc CreatePodLabels(podData *annotations.PodAnnotationData) map[string]string {.
MapContainsBlackDuckEntries returns true if the origMap contains all the important blackduck entries from the newMap.
NewBlackDuckAnnotationFromJSON takes a string that is a marshaled BlackDuckAnnotation struct and returns a BlackDuckAnnotation.
RemoveRegistryInfo will take a string and return a string that removes any registry name information and replaces all / with .
ShortenLabelContent will ensure the data is less than the 63 character limit and doesn't contain any characters that are not allowed.

# Variables

ImageAnnotationPrefix is the prefix used for BlackDuckAnnotations in image annotations.
PodAnnotationPrefix is the prefix used for BlackDuckAnnotations in pod annotations.

# Structs

BlackDuckAnnotation create annotations that correspond to the Openshift Container Security guide (https://docs.openshift.com/container-platform/3.9/security/container_content.html).