models

package
v2.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {

	// message
	Message string `json:"message,omitempty"`
}

APIResponse An object that is returned in all cases of failures.

swagger:model ApiResponse

func (*APIResponse) ContextValidate

func (m *APIResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Api response based on context it is used

func (*APIResponse) MarshalBinary

func (m *APIResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APIResponse) UnmarshalBinary

func (m *APIResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIResponse) Validate

func (m *APIResponse) Validate(formats strfmt.Registry) error

Validate validates this Api response

type AttackComplexity

type AttackComplexity string

AttackComplexity attack complexity

swagger:model AttackComplexity

const (

	// AttackComplexityLOW captures enum value "LOW"
	AttackComplexityLOW AttackComplexity = "LOW"

	// AttackComplexityHIGH captures enum value "HIGH"
	AttackComplexityHIGH AttackComplexity = "HIGH"
)

func NewAttackComplexity

func NewAttackComplexity(value AttackComplexity) *AttackComplexity

func (AttackComplexity) ContextValidate

func (m AttackComplexity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this attack complexity based on context it is used

func (AttackComplexity) Validate

func (m AttackComplexity) Validate(formats strfmt.Registry) error

Validate validates this attack complexity

type AttackVector

type AttackVector string

AttackVector attack vector

swagger:model AttackVector

const (

	// AttackVectorNETWORK captures enum value "NETWORK"
	AttackVectorNETWORK AttackVector = "NETWORK"

	// AttackVectorADJACENT captures enum value "ADJACENT"
	AttackVectorADJACENT AttackVector = "ADJACENT"

	// AttackVectorLOCAL captures enum value "LOCAL"
	AttackVectorLOCAL AttackVector = "LOCAL"

	// AttackVectorPHYSICAL captures enum value "PHYSICAL"
	AttackVectorPHYSICAL AttackVector = "PHYSICAL"
)

func NewAttackVector

func NewAttackVector(value AttackVector) *AttackVector

func (AttackVector) ContextValidate

func (m AttackVector) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this attack vector based on context it is used

func (AttackVector) Validate

func (m AttackVector) Validate(formats strfmt.Registry) error

Validate validates this attack vector

type Availability

type Availability string

Availability availability

swagger:model Availability

const (

	// AvailabilityNONE captures enum value "NONE"
	AvailabilityNONE Availability = "NONE"

	// AvailabilityLOW captures enum value "LOW"
	AvailabilityLOW Availability = "LOW"

	// AvailabilityHIGH captures enum value "HIGH"
	AvailabilityHIGH Availability = "HIGH"
)

func NewAvailability

func NewAvailability(value Availability) *Availability

func (Availability) ContextValidate

func (m Availability) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this availability based on context it is used

func (Availability) Validate

func (m Availability) Validate(formats strfmt.Registry) error

Validate validates this availability

type CISDockerBenchmarkAssessment

type CISDockerBenchmarkAssessment struct {

	// code
	Code string `json:"code,omitempty"`

	// desc
	Desc string `json:"desc,omitempty"`

	// filename
	Filename string `json:"filename,omitempty"`

	// level
	Level int64 `json:"level,omitempty"`
}

CISDockerBenchmarkAssessment c i s docker benchmark assessment

swagger:model CISDockerBenchmarkAssessment

func (*CISDockerBenchmarkAssessment) ContextValidate

func (m *CISDockerBenchmarkAssessment) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this c i s docker benchmark assessment based on context it is used

func (*CISDockerBenchmarkAssessment) MarshalBinary

func (m *CISDockerBenchmarkAssessment) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CISDockerBenchmarkAssessment) UnmarshalBinary

func (m *CISDockerBenchmarkAssessment) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CISDockerBenchmarkAssessment) Validate

func (m *CISDockerBenchmarkAssessment) Validate(formats strfmt.Registry) error

Validate validates this c i s docker benchmark assessment

type CISDockerBenchmarkCodeInfo

type CISDockerBenchmarkCodeInfo struct {

	// assessments
	Assessments []*CISDockerBenchmarkAssessment `json:"assessments"`

	// code
	Code string `json:"code,omitempty"`

	// level
	Level int64 `json:"level,omitempty"`
}

CISDockerBenchmarkCodeInfo c i s docker benchmark code info

swagger:model CISDockerBenchmarkCodeInfo

