serialize

package
v0.44.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalysisResult

type AnalysisResult struct {

	// Currently it supports custom resources only
	CustomResources []CustomResource
}

func (AnalysisResult) MarshalEasyJSON

func (v AnalysisResult) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AnalysisResult) MarshalJSON

func (v AnalysisResult) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AnalysisResult) UnmarshalEasyJSON

func (v *AnalysisResult) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AnalysisResult) UnmarshalJSON

func (v *AnalysisResult) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CustomResource

type CustomResource struct {
	Type     string
	FilePath string
	Data     interface{}
}

type PostScanAction

type PostScanAction string

type PostScanSpec

type PostScanSpec struct {
	// What action the module will do in post scanning.
	// value: INSERT, UPDATE and DELETE
	Action PostScanAction

	// IDs represent which vulnerability and misconfiguration ID will be updated or deleted in post scanning.
	// When the action is UPDATE, the matched result will be passed to the module.
	IDs []string
}

func (PostScanSpec) MarshalEasyJSON

func (v PostScanSpec) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PostScanSpec) MarshalJSON

func (v PostScanSpec) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PostScanSpec) UnmarshalEasyJSON

func (v *PostScanSpec) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PostScanSpec) UnmarshalJSON

func (v *PostScanSpec) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Result

type Result types.Result

func (Result) MarshalEasyJSON

func (v Result) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Result) MarshalJSON

func (v Result) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Result) UnmarshalEasyJSON

func (v *Result) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Result) UnmarshalJSON

func (v *Result) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Results

type Results []Result

func (Results) MarshalEasyJSON

func (v Results) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Results) MarshalJSON

func (v Results) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Results) UnmarshalEasyJSON

func (v *Results) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Results) UnmarshalJSON

func (v *Results) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StringSlice

type StringSlice []string

func (StringSlice) MarshalEasyJSON

func (v StringSlice) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StringSlice) MarshalJSON

func (v StringSlice) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StringSlice) UnmarshalEasyJSON

func (v *StringSlice) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StringSlice) UnmarshalJSON

func (v *StringSlice) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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