presenter

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetScanID

type AssetScanID = models.AssetScanID

type ConsolePresenter

type ConsolePresenter struct {
	*DefaultPresenter
}

func NewConsolePresenter

func NewConsolePresenter(output io.Writer, FamiliesConfig *families.Config) *ConsolePresenter

type ConsoleWriter

type ConsoleWriter struct {
	Output io.Writer
}

func (*ConsoleWriter) Write

func (w *ConsoleWriter) Write(b []byte, prefix string) error

type DefaultPresenter

type DefaultPresenter struct {
	Writer

	FamiliesConfig *families.Config
}

func (*DefaultPresenter) ExportExploitsResult

func (p *DefaultPresenter) ExportExploitsResult(_ context.Context, res families.FamilyResult) error

func (*DefaultPresenter) ExportFamilyResult

func (p *DefaultPresenter) ExportFamilyResult(ctx context.Context, res families.FamilyResult) error

func (*DefaultPresenter) ExportInfoFinderResult

func (p *DefaultPresenter) ExportInfoFinderResult(_ context.Context, res families.FamilyResult) error

func (*DefaultPresenter) ExportMalwareResult

func (p *DefaultPresenter) ExportMalwareResult(_ context.Context, res families.FamilyResult) error

func (*DefaultPresenter) ExportMisconfigurationResult

func (p *DefaultPresenter) ExportMisconfigurationResult(context.Context, families.FamilyResult) error

func (*DefaultPresenter) ExportRootkitResult

func (p *DefaultPresenter) ExportRootkitResult(_ context.Context, res families.FamilyResult) error

func (*DefaultPresenter) ExportSbomResult

func (p *DefaultPresenter) ExportSbomResult(_ context.Context, res families.FamilyResult) error

func (*DefaultPresenter) ExportSecretsResult

func (p *DefaultPresenter) ExportSecretsResult(_ context.Context, res families.FamilyResult) error

func (*DefaultPresenter) ExportVulResult

func (p *DefaultPresenter) ExportVulResult(_ context.Context, res families.FamilyResult) error

type FilePresenter

type FilePresenter struct {
	*DefaultPresenter
}

func NewFilePresenter

func NewFilePresenter(path string, FamiliesConfig *families.Config) *FilePresenter

type FileWriter

type FileWriter struct {
	Path string
}

func (*FileWriter) Write

func (w *FileWriter) Write(b []byte, filename string) error

type MultiPresenter

type MultiPresenter struct {
	Presenters []Presenter
}

func (*MultiPresenter) ExportFamilyResult

func (m *MultiPresenter) ExportFamilyResult(ctx context.Context, res families.FamilyResult) error

type Presenter

type Presenter interface {
	ExportFamilyResult(ctx context.Context, res families.FamilyResult) error
}

type VMClarityPresenter

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

func NewVMClarityPresenter

func NewVMClarityPresenter(client *backendclient.BackendClient, id AssetScanID) (*VMClarityPresenter, error)

func (*VMClarityPresenter) ExportExploitsResult

func (v *VMClarityPresenter) ExportExploitsResult(ctx context.Context, res families.FamilyResult) error

func (*VMClarityPresenter) ExportFamilyResult

func (v *VMClarityPresenter) ExportFamilyResult(ctx context.Context, res families.FamilyResult) error

func (*VMClarityPresenter) ExportInfoFinderResult

func (v *VMClarityPresenter) ExportInfoFinderResult(ctx context.Context, res families.FamilyResult) error

func (*VMClarityPresenter) ExportMalwareResult

func (v *VMClarityPresenter) ExportMalwareResult(ctx context.Context, res families.FamilyResult) error

func (*VMClarityPresenter) ExportMisconfigurationResult

func (v *VMClarityPresenter) ExportMisconfigurationResult(ctx context.Context, res families.FamilyResult) error

func (*VMClarityPresenter) ExportRootkitResult

func (v *VMClarityPresenter) ExportRootkitResult(ctx context.Context, res families.FamilyResult) error

func (*VMClarityPresenter) ExportSbomResult

func (v *VMClarityPresenter) ExportSbomResult(ctx context.Context, res families.FamilyResult) error

func (*VMClarityPresenter) ExportSecretsResult

func (v *VMClarityPresenter) ExportSecretsResult(ctx context.Context, res families.FamilyResult) error

func (*VMClarityPresenter) ExportVulResult

func (v *VMClarityPresenter) ExportVulResult(ctx context.Context, res families.FamilyResult) error

type Writer

type Writer interface {
	Write([]byte, string) error
}

Jump to

Keyboard shortcuts

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