func (*CISDockerBenchmarkCodeInfo) ContextValidate

func (m *CISDockerBenchmarkCodeInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this c i s docker benchmark code info based on the context it is used

func (*CISDockerBenchmarkCodeInfo) MarshalBinary

func (m *CISDockerBenchmarkCodeInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CISDockerBenchmarkCodeInfo) UnmarshalBinary

func (m *CISDockerBenchmarkCodeInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CISDockerBenchmarkCodeInfo) Validate

func (m *CISDockerBenchmarkCodeInfo) Validate(formats strfmt.Registry) error

Validate validates this c i s docker benchmark code info

type CISDockerBenchmarkScan

type CISDockerBenchmarkScan struct {

	// cis docker benchmark scan result
	CisDockerBenchmarkScanResult *CISDockerBenchmarkScanResult `json:"cisDockerBenchmarkScanResult,omitempty"`

	// image ID
	ImageID string `json:"imageID,omitempty"`
}

CISDockerBenchmarkScan c i s docker benchmark scan

swagger:model CISDockerBenchmarkScan

func (*CISDockerBenchmarkScan) ContextValidate

func (m *CISDockerBenchmarkScan) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this c i s docker benchmark scan based on the context it is used

func (*CISDockerBenchmarkScan) MarshalBinary

func (m *CISDockerBenchmarkScan) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CISDockerBenchmarkScan) UnmarshalBinary

func (m *CISDockerBenchmarkScan) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CISDockerBenchmarkScan) Validate

func (m *CISDockerBenchmarkScan) Validate(formats strfmt.Registry) error

Validate validates this c i s docker benchmark scan

type CISDockerBenchmarkScanResult

type CISDockerBenchmarkScanResult struct {

	// error
	Error *ScanError `json:"error,omitempty"`

	// result
	Result []*CISDockerBenchmarkCodeInfo `json:"result"`

	// status
	Status ScanStatus `json:"status,omitempty"`
}

CISDockerBenchmarkScanResult c i s docker benchmark scan result

swagger:model CISDockerBenchmarkScanResult

func (*CISDockerBenchmarkScanResult) ContextValidate

func (m *CISDockerBenchmarkScanResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this c i s docker benchmark scan result based on the context it is used

func (*CISDockerBenchmarkScanResult) MarshalBinary

func (m *CISDockerBenchmarkScanResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CISDockerBenchmarkScanResult) UnmarshalBinary

func (m *CISDockerBenchmarkScanResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CISDockerBenchmarkScanResult) Validate

func (m *CISDockerBenchmarkScanResult) Validate(formats strfmt.Registry) error

Validate validates this c i s docker benchmark scan result

type CVSS

type CVSS struct {

	// cvss v3 metrics
	CvssV3Metrics *CVSSV3Metrics `json:"cvssV3Metrics,omitempty"`

	// cvss v3 vector
	CvssV3Vector *CVSSV3Vector `json:"cvssV3Vector,omitempty"`
}

CVSS c v s s

swagger:model CVSS

func (*CVSS) ContextValidate

func (m *CVSS) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this c v s s based on the context it is used

func (*CVSS) MarshalBinary

func (m *CVSS) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CVSS) UnmarshalBinary

func (m *CVSS) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CVSS) Validate

func (m *CVSS) Validate(formats strfmt.Registry) error

Validate validates this c v s s

type CVSSV3Metrics

type CVSSV3Metrics struct {

	// base score
	BaseScore float64 `json:"baseScore,omitempty"`

	// exploitability score
	ExploitabilityScore float64 `json:"exploitabilityScore,omitempty"`

	// impact score
	ImpactScore float64 `json:"impactScore,omitempty"`
}

CVSSV3Metrics c v s s v3 metrics

swagger:model CVSSV3Metrics

func (*CVSSV3Metrics) ContextValidate

func (m *CVSSV3Metrics) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this c v s s v3 metrics based on context it is used

func (*CVSSV3Metrics) MarshalBinary

func (m *CVSSV3Metrics) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CVSSV3Metrics) UnmarshalBinary

func (m *CVSSV3Metrics) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CVSSV3Metrics) Validate

func (m *CVSSV3Metrics) Validate(formats strfmt.Registry) error

Validate validates this c v s s v3 metrics

type CVSSV3Vector

