common

package
v0.0.0-...-775e41a Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2017 License: MIT Imports: 4 Imported by: 2

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

Jump to

Keyboard shortcuts

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