models

package
v0.0.0-...-4d495be Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
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

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

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

func (*APIEndpoint) Validate

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

Validate validates this Api endpoint

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

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

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

func (*APIEndpointScoreGrade) Validate

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

Validate validates this Api endpoint score grade

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

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

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

func (*APIPolicyProfile) Validate

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

Validate validates this Api policy profile

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

func (*APIPolicyProfileCondition) Validate

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

Validate validates this Api policy profile condition

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

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

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

func (*APIProviderBase) Validate

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

Validate validates this Api provider base

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

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

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

func (*APIProviderScoreGrade) Validate

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

Validate validates this Api provider score grade

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

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

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

func (*APISecurityAPI) Validate

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

Validate validates this Api security Api

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

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

ContextValidate validates this Api security Api status based on context it is used

func (APISecurityAPIStatus) Pointer

Pointer returns a pointer to a freshly-allocated APISecurityAPIStatus.

func (APISecurityAPIStatus) Validate

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

Validate validates this Api security Api status

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

Pointer returns a pointer to a freshly-allocated APISecurityRiskSeverity.

func (APISecurityRiskSeverity) Validate

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

Validate validates this Api security risk severity

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

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

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

func (*APIServiceBase) Validate

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

Validate validates this Api service base

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

func (*APIServiceClientWorkload) Validate

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

Validate validates this Api service client workload

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

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

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

func (*APIServiceCompliance) Validate

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

Validate validates this Api service compliance

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

func (*APIServiceComplianceSimple) Validate

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

Validate validates this Api service compliance simple

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

func (*APIServiceDrillDownBase) Validate

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

Validate validates this Api service drill down base

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

func (*APIServiceDrillDownExternal) Validate

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

Validate validates this Api service drill down external

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

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

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

func (*APIServiceExternal) Validate

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

Validate validates this Api service external

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

func (*APIServiceListExternal) Validate

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

Validate validates this Api service list external

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

func (*APIServiceProfileCompliance) Validate

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

Validate validates this Api service profile compliance

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

func (*APIServiceProfileComplianceSimple) Validate

Validate validates this Api service profile compliance simple

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

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

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

func (*APIServiceScore) Validate

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

Validate validates this Api service score

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

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

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

func (*APIServiceScoreGrade) Validate

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

Validate validates this Api service score grade

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

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

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

func (*AdditionalInfo) Validate

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

Validate validates this additional info

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

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

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

func (*CategoryScoreGrade) Validate

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

Validate validates this category score grade

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

func (*CategoryScoreGradeNoFindings) Validate

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

Validate validates this category score grade no findings

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

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

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

func (*CountersHistory) Validate

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

Validate validates this counters history

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

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

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.

func (HTTPMethod) Validate

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

Validate validates this Http method

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

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

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.

func (IPProtoEnum) Validate

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

Validate validates this Ip proto enum

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

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

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

func (*OAPIV3Components) Validate

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

Validate validates this o API v3 components

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

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

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

func (*OpenAPISpec) Validate

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

Validate validates this open Api spec

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

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

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

func (*OpenAPISpecPreview) Validate

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

Validate validates this open Api spec preview

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

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

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

func (*OpenAPISpecScoreComponentsV3ElementsList) Validate

Validate validates this open Api spec score components v3 elements list

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

func (*OpenAPISpecScoreElement) Validate

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

Validate validates this open Api spec score element

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

func (*OpenAPISpecScoreElementsList) Validate

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

Validate validates this open Api spec score elements list

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

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

ContextValidate validates this open Api spec score status based on context it is used

func (OpenAPISpecScoreStatus) Pointer

Pointer returns a pointer to a freshly-allocated OpenAPISpecScoreStatus.

func (OpenAPISpecScoreStatus) Validate

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

Validate validates this open Api spec score status

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

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

ContextValidate validate this open Api spec score v2 based on the context it is used

func (*OpenAPISpecScoreV2) General

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

Security gets the security of this subtype

func (*OpenAPISpecScoreV2) SetGeneral

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

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

func (*OpenAPISpecScoreV2) Validate

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

Validate validates this open Api spec score v2

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

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

ContextValidate validate this open Api spec score v3 based on the context it is used

func (*OpenAPISpecScoreV3) General

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

Security gets the security of this subtype

func (*OpenAPISpecScoreV3) SetGeneral

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

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

func (*OpenAPISpecScoreV3) Validate

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

Validate validates this open Api spec score v3

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

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

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

func (*OpenAPISpecTag) Validate

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

Validate validates this open Api spec tag

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

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

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

func (*OpenAPISpecTags) Validate

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

Validate validates this open Api spec tags

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

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

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

func (*ProfileViolation) Validate

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

Validate validates this profile violation

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

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

ContextValidate validates this risk confidence enum based on context it is used

func (RiskConfidenceEnum) Pointer

Pointer returns a pointer to a freshly-allocated RiskConfidenceEnum.

func (RiskConfidenceEnum) Validate

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

Validate validates this risk confidence enum

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

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

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.

func (RiskTrendEnum) Validate

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

Validate validates this risk trend enum

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

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

ContextValidate validates this score exit status enum based on context it is used

func (ScoreExitStatusEnum) Pointer

Pointer returns a pointer to a freshly-allocated ScoreExitStatusEnum.

func (ScoreExitStatusEnum) Validate

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

Validate validates this score exit status enum

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

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

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

func (*ScoreFinding) Validate

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

Validate validates this score finding

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

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

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

func (*ScoreFindingGroup) Validate

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

Validate validates this score finding group

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

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

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

func (*SpecMethod) Validate

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

Validate validates this spec method

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

func (*SpecScoreElementFinding) Validate

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

Validate validates this spec score element finding

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

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

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

func (*SpecScoreFindings) Validate

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

Validate validates this spec score findings

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

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

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

func (*SpecScoreFindingsList) Validate

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

Validate validates this spec score findings list

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

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

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.

func (URLSchemeEnum) Validate

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

Validate validates this Url scheme enum

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

func (*VulnerabilitiesSummary) Validate

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

Validate validates this vulnerabilities summary

Jump to

Keyboard shortcuts

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