type CVSSV3Vector struct {

	// attack complexity
	AttackComplexity AttackComplexity `json:"attackComplexity,omitempty"`

	// attack vector
	AttackVector AttackVector `json:"attackVector,omitempty"`

	// availability
	Availability Availability `json:"availability,omitempty"`

	// confidentiality
	Confidentiality Confidentiality `json:"confidentiality,omitempty"`

	// integrity
	Integrity Integrity `json:"integrity,omitempty"`

	// privileges required
	PrivilegesRequired PrivilegesRequired `json:"privilegesRequired,omitempty"`

	// scope
	Scope Scope `json:"scope,omitempty"`

	// user interaction
	UserInteraction UserInteraction `json:"userInteraction,omitempty"`

	// vector
	Vector string `json:"vector,omitempty"`
}

CVSSV3Vector c v s s v3 vector

swagger:model CVSSV3Vector

func (*CVSSV3Vector) ContextValidate

func (m *CVSSV3Vector) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this c v s s v3 vector based on the context it is used

func (*CVSSV3Vector) MarshalBinary

func (m *CVSSV3Vector) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CVSSV3Vector) UnmarshalBinary

func (m *CVSSV3Vector) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CVSSV3Vector) Validate

func (m *CVSSV3Vector) Validate(formats strfmt.Registry) error

Validate validates this c v s s v3 vector

type Confidentiality

type Confidentiality string

Confidentiality confidentiality

swagger:model Confidentiality

const (

	// ConfidentialityNONE captures enum value "NONE"
	ConfidentialityNONE Confidentiality = "NONE"

	// ConfidentialityLOW captures enum value "LOW"
	ConfidentialityLOW Confidentiality = "LOW"

	// ConfidentialityHIGH captures enum value "HIGH"
	ConfidentialityHIGH Confidentiality = "HIGH"
)

func NewConfidentiality

func NewConfidentiality(value Confidentiality) *Confidentiality

func (Confidentiality) ContextValidate

func (m Confidentiality) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this confidentiality based on context it is used

func (Confidentiality) Validate

func (m Confidentiality) Validate(formats strfmt.Registry) error

Validate validates this confidentiality

type ErrorType

type ErrorType string

ErrorType error type

swagger:model ErrorType

const (

	// ErrorTypeTBD captures enum value "TBD"
	ErrorTypeTBD ErrorType = "TBD"
)

func NewErrorType

func NewErrorType(value ErrorType) *ErrorType

func (ErrorType) ContextValidate

func (m ErrorType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error type based on context it is used

func (ErrorType) Validate

func (m ErrorType) Validate(formats strfmt.Registry) error

Validate validates this error type

type ImageContentAnalysis

type ImageContentAnalysis struct {

	// image ID
	ImageID string `json:"imageID,omitempty"`

	// resource content analysis
	ResourceContentAnalysis *ResourceContentAnalysis `json:"resourceContentAnalysis,omitempty"`
}

ImageContentAnalysis image content analysis

swagger:model ImageContentAnalysis

func (*ImageContentAnalysis) ContextValidate

func (m *ImageContentAnalysis) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this image content analysis based on the context it is used

func (*ImageContentAnalysis) MarshalBinary

func (m *ImageContentAnalysis) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImageContentAnalysis) UnmarshalBinary

func (m *ImageContentAnalysis) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImageContentAnalysis) Validate

func (m *ImageContentAnalysis) Validate(formats strfmt.Registry) error

Validate validates this image content analysis

type ImageVulnerabilityScan

type ImageVulnerabilityScan struct {

	// image ID
	ImageID string `json:"imageID,omitempty"`

	// resource vulnerability scan
	ResourceVulnerabilityScan *ResourceVulnerabilityScan `json:"resourceVulnerabilityScan,omitempty"`
}

ImageVulnerabilityScan image vulnerability scan

swagger:model ImageVulnerabilityScan

func (*ImageVulnerabilityScan) ContextValidate

func (m *ImageVulnerabilityScan) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this image vulnerability scan based on the context it is used

func (*ImageVulnerabilityScan) MarshalBinary

func (m *ImageVulnerabilityScan) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImageVulnerabilityScan) UnmarshalBinary

func (m *ImageVulnerabilityScan) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImageVulnerabilityScan) Validate

func (m *ImageVulnerabilityScan) Validate(formats strfmt.Registry) error

Validate validates this image vulnerability scan

type Integrity

type Integrity string

