fs

package
v0.55.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadWriter

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

ReadWriter is responsible from reading/writing from/to the filesystem.

func NewReadWriter

func NewReadWriter(readPath, writePath string) (*ReadWriter, error)

NewReadWriter returns a new read/writer.

func (*ReadWriter) ReadTaggedResponse

func (rw *ReadWriter) ReadTaggedResponse() ([]*v1.LaunchToolResponse, error)

ReadTaggedResponse scans the supplied tag responses path for reports and parses them into *v1.LaunchToolResponse.

func (*ReadWriter) WriteEnrichedResults

func (rw *ReadWriter) WriteEnrichedResults(
	original *v1.LaunchToolResponse,
	enrichedIssues []*v1.EnrichedIssue,
) error

WriteEnrichedResults writes the tagged report.

func (*ReadWriter) WriteRawResults

func (rw *ReadWriter) WriteRawResults(original *v1.LaunchToolResponse) error

WriteRawResults writes the raw report that was given in input.

Jump to

Keyboard shortcuts

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