Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InsightsAnnotator ¶
type InsightsAnnotator struct {
// contains filtered or unexported fields
}
InsightsAnnotator creates and manipulate Insights annotations
func NewInsightsAnnotator ¶
func NewInsightsAnnotator(version string, refBaseURL string) *InsightsAnnotator
NewInsightsAnnotator Create a new annotator instance
func (*InsightsAnnotator) CreateOperationsAnnotation ¶
func (a *InsightsAnnotator) CreateOperationsAnnotation(scanResp *common.ScanResponse, imageID string) *OpenshiftAnnotation
CreateOperationsAnnotation from a scan result
func (*InsightsAnnotator) CreateSecurityAnnotation ¶
func (a *InsightsAnnotator) CreateSecurityAnnotation(scanResp *common.ScanResponse, imageID string) *OpenshiftAnnotation
CreateSecurityAnnotation result from scan response
type OpenshiftAnnotation ¶
type OpenshiftAnnotation struct { Name string `json:"name"` Description string `json:"description"` Timestamp time.Time `json:"timestamp"` Reference string `json:"reference"` Compliant bool `json:"compliant"` Summary []map[string]string `json:"summary,omitempty"` }
OpenshiftAnnotation representation
func (*OpenshiftAnnotation) ToJSON ¶
func (o *OpenshiftAnnotation) ToJSON() string
ToJSON - return json version of annotation
Click to show internal directories.
Click to hide internal directories.