Integrity integrity

swagger:model Integrity

const (

	// IntegrityNONE captures enum value "NONE"
	IntegrityNONE Integrity = "NONE"

	// IntegrityLOW captures enum value "LOW"
	IntegrityLOW Integrity = "LOW"

	// IntegrityHIGH captures enum value "HIGH"
	IntegrityHIGH Integrity = "HIGH"
)

func NewIntegrity

func NewIntegrity(value Integrity) *Integrity

func (Integrity) ContextValidate

func (m Integrity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this integrity based on context it is used

func (Integrity) Validate

func (m Integrity) Validate(formats strfmt.Registry) error

Validate validates this integrity

type PackageContentAnalysis

type PackageContentAnalysis struct {

	// analyzers
	Analyzers []string `json:"analyzers"`

	// package
	Package *PackageInfo `json:"package,omitempty"`
}

PackageContentAnalysis package content analysis

swagger:model PackageContentAnalysis

func (*PackageContentAnalysis) ContextValidate

func (m *PackageContentAnalysis) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this package content analysis based on the context it is used

func (*PackageContentAnalysis) MarshalBinary

func (m *PackageContentAnalysis) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PackageContentAnalysis) UnmarshalBinary

func (m *PackageContentAnalysis) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PackageContentAnalysis) Validate

func (m *PackageContentAnalysis) Validate(formats strfmt.Registry) error

Validate validates this package content analysis

type PackageInfo

type PackageInfo struct {

	// language
	Language string `json:"language,omitempty"`

	// license
	License string `json:"license,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// version
	Version string `json:"version,omitempty"`
}

PackageInfo package info

swagger:model PackageInfo

func (*PackageInfo) ContextValidate

func (m *PackageInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this package info based on context it is used

func (*PackageInfo) MarshalBinary

func (m *PackageInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PackageInfo) UnmarshalBinary

func (m *PackageInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PackageInfo) Validate

func (m *PackageInfo) Validate(formats strfmt.Registry) error

Validate validates this package info

type PackageVulnerabilityScan

type PackageVulnerabilityScan struct {

	// cvss
	Cvss *CVSS `json:"cvss,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// fix version
	FixVersion string `json:"fixVersion,omitempty"`

	// layer ID
	LayerID string `json:"layerID,omitempty"`

	// links
	Links []string `json:"links"`

	// package
	Package *PackageInfo `json:"package,omitempty"`

	// scanners
	Scanners []string `json:"scanners"`

	// severity
	Severity VulnerabilitySeverity `json:"severity,omitempty"`

	// vulnerability name
	VulnerabilityName string `json:"vulnerabilityName,omitempty"`
}

PackageVulnerabilityScan package vulnerability scan

swagger:model PackageVulnerabilityScan

func (*PackageVulnerabilityScan) ContextValidate

func (m *PackageVulnerabilityScan) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this package vulnerability scan based on the context it is used

func (*PackageVulnerabilityScan) MarshalBinary

func (m *PackageVulnerabilityScan) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PackageVulnerabilityScan) UnmarshalBinary

func (m *PackageVulnerabilityScan) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PackageVulnerabilityScan) Validate

func (m *PackageVulnerabilityScan) Validate(formats strfmt.Registry) error

Validate validates this package vulnerability scan

type PrivilegesRequired

type PrivilegesRequired string

PrivilegesRequired privileges required

swagger:model PrivilegesRequired

const (

	// PrivilegesRequiredNONE captures enum value "NONE"
	PrivilegesRequiredNONE PrivilegesRequired = "NONE"

	// PrivilegesRequiredLOW captures enum value "LOW"
	PrivilegesRequiredLOW PrivilegesRequired = "LOW"

	// PrivilegesRequiredHIGH captures enum value "HIGH"
	PrivilegesRequiredHIGH PrivilegesRequired = "HIGH"
)

func NewPrivilegesRequired

func NewPrivilegesRequired(value PrivilegesRequired) *PrivilegesRequired

func (PrivilegesRequired) ContextValidate

func (m PrivilegesRequired) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this privileges required based on context it is used

func (PrivilegesRequired) Validate

func (m PrivilegesRequired) Validate(formats strfmt.Registry) error

Validate validates this privileges required

type ResourceContentAnalysis

