Documentation ¶
Index ¶
- func PossibleValuesForAssessedResourceType() []string
- func PossibleValuesForSeverity() []string
- func PossibleValuesForSource() []string
- func PossibleValuesForSubAssessmentStatusCode() []string
- func ValidateScopedAssessmentID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateScopedSubAssessmentID(input interface{}, key string) (warnings []string, errors []error)
- type AdditionalData
- type AssessedResourceType
- type CVE
- type CVSS
- type ContainerRegistryVulnerabilityProperties
- type GetOperationResponse
- type ListAllCompleteResult
- type ListAllOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type RawAdditionalDataImpl
- type ResourceDetails
- type ScopedAssessmentId
- type ScopedSubAssessmentId
- type SecuritySubAssessment
- type SecuritySubAssessmentOperationPredicate
- type SecuritySubAssessmentProperties
- type ServerVulnerabilityProperties
- type Severity
- type Source
- type SqlServerVulnerabilityProperties
- type SubAssessmentStatus
- type SubAssessmentStatusCode
- type SubAssessmentsClient
- func (c SubAssessmentsClient) Get(ctx context.Context, id ScopedSubAssessmentId) (result GetOperationResponse, err error)
- func (c SubAssessmentsClient) List(ctx context.Context, id ScopedAssessmentId) (resp ListOperationResponse, err error)
- func (c SubAssessmentsClient) ListAll(ctx context.Context, id commonids.ScopeId) (resp ListAllOperationResponse, err error)
- func (c SubAssessmentsClient) ListAllComplete(ctx context.Context, id commonids.ScopeId) (ListAllCompleteResult, error)
- func (c SubAssessmentsClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, ...) (resp ListAllCompleteResult, err error)
- func (c SubAssessmentsClient) ListComplete(ctx context.Context, id ScopedAssessmentId) (ListCompleteResult, error)
- func (c SubAssessmentsClient) ListCompleteMatchingPredicate(ctx context.Context, id ScopedAssessmentId, ...) (resp ListCompleteResult, err error)
- type VendorReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAssessedResourceType ¶
func PossibleValuesForAssessedResourceType() []string
func PossibleValuesForSeverity ¶
func PossibleValuesForSeverity() []string
func PossibleValuesForSource ¶
func PossibleValuesForSource() []string
func PossibleValuesForSubAssessmentStatusCode ¶
func PossibleValuesForSubAssessmentStatusCode() []string
func ValidateScopedAssessmentID ¶
ValidateScopedAssessmentID checks that 'input' can be parsed as a Scoped Assessment ID
func ValidateScopedSubAssessmentID ¶
func ValidateScopedSubAssessmentID(input interface{}, key string) (warnings []string, errors []error)
ValidateScopedSubAssessmentID checks that 'input' can be parsed as a Scoped Sub Assessment ID
Types ¶
type AdditionalData ¶
type AdditionalData interface { }
type AssessedResourceType ¶
type AssessedResourceType string
const ( AssessedResourceTypeContainerRegistryVulnerability AssessedResourceType = "ContainerRegistryVulnerability" AssessedResourceTypeServerVulnerability AssessedResourceType = "ServerVulnerability" AssessedResourceTypeSqlServerVulnerability AssessedResourceType = "SqlServerVulnerability" )
type ContainerRegistryVulnerabilityProperties ¶
type ContainerRegistryVulnerabilityProperties struct { Cve *[]CVE `json:"cve,omitempty"` Cvss *map[string]CVSS `json:"cvss,omitempty"` ImageDigest *string `json:"imageDigest,omitempty"` Patchable *bool `json:"patchable,omitempty"` PublishedTime *string `json:"publishedTime,omitempty"` RepositoryName *string `json:"repositoryName,omitempty"` Type *string `json:"type,omitempty"` VendorReferences *[]VendorReference `json:"vendorReferences,omitempty"` }
func (ContainerRegistryVulnerabilityProperties) MarshalJSON ¶
func (s ContainerRegistryVulnerabilityProperties) MarshalJSON() ([]byte, error)
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *SecuritySubAssessment }
type ListAllCompleteResult ¶
type ListAllCompleteResult struct {
Items []SecuritySubAssessment
}
type ListAllOperationResponse ¶
type ListAllOperationResponse struct { HttpResponse *http.Response Model *[]SecuritySubAssessment // contains filtered or unexported fields }
func (ListAllOperationResponse) HasMore ¶
func (r ListAllOperationResponse) HasMore() bool
func (ListAllOperationResponse) LoadMore ¶
func (r ListAllOperationResponse) LoadMore(ctx context.Context) (resp ListAllOperationResponse, err error)
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []SecuritySubAssessment
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]SecuritySubAssessment // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
type RawAdditionalDataImpl ¶ added in v0.20230807.1063129
RawAdditionalDataImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).
type ResourceDetails ¶
type ResourceDetails struct {
Source Source `json:"source"`
}
type ScopedAssessmentId ¶
ScopedAssessmentId is a struct representing the Resource ID for a Scoped Assessment
func NewScopedAssessmentID ¶
func NewScopedAssessmentID(resourceId string, assessmentName string) ScopedAssessmentId
NewScopedAssessmentID returns a new ScopedAssessmentId struct
func ParseScopedAssessmentID ¶
func ParseScopedAssessmentID(input string) (*ScopedAssessmentId, error)
ParseScopedAssessmentID parses 'input' into a ScopedAssessmentId
func ParseScopedAssessmentIDInsensitively ¶
func ParseScopedAssessmentIDInsensitively(input string) (*ScopedAssessmentId, error)
ParseScopedAssessmentIDInsensitively parses 'input' case-insensitively into a ScopedAssessmentId note: this method should only be used for API response data and not user input
func (ScopedAssessmentId) ID ¶
func (id ScopedAssessmentId) ID() string
ID returns the formatted Scoped Assessment ID
func (ScopedAssessmentId) Segments ¶
func (id ScopedAssessmentId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scoped Assessment ID
func (ScopedAssessmentId) String ¶
func (id ScopedAssessmentId) String() string
String returns a human-readable description of this Scoped Assessment ID
type ScopedSubAssessmentId ¶
ScopedSubAssessmentId is a struct representing the Resource ID for a Scoped Sub Assessment
func NewScopedSubAssessmentID ¶
func NewScopedSubAssessmentID(scope string, assessmentName string, subAssessmentName string) ScopedSubAssessmentId
NewScopedSubAssessmentID returns a new ScopedSubAssessmentId struct
func ParseScopedSubAssessmentID ¶
func ParseScopedSubAssessmentID(input string) (*ScopedSubAssessmentId, error)
ParseScopedSubAssessmentID parses 'input' into a ScopedSubAssessmentId
func ParseScopedSubAssessmentIDInsensitively ¶
func ParseScopedSubAssessmentIDInsensitively(input string) (*ScopedSubAssessmentId, error)
ParseScopedSubAssessmentIDInsensitively parses 'input' case-insensitively into a ScopedSubAssessmentId note: this method should only be used for API response data and not user input
func (ScopedSubAssessmentId) ID ¶
func (id ScopedSubAssessmentId) ID() string
ID returns the formatted Scoped Sub Assessment ID
func (ScopedSubAssessmentId) Segments ¶
func (id ScopedSubAssessmentId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scoped Sub Assessment ID
func (ScopedSubAssessmentId) String ¶
func (id ScopedSubAssessmentId) String() string
String returns a human-readable description of this Scoped Sub Assessment ID
type SecuritySubAssessment ¶
type SecuritySubAssessment struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SecuritySubAssessmentProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type SecuritySubAssessmentOperationPredicate ¶
func (SecuritySubAssessmentOperationPredicate) Matches ¶
func (p SecuritySubAssessmentOperationPredicate) Matches(input SecuritySubAssessment) bool
type SecuritySubAssessmentProperties ¶
type SecuritySubAssessmentProperties struct { AdditionalData AdditionalData `json:"additionalData"` Category *string `json:"category,omitempty"` Description *string `json:"description,omitempty"` DisplayName *string `json:"displayName,omitempty"` Id *string `json:"id,omitempty"` Impact *string `json:"impact,omitempty"` Remediation *string `json:"remediation,omitempty"` ResourceDetails *ResourceDetails `json:"resourceDetails,omitempty"` Status *SubAssessmentStatus `json:"status,omitempty"` TimeGenerated *string `json:"timeGenerated,omitempty"` }
func (*SecuritySubAssessmentProperties) GetTimeGeneratedAsTime ¶
func (o *SecuritySubAssessmentProperties) GetTimeGeneratedAsTime() (*time.Time, error)
func (*SecuritySubAssessmentProperties) SetTimeGeneratedAsTime ¶
func (o *SecuritySubAssessmentProperties) SetTimeGeneratedAsTime(input time.Time)
func (*SecuritySubAssessmentProperties) UnmarshalJSON ¶
func (s *SecuritySubAssessmentProperties) UnmarshalJSON(bytes []byte) error
type ServerVulnerabilityProperties ¶
type ServerVulnerabilityProperties struct { Cve *[]CVE `json:"cve,omitempty"` Cvss *map[string]CVSS `json:"cvss,omitempty"` Patchable *bool `json:"patchable,omitempty"` PublishedTime *string `json:"publishedTime,omitempty"` Threat *string `json:"threat,omitempty"` Type *string `json:"type,omitempty"` VendorReferences *[]VendorReference `json:"vendorReferences,omitempty"` }
func (ServerVulnerabilityProperties) MarshalJSON ¶
func (s ServerVulnerabilityProperties) MarshalJSON() ([]byte, error)
type SqlServerVulnerabilityProperties ¶
type SqlServerVulnerabilityProperties struct { Query *string `json:"query,omitempty"` Type *string `json:"type,omitempty"` }
func (SqlServerVulnerabilityProperties) MarshalJSON ¶
func (s SqlServerVulnerabilityProperties) MarshalJSON() ([]byte, error)
type SubAssessmentStatus ¶
type SubAssessmentStatus struct { Cause *string `json:"cause,omitempty"` Code *SubAssessmentStatusCode `json:"code,omitempty"` Description *string `json:"description,omitempty"` Severity *Severity `json:"severity,omitempty"` }
type SubAssessmentStatusCode ¶
type SubAssessmentStatusCode string
const ( SubAssessmentStatusCodeHealthy SubAssessmentStatusCode = "Healthy" SubAssessmentStatusCodeNotApplicable SubAssessmentStatusCode = "NotApplicable" SubAssessmentStatusCodeUnhealthy SubAssessmentStatusCode = "Unhealthy" )
type SubAssessmentsClient ¶
type SubAssessmentsClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewSubAssessmentsClientWithBaseURI ¶
func NewSubAssessmentsClientWithBaseURI(endpoint string) SubAssessmentsClient
func (SubAssessmentsClient) Get ¶
func (c SubAssessmentsClient) Get(ctx context.Context, id ScopedSubAssessmentId) (result GetOperationResponse, err error)
Get ...
func (SubAssessmentsClient) List ¶
func (c SubAssessmentsClient) List(ctx context.Context, id ScopedAssessmentId) (resp ListOperationResponse, err error)
List ...
func (SubAssessmentsClient) ListAll ¶
func (c SubAssessmentsClient) ListAll(ctx context.Context, id commonids.ScopeId) (resp ListAllOperationResponse, err error)
ListAll ...
func (SubAssessmentsClient) ListAllComplete ¶
func (c SubAssessmentsClient) ListAllComplete(ctx context.Context, id commonids.ScopeId) (ListAllCompleteResult, error)
ListAllComplete retrieves all of the results into a single object
func (SubAssessmentsClient) ListAllCompleteMatchingPredicate ¶
func (c SubAssessmentsClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate SecuritySubAssessmentOperationPredicate) (resp ListAllCompleteResult, err error)
ListAllCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (SubAssessmentsClient) ListComplete ¶
func (c SubAssessmentsClient) ListComplete(ctx context.Context, id ScopedAssessmentId) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (SubAssessmentsClient) ListCompleteMatchingPredicate ¶
func (c SubAssessmentsClient) ListCompleteMatchingPredicate(ctx context.Context, id ScopedAssessmentId, predicate SecuritySubAssessmentOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type VendorReference ¶
Source Files ¶
- client.go
- constants.go
- id_scopedassessment.go
- id_scopedsubassessment.go
- method_get_autorest.go
- method_list_autorest.go
- method_listall_autorest.go
- model_additionaldata.go
- model_containerregistryvulnerabilityproperties.go
- model_cve.go
- model_cvss.go
- model_resourcedetails.go
- model_securitysubassessment.go
- model_securitysubassessmentproperties.go
- model_servervulnerabilityproperties.go
- model_sqlservervulnerabilityproperties.go
- model_subassessmentstatus.go
- model_vendorreference.go
- predicates.go
- version.go