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: 11 Imported by: 0

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 Application

type Application struct {

	// application name
	ApplicationName string `json:"applicationName,omitempty"`

	// application resources
	ApplicationResources uint32 `json:"applicationResources,omitempty"`

	// application type
	ApplicationType ApplicationType `json:"applicationType,omitempty"`

	// cis docker benchmark result count per level
	CisDockerBenchmarkResults []*CISDockerBenchmarkLevelCount `json:"cisDockerBenchmarkResults"`

	// environments
	Environments []string `json:"environments"`

	// id
	ID string `json:"id,omitempty"`

	// labels
	Labels []string `json:"labels"`

	// packages
	Packages uint32 `json:"packages,omitempty"`

	// vulnerability count per severity
	Vulnerabilities []*VulnerabilityCount `json:"vulnerabilities"`
}

Application application

swagger:model Application

func (*Application) ContextValidate

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

ContextValidate validate this application based on the context it is used

func (*Application) MarshalBinary

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

MarshalBinary interface implementation

func (*Application) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Application) Validate

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

Validate validates this application

type ApplicationContentAnalysis

type ApplicationContentAnalysis struct {

	// resources
	Resources []*ResourceContentAnalysis `json:"resources"`
}

ApplicationContentAnalysis application content analysis

swagger:model ApplicationContentAnalysis

func (*ApplicationContentAnalysis) ContextValidate

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

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

func (*ApplicationContentAnalysis) MarshalBinary

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

MarshalBinary interface implementation

func (*ApplicationContentAnalysis) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ApplicationContentAnalysis) Validate

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

Validate validates this application content analysis

type ApplicationEx

type ApplicationEx struct {

	// application
	Application *Application `json:"application,omitempty"`

	// licenses
	Licenses []string `json:"licenses"`
}

ApplicationEx application ex

swagger:model ApplicationEx

func (*ApplicationEx) ContextValidate

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

ContextValidate validate this application ex based on the context it is used

func (*ApplicationEx) MarshalBinary

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

MarshalBinary interface implementation

func (*ApplicationEx) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ApplicationEx) Validate

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

Validate validates this application ex

type ApplicationInfo

type ApplicationInfo struct {

	// environments
	Environments []string `json:"environments"`

	// ID of the application as created by the backend.
	ID string `json:"id,omitempty"`

	// labels
	Labels []string `json:"labels"`

	// name
	// Required: true
	Name *string `json:"name"`

	// type
	// Required: true
	Type *ApplicationType `json:"type"`
}

ApplicationInfo application info

swagger:model ApplicationInfo

func (*ApplicationInfo) ContextValidate

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

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

func (*ApplicationInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*ApplicationInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ApplicationInfo) Validate

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

Validate validates this application info

type ApplicationResource

type ApplicationResource struct {

	// applications
	Applications uint32 `json:"applications,omitempty"`

	// cis docker benchmark result count per level
	CisDockerBenchmarkResults []*CISDockerBenchmarkLevelCount `json:"cisDockerBenchmarkResults"`

	// id
	ID string `json:"id,omitempty"`

	// packages
	Packages uint32 `json:"packages,omitempty"`

	// reporting s b o m analyzers
	ReportingSBOMAnalyzers []string `json:"reportingSBOMAnalyzers"`

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

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

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

	// vulnerabilities
	Vulnerabilities []*VulnerabilityCount `json:"vulnerabilities"`
}

ApplicationResource application resource

swagger:model ApplicationResource

func (*ApplicationResource) ContextValidate

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

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

func (*ApplicationResource) MarshalBinary

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

MarshalBinary interface implementation

func (*ApplicationResource) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ApplicationResource) Validate

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

Validate validates this application resource

type ApplicationResourceEx

type ApplicationResourceEx struct {

	// application resource
	ApplicationResource *ApplicationResource `json:"applicationResource,omitempty"`

	// licenses
	Licenses []string `json:"licenses"`
}

ApplicationResourceEx application resource ex

swagger:model ApplicationResourceEx

func (*ApplicationResourceEx) ContextValidate

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

ContextValidate validate this application resource ex based on the context it is used

func (*ApplicationResourceEx) MarshalBinary

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

MarshalBinary interface implementation

func (*ApplicationResourceEx) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ApplicationResourceEx) Validate

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

Validate validates this application resource ex

type ApplicationResourcesSortKey

type ApplicationResourcesSortKey string

ApplicationResourcesSortKey application resources sort key

swagger:model ApplicationResourcesSortKey

const (

	// ApplicationResourcesSortKeyResourceName captures enum value "resourceName"
	ApplicationResourcesSortKeyResourceName ApplicationResourcesSortKey = "resourceName"

	// ApplicationResourcesSortKeyResourceHash captures enum value "resourceHash"
	ApplicationResourcesSortKeyResourceHash ApplicationResourcesSortKey = "resourceHash"

	// ApplicationResourcesSortKeyResourceType captures enum value "resourceType"
	ApplicationResourcesSortKeyResourceType ApplicationResourcesSortKey = "resourceType"

	// ApplicationResourcesSortKeyVulnerabilities captures enum value "vulnerabilities"
	ApplicationResourcesSortKeyVulnerabilities ApplicationResourcesSortKey = "vulnerabilities"

	// ApplicationResourcesSortKeyCisDockerBenchmarkResults captures enum value "cisDockerBenchmarkResults"
	ApplicationResourcesSortKeyCisDockerBenchmarkResults ApplicationResourcesSortKey = "cisDockerBenchmarkResults"

	// ApplicationResourcesSortKeyApplications captures enum value "applications"
	ApplicationResourcesSortKeyApplications ApplicationResourcesSortKey = "applications"

	// ApplicationResourcesSortKeyPackages captures enum value "packages"
	ApplicationResourcesSortKeyPackages ApplicationResourcesSortKey = "packages"
)