type ResourceContentAnalysis struct {

	// packages
	Packages []*PackageContentAnalysis `json:"packages"`

	// resource
	Resource *ResourceInfo `json:"resource,omitempty"`
}

ResourceContentAnalysis resource content analysis

swagger:model ResourceContentAnalysis

func (*ResourceContentAnalysis) ContextValidate

func (m *ResourceContentAnalysis) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resource content analysis based on the context it is used

func (*ResourceContentAnalysis) MarshalBinary

func (m *ResourceContentAnalysis) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourceContentAnalysis) UnmarshalBinary

func (m *ResourceContentAnalysis) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourceContentAnalysis) Validate

func (m *ResourceContentAnalysis) Validate(formats strfmt.Registry) error

Validate validates this resource content analysis

type ResourceInfo

type ResourceInfo struct {

	// resource hash
	ResourceHash string `json:"resourceHash,omitempty"`

	// resource name
	ResourceName string `json:"resourceName,omitempty"`

	// resource type
	ResourceType ResourceType `json:"resourceType,omitempty"`
}

ResourceInfo resource info

swagger:model ResourceInfo

func (*ResourceInfo) ContextValidate

func (m *ResourceInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resource info based on the context it is used

func (*ResourceInfo) MarshalBinary

func (m *ResourceInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourceInfo) UnmarshalBinary

func (m *ResourceInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourceInfo) Validate

func (m *ResourceInfo) Validate(formats strfmt.Registry) error

Validate validates this resource info

type ResourceLayerCommand

type ResourceLayerCommand struct {

	// command
	Command string `json:"command,omitempty"`

	// layer
	Layer string `json:"layer,omitempty"`
}

ResourceLayerCommand Container image layer with command.

swagger:model ResourceLayerCommand

func (*ResourceLayerCommand) ContextValidate

func (m *ResourceLayerCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this resource layer command based on context it is used

func (*ResourceLayerCommand) MarshalBinary

func (m *ResourceLayerCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourceLayerCommand) UnmarshalBinary

func (m *ResourceLayerCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourceLayerCommand) Validate

func (m *ResourceLayerCommand) Validate(formats strfmt.Registry) error

Validate validates this resource layer command

type ResourceType

type ResourceType string

ResourceType resource type

swagger:model ResourceType

const (

	// ResourceTypeIMAGE captures enum value "IMAGE"
	ResourceTypeIMAGE ResourceType = "IMAGE"

	// ResourceTypeDIRECTORY captures enum value "DIRECTORY"
	ResourceTypeDIRECTORY ResourceType = "DIRECTORY"

	// ResourceTypeFILE captures enum value "FILE"
	ResourceTypeFILE ResourceType = "FILE"
)

func NewResourceType

func NewResourceType(value ResourceType) *ResourceType

func (ResourceType) ContextValidate

func (m ResourceType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this resource type based on context it is used

func (ResourceType) Validate

func (m ResourceType) Validate(formats strfmt.Registry) error

Validate validates this resource type

type ResourceVulnerabilityScan

type ResourceVulnerabilityScan struct {

	// error
	Error *ScanError `json:"error,omitempty"`

	// package vulnerabilities
	PackageVulnerabilities []*PackageVulnerabilityScan `json:"packageVulnerabilities"`

	// resource
	Resource *ResourceInfo `json:"resource,omitempty"`

	// resource layer commands
	ResourceLayerCommands []*ResourceLayerCommand `json:"resourceLayerCommands"`

	// status
	Status ScanStatus `json:"status,omitempty"`
}

ResourceVulnerabilityScan resource vulnerability scan

swagger:model ResourceVulnerabilityScan

func (*ResourceVulnerabilityScan) ContextValidate

func (m *ResourceVulnerabilityScan) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resource vulnerability scan based on the context it is used

func (*ResourceVulnerabilityScan) MarshalBinary

func (m *ResourceVulnerabilityScan) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourceVulnerabilityScan) UnmarshalBinary

func (m *ResourceVulnerabilityScan) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourceVulnerabilityScan) Validate

func (m *ResourceVulnerabilityScan) Validate(formats strfmt.Registry) error

Validate validates this resource vulnerability scan

type ScanError

type ScanError struct {

	// message
	Message string `json:"message,omitempty"`

	// type
	Type ErrorType `json:"type,omitempty"`
}

ScanError scan error

swagger:model ScanError

func (*ScanError) ContextValidate

func (m *ScanError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this scan error based on the context it is used

func (*ScanError) MarshalBinary

func (m *ScanError) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ScanError) UnmarshalBinary

func (m *ScanError) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ScanError) Validate

