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.
Click to show internal directories.
Click to hide internal directories.