api

package
v0.30.9 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 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 Analyze

type Analyze struct {
	V1 []v1.Analyzer `json:"v1,omitempty" yaml:"v1,omitempty" hcl:"v1,omitempty"`
}

Analyze is the top level analyze object

type Doc added in v0.19.0

type Doc struct {
	Analyze Analyze `json:"analyze" yaml:"analyze" hcl:"analyze"`
}

Doc is the top level Analyze document that defines an set of collectors and analysis

func DeserializeDoc added in v0.19.0

func DeserializeDoc(b []byte) (doc Doc, err error)

DeserializeDoc will deserialize a analyze spec. Possibly support more formats?

type Result

type Result struct {
	meta.Meta `json:",inline" yaml:",inline" hcl:",inline"`

	Insight      *insight.Insight       `json:"insight" yaml:"insight" hcl:"insight"`
	Severity     common.Severity        `json:"severity" yaml:"severity" hcl:"severity"`
	AnalyzerSpec string                 `json:"analyzerSpec" yaml:"analyzerSpec" hcl:"analyzerSpec"`
	Variables    map[string]interface{} `json:"variables,omitempty" yaml:"variables,omitempty" hcl:"variables,omitempty"`
	Error        string                 `json:"error,omitempty" yaml:"error,omitempty" hcl:"error,omitempty"`
}

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

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