func (m *ScanError) Validate(formats strfmt.Registry) error

Validate validates this scan error

type ScanStatus

type ScanStatus string

ScanStatus scan status

swagger:model ScanStatus

const (

	// ScanStatusSUCCESS captures enum value "SUCCESS"
	ScanStatusSUCCESS ScanStatus = "SUCCESS"

	// ScanStatusFAILED captures enum value "FAILED"
	ScanStatusFAILED ScanStatus = "FAILED"
)

func NewScanStatus

func NewScanStatus(value ScanStatus) *ScanStatus

func (ScanStatus) ContextValidate

func (m ScanStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this scan status based on context it is used

func (ScanStatus) Validate

func (m ScanStatus) Validate(formats strfmt.Registry) error

Validate validates this scan status

type Scope

type Scope string

Scope scope

swagger:model Scope

const (

	// ScopeUNCHANGED captures enum value "UNCHANGED"
	ScopeUNCHANGED Scope = "UNCHANGED"

	// ScopeCHANGED captures enum value "CHANGED"
	ScopeCHANGED Scope = "CHANGED"
)

func NewScope

func NewScope(value Scope) *Scope

func (Scope) ContextValidate

func (m Scope) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this scope based on context it is used

func (Scope) Validate

func (m Scope) Validate(formats strfmt.Registry) error

Validate validates this scope

type SuccessResponse

type SuccessResponse struct {

	// message
	Message string `json:"message,omitempty"`
}

SuccessResponse An object that is returned in cases of success that returns nothing.

swagger:model SuccessResponse

func (*SuccessResponse) ContextValidate

func (m *SuccessResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this success response based on context it is used

func (*SuccessResponse) MarshalBinary

func (m *SuccessResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SuccessResponse) UnmarshalBinary

func (m *SuccessResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SuccessResponse) Validate

func (m *SuccessResponse) Validate(formats strfmt.Registry) error

Validate validates this success response

type UserInteraction

type UserInteraction string

UserInteraction user interaction

swagger:model UserInteraction

const (

	// UserInteractionNONE captures enum value "NONE"
	UserInteractionNONE UserInteraction = "NONE"

	// UserInteractionREQUIRED captures enum value "REQUIRED"
	UserInteractionREQUIRED UserInteraction = "REQUIRED"
)

func NewUserInteraction

func NewUserInteraction(value UserInteraction) *UserInteraction

func (UserInteraction) ContextValidate

func (m UserInteraction) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user interaction based on context it is used

func (UserInteraction) Validate

func (m UserInteraction) Validate(formats strfmt.Registry) error

Validate validates this user interaction

type VulnerabilitySeverity

type VulnerabilitySeverity string

VulnerabilitySeverity vulnerability severity

swagger:model VulnerabilitySeverity

const (

	// VulnerabilitySeverityCRITICAL captures enum value "CRITICAL"
	VulnerabilitySeverityCRITICAL VulnerabilitySeverity = "CRITICAL"

	// VulnerabilitySeverityHIGH captures enum value "HIGH"
	VulnerabilitySeverityHIGH VulnerabilitySeverity = "HIGH"

	// VulnerabilitySeverityMEDIUM captures enum value "MEDIUM"
	VulnerabilitySeverityMEDIUM VulnerabilitySeverity = "MEDIUM"

	// VulnerabilitySeverityLOW captures enum value "LOW"
	VulnerabilitySeverityLOW VulnerabilitySeverity = "LOW"

	// VulnerabilitySeverityNEGLIGIBLE captures enum value "NEGLIGIBLE"
	VulnerabilitySeverityNEGLIGIBLE VulnerabilitySeverity = "NEGLIGIBLE"
)

func NewVulnerabilitySeverity

func NewVulnerabilitySeverity(value VulnerabilitySeverity) *VulnerabilitySeverity

func (VulnerabilitySeverity) ContextValidate

func (m VulnerabilitySeverity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this vulnerability severity based on context it is used

func (VulnerabilitySeverity) Validate

func (m VulnerabilitySeverity) Validate(formats strfmt.Registry) error

Validate validates this vulnerability severity

Jump to

Keyboard shortcuts

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