func (ApplicationResourcesSortKey) ContextValidate

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

ContextValidate validates this application resources sort key based on context it is used

func (ApplicationResourcesSortKey) Validate

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

Validate validates this application resources sort key

type ApplicationType

type ApplicationType string

ApplicationType application type

swagger:model ApplicationType

const (

	// ApplicationTypePOD captures enum value "POD"
	ApplicationTypePOD ApplicationType = "POD"

	// ApplicationTypeDIRECTORY captures enum value "DIRECTORY"
	ApplicationTypeDIRECTORY ApplicationType = "DIRECTORY"

	// ApplicationTypeLAMBDA captures enum value "LAMBDA"
	ApplicationTypeLAMBDA ApplicationType = "LAMBDA"
)

func NewApplicationType

func NewApplicationType(value ApplicationType) *ApplicationType

func (ApplicationType) ContextValidate

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

ContextValidate validates this application type based on context it is used

func (ApplicationType) Validate

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

Validate validates this application type

type ApplicationVulnerabilityScan

type ApplicationVulnerabilityScan struct {

	// resources
	Resources []*ResourceVulnerabilityScan `json:"resources"`
}

ApplicationVulnerabilityScan application vulnerability scan

swagger:model ApplicationVulnerabilityScan

func (*ApplicationVulnerabilityScan) ContextValidate

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

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

func (*ApplicationVulnerabilityScan) MarshalBinary

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

MarshalBinary interface implementation

func (*ApplicationVulnerabilityScan) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ApplicationVulnerabilityScan) Validate

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

Validate validates this application vulnerability scan

type ApplicationsSortKey

type ApplicationsSortKey string

ApplicationsSortKey applications sort key

swagger:model ApplicationsSortKey

const (

	// ApplicationsSortKeyApplicationName captures enum value "applicationName"
	ApplicationsSortKeyApplicationName ApplicationsSortKey = "applicationName"

	// ApplicationsSortKeyApplicationType captures enum value "applicationType"
	ApplicationsSortKeyApplicationType ApplicationsSortKey = "applicationType"

	// ApplicationsSortKeyVulnerabilities captures enum value "vulnerabilities"
	ApplicationsSortKeyVulnerabilities ApplicationsSortKey = "vulnerabilities"

	// ApplicationsSortKeyCisDockerBenchmarkResults captures enum value "cisDockerBenchmarkResults"
	ApplicationsSortKeyCisDockerBenchmarkResults ApplicationsSortKey = "cisDockerBenchmarkResults"

	// ApplicationsSortKeyApplicationResources captures enum value "applicationResources"
	ApplicationsSortKeyApplicationResources ApplicationsSortKey = "applicationResources"

	// ApplicationsSortKeyPackages captures enum value "packages"
	ApplicationsSortKeyPackages ApplicationsSortKey = "packages"
)

func NewApplicationsSortKey

func NewApplicationsSortKey(value ApplicationsSortKey) *ApplicationsSortKey

func (ApplicationsSortKey) ContextValidate

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

ContextValidate validates this applications sort key based on context it is used

func (ApplicationsSortKey) Validate

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

Validate validates this applications sort key

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 ByDaysScheduleScanConfig

type ByDaysScheduleScanConfig struct {

	// days interval
	// Minimum: 1
	DaysInterval int64 `json:"daysInterval,omitempty"`

	// time of day
	TimeOfDay *TimeOfDay `json:"timeOfDay,omitempty"`
}

ByDaysScheduleScanConfig by days schedule scan config

swagger:model ByDaysScheduleScanConfig

func (*ByDaysScheduleScanConfig) ContextValidate

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

ContextValidate validate this by days schedule scan config based on the context it is used

func (*ByDaysScheduleScanConfig) MarshalBinary

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

MarshalBinary interface implementation

func (ByDaysScheduleScanConfig) MarshalJSON

func (m ByDaysScheduleScanConfig) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*ByDaysScheduleScanConfig) ScheduleScanConfigType

func (m *ByDaysScheduleScanConfig) ScheduleScanConfigType() string

ScheduleScanConfigType gets the schedule scan config type of this subtype

func (*ByDaysScheduleScanConfig) SetScheduleScanConfigType

func (m *ByDaysScheduleScanConfig) SetScheduleScanConfigType(val string)

SetScheduleScanConfigType sets the schedule scan config type of this subtype

func (*ByDaysScheduleScanConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ByDaysScheduleScanConfig) UnmarshalJSON

func (m *ByDaysScheduleScanConfig) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*ByDaysScheduleScanConfig) Validate

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

Validate validates this by days schedule scan config

type ByHoursScheduleScanConfig

