Documentation
¶
Index ¶
- Constants
- type APIEndpoint
- type APIEndpointScoreGrade
- type APIOrConditionsBase
- type APIPolicyProfile
- type APIPolicyProfileCondition
- func (m *APIPolicyProfileCondition) APIOrConditions() []APIOrConditionsBase
- func (m *APIPolicyProfileCondition) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *APIPolicyProfileCondition) EndpointOrConditions() []EndpointOrConditionsBase
- func (m *APIPolicyProfileCondition) MarshalBinary() ([]byte, error)
- func (m APIPolicyProfileCondition) MarshalJSON() ([]byte, error)
- func (m *APIPolicyProfileCondition) ProviderOrConditions() []ProviderOrConditionsBase
- func (m *APIPolicyProfileCondition) SetAPIOrConditions(val []APIOrConditionsBase)
- func (m *APIPolicyProfileCondition) SetEndpointOrConditions(val []EndpointOrConditionsBase)
- func (m *APIPolicyProfileCondition) SetProviderOrConditions(val []ProviderOrConditionsBase)
- func (m *APIPolicyProfileCondition) UnmarshalBinary(b []byte) error
- func (m *APIPolicyProfileCondition) UnmarshalJSON(raw []byte) error
- func (m *APIPolicyProfileCondition) Validate(formats strfmt.Registry) error
- type APIProviderBase
- type APIProviderScoreGrade
- type APISecurityAPI
- type APISecurityAPIStatus
- type APISecurityRiskSeverity
- type APIServiceBase
- type APIServiceClientWorkload
- func (m *APIServiceClientWorkload) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *APIServiceClientWorkload) MarshalBinary() ([]byte, error)
- func (m *APIServiceClientWorkload) UnmarshalBinary(b []byte) error
- func (m *APIServiceClientWorkload) Validate(formats strfmt.Registry) error
- type APIServiceCompliance
- type APIServiceComplianceSimple
- func (m *APIServiceComplianceSimple) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *APIServiceComplianceSimple) MarshalBinary() ([]byte, error)
- func (m *APIServiceComplianceSimple) UnmarshalBinary(b []byte) error
- func (m *APIServiceComplianceSimple) Validate(formats strfmt.Registry) error
- type APIServiceDrillDownBase
- func (m *APIServiceDrillDownBase) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *APIServiceDrillDownBase) MarshalBinary() ([]byte, error)
- func (m *APIServiceDrillDownBase) UnmarshalBinary(b []byte) error
- func (m *APIServiceDrillDownBase) Validate(formats strfmt.Registry) error
- type APIServiceDrillDownExternal
- func (m *APIServiceDrillDownExternal) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *APIServiceDrillDownExternal) MarshalBinary() ([]byte, error)
- func (m APIServiceDrillDownExternal) MarshalJSON() ([]byte, error)
- func (m *APIServiceDrillDownExternal) UnmarshalBinary(b []byte) error
- func (m *APIServiceDrillDownExternal) UnmarshalJSON(raw []byte) error
- func (m *APIServiceDrillDownExternal) Validate(formats strfmt.Registry) error
- type APIServiceExternal
- func (m *APIServiceExternal) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *APIServiceExternal) MarshalBinary() ([]byte, error)
- func (m APIServiceExternal) MarshalJSON() ([]byte, error)
- func (m *APIServiceExternal) UnmarshalBinary(b []byte) error
- func (m *APIServiceExternal) UnmarshalJSON(raw []byte) error
- func (m *APIServiceExternal) Validate(formats strfmt.Registry) error
- type APIServiceListExternal
- func (m *APIServiceListExternal) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *APIServiceListExternal) MarshalBinary() ([]byte, error)
- func (m *APIServiceListExternal) UnmarshalBinary(b []byte) error
- func (m *APIServiceListExternal) Validate(formats strfmt.Registry) error
- type APIServiceProfileCompliance
- func (m *APIServiceProfileCompliance) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *APIServiceProfileCompliance) MarshalBinary() ([]byte, error)
- func (m *APIServiceProfileCompliance) UnmarshalBinary(b []byte) error
- func (m *APIServiceProfileCompliance) Validate(formats strfmt.Registry) error
- type APIServiceProfileComplianceSimple
- func (m *APIServiceProfileComplianceSimple) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *APIServiceProfileComplianceSimple) MarshalBinary() ([]byte, error)
- func (m *APIServiceProfileComplianceSimple) UnmarshalBinary(b []byte) error
- func (m *APIServiceProfileComplianceSimple) Validate(formats strfmt.Registry) error
- type APIServiceScore
- type APIServiceScoreGrade
- type AdditionalInfo
- type CategoryScoreGrade
- type CategoryScoreGradeNoFindings
- func (m *CategoryScoreGradeNoFindings) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CategoryScoreGradeNoFindings) MarshalBinary() ([]byte, error)
- func (m *CategoryScoreGradeNoFindings) UnmarshalBinary(b []byte) error
- func (m *CategoryScoreGradeNoFindings) Validate(formats strfmt.Registry) error
- type CountersHistory
- type EndpointOrConditionsBase
- type HTTPMethod
- type IPProtoEnum
- type OAPIV3Components
- type OpenAPISpec
- func (m *OpenAPISpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *OpenAPISpec) MarshalBinary() ([]byte, error)
- func (m OpenAPISpec) MarshalJSON() ([]byte, error)
- func (m *OpenAPISpec) ScoreElements() OpenAPISpecScoreBase
- func (m *OpenAPISpec) SetScoreElements(val OpenAPISpecScoreBase)
- func (m *OpenAPISpec) UnmarshalBinary(b []byte) error
- func (m *OpenAPISpec) UnmarshalJSON(raw []byte) error
- func (m *OpenAPISpec) Validate(formats strfmt.Registry) error
- type OpenAPISpecPreview
- type OpenAPISpecScoreBase
- type OpenAPISpecScoreComponentsV3ElementsList
- func (m *OpenAPISpecScoreComponentsV3ElementsList) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *OpenAPISpecScoreComponentsV3ElementsList) MarshalBinary() ([]byte, error)
- func (m OpenAPISpecScoreComponentsV3ElementsList) MarshalJSON() ([]byte, error)
- func (m *OpenAPISpecScoreComponentsV3ElementsList) UnmarshalBinary(b []byte) error
- func (m *OpenAPISpecScoreComponentsV3ElementsList) UnmarshalJSON(raw []byte) error
- func (m *OpenAPISpecScoreComponentsV3ElementsList) Validate(formats strfmt.Registry) error
- type OpenAPISpecScoreElement
- func (m *OpenAPISpecScoreElement) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *OpenAPISpecScoreElement) MarshalBinary() ([]byte, error)
- func (m *OpenAPISpecScoreElement) UnmarshalBinary(b []byte) error
- func (m *OpenAPISpecScoreElement) Validate(formats strfmt.Registry) error
- type OpenAPISpecScoreElementsList
- func (m *OpenAPISpecScoreElementsList) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *OpenAPISpecScoreElementsList) MarshalBinary() ([]byte, error)
- func (m *OpenAPISpecScoreElementsList) UnmarshalBinary(b []byte) error
- func (m *OpenAPISpecScoreElementsList) Validate(formats strfmt.Registry) error
- type OpenAPISpecScoreStatus
- type OpenAPISpecScoreV2
- func (m *OpenAPISpecScoreV2) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *OpenAPISpecScoreV2) General() *OpenAPISpecScoreElementsList
- func (m *OpenAPISpecScoreV2) MarshalBinary() ([]byte, error)
- func (m OpenAPISpecScoreV2) MarshalJSON() ([]byte, error)
- func (m *OpenAPISpecScoreV2) OapIVersion() string
- func (m *OpenAPISpecScoreV2) Security() *OpenAPISpecScoreElementsList
- func (m *OpenAPISpecScoreV2) SetGeneral(val *OpenAPISpecScoreElementsList)
- func (m *OpenAPISpecScoreV2) SetOapIVersion(val string)
- func (m *OpenAPISpecScoreV2) SetSecurity(val *OpenAPISpecScoreElementsList)
- func (m *OpenAPISpecScoreV2) SetTags(val *OpenAPISpecTags)
- func (m *OpenAPISpecScoreV2) Tags() *OpenAPISpecTags
- func (m *OpenAPISpecScoreV2) UnmarshalBinary(b []byte) error
- func (m *OpenAPISpecScoreV2) UnmarshalJSON(raw []byte) error
- func (m *OpenAPISpecScoreV2) Validate(formats strfmt.Registry) error
- type OpenAPISpecScoreV3
- func (m *OpenAPISpecScoreV3) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *OpenAPISpecScoreV3) General() *OpenAPISpecScoreElementsList
- func (m *OpenAPISpecScoreV3) MarshalBinary() ([]byte, error)
- func (m OpenAPISpecScoreV3) MarshalJSON() ([]byte, error)
- func (m *OpenAPISpecScoreV3) OapIVersion() string
- func (m *OpenAPISpecScoreV3) Security() *OpenAPISpecScoreElementsList
- func (m *OpenAPISpecScoreV3) SetGeneral(val *OpenAPISpecScoreElementsList)
- func (m *OpenAPISpecScoreV3) SetOapIVersion(val string)
- func (m *OpenAPISpecScoreV3) SetSecurity(val *OpenAPISpecScoreElementsList)
- func (m *OpenAPISpecScoreV3) SetTags(val *OpenAPISpecTags)
- func (m *OpenAPISpecScoreV3) Tags() *OpenAPISpecTags
- func (m *OpenAPISpecScoreV3) UnmarshalBinary(b []byte) error
- func (m *OpenAPISpecScoreV3) UnmarshalJSON(raw []byte) error
- func (m *OpenAPISpecScoreV3) Validate(formats strfmt.Registry) error
- type OpenAPISpecTag
- type OpenAPISpecTags
- type ProfileViolation
- type ProviderOrConditionsBase
- type RiskConfidenceEnum
- type RiskTrendEnum
- type ScoreExitStatusEnum
- type ScoreFinding
- type ScoreFindingGroup
- type SpecMethod
- type SpecScoreElementFinding
- func (m *SpecScoreElementFinding) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SpecScoreElementFinding) MarshalBinary() ([]byte, error)
- func (m *SpecScoreElementFinding) UnmarshalBinary(b []byte) error
- func (m *SpecScoreElementFinding) Validate(formats strfmt.Registry) error
- type SpecScoreFindings
- type SpecScoreFindingsList
- type URLSchemeEnum
- type VulnerabilitiesSummary
- func (m *VulnerabilitiesSummary) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *VulnerabilitiesSummary) MarshalBinary() ([]byte, error)
- func (m *VulnerabilitiesSummary) UnmarshalBinary(b []byte) error
- func (m *VulnerabilitiesSummary) Validate(formats strfmt.Registry) error
Constants ¶
const ( // OpenAPISpecScoreBaseOapIVersionOpenAPISpecScoreV2 captures enum value "OpenApiSpecScoreV2" OpenAPISpecScoreBaseOapIVersionOpenAPISpecScoreV2 string = "OpenApiSpecScoreV2" // OpenAPISpecScoreBaseOapIVersionOpenAPISpecScoreV3 captures enum value "OpenApiSpecScoreV3" OpenAPISpecScoreBaseOapIVersionOpenAPISpecScoreV3 string = "OpenApiSpecScoreV3" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIEndpoint ¶
type APIEndpoint struct {
// Api Id
//
// API service this endpoint belongs to. Empty if still undetermined.
// Format: uuid
APIID strfmt.UUID `json:"api_id,omitempty"`
// compliance
Compliance *APIServiceComplianceSimple `json:"compliance,omitempty"`
// Host
//
// IP v4/v6 address of the API endpoint
// Required: true
Host *string `json:"host"`
// Hostname
//
// Hostname of the API endpoint if known
Hostname string `json:"hostname,omitempty"`
// id
//
// Unique id of the Endpoint
// Required: true
// Format: uuid
Identifier *strfmt.UUID `json:"identifier"`
// Location
Location string `json:"location,omitempty"`
// Port
//
// Port of the API endpoint
// Required: true
// Maximum: 65535
// Minimum: 0
Port *int64 `json:"port"`
// proto
// Required: true
Proto *IPProtoEnum `json:"proto"`
// scheme
Scheme URLSchemeEnum `json:"scheme,omitempty"`
}
APIEndpoint ApiEndpoint
swagger:model ApiEndpoint
func (*APIEndpoint) ContextValidate ¶
ContextValidate validate this Api endpoint based on the context it is used
func (*APIEndpoint) MarshalBinary ¶
func (m *APIEndpoint) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIEndpoint) UnmarshalBinary ¶
func (m *APIEndpoint) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type APIEndpointScoreGrade ¶
type APIEndpointScoreGrade struct {
// Additional Info
AdditionalInfo []*AdditionalInfo `json:"additional_info"`
// Categories
// Required: true
Categories map[string]CategoryScoreGrade `json:"categories"`
// confidence
Confidence RiskConfidenceEnum `json:"confidence,omitempty"`
// counters history
CountersHistory *CountersHistory `json:"counters_history,omitempty"`
// endpoint
// Required: true
Endpoint *APIEndpoint `json:"endpoint"`
// endpoint id
// Format: uuid
EndpointID strfmt.UUID `json:"endpoint_id,omitempty"`
// risk
// Required: true
Risk *APISecurityRiskSeverity `json:"risk"`
// Scorer Version
// Required: true
ScorerVersion *int64 `json:"scorer_version"`
// trend
Trend RiskTrendEnum `json:"trend,omitempty"`
}
APIEndpointScoreGrade ApiEndpointScoreGrade
swagger:model ApiEndpointScoreGrade
func (*APIEndpointScoreGrade) ContextValidate ¶
ContextValidate validate this Api endpoint score grade based on the context it is used
func (*APIEndpointScoreGrade) MarshalBinary ¶
func (m *APIEndpointScoreGrade) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIEndpointScoreGrade) UnmarshalBinary ¶
func (m *APIEndpointScoreGrade) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type APIOrConditionsBase ¶
type APIOrConditionsBase interface {
runtime.Validatable
runtime.ContextValidatable
// attribute
// Required: true
// Enum: [ApiRisk ApiRiskTrend ApiRiskTrendIsNone ApiRiskConfidence ApiRiskConfidenceIsNone ApiAvgVulnerabilityDuration ApiAvgVulnerabilityDurationIsNone ApiName ApiClassification ApiClassificationIsNone]
Attribute() string
SetAttribute(string)
}
APIOrConditionsBase Api or conditions base
swagger:discriminator ApiOrConditionsBase attribute
func UnmarshalAPIOrConditionsBase ¶
func UnmarshalAPIOrConditionsBase(reader io.Reader, consumer runtime.Consumer) (APIOrConditionsBase, error)
UnmarshalAPIOrConditionsBase unmarshals polymorphic APIOrConditionsBase
func UnmarshalAPIOrConditionsBaseSlice ¶
func UnmarshalAPIOrConditionsBaseSlice(reader io.Reader, consumer runtime.Consumer) ([]APIOrConditionsBase, error)
UnmarshalAPIOrConditionsBaseSlice unmarshals polymorphic slices of APIOrConditionsBase
type APIPolicyProfile ¶
type APIPolicyProfile struct {
// Compliant On Missing Score
// Required: true
CompliantOnMissingScore *bool `json:"compliant_on_missing_score"`
// Conditions
//
// List conditions defined in this policy profile. All conditions are in AND.
// Required: true
Conditions []*APIPolicyProfileCondition `json:"conditions"`
// Name
//
// Name of the policy profile
// Required: true
Name *string `json:"name"`
}
APIPolicyProfile ApiPolicyProfile
swagger:model ApiPolicyProfile
func (*APIPolicyProfile) ContextValidate ¶
ContextValidate validate this Api policy profile based on the context it is used
func (*APIPolicyProfile) MarshalBinary ¶
func (m *APIPolicyProfile) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIPolicyProfile) UnmarshalBinary ¶
func (m *APIPolicyProfile) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type APIPolicyProfileCondition ¶
type APIPolicyProfileCondition struct {
// contains filtered or unexported fields
}
APIPolicyProfileCondition ApiPolicyProfileCondition
swagger:model ApiPolicyProfileCondition
func (*APIPolicyProfileCondition) APIOrConditions ¶
func (m *APIPolicyProfileCondition) APIOrConditions() []APIOrConditionsBase
APIOrConditions gets the api or conditions of this base type
func (*APIPolicyProfileCondition) ContextValidate ¶
func (m *APIPolicyProfileCondition) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this Api policy profile condition based on the context it is used
func (*APIPolicyProfileCondition) EndpointOrConditions ¶
func (m *APIPolicyProfileCondition) EndpointOrConditions() []EndpointOrConditionsBase
EndpointOrConditions gets the endpoint or conditions of this base type
func (*APIPolicyProfileCondition) MarshalBinary ¶
func (m *APIPolicyProfileCondition) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (APIPolicyProfileCondition) MarshalJSON ¶
func (m APIPolicyProfileCondition) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*APIPolicyProfileCondition) ProviderOrConditions ¶
func (m *APIPolicyProfileCondition) ProviderOrConditions() []ProviderOrConditionsBase
ProviderOrConditions gets the provider or conditions of this base type
func (*APIPolicyProfileCondition) SetAPIOrConditions ¶
func (m *APIPolicyProfileCondition) SetAPIOrConditions(val []APIOrConditionsBase)
SetAPIOrConditions sets the api or conditions of this base type
func (*APIPolicyProfileCondition) SetEndpointOrConditions ¶
func (m *APIPolicyProfileCondition) SetEndpointOrConditions(val []EndpointOrConditionsBase)
SetEndpointOrConditions sets the endpoint or conditions of this base type
func (*APIPolicyProfileCondition) SetProviderOrConditions ¶
func (m *APIPolicyProfileCondition) SetProviderOrConditions(val []ProviderOrConditionsBase)
SetProviderOrConditions sets the provider or conditions of this base type
func (*APIPolicyProfileCondition) UnmarshalBinary ¶
func (m *APIPolicyProfileCondition) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*APIPolicyProfileCondition) UnmarshalJSON ¶
func (m *APIPolicyProfileCondition) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type APIProviderBase ¶
type APIProviderBase struct {
// id
//
// Unique id of the subject API as assigned by Crankshaft
// Required: true
// Format: uuid
Identifier *strfmt.UUID `json:"identifier"`
// Industry
Industry string `json:"industry,omitempty"`
// Location
Location string `json:"location,omitempty"`
// Name
//
// Name of the provider, typically an FQDN
// Required: true
Name *string `json:"name"`
}
APIProviderBase ApiProvider_Base
swagger:model ApiProvider_Base
func (*APIProviderBase) ContextValidate ¶
ContextValidate validates this Api provider base based on context it is used
func (*APIProviderBase) MarshalBinary ¶
func (m *APIProviderBase) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIProviderBase) UnmarshalBinary ¶
func (m *APIProviderBase) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type APIProviderScoreGrade ¶
type APIProviderScoreGrade struct {
// Additional Info
AdditionalInfo []*AdditionalInfo `json:"additional_info"`
// Avg Vulnerability Duration
AvgVulnerabilityDuration int64 `json:"avg_vulnerability_duration,omitempty"`
// Categories
// Required: true
Categories map[string]CategoryScoreGradeNoFindings `json:"categories"`
// confidence
Confidence RiskConfidenceEnum `json:"confidence,omitempty"`
// Curated
// Required: true
Curated *bool `json:"curated"`
// Last Finding Date
// Format: date-time
LastFindingDate strfmt.DateTime `json:"last_finding_date,omitempty"`
// Last Vulnerability Date
// Format: date-time
LastVulnerabilityDate strfmt.DateTime `json:"last_vulnerability_date,omitempty"`
// provider
// Required: true
Provider *APIProviderBase `json:"provider"`
// provider id
// Format: uuid
ProviderID strfmt.UUID `json:"provider_id,omitempty"`
// risk
// Required: true
Risk *APISecurityRiskSeverity `json:"risk"`
// Scorer Version
// Required: true
ScorerVersion *int64 `json:"scorer_version"`
// trend
Trend RiskTrendEnum `json:"trend,omitempty"`
}
APIProviderScoreGrade ApiProviderScoreGrade
swagger:model ApiProviderScoreGrade
func (*APIProviderScoreGrade) ContextValidate ¶
ContextValidate validate this Api provider score grade based on the context it is used
func (*APIProviderScoreGrade) MarshalBinary ¶
func (m *APIProviderScoreGrade) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIProviderScoreGrade) UnmarshalBinary ¶
func (m *APIProviderScoreGrade) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type APISecurityAPI ¶
type APISecurityAPI struct {
// API name, usually an FQDN as determined by crankshaft, it can be logical or can correspond to one of the endpoints where the API is reachable, i.e. api.webex.com
// Required: true
Name *string `json:"name"`
}
APISecurityAPI Api security Api
swagger:model ApiSecurityApi
func (*APISecurityAPI) ContextValidate ¶
ContextValidate validates this Api security Api based on context it is used
func (*APISecurityAPI) MarshalBinary ¶
func (m *APISecurityAPI) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APISecurityAPI) UnmarshalBinary ¶
func (m *APISecurityAPI) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type APISecurityAPIStatus ¶
type APISecurityAPIStatus string
APISecurityAPIStatus ApiStatus
Api status enumeration.
swagger:model ApiSecurityApiStatus
const ( // APISecurityAPIStatusPROCESSING captures enum value "PROCESSING" APISecurityAPIStatusPROCESSING APISecurityAPIStatus = "PROCESSING" // APISecurityAPIStatusVALID captures enum value "VALID" APISecurityAPIStatusVALID APISecurityAPIStatus = "VALID" // APISecurityAPIStatusINVALID captures enum value "INVALID" APISecurityAPIStatusINVALID APISecurityAPIStatus = "INVALID" )
func NewAPISecurityAPIStatus ¶
func NewAPISecurityAPIStatus(value APISecurityAPIStatus) *APISecurityAPIStatus
func (APISecurityAPIStatus) ContextValidate ¶
ContextValidate validates this Api security Api status based on context it is used
func (APISecurityAPIStatus) Pointer ¶
func (m APISecurityAPIStatus) Pointer() *APISecurityAPIStatus
Pointer returns a pointer to a freshly-allocated APISecurityAPIStatus.
type APISecurityRiskSeverity ¶
type APISecurityRiskSeverity string
APISecurityRiskSeverity RiskSeverity
An `enum`eration.
swagger:model ApiSecurityRiskSeverity
const ( // APISecurityRiskSeverityNORISK captures enum value "NO_RISK" APISecurityRiskSeverityNORISK APISecurityRiskSeverity = "NO_RISK" // APISecurityRiskSeverityUNKNOWN captures enum value "UNKNOWN" APISecurityRiskSeverityUNKNOWN APISecurityRiskSeverity = "UNKNOWN" // APISecurityRiskSeverityNEUTRAL captures enum value "NEUTRAL" APISecurityRiskSeverityNEUTRAL APISecurityRiskSeverity = "NEUTRAL" // APISecurityRiskSeverityLOW captures enum value "LOW" APISecurityRiskSeverityLOW APISecurityRiskSeverity = "LOW" // APISecurityRiskSeverityMEDIUM captures enum value "MEDIUM" APISecurityRiskSeverityMEDIUM APISecurityRiskSeverity = "MEDIUM" // APISecurityRiskSeverityHIGH captures enum value "HIGH" APISecurityRiskSeverityHIGH APISecurityRiskSeverity = "HIGH" // APISecurityRiskSeverityCRITICAL captures enum value "CRITICAL" APISecurityRiskSeverityCRITICAL APISecurityRiskSeverity = "CRITICAL" )
func NewAPISecurityRiskSeverity ¶
func NewAPISecurityRiskSeverity(value APISecurityRiskSeverity) *APISecurityRiskSeverity
func (APISecurityRiskSeverity) ContextValidate ¶
func (m APISecurityRiskSeverity) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this Api security risk severity based on context it is used
func (APISecurityRiskSeverity) Pointer ¶
func (m APISecurityRiskSeverity) Pointer() *APISecurityRiskSeverity
Pointer returns a pointer to a freshly-allocated APISecurityRiskSeverity.
type APIServiceBase ¶
type APIServiceBase struct {
// Classification
//
// API classification label as determined by Crankshaft, e.g. ['meetings', 'messaging']
Classification []string `json:"classification"`
// Timestamp
// Format: date-time
CreationTimestamp strfmt.DateTime `json:"creation_timestamp,omitempty"`
// Description
//
// Textual description of the Service
Description string `json:"description,omitempty"`
// id
//
// Unique id of the subject API as assigned by Crankshaft
// Required: true
// Format: uuid
Identifier *strfmt.UUID `json:"identifier"`
// Name
//
// API name, usually an FQDN as determined by crankshaft, it can be logical or can correspond to one of the endpoints where the API is reachable, i.e. api.webex.com
// Required: true
Name *string `json:"name"`
// Provider Id
//
// API provider id
// Format: uuid
ProviderID strfmt.UUID `json:"provider_id,omitempty"`
// risk
Risk APISecurityRiskSeverity `json:"risk,omitempty"`
// status
Status APISecurityAPIStatus `json:"status,omitempty"`
// status description
StatusDescription string `json:"status_description,omitempty"`
}
APIServiceBase ApiService_Base
swagger:model ApiService_Base
func (*APIServiceBase) ContextValidate ¶
ContextValidate validate this Api service base based on the context it is used
func (*APIServiceBase) MarshalBinary ¶
func (m *APIServiceBase) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIServiceBase) UnmarshalBinary ¶
func (m *APIServiceBase) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type APIServiceClientWorkload ¶
type APIServiceClientWorkload struct {
// cluster
Cluster string `json:"cluster,omitempty"`
// namespace
Namespace string `json:"namespace,omitempty"`
// workload name
WorkloadName string `json:"workloadName,omitempty"`
}
APIServiceClientWorkload Api service client workload
swagger:model ApiServiceClientWorkload
func (*APIServiceClientWorkload) ContextValidate ¶
func (m *APIServiceClientWorkload) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this Api service client workload based on context it is used
func (*APIServiceClientWorkload) MarshalBinary ¶
func (m *APIServiceClientWorkload) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIServiceClientWorkload) UnmarshalBinary ¶
func (m *APIServiceClientWorkload) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type APIServiceCompliance ¶
type APIServiceCompliance struct {
// Compliant
// Required: true
Compliant *bool `json:"compliant"`
// Profilescompliance
// Required: true
Profilescompliance []*APIServiceProfileCompliance `json:"profilescompliance"`
}
APIServiceCompliance ApiServiceCompliance
swagger:model ApiServiceCompliance
func (*APIServiceCompliance) ContextValidate ¶
ContextValidate validate this Api service compliance based on the context it is used
func (*APIServiceCompliance) MarshalBinary ¶
func (m *APIServiceCompliance) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIServiceCompliance) UnmarshalBinary ¶
func (m *APIServiceCompliance) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type APIServiceComplianceSimple ¶
type APIServiceComplianceSimple struct {
// Compliant
// Required: true
Compliant *bool `json:"compliant"`
// Profilescompliance
// Required: true
Profilescompliance []*APIServiceProfileComplianceSimple `json:"profilescompliance"`
}
APIServiceComplianceSimple ApiServiceCompliance_Simple
swagger:model ApiServiceCompliance_Simple
func (*APIServiceComplianceSimple) ContextValidate ¶
func (m *APIServiceComplianceSimple) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this Api service compliance simple based on the context it is used
func (*APIServiceComplianceSimple) MarshalBinary ¶
func (m *APIServiceComplianceSimple) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIServiceComplianceSimple) UnmarshalBinary ¶
func (m *APIServiceComplianceSimple) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type APIServiceDrillDownBase ¶
type APIServiceDrillDownBase struct {
// client workloads
ClientWorkloads []*APIServiceClientWorkload `json:"clientWorkloads"`
// compliance
Compliance *APIServiceCompliance `json:"compliance,omitempty"`
// Timestamp
// Format: date-time
CreationTimestamp strfmt.DateTime `json:"creation_timestamp,omitempty"`
// Description
//
// Textual description of the Service
Description string `json:"description,omitempty"`
// Identifier
//
// Unique identifier of the subject API as assigned by Crankshaft
// Required: true
// Format: uuid
Identifier *strfmt.UUID `json:"identifier"`
// Link Doc
//
// Location of the documentation. This can be an URL for example
LinkDoc string `json:"link_doc,omitempty"`
// Name
//
// API name, usually an FQDN as determined by crankshaft, it can be logical or can correspond to one of the endpoints where the API is reachable, i.e. api.webex.com
// Required: true
Name *string `json:"name"`
// risk
Risk APISecurityRiskSeverity `json:"risk,omitempty"`
// score
Score *APIServiceScore `json:"score,omitempty"`
// status
Status APISecurityAPIStatus `json:"status,omitempty"`
// status description
StatusDescription string `json:"status_description,omitempty"`
}
APIServiceDrillDownBase ApiService
swagger:model ApiServiceDrillDownBase
func (*APIServiceDrillDownBase) ContextValidate ¶
func (m *APIServiceDrillDownBase) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this Api service drill down base based on the context it is used
func (*APIServiceDrillDownBase) MarshalBinary ¶
func (m *APIServiceDrillDownBase) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIServiceDrillDownBase) UnmarshalBinary ¶
func (m *APIServiceDrillDownBase) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type APIServiceDrillDownExternal ¶
type APIServiceDrillDownExternal struct {
APIServiceDrillDownBase
// Classification
//
// API classification label as determined by Crankshaft, e.g. ['meetings', 'messaging']
Classification []string `json:"classification"`
// provider
Provider *APIProviderBase `json:"provider,omitempty"`
}
APIServiceDrillDownExternal Api service drill down external
swagger:model ApiServiceDrillDownExternal
func (*APIServiceDrillDownExternal) ContextValidate ¶
func (m *APIServiceDrillDownExternal) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this Api service drill down external based on the context it is used
func (*APIServiceDrillDownExternal) MarshalBinary ¶
func (m *APIServiceDrillDownExternal) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (APIServiceDrillDownExternal) MarshalJSON ¶
func (m APIServiceDrillDownExternal) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*APIServiceDrillDownExternal) UnmarshalBinary ¶
func (m *APIServiceDrillDownExternal) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*APIServiceDrillDownExternal) UnmarshalJSON ¶
func (m *APIServiceDrillDownExternal) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type APIServiceExternal ¶
type APIServiceExternal struct {
APIServiceBase
// Classification
//
// API classification label as determined by Crankshaft, e.g. ['meetings', 'messaging']
Classification []string `json:"classification"`
// Provider Id
//
// API provider id
// Format: uuid
ProviderID strfmt.UUID `json:"provider_id,omitempty"`
// Provider Name
//
// Provider name if provider_id is set.
ProviderName string `json:"provider_name,omitempty"`
}
APIServiceExternal Api service external
swagger:model ApiServiceExternal
func (*APIServiceExternal) ContextValidate ¶
ContextValidate validate this Api service external based on the context it is used
func (*APIServiceExternal) MarshalBinary ¶
func (m *APIServiceExternal) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (APIServiceExternal) MarshalJSON ¶
func (m APIServiceExternal) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*APIServiceExternal) UnmarshalBinary ¶
func (m *APIServiceExternal) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*APIServiceExternal) UnmarshalJSON ¶
func (m *APIServiceExternal) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type APIServiceListExternal ¶
type APIServiceListExternal struct {
// Items
// Required: true
Items []*APIServiceExternal `json:"items"`
}
APIServiceListExternal ApiServiceListExternal
swagger:model ApiServiceListExternal
func (*APIServiceListExternal) ContextValidate ¶
func (m *APIServiceListExternal) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this Api service list external based on the context it is used
func (*APIServiceListExternal) MarshalBinary ¶
func (m *APIServiceListExternal) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIServiceListExternal) UnmarshalBinary ¶
func (m *APIServiceListExternal) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type APIServiceProfileCompliance ¶
type APIServiceProfileCompliance struct {
// Api Id
//
// Api Service this compliance refers to
// Required: true
// Format: uuid
APIID *strfmt.UUID `json:"api_id"`
// Compliant
//
// True if score is compliant with the profile. False otherwise.
// Required: true
Compliant *bool `json:"compliant"`
// profile
// Required: true
Profile *APIPolicyProfile `json:"profile"`
// Score Id
//
// If existing, score used to compute the compliance
// Format: uuid
ScoreID strfmt.UUID `json:"score_id,omitempty"`
// violation
Violation *ProfileViolation `json:"violation,omitempty"`
}
APIServiceProfileCompliance ApiServiceProfileCompliance
swagger:model ApiServiceProfileCompliance
func (*APIServiceProfileCompliance) ContextValidate ¶
func (m *APIServiceProfileCompliance) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this Api service profile compliance based on the context it is used
func (*APIServiceProfileCompliance) MarshalBinary ¶
func (m *APIServiceProfileCompliance) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIServiceProfileCompliance) UnmarshalBinary ¶
func (m *APIServiceProfileCompliance) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type APIServiceProfileComplianceSimple ¶
type APIServiceProfileComplianceSimple struct {
// Compliant
// Required: true
Compliant *bool `json:"compliant"`
// Profile
// Required: true
Profile *string `json:"profile"`
}
APIServiceProfileComplianceSimple ApiServiceProfileCompliance_Simple
swagger:model ApiServiceProfileCompliance_Simple
func (*APIServiceProfileComplianceSimple) ContextValidate ¶
func (m *APIServiceProfileComplianceSimple) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this Api service profile compliance simple based on context it is used
func (*APIServiceProfileComplianceSimple) MarshalBinary ¶
func (m *APIServiceProfileComplianceSimple) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIServiceProfileComplianceSimple) UnmarshalBinary ¶
func (m *APIServiceProfileComplianceSimple) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type APIServiceScore ¶
type APIServiceScore struct {
// api
// Required: true
API *APIServiceScoreGrade `json:"api"`
// id
// Required: true
// Format: uuid
Identifier *strfmt.UUID `json:"identifier"`
// provider
// Required: true
Provider *APIProviderScoreGrade `json:"provider"`
// status
// Required: true
Status *ScoreExitStatusEnum `json:"status"`
// Timestamp
// Required: true
// Format: date-time
Timestamp *strfmt.DateTime `json:"timestamp"`
}
APIServiceScore ApiServiceScore
swagger:model ApiServiceScore
func (*APIServiceScore) ContextValidate ¶
ContextValidate validate this Api service score based on the context it is used
func (*APIServiceScore) MarshalBinary ¶
func (m *APIServiceScore) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIServiceScore) UnmarshalBinary ¶
func (m *APIServiceScore) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type APIServiceScoreGrade ¶
type APIServiceScoreGrade struct {
// Additional Info
AdditionalInfo []*AdditionalInfo `json:"additional_info"`
// api
// Required: true
API *APIServiceBase `json:"api"`
// Avg Vulnerability Duration
AvgVulnerabilityDuration int64 `json:"avg_vulnerability_duration,omitempty"`
// Categories
// Required: true
Categories map[string]CategoryScoreGrade `json:"categories"`
// confidence
Confidence RiskConfidenceEnum `json:"confidence,omitempty"`
// counters history
CountersHistory *CountersHistory `json:"counters_history,omitempty"`
// Endpoints
// Required: true
Endpoints []*APIEndpointScoreGrade `json:"endpoints"`
// Last Finding Date
// Format: date-time
LastFindingDate strfmt.DateTime `json:"last_finding_date,omitempty"`
// Last Vulnerability Date
// Format: date-time
LastVulnerabilityDate strfmt.DateTime `json:"last_vulnerability_date,omitempty"`
// risk
// Required: true
Risk *APISecurityRiskSeverity `json:"risk"`
// Scorer Version
// Required: true
ScorerVersion *int64 `json:"scorer_version"`
// trend
Trend RiskTrendEnum `json:"trend,omitempty"`
}
APIServiceScoreGrade ApiServiceScoreGrade
swagger:model ApiServiceScoreGrade
func (*APIServiceScoreGrade) ContextValidate ¶
ContextValidate validate this Api service score grade based on the context it is used
func (*APIServiceScoreGrade) MarshalBinary ¶
func (m *APIServiceScoreGrade) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIServiceScoreGrade) UnmarshalBinary ¶
func (m *APIServiceScoreGrade) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AdditionalInfo ¶
type AdditionalInfo struct {
// Affected Endpoints
AffectedEndpoints []string `json:"affected_endpoints"`
// Affected Spec Paths
AffectedSpecPaths []string `json:"affected_spec_paths"`
// Dictionary entries
Entries map[string]string `json:"entries,omitempty"`
}
AdditionalInfo AdditionalInfo
swagger:model AdditionalInfo
func (*AdditionalInfo) ContextValidate ¶
ContextValidate validates this additional info based on context it is used
func (*AdditionalInfo) MarshalBinary ¶
func (m *AdditionalInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AdditionalInfo) UnmarshalBinary ¶
func (m *AdditionalInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CategoryScoreGrade ¶
type CategoryScoreGrade struct {
// Additional Info
AdditionalInfo []*AdditionalInfo `json:"additional_info"`
// confidence
Confidence RiskConfidenceEnum `json:"confidence,omitempty"`
// counters history
CountersHistory *CountersHistory `json:"counters_history,omitempty"`
// critical
// Required: true
Critical *ScoreFindingGroup `json:"critical"`
// high
// Required: true
High *ScoreFindingGroup `json:"high"`
// low
// Required: true
Low *ScoreFindingGroup `json:"low"`
// medium
// Required: true
Medium *ScoreFindingGroup `json:"medium"`
// Name
// Required: true
Name *string `json:"name"`
// risk
// Required: true
Risk *APISecurityRiskSeverity `json:"risk"`
// Scorer Version
// Required: true
ScorerVersion *int64 `json:"scorer_version"`
// trend
Trend RiskTrendEnum `json:"trend,omitempty"`
// unclassified
// Required: true
Unclassified *ScoreFindingGroup `json:"unclassified"`
}
CategoryScoreGrade CategoryScoreGrade
swagger:model CategoryScoreGrade
func (*CategoryScoreGrade) ContextValidate ¶
ContextValidate validate this category score grade based on the context it is used
func (*CategoryScoreGrade) MarshalBinary ¶
func (m *CategoryScoreGrade) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CategoryScoreGrade) UnmarshalBinary ¶
func (m *CategoryScoreGrade) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CategoryScoreGradeNoFindings ¶
type CategoryScoreGradeNoFindings struct {
// Additional Info
AdditionalInfo []*AdditionalInfo `json:"additional_info"`
// confidence
Confidence RiskConfidenceEnum `json:"confidence,omitempty"`
// Critical
// Required: true
Critical *int64 `json:"critical"`
// High
// Required: true
High *int64 `json:"high"`
// Low
// Required: true
Low *int64 `json:"low"`
// Medium
// Required: true
Medium *int64 `json:"medium"`
// Name
// Required: true
Name *string `json:"name"`
// risk
// Required: true
Risk *APISecurityRiskSeverity `json:"risk"`
// Scorer Version
// Required: true
ScorerVersion *int64 `json:"scorer_version"`
// trend
Trend RiskTrendEnum `json:"trend,omitempty"`
// Unclassified
// Required: true
Unclassified *int64 `json:"unclassified"`
}
CategoryScoreGradeNoFindings CategoryScoreGradeNoFindings
swagger:model CategoryScoreGradeNoFindings
func (*CategoryScoreGradeNoFindings) ContextValidate ¶
func (m *CategoryScoreGradeNoFindings) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this category score grade no findings based on the context it is used
func (*CategoryScoreGradeNoFindings) MarshalBinary ¶
func (m *CategoryScoreGradeNoFindings) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CategoryScoreGradeNoFindings) UnmarshalBinary ¶
func (m *CategoryScoreGradeNoFindings) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CountersHistory ¶
type CountersHistory struct {
// Critical
Critical []int64 `json:"critical"`
// High
High []int64 `json:"high"`
// Low
Low []int64 `json:"low"`
// Medium
Medium []int64 `json:"medium"`
// Timestamp
Timestamp []string `json:"timestamp"`
// Unclassified
Unclassified []int64 `json:"unclassified"`
}
CountersHistory History Counters
swagger:model CountersHistory
func (*CountersHistory) ContextValidate ¶
ContextValidate validates this counters history based on context it is used
func (*CountersHistory) MarshalBinary ¶
func (m *CountersHistory) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CountersHistory) UnmarshalBinary ¶
func (m *CountersHistory) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EndpointOrConditionsBase ¶
type EndpointOrConditionsBase interface {
runtime.Validatable
runtime.ContextValidatable
// attribute
// Required: true
// Enum: [EndpointRisk EndpointRiskTrend EndpointRiskTrendIsNone EndpointRiskConfidence EndpointRiskConfidenceIsNone EndpointLocation EndpointLocationIsNone EndpointHostV4 EndpointHostV6 EndpointHostname EndpointHostnameIsNone EndpointScheme EndpointSchemeIsNone EndpointProtocol EndpointPort]
Attribute() string
SetAttribute(string)
}
EndpointOrConditionsBase endpoint or conditions base
swagger:discriminator EndpointOrConditionsBase attribute
func UnmarshalEndpointOrConditionsBase ¶
func UnmarshalEndpointOrConditionsBase(reader io.Reader, consumer runtime.Consumer) (EndpointOrConditionsBase, error)
UnmarshalEndpointOrConditionsBase unmarshals polymorphic EndpointOrConditionsBase
func UnmarshalEndpointOrConditionsBaseSlice ¶
func UnmarshalEndpointOrConditionsBaseSlice(reader io.Reader, consumer runtime.Consumer) ([]EndpointOrConditionsBase, error)
UnmarshalEndpointOrConditionsBaseSlice unmarshals polymorphic slices of EndpointOrConditionsBase
type HTTPMethod ¶
type HTTPMethod string
HTTPMethod Http method
swagger:model HttpMethod
const ( // HTTPMethodGET captures enum value "GET" HTTPMethodGET HTTPMethod = "GET" // HTTPMethodPOST captures enum value "POST" HTTPMethodPOST HTTPMethod = "POST" // HTTPMethodPUT captures enum value "PUT" HTTPMethodPUT HTTPMethod = "PUT" // HTTPMethodDELETE captures enum value "DELETE" HTTPMethodDELETE HTTPMethod = "DELETE" // HTTPMethodHEAD captures enum value "HEAD" HTTPMethodHEAD HTTPMethod = "HEAD" // HTTPMethodCONNECT captures enum value "CONNECT" HTTPMethodCONNECT HTTPMethod = "CONNECT" // HTTPMethodOPTIONS captures enum value "OPTIONS" HTTPMethodOPTIONS HTTPMethod = "OPTIONS" // HTTPMethodTRACE captures enum value "TRACE" HTTPMethodTRACE HTTPMethod = "TRACE" // HTTPMethodPATCH captures enum value "PATCH" HTTPMethodPATCH HTTPMethod = "PATCH" )
func NewHTTPMethod ¶
func NewHTTPMethod(value HTTPMethod) *HTTPMethod
func (HTTPMethod) ContextValidate ¶
ContextValidate validates this Http method based on context it is used
func (HTTPMethod) Pointer ¶
func (m HTTPMethod) Pointer() *HTTPMethod
Pointer returns a pointer to a freshly-allocated HTTPMethod.
type IPProtoEnum ¶
type IPProtoEnum string
IPProtoEnum IpProtoEnum
An enumeration.
swagger:model IpProtoEnum
const ( // IPProtoEnumTCP captures enum value "TCP" IPProtoEnumTCP IPProtoEnum = "TCP" // IPProtoEnumUDP captures enum value "UDP" IPProtoEnumUDP IPProtoEnum = "UDP" )
func NewIPProtoEnum ¶
func NewIPProtoEnum(value IPProtoEnum) *IPProtoEnum
func (IPProtoEnum) ContextValidate ¶
ContextValidate validates this Ip proto enum based on context it is used
func (IPProtoEnum) Pointer ¶
func (m IPProtoEnum) Pointer() *IPProtoEnum
Pointer returns a pointer to a freshly-allocated IPProtoEnum.
type OAPIV3Components ¶
type OAPIV3Components struct {
// elements
Elements []*OpenAPISpecScoreComponentsV3ElementsList `json:"elements"`
// severity
Severity APISecurityRiskSeverity `json:"severity,omitempty"`
}
OAPIV3Components o API v3 components
swagger:model OAPIV3Components
func (*OAPIV3Components) ContextValidate ¶
ContextValidate validate this o API v3 components based on the context it is used
func (*OAPIV3Components) MarshalBinary ¶
func (m *OAPIV3Components) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OAPIV3Components) UnmarshalBinary ¶
func (m *OAPIV3Components) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type OpenAPISpec ¶
type OpenAPISpec struct {
// preview
Preview *OpenAPISpecPreview `json:"preview,omitempty"`
// contains filtered or unexported fields
}
OpenAPISpec open Api spec
swagger:model OpenApiSpec
func (*OpenAPISpec) ContextValidate ¶
ContextValidate validate this open Api spec based on the context it is used
func (*OpenAPISpec) MarshalBinary ¶
func (m *OpenAPISpec) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (OpenAPISpec) MarshalJSON ¶
func (m OpenAPISpec) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*OpenAPISpec) ScoreElements ¶
func (m *OpenAPISpec) ScoreElements() OpenAPISpecScoreBase
ScoreElements gets the score elements of this base type
func (*OpenAPISpec) SetScoreElements ¶
func (m *OpenAPISpec) SetScoreElements(val OpenAPISpecScoreBase)
SetScoreElements sets the score elements of this base type
func (*OpenAPISpec) UnmarshalBinary ¶
func (m *OpenAPISpec) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*OpenAPISpec) UnmarshalJSON ¶
func (m *OpenAPISpec) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type OpenAPISpecPreview ¶
type OpenAPISpecPreview struct {
// base path
BasePath string `json:"basePath,omitempty"`
// contact mail
ContactMail string `json:"contactMail,omitempty"`
// description
Description string `json:"description,omitempty"`
// license name
LicenseName string `json:"licenseName,omitempty"`
// license Url
LicenseURL string `json:"licenseUrl,omitempty"`
// name
Name string `json:"name,omitempty"`
// terms of service
TermsOfService string `json:"termsOfService,omitempty"`
// version
Version string `json:"version,omitempty"`
}
OpenAPISpecPreview open Api spec preview
swagger:model OpenApiSpecPreview
func (*OpenAPISpecPreview) ContextValidate ¶
ContextValidate validates this open Api spec preview based on context it is used
func (*OpenAPISpecPreview) MarshalBinary ¶
func (m *OpenAPISpecPreview) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OpenAPISpecPreview) UnmarshalBinary ¶
func (m *OpenAPISpecPreview) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type OpenAPISpecScoreBase ¶
type OpenAPISpecScoreBase interface {
runtime.Validatable
runtime.ContextValidatable
// general
General() *OpenAPISpecScoreElementsList
SetGeneral(*OpenAPISpecScoreElementsList)
// oap i version
// Enum: [OpenApiSpecScoreV2 OpenApiSpecScoreV3]
OapIVersion() string
SetOapIVersion(string)
// security
Security() *OpenAPISpecScoreElementsList
SetSecurity(*OpenAPISpecScoreElementsList)
// tags
Tags() *OpenAPISpecTags
SetTags(*OpenAPISpecTags)
}
OpenAPISpecScoreBase open Api spec score base
swagger:discriminator OpenApiSpecScoreBase oapIVersion
func UnmarshalOpenAPISpecScoreBase ¶
func UnmarshalOpenAPISpecScoreBase(reader io.Reader, consumer runtime.Consumer) (OpenAPISpecScoreBase, error)
UnmarshalOpenAPISpecScoreBase unmarshals polymorphic OpenAPISpecScoreBase
func UnmarshalOpenAPISpecScoreBaseSlice ¶
func UnmarshalOpenAPISpecScoreBaseSlice(reader io.Reader, consumer runtime.Consumer) ([]OpenAPISpecScoreBase, error)
UnmarshalOpenAPISpecScoreBaseSlice unmarshals polymorphic slices of OpenAPISpecScoreBase
type OpenAPISpecScoreComponentsV3ElementsList ¶
type OpenAPISpecScoreComponentsV3ElementsList struct {
OpenAPISpecScoreElementsList
// Name
Name string `json:"name,omitempty"`
}
OpenAPISpecScoreComponentsV3ElementsList open Api spec score components v3 elements list
swagger:model OpenApiSpecScoreComponentsV3ElementsList
func (*OpenAPISpecScoreComponentsV3ElementsList) ContextValidate ¶
func (m *OpenAPISpecScoreComponentsV3ElementsList) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this open Api spec score components v3 elements list based on the context it is used
func (*OpenAPISpecScoreComponentsV3ElementsList) MarshalBinary ¶
func (m *OpenAPISpecScoreComponentsV3ElementsList) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (OpenAPISpecScoreComponentsV3ElementsList) MarshalJSON ¶
func (m OpenAPISpecScoreComponentsV3ElementsList) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*OpenAPISpecScoreComponentsV3ElementsList) UnmarshalBinary ¶
func (m *OpenAPISpecScoreComponentsV3ElementsList) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*OpenAPISpecScoreComponentsV3ElementsList) UnmarshalJSON ¶
func (m *OpenAPISpecScoreComponentsV3ElementsList) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type OpenAPISpecScoreElement ¶
type OpenAPISpecScoreElement struct {
// findings
Findings *SpecScoreFindings `json:"findings,omitempty"`
// Name
//
// Name of the Object
Name string `json:"name,omitempty"`
// severity
Severity APISecurityRiskSeverity `json:"severity,omitempty"`
// spec path
SpecPath string `json:"specPath,omitempty"`
}
OpenAPISpecScoreElement open Api spec score element
swagger:model OpenApiSpecScoreElement
func (*OpenAPISpecScoreElement) ContextValidate ¶
func (m *OpenAPISpecScoreElement) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this open Api spec score element based on the context it is used
func (*OpenAPISpecScoreElement) MarshalBinary ¶
func (m *OpenAPISpecScoreElement) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OpenAPISpecScoreElement) UnmarshalBinary ¶
func (m *OpenAPISpecScoreElement) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type OpenAPISpecScoreElementsList ¶
type OpenAPISpecScoreElementsList struct {
// elements
Elements []*OpenAPISpecScoreElement `json:"elements"`
// severity
Severity APISecurityRiskSeverity `json:"severity,omitempty"`
}
OpenAPISpecScoreElementsList open Api spec score elements list
swagger:model OpenApiSpecScoreElementsList
func (*OpenAPISpecScoreElementsList) ContextValidate ¶
func (m *OpenAPISpecScoreElementsList) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this open Api spec score elements list based on the context it is used
func (*OpenAPISpecScoreElementsList) MarshalBinary ¶
func (m *OpenAPISpecScoreElementsList) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OpenAPISpecScoreElementsList) UnmarshalBinary ¶
func (m *OpenAPISpecScoreElementsList) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type OpenAPISpecScoreStatus ¶
type OpenAPISpecScoreStatus string
OpenAPISpecScoreStatus OpenApiSpecScoreStatus
swagger:model OpenApiSpecScoreStatus
const ( // OpenAPISpecScoreStatusSCORED captures enum value "SCORED" OpenAPISpecScoreStatusSCORED OpenAPISpecScoreStatus = "SCORED" // OpenAPISpecScoreStatusNOTSCORED captures enum value "NOT_SCORED" OpenAPISpecScoreStatusNOTSCORED OpenAPISpecScoreStatus = "NOT_SCORED" )
func NewOpenAPISpecScoreStatus ¶
func NewOpenAPISpecScoreStatus(value OpenAPISpecScoreStatus) *OpenAPISpecScoreStatus
func (OpenAPISpecScoreStatus) ContextValidate ¶
ContextValidate validates this open Api spec score status based on context it is used
func (OpenAPISpecScoreStatus) Pointer ¶
func (m OpenAPISpecScoreStatus) Pointer() *OpenAPISpecScoreStatus
Pointer returns a pointer to a freshly-allocated OpenAPISpecScoreStatus.
type OpenAPISpecScoreV2 ¶
type OpenAPISpecScoreV2 struct {
// definitions
Definitions *OpenAPISpecScoreElementsList `json:"definitions,omitempty"`
// parameters
Parameters *OpenAPISpecScoreElementsList `json:"parameters,omitempty"`
// responses
Responses *OpenAPISpecScoreElementsList `json:"responses,omitempty"`
// security definitions
SecurityDefinitions *OpenAPISpecScoreElementsList `json:"securityDefinitions,omitempty"`
// contains filtered or unexported fields
}
OpenAPISpecScoreV2 open Api spec score v2
swagger:model OpenApiSpecScoreV2
func (*OpenAPISpecScoreV2) ContextValidate ¶
ContextValidate validate this open Api spec score v2 based on the context it is used
func (*OpenAPISpecScoreV2) General ¶
func (m *OpenAPISpecScoreV2) General() *OpenAPISpecScoreElementsList
General gets the general of this subtype
func (*OpenAPISpecScoreV2) MarshalBinary ¶
func (m *OpenAPISpecScoreV2) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (OpenAPISpecScoreV2) MarshalJSON ¶
func (m OpenAPISpecScoreV2) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*OpenAPISpecScoreV2) OapIVersion ¶
func (m *OpenAPISpecScoreV2) OapIVersion() string
OapIVersion gets the oap i version of this subtype
func (*OpenAPISpecScoreV2) Security ¶
func (m *OpenAPISpecScoreV2) Security() *OpenAPISpecScoreElementsList
Security gets the security of this subtype
func (*OpenAPISpecScoreV2) SetGeneral ¶
func (m *OpenAPISpecScoreV2) SetGeneral(val *OpenAPISpecScoreElementsList)
SetGeneral sets the general of this subtype
func (*OpenAPISpecScoreV2) SetOapIVersion ¶
func (m *OpenAPISpecScoreV2) SetOapIVersion(val string)
SetOapIVersion sets the oap i version of this subtype
func (*OpenAPISpecScoreV2) SetSecurity ¶
func (m *OpenAPISpecScoreV2) SetSecurity(val *OpenAPISpecScoreElementsList)
SetSecurity sets the security of this subtype
func (*OpenAPISpecScoreV2) SetTags ¶
func (m *OpenAPISpecScoreV2) SetTags(val *OpenAPISpecTags)
SetTags sets the tags of this subtype
func (*OpenAPISpecScoreV2) Tags ¶
func (m *OpenAPISpecScoreV2) Tags() *OpenAPISpecTags
Tags gets the tags of this subtype
func (*OpenAPISpecScoreV2) UnmarshalBinary ¶
func (m *OpenAPISpecScoreV2) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*OpenAPISpecScoreV2) UnmarshalJSON ¶
func (m *OpenAPISpecScoreV2) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type OpenAPISpecScoreV3 ¶
type OpenAPISpecScoreV3 struct {
// components
Components *OAPIV3Components `json:"components,omitempty"`
// servers
Servers *OpenAPISpecScoreElementsList `json:"servers,omitempty"`
// contains filtered or unexported fields
}
OpenAPISpecScoreV3 open Api spec score v3
swagger:model OpenApiSpecScoreV3
func (*OpenAPISpecScoreV3) ContextValidate ¶
ContextValidate validate this open Api spec score v3 based on the context it is used
func (*OpenAPISpecScoreV3) General ¶
func (m *OpenAPISpecScoreV3) General() *OpenAPISpecScoreElementsList
General gets the general of this subtype
func (*OpenAPISpecScoreV3) MarshalBinary ¶
func (m *OpenAPISpecScoreV3) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (OpenAPISpecScoreV3) MarshalJSON ¶
func (m OpenAPISpecScoreV3) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*OpenAPISpecScoreV3) OapIVersion ¶
func (m *OpenAPISpecScoreV3) OapIVersion() string
OapIVersion gets the oap i version of this subtype
func (*OpenAPISpecScoreV3) Security ¶
func (m *OpenAPISpecScoreV3) Security() *OpenAPISpecScoreElementsList
Security gets the security of this subtype
func (*OpenAPISpecScoreV3) SetGeneral ¶
func (m *OpenAPISpecScoreV3) SetGeneral(val *OpenAPISpecScoreElementsList)
SetGeneral sets the general of this subtype
func (*OpenAPISpecScoreV3) SetOapIVersion ¶
func (m *OpenAPISpecScoreV3) SetOapIVersion(val string)
SetOapIVersion sets the oap i version of this subtype
func (*OpenAPISpecScoreV3) SetSecurity ¶
func (m *OpenAPISpecScoreV3) SetSecurity(val *OpenAPISpecScoreElementsList)
SetSecurity sets the security of this subtype
func (*OpenAPISpecScoreV3) SetTags ¶
func (m *OpenAPISpecScoreV3) SetTags(val *OpenAPISpecTags)
SetTags sets the tags of this subtype
func (*OpenAPISpecScoreV3) Tags ¶
func (m *OpenAPISpecScoreV3) Tags() *OpenAPISpecTags
Tags gets the tags of this subtype
func (*OpenAPISpecScoreV3) UnmarshalBinary ¶
func (m *OpenAPISpecScoreV3) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*OpenAPISpecScoreV3) UnmarshalJSON ¶
func (m *OpenAPISpecScoreV3) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type OpenAPISpecTag ¶
type OpenAPISpecTag struct {
// methods
Methods []*SpecMethod `json:"methods"`
// name
Name string `json:"name,omitempty"`
// severity
Severity APISecurityRiskSeverity `json:"severity,omitempty"`
}
OpenAPISpecTag open Api spec tag
swagger:model OpenApiSpecTag
func (*OpenAPISpecTag) ContextValidate ¶
ContextValidate validate this open Api spec tag based on the context it is used
func (*OpenAPISpecTag) MarshalBinary ¶
func (m *OpenAPISpecTag) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OpenAPISpecTag) UnmarshalBinary ¶
func (m *OpenAPISpecTag) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type OpenAPISpecTags ¶
type OpenAPISpecTags struct {
// elements
Elements []*OpenAPISpecTag `json:"elements"`
// severity
Severity APISecurityRiskSeverity `json:"severity,omitempty"`
}
OpenAPISpecTags open Api spec tags
swagger:model OpenApiSpecTags
func (*OpenAPISpecTags) ContextValidate ¶
ContextValidate validate this open Api spec tags based on the context it is used
func (*OpenAPISpecTags) MarshalBinary ¶
func (m *OpenAPISpecTags) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OpenAPISpecTags) UnmarshalBinary ¶
func (m *OpenAPISpecTags) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ProfileViolation ¶
type ProfileViolation struct {
// Condition Index
//
// Index of the condition violated in the API Policy Profile
// Required: true
ConditionIndex *int64 `json:"condition_index"`
// Description
//
// Human readable description of the violation
// Required: true
Description *string `json:"description"`
}
ProfileViolation ProfileViolation
swagger:model ProfileViolation
func (*ProfileViolation) ContextValidate ¶
ContextValidate validates this profile violation based on context it is used
func (*ProfileViolation) MarshalBinary ¶
func (m *ProfileViolation) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ProfileViolation) UnmarshalBinary ¶
func (m *ProfileViolation) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ProviderOrConditionsBase ¶
type ProviderOrConditionsBase interface {
runtime.Validatable
runtime.ContextValidatable
// attribute
// Required: true
// Enum: [ProviderRisk ProviderRiskTrend ProviderRiskTrendIsNone ProviderRiskConfidence ProviderRiskConfidenceIsNone ProviderAvgVulnerabilityDuration ProviderAvgVulnerabilityDurationIsNone ProviderName ProviderLocation ProviderLocationIsNone ProviderIndustry ProviderIndustryIsNone]
Attribute() string
SetAttribute(string)
}
ProviderOrConditionsBase provider or conditions base
swagger:discriminator ProviderOrConditionsBase attribute
func UnmarshalProviderOrConditionsBase ¶
func UnmarshalProviderOrConditionsBase(reader io.Reader, consumer runtime.Consumer) (ProviderOrConditionsBase, error)
UnmarshalProviderOrConditionsBase unmarshals polymorphic ProviderOrConditionsBase
func UnmarshalProviderOrConditionsBaseSlice ¶
func UnmarshalProviderOrConditionsBaseSlice(reader io.Reader, consumer runtime.Consumer) ([]ProviderOrConditionsBase, error)
UnmarshalProviderOrConditionsBaseSlice unmarshals polymorphic slices of ProviderOrConditionsBase
type RiskConfidenceEnum ¶
type RiskConfidenceEnum string
RiskConfidenceEnum RiskConfidenceEnum
An enumeration.
swagger:model RiskConfidenceEnum
const ( // RiskConfidenceEnumHIGH captures enum value "HIGH" RiskConfidenceEnumHIGH RiskConfidenceEnum = "HIGH" // RiskConfidenceEnumMEDIUM captures enum value "MEDIUM" RiskConfidenceEnumMEDIUM RiskConfidenceEnum = "MEDIUM" // RiskConfidenceEnumLOW captures enum value "LOW" RiskConfidenceEnumLOW RiskConfidenceEnum = "LOW" )
func NewRiskConfidenceEnum ¶
func NewRiskConfidenceEnum(value RiskConfidenceEnum) *RiskConfidenceEnum
func (RiskConfidenceEnum) ContextValidate ¶
ContextValidate validates this risk confidence enum based on context it is used
func (RiskConfidenceEnum) Pointer ¶
func (m RiskConfidenceEnum) Pointer() *RiskConfidenceEnum
Pointer returns a pointer to a freshly-allocated RiskConfidenceEnum.
type RiskTrendEnum ¶
type RiskTrendEnum string
RiskTrendEnum RiskTrendEnum
An enumeration.
swagger:model RiskTrendEnum
const ( // RiskTrendEnumIMPROVING captures enum value "IMPROVING" RiskTrendEnumIMPROVING RiskTrendEnum = "IMPROVING" // RiskTrendEnumSTABLE captures enum value "STABLE" RiskTrendEnumSTABLE RiskTrendEnum = "STABLE" // RiskTrendEnumDEGRADING captures enum value "DEGRADING" RiskTrendEnumDEGRADING RiskTrendEnum = "DEGRADING" )
func NewRiskTrendEnum ¶
func NewRiskTrendEnum(value RiskTrendEnum) *RiskTrendEnum
func (RiskTrendEnum) ContextValidate ¶
ContextValidate validates this risk trend enum based on context it is used
func (RiskTrendEnum) Pointer ¶
func (m RiskTrendEnum) Pointer() *RiskTrendEnum
Pointer returns a pointer to a freshly-allocated RiskTrendEnum.
type ScoreExitStatusEnum ¶
type ScoreExitStatusEnum string
ScoreExitStatusEnum ScoreExitStatusEnum
An enumeration.
swagger:model ScoreExitStatusEnum
const ( // ScoreExitStatusEnumSUCCESS captures enum value "SUCCESS" ScoreExitStatusEnumSUCCESS ScoreExitStatusEnum = "SUCCESS" // ScoreExitStatusEnumNETWORKFAILURE captures enum value "NETWORK_FAILURE" ScoreExitStatusEnumNETWORKFAILURE ScoreExitStatusEnum = "NETWORK_FAILURE" // ScoreExitStatusEnumTOOLONG captures enum value "TOO_LONG" ScoreExitStatusEnumTOOLONG ScoreExitStatusEnum = "TOO_LONG" // ScoreExitStatusEnumPARSEERROR captures enum value "PARSE_ERROR" ScoreExitStatusEnumPARSEERROR ScoreExitStatusEnum = "PARSE_ERROR" // ScoreExitStatusEnumGENERICFAILURE captures enum value "GENERIC_FAILURE" ScoreExitStatusEnumGENERICFAILURE ScoreExitStatusEnum = "GENERIC_FAILURE" )
func NewScoreExitStatusEnum ¶
func NewScoreExitStatusEnum(value ScoreExitStatusEnum) *ScoreExitStatusEnum
func (ScoreExitStatusEnum) ContextValidate ¶
ContextValidate validates this score exit status enum based on context it is used
func (ScoreExitStatusEnum) Pointer ¶
func (m ScoreExitStatusEnum) Pointer() *ScoreExitStatusEnum
Pointer returns a pointer to a freshly-allocated ScoreExitStatusEnum.
type ScoreFinding ¶
type ScoreFinding struct {
// Additional Info
//
// Finding instance additional attributes
AdditionalInfo []*AdditionalInfo `json:"additional_info"`
// Data
//
// Raw data filled in only for unclassified findings, when allowed
Data interface{} `json:"data,omitempty"`
// Description
//
// Finding description if finding has been classified, None otherwise
Description string `json:"description,omitempty"`
// Mitigation
//
// Finding mitigation if finding has been classified, None otherwise
Mitigation string `json:"mitigation,omitempty"`
// Name
//
// Finding name
// Required: true
Name *string `json:"name"`
// Occurrences
//
// Number of findings of the same type
Occurrences int64 `json:"occurrences,omitempty"`
// Raw Finding Id
//
// Identifier of the raw finding if available
// Format: uuid
RawFindingID strfmt.UUID `json:"raw_finding_id,omitempty"`
// Source
//
// Finding source or filled in with 'Undisclosed' if source cannot be revealed
// Required: true
Source *string `json:"source"`
// Type Id
//
// Finding type identifier if finding has been classified, None otherwise
// Format: uuid
TypeID strfmt.UUID `json:"type_id,omitempty"`
}
ScoreFinding ScoreFinding
swagger:model ScoreFinding
func (*ScoreFinding) ContextValidate ¶
ContextValidate validate this score finding based on the context it is used
func (*ScoreFinding) MarshalBinary ¶
func (m *ScoreFinding) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ScoreFinding) UnmarshalBinary ¶
func (m *ScoreFinding) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ScoreFindingGroup ¶
type ScoreFindingGroup struct {
// Count
// Required: true
Count *int64 `json:"count"`
// Findings
// Required: true
Findings []*ScoreFinding `json:"findings"`
}
ScoreFindingGroup ScoreFindingGroup
swagger:model ScoreFindingGroup
func (*ScoreFindingGroup) ContextValidate ¶
ContextValidate validate this score finding group based on the context it is used
func (*ScoreFindingGroup) MarshalBinary ¶
func (m *ScoreFindingGroup) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ScoreFindingGroup) UnmarshalBinary ¶
func (m *ScoreFindingGroup) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SpecMethod ¶
type SpecMethod struct {
// description
Description string `json:"description,omitempty"`
// findings
Findings *SpecScoreFindings `json:"findings,omitempty"`
// method
Method HTTPMethod `json:"method,omitempty"`
// path
Path string `json:"path,omitempty"`
// severity
Severity APISecurityRiskSeverity `json:"severity,omitempty"`
// tag
Tag string `json:"tag,omitempty"`
}
SpecMethod spec method
swagger:model SpecMethod
func (*SpecMethod) ContextValidate ¶
ContextValidate validate this spec method based on the context it is used
func (*SpecMethod) MarshalBinary ¶
func (m *SpecMethod) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SpecMethod) UnmarshalBinary ¶
func (m *SpecMethod) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SpecScoreElementFinding ¶
type SpecScoreElementFinding struct {
// description
Description string `json:"description,omitempty"`
// mitigation
Mitigation string `json:"mitigation,omitempty"`
// name
Name string `json:"name,omitempty"`
// spec path
SpecPath string `json:"specPath,omitempty"`
}
SpecScoreElementFinding spec score element finding
swagger:model SpecScoreElementFinding
func (*SpecScoreElementFinding) ContextValidate ¶
func (m *SpecScoreElementFinding) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this spec score element finding based on context it is used
func (*SpecScoreElementFinding) MarshalBinary ¶
func (m *SpecScoreElementFinding) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SpecScoreElementFinding) UnmarshalBinary ¶
func (m *SpecScoreElementFinding) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SpecScoreFindings ¶
type SpecScoreFindings struct {
// critical
Critical *SpecScoreFindingsList `json:"critical,omitempty"`
// high
High *SpecScoreFindingsList `json:"high,omitempty"`
// low
Low *SpecScoreFindingsList `json:"low,omitempty"`
// medium
Medium *SpecScoreFindingsList `json:"medium,omitempty"`
// unclassified
Unclassified *SpecScoreFindingsList `json:"unclassified,omitempty"`
}
SpecScoreFindings spec score findings
swagger:model SpecScoreFindings
func (*SpecScoreFindings) ContextValidate ¶
ContextValidate validate this spec score findings based on the context it is used
func (*SpecScoreFindings) MarshalBinary ¶
func (m *SpecScoreFindings) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SpecScoreFindings) UnmarshalBinary ¶
func (m *SpecScoreFindings) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SpecScoreFindingsList ¶
type SpecScoreFindingsList struct {
// count
Count int64 `json:"count,omitempty"`
// elements
Elements []*SpecScoreElementFinding `json:"elements"`
}
SpecScoreFindingsList spec score findings list
swagger:model SpecScoreFindingsList
func (*SpecScoreFindingsList) ContextValidate ¶
ContextValidate validate this spec score findings list based on the context it is used
func (*SpecScoreFindingsList) MarshalBinary ¶
func (m *SpecScoreFindingsList) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SpecScoreFindingsList) UnmarshalBinary ¶
func (m *SpecScoreFindingsList) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type URLSchemeEnum ¶
type URLSchemeEnum string
URLSchemeEnum UrlSchemeEnum
An enumeration.
swagger:model UrlSchemeEnum
const ( // URLSchemeEnumHTTP captures enum value "HTTP" URLSchemeEnumHTTP URLSchemeEnum = "HTTP" // URLSchemeEnumHTTPS captures enum value "HTTPS" URLSchemeEnumHTTPS URLSchemeEnum = "HTTPS" )
func NewURLSchemeEnum ¶
func NewURLSchemeEnum(value URLSchemeEnum) *URLSchemeEnum
func (URLSchemeEnum) ContextValidate ¶
ContextValidate validates this Url scheme enum based on context it is used
func (URLSchemeEnum) Pointer ¶
func (m URLSchemeEnum) Pointer() *URLSchemeEnum
Pointer returns a pointer to a freshly-allocated URLSchemeEnum.
type VulnerabilitiesSummary ¶
type VulnerabilitiesSummary struct {
// critical
// Minimum: 0
Critical *int64 `json:"critical,omitempty"`
// high
// Minimum: 0
High *int64 `json:"high,omitempty"`
// low
// Minimum: 0
Low *int64 `json:"low,omitempty"`
// medium
// Minimum: 0
Medium *int64 `json:"medium,omitempty"`
// total
// Minimum: 0
Total *int64 `json:"total,omitempty"`
// unknown
// Minimum: 0
Unknown *int64 `json:"unknown,omitempty"`
}
VulnerabilitiesSummary Vulnerabilities summary by severity
swagger:model VulnerabilitiesSummary
func (*VulnerabilitiesSummary) ContextValidate ¶
func (m *VulnerabilitiesSummary) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this vulnerabilities summary based on context it is used
func (*VulnerabilitiesSummary) MarshalBinary ¶
func (m *VulnerabilitiesSummary) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*VulnerabilitiesSummary) UnmarshalBinary ¶
func (m *VulnerabilitiesSummary) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files
¶
- additional_info.go
- api_endpoint.go
- api_endpoint_score_grade.go
- api_or_conditions_base.go
- api_policy_profile.go
- api_policy_profile_condition.go
- api_provider_base.go
- api_provider_score_grade.go
- api_security_api.go
- api_security_api_status.go
- api_security_risk_severity.go
- api_service_base.go
- api_service_client_workload.go
- api_service_compliance.go
- api_service_compliance_simple.go
- api_service_drill_down_base.go
- api_service_drill_down_external.go
- api_service_external.go
- api_service_list_external.go
- api_service_profile_compliance.go
- api_service_profile_compliance_simple.go
- api_service_score.go
- api_service_score_grade.go
- category_score_grade.go
- category_score_grade_no_findings.go
- counters_history.go
- endpoint_or_conditions_base.go
- http_method.go
- ip_proto_enum.go
- o_api_v3_components.go
- open_api_spec.go
- open_api_spec_preview.go
- open_api_spec_score_base.go
- open_api_spec_score_components_v3_elements_list.go
- open_api_spec_score_element.go
- open_api_spec_score_elements_list.go
- open_api_spec_score_status.go
- open_api_spec_score_v2.go
- open_api_spec_score_v3.go
- open_api_spec_tag.go
- open_api_spec_tags.go
- profile_violation.go
- provider_or_conditions_base.go
- risk_confidence_enum.go
- risk_trend_enum.go
- score_exit_status_enum.go
- score_finding.go
- score_finding_group.go
- spec_method.go
- spec_score_element_finding.go
- spec_score_findings.go
- spec_score_findings_list.go
- url_scheme_enum.go
- vulnerabilities_summary.go