codelevelvulnerability

package
v1.53.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MonitoringModes = struct {
	MonitoringOff MonitoringMode
	MonitoringOn  MonitoringMode
}{
	"MONITORING_OFF",
	"MONITORING_ON",
}

Functions

This section is empty.

Types

type Criteria

type Criteria struct {
	ProcessGroup *string `json:"processGroup,omitempty"` // Process group
}

func (*Criteria) IsEmpty

func (me *Criteria) IsEmpty() bool

func (*Criteria) MarshalHCL

func (me *Criteria) MarshalHCL(properties hcl.Properties) error

func (*Criteria) Schema

func (me *Criteria) Schema() map[string]*schema.Schema

func (*Criteria) UnmarshalHCL

func (me *Criteria) UnmarshalHCL(decoder hcl.Decoder) error

type Metadata

type Metadata struct {
	Comment string `json:"comment"`
}

func (*Metadata) MarshalHCL

func (me *Metadata) MarshalHCL(properties hcl.Properties) error

func (*Metadata) Schema

func (me *Metadata) Schema() map[string]*schema.Schema

func (*Metadata) UnmarshalHCL

func (me *Metadata) UnmarshalHCL(decoder hcl.Decoder) error

type MonitoringMode

type MonitoringMode string

type Settings

type Settings struct {
	Criteria                      *Criteria                      `json:"criteria"`                      // Step 1: Define criteria
	Enabled                       bool                           `json:"enabled"`                       // This setting is enabled (`true`) or disabled (`false`)
	Metadata                      *Metadata                      `json:"metadata"`                      // Step 3: Leave comment
	VulnerabilityDetectionControl *VulnerabilityDetectionControl `json:"vulnerabilityDetectionControl"` // Step 2: Define code-level vulnerability detection control for chosen criteria
}

func (*Settings) MarshalHCL

func (me *Settings) MarshalHCL(properties hcl.Properties) error

func (*Settings) Name

func (me *Settings) Name() string

func (*Settings) Schema

func (me *Settings) Schema() map[string]*schema.Schema

func (*Settings) UnmarshalHCL

func (me *Settings) UnmarshalHCL(decoder hcl.Decoder) error

type VulnerabilityDetectionControl

type VulnerabilityDetectionControl struct {
	MonitoringMode MonitoringMode `json:"monitoringMode"` // Possible Values: `MONITORING_OFF`, `MONITORING_ON`
}

func (*VulnerabilityDetectionControl) MarshalHCL

func (me *VulnerabilityDetectionControl) MarshalHCL(properties hcl.Properties) error

func (*VulnerabilityDetectionControl) Schema

func (*VulnerabilityDetectionControl) UnmarshalHCL

func (me *VulnerabilityDetectionControl) UnmarshalHCL(decoder hcl.Decoder) error

Jump to

Keyboard shortcuts

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