Documentation
¶
Index ¶
- type APIResponse
- type Application
- type ApplicationContentAnalysis
- func (m *ApplicationContentAnalysis) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ApplicationContentAnalysis) MarshalBinary() ([]byte, error)
- func (m *ApplicationContentAnalysis) UnmarshalBinary(b []byte) error
- func (m *ApplicationContentAnalysis) Validate(formats strfmt.Registry) error
- type ApplicationEx
- type ApplicationInfo
- type ApplicationResource
- type ApplicationResourceEx
- type ApplicationResourcesSortKey
- type ApplicationType
- type ApplicationVulnerabilityScan
- func (m *ApplicationVulnerabilityScan) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ApplicationVulnerabilityScan) MarshalBinary() ([]byte, error)
- func (m *ApplicationVulnerabilityScan) UnmarshalBinary(b []byte) error
- func (m *ApplicationVulnerabilityScan) Validate(formats strfmt.Registry) error
- type ApplicationsSortKey
- type AttackComplexity
- type AttackVector
- type Availability
- type ByDaysScheduleScanConfig
- func (m *ByDaysScheduleScanConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ByDaysScheduleScanConfig) MarshalBinary() ([]byte, error)
- func (m ByDaysScheduleScanConfig) MarshalJSON() ([]byte, error)
- func (m *ByDaysScheduleScanConfig) ScheduleScanConfigType() string
- func (m *ByDaysScheduleScanConfig) SetScheduleScanConfigType(val string)
- func (m *ByDaysScheduleScanConfig) UnmarshalBinary(b []byte) error
- func (m *ByDaysScheduleScanConfig) UnmarshalJSON(raw []byte) error
- func (m *ByDaysScheduleScanConfig) Validate(formats strfmt.Registry) error
- type ByHoursScheduleScanConfig
- func (m *ByHoursScheduleScanConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ByHoursScheduleScanConfig) MarshalBinary() ([]byte, error)
- func (m ByHoursScheduleScanConfig) MarshalJSON() ([]byte, error)
- func (m *ByHoursScheduleScanConfig) ScheduleScanConfigType() string
- func (m *ByHoursScheduleScanConfig) SetScheduleScanConfigType(val string)
- func (m *ByHoursScheduleScanConfig) UnmarshalBinary(b []byte) error
- func (m *ByHoursScheduleScanConfig) UnmarshalJSON(raw []byte) error
- func (m *ByHoursScheduleScanConfig) Validate(formats strfmt.Registry) error
- type CISDockerBenchmarkAssessment
- func (m *CISDockerBenchmarkAssessment) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CISDockerBenchmarkAssessment) MarshalBinary() ([]byte, error)
- func (m *CISDockerBenchmarkAssessment) UnmarshalBinary(b []byte) error
- func (m *CISDockerBenchmarkAssessment) Validate(formats strfmt.Registry) error
- type CISDockerBenchmarkCodeInfo
- func (m *CISDockerBenchmarkCodeInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CISDockerBenchmarkCodeInfo) MarshalBinary() ([]byte, error)
- func (m *CISDockerBenchmarkCodeInfo) UnmarshalBinary(b []byte) error
- func (m *CISDockerBenchmarkCodeInfo) Validate(formats strfmt.Registry) error
- type CISDockerBenchmarkLevel
- type CISDockerBenchmarkLevelCount
- func (m *CISDockerBenchmarkLevelCount) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CISDockerBenchmarkLevelCount) MarshalBinary() ([]byte, error)
- func (m *CISDockerBenchmarkLevelCount) UnmarshalBinary(b []byte) error
- func (m *CISDockerBenchmarkLevelCount) Validate(formats strfmt.Registry) error
- type CISDockerBenchmarkResultsEX
- func (m *CISDockerBenchmarkResultsEX) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CISDockerBenchmarkResultsEX) MarshalBinary() ([]byte, error)
- func (m *CISDockerBenchmarkResultsEX) UnmarshalBinary(b []byte) error
- func (m *CISDockerBenchmarkResultsEX) Validate(formats strfmt.Registry) error
- type CISDockerBenchmarkResultsSortKey
- type CISDockerBenchmarkScanCounters
- func (m *CISDockerBenchmarkScanCounters) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CISDockerBenchmarkScanCounters) MarshalBinary() ([]byte, error)
- func (m *CISDockerBenchmarkScanCounters) UnmarshalBinary(b []byte) error
- func (m *CISDockerBenchmarkScanCounters) Validate(formats strfmt.Registry) error
- type CVSS
- type CVSSV3Metrics
- type CVSSV3Vector
- type Confidentiality
- type DashboardCounters
- type Integrity
- type MostVulnerable
- type Namespace
- type NewVulnerabilitiesTrend
- func (m *NewVulnerabilitiesTrend) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *NewVulnerabilitiesTrend) MarshalBinary() ([]byte, error)
- func (m *NewVulnerabilitiesTrend) UnmarshalBinary(b []byte) error
- func (m *NewVulnerabilitiesTrend) Validate(formats strfmt.Registry) error
- type Package
- type PackageApplicationResources
- func (m *PackageApplicationResources) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PackageApplicationResources) MarshalBinary() ([]byte, error)
- func (m *PackageApplicationResources) UnmarshalBinary(b []byte) error
- func (m *PackageApplicationResources) Validate(formats strfmt.Registry) error
- type PackageContentAnalysis
- func (m *PackageContentAnalysis) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PackageContentAnalysis) MarshalBinary() ([]byte, error)
- func (m *PackageContentAnalysis) UnmarshalBinary(b []byte) error
- func (m *PackageContentAnalysis) Validate(formats strfmt.Registry) error
- type PackageInfo
- type PackageVulnerabilityScan
- func (m *PackageVulnerabilityScan) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PackageVulnerabilityScan) MarshalBinary() ([]byte, error)
- func (m *PackageVulnerabilityScan) UnmarshalBinary(b []byte) error
- func (m *PackageVulnerabilityScan) Validate(formats strfmt.Registry) error
- type PackagesApplicationResourcesSortKey
- type PackagesCountPerLanguage
- func (m *PackagesCountPerLanguage) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PackagesCountPerLanguage) MarshalBinary() ([]byte, error)
- func (m *PackagesCountPerLanguage) UnmarshalBinary(b []byte) error
- func (m *PackagesCountPerLanguage) Validate(formats strfmt.Registry) error
- type PackagesCountPerLicense
- func (m *PackagesCountPerLicense) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PackagesCountPerLicense) MarshalBinary() ([]byte, error)
- func (m *PackagesCountPerLicense) UnmarshalBinary(b []byte) error
- func (m *PackagesCountPerLicense) Validate(formats strfmt.Registry) error
- type PackagesSortKey
- type PrivilegesRequired
- type Progress
- type ResourceContentAnalysis
- func (m *ResourceContentAnalysis) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourceContentAnalysis) MarshalBinary() ([]byte, error)
- func (m *ResourceContentAnalysis) UnmarshalBinary(b []byte) error
- func (m *ResourceContentAnalysis) Validate(formats strfmt.Registry) error
- type ResourceInfo
- type ResourceLayerCommand
- type ResourceType
- type ResourceVulnerabilityScan
- func (m *ResourceVulnerabilityScan) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResourceVulnerabilityScan) MarshalBinary() ([]byte, error)
- func (m *ResourceVulnerabilityScan) UnmarshalBinary(b []byte) error
- func (m *ResourceVulnerabilityScan) Validate(formats strfmt.Registry) error
- type RuntimeQuickScanConfig
- func (m *RuntimeQuickScanConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *RuntimeQuickScanConfig) MarshalBinary() ([]byte, error)
- func (m *RuntimeQuickScanConfig) UnmarshalBinary(b []byte) error
- func (m *RuntimeQuickScanConfig) Validate(formats strfmt.Registry) error
- type RuntimeScanConfig
- type RuntimeScanCounters
- type RuntimeScanFailure
- type RuntimeScanResults
- type RuntimeScanStatus
- type RuntimeScheduleScanConfig
- func (m *RuntimeScheduleScanConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *RuntimeScheduleScanConfig) MarshalBinary() ([]byte, error)
- func (m RuntimeScheduleScanConfig) MarshalJSON() ([]byte, error)
- func (m *RuntimeScheduleScanConfig) ScanConfigType() RuntimeScheduleScanConfigType
- func (m *RuntimeScheduleScanConfig) SetScanConfigType(val RuntimeScheduleScanConfigType)
- func (m *RuntimeScheduleScanConfig) UnmarshalBinary(b []byte) error
- func (m *RuntimeScheduleScanConfig) UnmarshalJSON(raw []byte) error
- func (m *RuntimeScheduleScanConfig) Validate(formats strfmt.Registry) error
- type RuntimeScheduleScanConfigType
- type ScanType
- type Scope
- type SingleScheduleScanConfig
- func (m *SingleScheduleScanConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SingleScheduleScanConfig) MarshalBinary() ([]byte, error)
- func (m SingleScheduleScanConfig) MarshalJSON() ([]byte, error)
- func (m *SingleScheduleScanConfig) ScheduleScanConfigType() string
- func (m *SingleScheduleScanConfig) SetScheduleScanConfigType(val string)
- func (m *SingleScheduleScanConfig) UnmarshalBinary(b []byte) error
- func (m *SingleScheduleScanConfig) UnmarshalJSON(raw []byte) error
- func (m *SingleScheduleScanConfig) Validate(formats strfmt.Registry) error
- type SuccessResponse
- type TimeOfDay
- type UserInteraction
- type VulnerabilitiesSortKey
- type VulnerabilitiesWithFix
- func (m *VulnerabilitiesWithFix) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *VulnerabilitiesWithFix) MarshalBinary() ([]byte, error)
- func (m *VulnerabilitiesWithFix) UnmarshalBinary(b []byte) error
- func (m *VulnerabilitiesWithFix) Validate(formats strfmt.Registry) error
- type Vulnerability
- type VulnerabilityCount
- type VulnerabilityEx
- type VulnerabilitySeverity
- type VulnerabilitySource
- type WeeklyScheduleScanConfig
- func (m *WeeklyScheduleScanConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *WeeklyScheduleScanConfig) MarshalBinary() ([]byte, error)
- func (m WeeklyScheduleScanConfig) MarshalJSON() ([]byte, error)
- func (m *WeeklyScheduleScanConfig) ScheduleScanConfigType() string
- func (m *WeeklyScheduleScanConfig) SetScheduleScanConfigType(val string)
- func (m *WeeklyScheduleScanConfig) UnmarshalBinary(b []byte) error
- func (m *WeeklyScheduleScanConfig) UnmarshalJSON(raw []byte) error
- func (m *WeeklyScheduleScanConfig) Validate(formats strfmt.Registry) error
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 ¶
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
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 ¶
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
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
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 ¶
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
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 ¶
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
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 ¶
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
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 ¶
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
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 NewApplicationResourcesSortKey ¶
func NewApplicationResourcesSortKey(value ApplicationResourcesSortKey) *ApplicationResourcesSortKey
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
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 ¶
ContextValidate validates this application type based on context it is used
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
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 ¶
ContextValidate validates this applications sort key based on context it is used
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 ¶
ContextValidate validates this attack complexity based on context it is used
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 ¶
ContextValidate validates this attack vector based on context it is used
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 ¶
ContextValidate validates this availability based on context it is used
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
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
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
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
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
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
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
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 NewCISDockerBenchmarkResultsSortKey ¶
func NewCISDockerBenchmarkResultsSortKey(value CISDockerBenchmarkResultsSortKey) *CISDockerBenchmarkResultsSortKey
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
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
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 ¶
ContextValidate validate this c v s s based on the context it is used
func (*CVSS) MarshalBinary ¶
MarshalBinary interface implementation
func (*CVSS) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
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 ¶
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
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 ¶
ContextValidate validates this confidentiality based on context it is used
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 ¶
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
type Integrity ¶
type Integrity string
Integrity integrity
swagger:model Integrity
func NewIntegrity ¶
func (Integrity) ContextValidate ¶
ContextValidate validates this integrity based on context it is used
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 ¶
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
type Namespace ¶
type Namespace struct {
// name
Name string `json:"name,omitempty"`
}
Namespace namespace
swagger:model Namespace
func (*Namespace) ContextValidate ¶
ContextValidate validates this namespace based on context it is used
func (*Namespace) MarshalBinary ¶
MarshalBinary interface implementation
func (*Namespace) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
ContextValidate validate this package based on the context it is used
func (*Package) MarshalBinary ¶
MarshalBinary interface implementation
func (*Package) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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 ¶
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
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
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 NewPackagesApplicationResourcesSortKey ¶
func NewPackagesApplicationResourcesSortKey(value PackagesApplicationResourcesSortKey) *PackagesApplicationResourcesSortKey
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
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
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
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 ¶
ContextValidate validates this packages sort key based on context it is used
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 ¶
ContextValidate validates this privileges required based on context it is used
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 ¶
ContextValidate validate this progress based on the context it is used
func (*Progress) MarshalBinary ¶
MarshalBinary interface implementation
func (*Progress) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
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
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 ¶
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
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" // ResourceTypeROOTFS captures enum value "ROOTFS" ResourceTypeROOTFS ResourceType = "ROOTFS" )
func NewResourceType ¶
func NewResourceType(value ResourceType) *ResourceType
func (ResourceType) ContextValidate ¶
ContextValidate validates this resource type based on context it is used
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
type RuntimeQuickScanConfig ¶
type RuntimeQuickScanConfig struct {
// cis docker benchmark scan enabled
CisDockerBenchmarkScanEnabled bool `json:"cisDockerBenchmarkScanEnabled,omitempty"`
// max scan parallelism
// Minimum: 1
MaxScanParallelism int64 `json:"maxScanParallelism,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
type RuntimeScanConfig ¶
type RuntimeScanConfig struct {
// namespaces
Namespaces []string `json:"namespaces"`
}
RuntimeScanConfig runtime scan config
swagger:model RuntimeScanConfig
func (*RuntimeScanConfig) ContextValidate ¶
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
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 ¶
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
type RuntimeScanFailure ¶
type RuntimeScanFailure struct {
// message
Message string `json:"message,omitempty"`
}
RuntimeScanFailure runtime scan failure
swagger:model RuntimeScanFailure
func (*RuntimeScanFailure) ContextValidate ¶
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
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 ¶
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
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 ¶
ContextValidate validate this runtime scan status based on the context it is used
type RuntimeScheduleScanConfig ¶
type RuntimeScheduleScanConfig struct {
// cis docker benchmark scan enabled
CisDockerBenchmarkScanEnabled bool `json:"cisDockerBenchmarkScanEnabled,omitempty"`
// max scan parallelism
// Minimum: 1
MaxScanParallelism int64 `json:"maxScanParallelism,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 ¶
func (m *RuntimeScheduleScanConfig) ScanConfigType() RuntimeScheduleScanConfigType
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
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
func NewScanType ¶
func (ScanType) ContextValidate ¶
ContextValidate validate this scan type based on the context it is used
type Scope ¶
type Scope string
Scope scope
swagger:model Scope
func (Scope) ContextValidate ¶
ContextValidate validates this scope based on context it is used
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
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 ¶
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
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 ¶
ContextValidate validates this time of day based on context it is used
func (*TimeOfDay) MarshalBinary ¶
MarshalBinary interface implementation
func (*TimeOfDay) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
ContextValidate validates this user interaction based on context it is used
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 ¶
ContextValidate validates this vulnerabilities sort key based on context it is used
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
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 ¶
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
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 ¶
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
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 ¶
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
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 ¶
ContextValidate validates this vulnerability severity based on context it is used
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 ¶
ContextValidate validates this vulnerability source based on context it is used
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
Source Files
¶
- api_response.go
- application.go
- application_content_analysis.go
- application_ex.go
- application_info.go
- application_resource.go
- application_resource_ex.go
- application_resources_sort_key.go
- application_type.go
- application_vulnerability_scan.go
- applications_sort_key.go
- attack_complexity.go
- attack_vector.go
- availability.go
- by_days_schedule_scan_config.go
- by_hours_schedule_scan_config.go
- c_i_s_docker_benchmark_assessment.go
- c_i_s_docker_benchmark_code_info.go
- c_i_s_docker_benchmark_level.go
- c_i_s_docker_benchmark_level_count.go
- c_i_s_docker_benchmark_results_e_x.go
- c_i_s_docker_benchmark_results_sort_key.go
- c_i_s_docker_benchmark_scan_counters.go
- c_v_s_s.go
- c_v_s_s_v3_metrics.go
- c_v_s_s_v3_vector.go
- confidentiality.go
- dashboard_counters.go
- integrity.go
- most_vulnerable.go
- namespace.go
- new_vulnerabilities_trend.go
- package.go
- package_application_resources.go
- package_content_analysis.go
- package_info.go
- package_vulnerability_scan.go
- packages_application_resources_sort_key.go
- packages_count_per_language.go
- packages_count_per_license.go
- packages_sort_key.go
- privileges_required.go
- progress.go
- resource_content_analysis.go
- resource_info.go
- resource_layer_command.go
- resource_type.go
- resource_vulnerability_scan.go
- runtime_quick_scan_config.go
- runtime_scan_config.go
- runtime_scan_counters.go
- runtime_scan_failure.go
- runtime_scan_results.go
- runtime_scan_status.go
- runtime_schedule_scan_config.go
- runtime_schedule_scan_config_type.go
- scan_type.go
- scope.go
- single_schedule_scan_config.go
- success_response.go
- time_of_day.go
- user_interaction.go
- vulnerabilities_sort_key.go
- vulnerabilities_with_fix.go
- vulnerability.go
- vulnerability_count.go
- vulnerability_ex.go
- vulnerability_severity.go
- vulnerability_source.go
- weekly_schedule_scan_config.go