type ByHoursScheduleScanConfig struct {

	// hours interval
	// Minimum: 1
	HoursInterval int64 `json:"hoursInterval,omitempty"`
}

ByHoursScheduleScanConfig by hours schedule scan config

swagger:model ByHoursScheduleScanConfig

func (*ByHoursScheduleScanConfig) ContextValidate

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

ContextValidate validate this by hours schedule scan config based on the context it is used

func (*ByHoursScheduleScanConfig) MarshalBinary

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

MarshalBinary interface implementation

func (ByHoursScheduleScanConfig) MarshalJSON

func (m ByHoursScheduleScanConfig) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*ByHoursScheduleScanConfig) ScheduleScanConfigType

func (m *ByHoursScheduleScanConfig) ScheduleScanConfigType() string

ScheduleScanConfigType gets the schedule scan config type of this subtype

func (*ByHoursScheduleScanConfig) SetScheduleScanConfigType

func (m *ByHoursScheduleScanConfig) SetScheduleScanConfigType(val string)

SetScheduleScanConfigType sets the schedule scan config type of this subtype

func (*ByHoursScheduleScanConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ByHoursScheduleScanConfig) UnmarshalJSON

func (m *ByHoursScheduleScanConfig) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*ByHoursScheduleScanConfig) Validate

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

Validate validates this by hours schedule scan config

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 CISDockerBenchmarkLevel

type CISDockerBenchmarkLevel string

CISDockerBenchmarkLevel c i s docker benchmark level

swagger:model CISDockerBenchmarkLevel

const (

	// CISDockerBenchmarkLevelINFO captures enum value "INFO"
	CISDockerBenchmarkLevelINFO CISDockerBenchmarkLevel = "INFO"

	// CISDockerBenchmarkLevelWARN captures enum value "WARN"
	CISDockerBenchmarkLevelWARN CISDockerBenchmarkLevel = "WARN"

	// CISDockerBenchmarkLevelFATAL captures enum value "FATAL"
	CISDockerBenchmarkLevelFATAL CISDockerBenchmarkLevel = "FATAL"
)

func NewCISDockerBenchmarkLevel

func NewCISDockerBenchmarkLevel(value CISDockerBenchmarkLevel) *CISDockerBenchmarkLevel

func (CISDockerBenchmarkLevel) ContextValidate

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

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

func (CISDockerBenchmarkLevel) Validate

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

Validate validates this c i s docker benchmark level

type CISDockerBenchmarkLevelCount

type CISDockerBenchmarkLevelCount struct {

	// count
	Count uint32 `json:"count,omitempty"`

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

CISDockerBenchmarkLevelCount c i s docker benchmark level count

swagger:model CISDockerBenchmarkLevelCount

func (*CISDockerBenchmarkLevelCount) ContextValidate

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

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

func (*CISDockerBenchmarkLevelCount) MarshalBinary

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

MarshalBinary interface implementation

func (*CISDockerBenchmarkLevelCount) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CISDockerBenchmarkLevelCount) Validate

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

Validate validates this c i s docker benchmark level count

type CISDockerBenchmarkResultsEX

type CISDockerBenchmarkResultsEX struct {

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

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

	// level
	Level CISDockerBenchmarkLevel `json:"level,omitempty"`

	// title
	Title string `json:"title,omitempty"`
}

CISDockerBenchmarkResultsEX c i s docker benchmark results e x

swagger:model CISDockerBenchmarkResultsEX

func (*CISDockerBenchmarkResultsEX) ContextValidate

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

ContextValidate validate this c i s docker benchmark results e x based on the context it is used

func (*CISDockerBenchmarkResultsEX) MarshalBinary

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

MarshalBinary interface implementation

func (*CISDockerBenchmarkResultsEX) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CISDockerBenchmarkResultsEX) Validate

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

Validate validates this c i s docker benchmark results e x

type CISDockerBenchmarkResultsSortKey

type CISDockerBenchmarkResultsSortKey string

CISDockerBenchmarkResultsSortKey c i s docker benchmark results sort key

swagger:model CISDockerBenchmarkResultsSortKey

const (

	// CISDockerBenchmarkResultsSortKeyCode captures enum value "code"
	CISDockerBenchmarkResultsSortKeyCode CISDockerBenchmarkResultsSortKey = "code"

	// CISDockerBenchmarkResultsSortKeyLevel captures enum value "level"
	CISDockerBenchmarkResultsSortKeyLevel CISDockerBenchmarkResultsSortKey = "level"
)

func (CISDockerBenchmarkResultsSortKey) ContextValidate

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

ContextValidate validates this c i s docker benchmark results sort key based on context it is used

func (CISDockerBenchmarkResultsSortKey) Validate

Validate validates this c i s docker benchmark results sort key

type CISDockerBenchmarkScanCounters

type CISDockerBenchmarkScanCounters struct {

	// applications
	Applications uint32 `json:"applications,omitempty"`

	// resources
	Resources uint32 `json:"resources,omitempty"`
}

CISDockerBenchmarkScanCounters c i s docker benchmark scan counters

swagger:model CISDockerBenchmarkScanCounters

func (*CISDockerBenchmarkScanCounters) ContextValidate

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

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

