report

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(r io.Reader) *Reader

func (*Reader) Read

func (r *Reader) Read(p []byte) (int, error)

func (*Reader) ReadReport

func (r *Reader) ReadReport() (*Report, error)

type Report

type Report struct {
	ProjectName string `json:"projectName"`
	PipelineId  string `json:"pipelineId"`
	PipelineUrl string `json:"pipelineUrl"`
	Timestamp   string `json:"timestamp"`
	Artifacts   struct {
		Grype grype.Artifact `json:"grype"`
	} `json:"artifacts"`
}

func NewReport

func NewReport(projectName string) *Report

func (Report) String

func (r Report) String() string

func (Report) WithConfig

func (r Report) WithConfig(c *config.Config) *Report

func (Report) WithSettings

func (r Report) WithSettings(s Settings) *Report

type Settings

type Settings struct {
	ProjectName string
	PipelineId  string
	PipelineUrl string
}

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(w io.Writer) *Writer

func (*Writer) Write

func (w *Writer) Write(p []byte) (int, error)

func (*Writer) WriteReport

func (w *Writer) WriteReport(r *Report) error

Jump to

Keyboard shortcuts

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