func (*CISDockerBenchmarkScanCounters) MarshalBinary

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

MarshalBinary interface implementation

func (*CISDockerBenchmarkScanCounters) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CISDockerBenchmarkScanCounters) Validate

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

Validate validates this c i s docker benchmark scan counters

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"`

	// severity
	Severity VulnerabilitySeverity `json:"severity,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 validate this c v s s v3 metrics based on the 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 DashboardCounters

type DashboardCounters struct {

	// applications
	Applications uint32 `json:"applications,omitempty"`

	// packages
	Packages uint32 `json:"packages,omitempty"`

	// resources
	Resources uint32 `json:"resources,omitempty"`
}

DashboardCounters dashboard counters

swagger:model DashboardCounters

func (*DashboardCounters) ContextValidate

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

ContextValidate validates this dashboard counters based on context it is used

func (*DashboardCounters) MarshalBinary

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

MarshalBinary interface implementation

func (*DashboardCounters) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DashboardCounters) Validate

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

Validate validates this dashboard counters

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 MostVulnerable

type MostVulnerable struct {

	// applications
	Applications []*Application `json:"applications"`

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

	// resources
	Resources []*ApplicationResource `json:"resources"`
}

MostVulnerable most vulnerable

swagger:model MostVulnerable

func (*MostVulnerable) ContextValidate

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

ContextValidate validate this most vulnerable based on the context it is used

func (*MostVulnerable) MarshalBinary

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

MarshalBinary interface implementation

func (*MostVulnerable) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MostVulnerable) Validate

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

Validate validates this most vulnerable

type Namespace

type Namespace struct {

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

Namespace namespace

swagger:model Namespace

func (*Namespace) ContextValidate

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

ContextValidate validates this namespace based on context it is used

func (*Namespace) MarshalBinary

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

MarshalBinary interface implementation

func (*Namespace) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Namespace) Validate

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

Validate validates this namespace

type NewVulnerabilitiesTrend

type NewVulnerabilitiesTrend struct {

	// num of vuls
	NumOfVuls []*VulnerabilityCount `json:"numOfVuls"`

	// time
	// Format: date-time
	Time strfmt.DateTime `json:"time,omitempty"`
}

NewVulnerabilitiesTrend new vulnerabilities trend

swagger:model NewVulnerabilitiesTrend

func (*NewVulnerabilitiesTrend) ContextValidate

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

ContextValidate validate this new vulnerabilities trend based on the context it is used

func (*NewVulnerabilitiesTrend) MarshalBinary

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

MarshalBinary interface implementation

func (*NewVulnerabilitiesTrend) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NewVulnerabilitiesTrend) Validate

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

Validate validates this new vulnerabilities trend

type Package

type Package struct {

	// application resources
	ApplicationResources uint32 `json:"applicationResources,omitempty"`

	// applications
	Applications uint32 `json:"applications,omitempty"`

	// id
	ID string `json:"id,omitempty"`

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

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

	// package name
	PackageName string `json:"packageName,omitempty"`

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

	// vulnerabilities
	Vulnerabilities []*VulnerabilityCount `json:"vulnerabilities"`
}

Package package

swagger:model Package

func (*Package) ContextValidate

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

ContextValidate validate this package based on the context it is used

func (*Package) MarshalBinary

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

MarshalBinary interface implementation

func (*Package) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Package) Validate

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

Validate validates this package

type PackageApplicationResources

type PackageApplicationResources struct {

	// package ID
	PackageID string `json:"packageID,omitempty"`

	// reporting s b o m analyzers
	ReportingSBOMAnalyzers []string `json:"reportingSBOMAnalyzers"`

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

	// resource ID
	ResourceID string `json:"resourceID,omitempty"`

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

PackageApplicationResources package application resources

swagger:model PackageApplicationResources

func (*PackageApplicationResources) ContextValidate

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

ContextValidate validates this package application resources based on context it is used

func (*PackageApplicationResources) MarshalBinary

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

MarshalBinary interface implementation

func (*PackageApplicationResources) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PackageApplicationResources) Validate

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

Validate validates this package application resources

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 PackagesApplicationResourcesSortKey

type PackagesApplicationResourcesSortKey string

PackagesApplicationResourcesSortKey packages application resources sort key

swagger:model PackagesApplicationResourcesSortKey

const (

	// PackagesApplicationResourcesSortKeyResourceName captures enum value "resourceName"
	PackagesApplicationResourcesSortKeyResourceName PackagesApplicationResourcesSortKey = "resourceName"

	// PackagesApplicationResourcesSortKeyResourceHash captures enum value "resourceHash"
	PackagesApplicationResourcesSortKeyResourceHash PackagesApplicationResourcesSortKey = "resourceHash"
)

func (PackagesApplicationResourcesSortKey) ContextValidate

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

ContextValidate validates this packages application resources sort key based on context it is used

func (PackagesApplicationResourcesSortKey) Validate

Validate validates this packages application resources sort key

type PackagesCountPerLanguage

type PackagesCountPerLanguage struct {

	// count
	Count uint32 `json:"count,omitempty"`

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

PackagesCountPerLanguage packages count per language

swagger:model PackagesCountPerLanguage

func (*PackagesCountPerLanguage) ContextValidate

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

ContextValidate validates this packages count per language based on context it is used

func (*PackagesCountPerLanguage) MarshalBinary

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

MarshalBinary interface implementation

func (*PackagesCountPerLanguage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PackagesCountPerLanguage) Validate

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

Validate validates this packages count per language

type PackagesCountPerLicense

type PackagesCountPerLicense struct {

	// count
	Count uint32 `json:"count,omitempty"`

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

PackagesCountPerLicense packages count per license

swagger:model PackagesCountPerLicense

func (*PackagesCountPerLicense) ContextValidate

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

ContextValidate validates this packages count per license based on context it is used

func (*PackagesCountPerLicense) MarshalBinary

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

MarshalBinary interface implementation

func (*PackagesCountPerLicense) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PackagesCountPerLicense) Validate

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

Validate validates this packages count per license

type PackagesSortKey

type PackagesSortKey string

PackagesSortKey packages sort key

swagger:model PackagesSortKey

const (

	// PackagesSortKeyPackageName captures enum value "packageName"
	PackagesSortKeyPackageName PackagesSortKey = "packageName"

	// PackagesSortKeyApplications captures enum value "applications"
	PackagesSortKeyApplications PackagesSortKey = "applications"

	// PackagesSortKeyApplicationResources captures enum value "applicationResources"
	PackagesSortKeyApplicationResources PackagesSortKey = "applicationResources"

	// PackagesSortKeyLanguage captures enum value "language"
	PackagesSortKeyLanguage PackagesSortKey = "language"

	// PackagesSortKeyVulnerabilities captures enum value "vulnerabilities"
	PackagesSortKeyVulnerabilities PackagesSortKey = "vulnerabilities"

	// PackagesSortKeyVersion captures enum value "version"
	PackagesSortKeyVersion PackagesSortKey = "version"

	// PackagesSortKeyLicense captures enum value "license"
	PackagesSortKeyLicense PackagesSortKey = "license"
)

func NewPackagesSortKey

func NewPackagesSortKey(value PackagesSortKey) *PackagesSortKey

func (PackagesSortKey) ContextValidate

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

ContextValidate validates this packages sort key based on context it is used

func (PackagesSortKey) Validate

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

Validate validates this packages sort key

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 Progress

type Progress struct {

	// scan type
	ScanType ScanType `json:"scanType,omitempty"`

	// Percentage of scanned images from total images (0-100)
	// Minimum: 0
	Scanned *int64 `json:"scanned,omitempty"`

	// scanned namespaces
	ScannedNamespaces []string `json:"scannedNamespaces"`

	// start time
	// Format: date-time
	StartTime strfmt.DateTime `json:"startTime,omitempty"`

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

Progress progress

swagger:model Progress

func (*Progress) ContextValidate

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

ContextValidate validate this progress based on the context it is used

func (*Progress) MarshalBinary

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

MarshalBinary interface implementation

func (*Progress) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Progress) Validate

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

Validate validates this progress

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 {

	// cis docker benchmark results
	CisDockerBenchmarkResults []*CISDockerBenchmarkCodeInfo `json:"cisDockerBenchmarkResults"`

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

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

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

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 RuntimeQuickScanConfig

type RuntimeQuickScanConfig struct {

	// cis docker benchmark scan enabled
	CisDockerBenchmarkScanEnabled bool `json:"cisDockerBenchmarkScanEnabled,omitempty"`
}

RuntimeQuickScanConfig Runtime quick scan configuration

swagger:model RuntimeQuickScanConfig

func (*RuntimeQuickScanConfig) ContextValidate

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

ContextValidate validates this runtime quick scan config based on context it is used

func (*RuntimeQuickScanConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*RuntimeQuickScanConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RuntimeQuickScanConfig) Validate

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

Validate validates this runtime quick scan config

type RuntimeScanConfig

type RuntimeScanConfig struct {

	// namespaces
	Namespaces []string `json:"namespaces"`
}

RuntimeScanConfig runtime scan config

swagger:model RuntimeScanConfig

func (*RuntimeScanConfig) ContextValidate

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

ContextValidate validates this runtime scan config based on context it is used

func (*RuntimeScanConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*RuntimeScanConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RuntimeScanConfig) Validate

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

Validate validates this runtime scan config

type RuntimeScanCounters

type RuntimeScanCounters struct {

	// applications
	Applications uint32 `json:"applications,omitempty"`

	// packages
	Packages uint32 `json:"packages,omitempty"`

	// resources
	Resources uint32 `json:"resources,omitempty"`

	// vulnerabilities
	Vulnerabilities uint32 `json:"vulnerabilities,omitempty"`
}

RuntimeScanCounters runtime scan counters

swagger:model RuntimeScanCounters

func (*RuntimeScanCounters) ContextValidate

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

ContextValidate validates this runtime scan counters based on context it is used

func (*RuntimeScanCounters) MarshalBinary

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

MarshalBinary interface implementation

func (*RuntimeScanCounters) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RuntimeScanCounters) Validate

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

Validate validates this runtime scan counters

type RuntimeScanFailure

type RuntimeScanFailure struct {

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

RuntimeScanFailure runtime scan failure

swagger:model RuntimeScanFailure

func (*RuntimeScanFailure) ContextValidate

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

ContextValidate validates this runtime scan failure based on context it is used

func (*RuntimeScanFailure) MarshalBinary

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

MarshalBinary interface implementation

func (*RuntimeScanFailure) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RuntimeScanFailure) Validate

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

Validate validates this runtime scan failure

type RuntimeScanResults

type RuntimeScanResults struct {

	// cis docker benchmark count per level
	CisDockerBenchmarkCountPerLevel []*CISDockerBenchmarkLevelCount `json:"cisDockerBenchmarkCountPerLevel"`

	// cis docker benchmark counters
	CisDockerBenchmarkCounters *CISDockerBenchmarkScanCounters `json:"cisDockerBenchmarkCounters,omitempty"`

	// Indicates whether CIS docker benchmark scan was enabled
	CisDockerBenchmarkScanEnabled bool `json:"cisDockerBenchmarkScanEnabled,omitempty"`

	// counters
	Counters *RuntimeScanCounters `json:"counters,omitempty"`

	// end time
	// Format: date-time
	EndTime strfmt.DateTime `json:"endTime,omitempty"`

	// failures
	Failures []*RuntimeScanFailure `json:"failures"`

	// vulnerability per severity
	VulnerabilityPerSeverity []*VulnerabilityCount `json:"vulnerabilityPerSeverity"`
}

RuntimeScanResults runtime scan results

swagger:model RuntimeScanResults

func (*RuntimeScanResults) ContextValidate

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

ContextValidate validate this runtime scan results based on the context it is used

func (*RuntimeScanResults) MarshalBinary

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

MarshalBinary interface implementation

func (*RuntimeScanResults) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RuntimeScanResults) Validate

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

Validate validates this runtime scan results

type RuntimeScanStatus

type RuntimeScanStatus string

RuntimeScanStatus Status of a runtime scan

swagger:model RuntimeScanStatus

const (

	// RuntimeScanStatusNOTSTARTED captures enum value "NOT_STARTED"
	RuntimeScanStatusNOTSTARTED RuntimeScanStatus = "NOT_STARTED"

	// RuntimeScanStatusINPROGRESS captures enum value "IN_PROGRESS"
	RuntimeScanStatusINPROGRESS RuntimeScanStatus = "IN_PROGRESS"

	// RuntimeScanStatusFINALIZING captures enum value "FINALIZING"
	RuntimeScanStatusFINALIZING RuntimeScanStatus = "FINALIZING"

	// RuntimeScanStatusDONE captures enum value "DONE"
	RuntimeScanStatusDONE RuntimeScanStatus = "DONE"
)

func NewRuntimeScanStatus

func NewRuntimeScanStatus(value RuntimeScanStatus) *RuntimeScanStatus

func (RuntimeScanStatus) ContextValidate

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

ContextValidate validate this runtime scan status based on the context it is used

func (RuntimeScanStatus) Validate

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

Validate validates this runtime scan status

type RuntimeScheduleScanConfig

type RuntimeScheduleScanConfig struct {

	// cis docker benchmark scan enabled
	CisDockerBenchmarkScanEnabled bool `json:"cisDockerBenchmarkScanEnabled,omitempty"`

	// namespaces
	Namespaces []string `json:"namespaces"`
	// contains filtered or unexported fields
}

RuntimeScheduleScanConfig Scheduled runtime scan configuration

swagger:model RuntimeScheduleScanConfig

func (*RuntimeScheduleScanConfig) ContextValidate

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

ContextValidate validate this runtime schedule scan config based on the context it is used

func (*RuntimeScheduleScanConfig) MarshalBinary

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

MarshalBinary interface implementation

func (RuntimeScheduleScanConfig) MarshalJSON

func (m RuntimeScheduleScanConfig) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*RuntimeScheduleScanConfig) ScanConfigType

ScanConfigType gets the scan config type of this base type

func (*RuntimeScheduleScanConfig) SetScanConfigType

func (m *RuntimeScheduleScanConfig) SetScanConfigType(val RuntimeScheduleScanConfigType)

SetScanConfigType sets the scan config type of this base type

func (*RuntimeScheduleScanConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RuntimeScheduleScanConfig) UnmarshalJSON

func (m *RuntimeScheduleScanConfig) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*RuntimeScheduleScanConfig) Validate

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

Validate validates this runtime schedule scan config

type RuntimeScheduleScanConfigType

type RuntimeScheduleScanConfigType interface {
	runtime.Validatable
	runtime.ContextValidatable

	// schedule scan config type
	// Enum: [SingleScheduleScanConfig ByHoursScheduleScanConfig ByDaysScheduleScanConfig WeeklyScheduleScanConfig]
	ScheduleScanConfigType() string
	SetScheduleScanConfigType(string)
}

RuntimeScheduleScanConfigType runtime schedule scan config type

swagger:discriminator RuntimeScheduleScanConfigType ScheduleScanConfigType

func UnmarshalRuntimeScheduleScanConfigType

func UnmarshalRuntimeScheduleScanConfigType(reader io.Reader, consumer runtime.Consumer) (RuntimeScheduleScanConfigType, error)

UnmarshalRuntimeScheduleScanConfigType unmarshals polymorphic RuntimeScheduleScanConfigType

func UnmarshalRuntimeScheduleScanConfigTypeSlice

func UnmarshalRuntimeScheduleScanConfigTypeSlice(reader io.Reader, consumer runtime.Consumer) ([]RuntimeScheduleScanConfigType, error)

UnmarshalRuntimeScheduleScanConfigTypeSlice unmarshals polymorphic slices of RuntimeScheduleScanConfigType

type ScanType

type ScanType string

ScanType scan type

swagger:model ScanType

const (

	// ScanTypeQUICK captures enum value "QUICK"
	ScanTypeQUICK ScanType = "QUICK"

	// ScanTypeSCHEDULE captures enum value "SCHEDULE"
	ScanTypeSCHEDULE ScanType = "SCHEDULE"
)

func NewScanType

func NewScanType(value ScanType) *ScanType

func (ScanType) ContextValidate

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

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

func (ScanType) Validate

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

Validate validates this scan type

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 SingleScheduleScanConfig

type SingleScheduleScanConfig struct {

	// operation time
	// Required: true
	// Format: date-time
	OperationTime *strfmt.DateTime `json:"operationTime"`
}

SingleScheduleScanConfig single schedule scan config

swagger:model SingleScheduleScanConfig

func (*SingleScheduleScanConfig) ContextValidate

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

ContextValidate validate this single schedule scan config based on the context it is used

func (*SingleScheduleScanConfig) MarshalBinary

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

MarshalBinary interface implementation

func (SingleScheduleScanConfig) MarshalJSON

func (m SingleScheduleScanConfig) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*SingleScheduleScanConfig) ScheduleScanConfigType

func (m *SingleScheduleScanConfig) ScheduleScanConfigType() string

ScheduleScanConfigType gets the schedule scan config type of this subtype

func (*SingleScheduleScanConfig) SetScheduleScanConfigType

func (m *SingleScheduleScanConfig) SetScheduleScanConfigType(val string)

SetScheduleScanConfigType sets the schedule scan config type of this subtype

func (*SingleScheduleScanConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SingleScheduleScanConfig) UnmarshalJSON

func (m *SingleScheduleScanConfig) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*SingleScheduleScanConfig) Validate

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

Validate validates this single schedule scan config

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 TimeOfDay

type TimeOfDay struct {

	// hour
	// Maximum: 23
	// Minimum: 0
	Hour *int64 `json:"hour,omitempty"`

	// minute
	// Maximum: 59
	// Minimum: 0
	Minute *int64 `json:"minute,omitempty"`
}

TimeOfDay time of day

swagger:model TimeOfDay

func (*TimeOfDay) ContextValidate

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

ContextValidate validates this time of day based on context it is used

func (*TimeOfDay) MarshalBinary

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

MarshalBinary interface implementation

func (*TimeOfDay) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TimeOfDay) Validate

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

Validate validates this time of day

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 VulnerabilitiesSortKey

type VulnerabilitiesSortKey string

VulnerabilitiesSortKey vulnerabilities sort key

swagger:model VulnerabilitiesSortKey

const (

	// VulnerabilitiesSortKeyVulnerabilityName captures enum value "vulnerabilityName"
	VulnerabilitiesSortKeyVulnerabilityName VulnerabilitiesSortKey = "vulnerabilityName"

	// VulnerabilitiesSortKeyPackageName captures enum value "packageName"
	VulnerabilitiesSortKeyPackageName VulnerabilitiesSortKey = "packageName"

	// VulnerabilitiesSortKeyPackageVersion captures enum value "packageVersion"
	VulnerabilitiesSortKeyPackageVersion VulnerabilitiesSortKey = "packageVersion"

	// VulnerabilitiesSortKeySeverity captures enum value "severity"
	VulnerabilitiesSortKeySeverity VulnerabilitiesSortKey = "severity"

	// VulnerabilitiesSortKeyApplications captures enum value "applications"
	VulnerabilitiesSortKeyApplications VulnerabilitiesSortKey = "applications"

	// VulnerabilitiesSortKeyApplicationResources captures enum value "applicationResources"
	VulnerabilitiesSortKeyApplicationResources VulnerabilitiesSortKey = "applicationResources"

	// VulnerabilitiesSortKeyFixVersion captures enum value "fixVersion"
	VulnerabilitiesSortKeyFixVersion VulnerabilitiesSortKey = "fixVersion"

	// VulnerabilitiesSortKeySource captures enum value "source"
	VulnerabilitiesSortKeySource VulnerabilitiesSortKey = "source"
)

func NewVulnerabilitiesSortKey

func NewVulnerabilitiesSortKey(value VulnerabilitiesSortKey) *VulnerabilitiesSortKey

func (VulnerabilitiesSortKey) ContextValidate

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

ContextValidate validates this vulnerabilities sort key based on context it is used

func (VulnerabilitiesSortKey) Validate

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

Validate validates this vulnerabilities sort key

type VulnerabilitiesWithFix

type VulnerabilitiesWithFix struct {

	// count total
	CountTotal uint32 `json:"countTotal,omitempty"`

	// count with fix
	CountWithFix uint32 `json:"countWithFix,omitempty"`

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

VulnerabilitiesWithFix Vulnerabilities count per severity (with fix and total).

swagger:model VulnerabilitiesWithFix

func (*VulnerabilitiesWithFix) ContextValidate

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

ContextValidate validate this vulnerabilities with fix based on the context it is used

func (*VulnerabilitiesWithFix) MarshalBinary

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

MarshalBinary interface implementation

func (*VulnerabilitiesWithFix) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*VulnerabilitiesWithFix) Validate

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

Validate validates this vulnerabilities with fix

type Vulnerability

type Vulnerability struct {

	// application resources
	ApplicationResources uint32 `json:"applicationResources,omitempty"`

	// applications
	Applications uint32 `json:"applications,omitempty"`

	// cvss base score
	CvssBaseScore float64 `json:"cvssBaseScore,omitempty"`

	// cvss severity
	CvssSeverity VulnerabilitySeverity `json:"cvssSeverity,omitempty"`

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

	// Unique ID for the vulnerabilityID and packageID combination.
	ID string `json:"id,omitempty"`

	// package ID
	PackageID string `json:"packageID,omitempty"`

	// package name
	PackageName string `json:"packageName,omitempty"`

	// package version
	PackageVersion string `json:"packageVersion,omitempty"`

	// reporting scanners
	ReportingScanners []string `json:"reportingScanners"`

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

	// source
	Source VulnerabilitySource `json:"source,omitempty"`

	// vulnerability ID
	VulnerabilityID string `json:"vulnerabilityID,omitempty"`

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

Vulnerability vulnerability

swagger:model Vulnerability

func (*Vulnerability) ContextValidate

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

ContextValidate validate this vulnerability based on the context it is used

func (*Vulnerability) MarshalBinary

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

MarshalBinary interface implementation

func (*Vulnerability) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Vulnerability) Validate

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

Validate validates this vulnerability

type VulnerabilityCount

type VulnerabilityCount struct {

	// count
	Count uint32 `json:"count,omitempty"`

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

VulnerabilityCount vulnerability count

swagger:model VulnerabilityCount

func (*VulnerabilityCount) ContextValidate

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

ContextValidate validate this vulnerability count based on the context it is used

func (*VulnerabilityCount) MarshalBinary

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

MarshalBinary interface implementation

func (*VulnerabilityCount) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*VulnerabilityCount) Validate

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

Validate validates this vulnerability count

type VulnerabilityEx

type VulnerabilityEx struct {

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

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

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

	// scan date
	// Format: date-time
	ScanDate strfmt.DateTime `json:"scanDate,omitempty"`

	// vulnerability
	Vulnerability *Vulnerability `json:"vulnerability,omitempty"`
}

VulnerabilityEx vulnerability ex

swagger:model VulnerabilityEx

func (*VulnerabilityEx) ContextValidate

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

ContextValidate validate this vulnerability ex based on the context it is used

func (*VulnerabilityEx) MarshalBinary

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

MarshalBinary interface implementation

func (*VulnerabilityEx) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*VulnerabilityEx) Validate

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

Validate validates this vulnerability ex

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

type VulnerabilitySource

type VulnerabilitySource string

VulnerabilitySource vulnerability source

swagger:model VulnerabilitySource

const (

	// VulnerabilitySourceCICD captures enum value "CICD"
	VulnerabilitySourceCICD VulnerabilitySource = "CICD"

	// VulnerabilitySourceRUNTIME captures enum value "RUNTIME"
	VulnerabilitySourceRUNTIME VulnerabilitySource = "RUNTIME"
)

func NewVulnerabilitySource

func NewVulnerabilitySource(value VulnerabilitySource) *VulnerabilitySource

func (VulnerabilitySource) ContextValidate

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

ContextValidate validates this vulnerability source based on context it is used

func (VulnerabilitySource) Validate

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

Validate validates this vulnerability source

type WeeklyScheduleScanConfig

type WeeklyScheduleScanConfig struct {

	// 1 - 7 which represents sun- sat
	// Maximum: 7
	// Minimum: 1
	DayInWeek int64 `json:"dayInWeek,omitempty"`

	// time of day
	TimeOfDay *TimeOfDay `json:"timeOfDay,omitempty"`
}

WeeklyScheduleScanConfig weekly schedule scan config

swagger:model WeeklyScheduleScanConfig

func (*WeeklyScheduleScanConfig) ContextValidate

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

ContextValidate validate this weekly schedule scan config based on the context it is used

func (*WeeklyScheduleScanConfig) MarshalBinary

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

MarshalBinary interface implementation

func (WeeklyScheduleScanConfig) MarshalJSON

func (m WeeklyScheduleScanConfig) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*WeeklyScheduleScanConfig) ScheduleScanConfigType

func (m *WeeklyScheduleScanConfig) ScheduleScanConfigType() string

ScheduleScanConfigType gets the schedule scan config type of this subtype

func (*WeeklyScheduleScanConfig) SetScheduleScanConfigType

func (m *WeeklyScheduleScanConfig) SetScheduleScanConfigType(val string)

SetScheduleScanConfigType sets the schedule scan config type of this subtype

func (*WeeklyScheduleScanConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*WeeklyScheduleScanConfig) UnmarshalJSON

func (m *WeeklyScheduleScanConfig) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*WeeklyScheduleScanConfig) Validate

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

Validate validates this weekly schedule scan config

Source Files

Jump to

Keyboard shortcuts

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