Documentation
¶
Index ¶
- type API
- type Client
- type GetSecuritySummaryForbidden
- func (o *GetSecuritySummaryForbidden) Error() string
- func (o *GetSecuritySummaryForbidden) GetPayload() *models.Errors
- func (o *GetSecuritySummaryForbidden) IsClientError() bool
- func (o *GetSecuritySummaryForbidden) IsCode(code int) bool
- func (o *GetSecuritySummaryForbidden) IsRedirect() bool
- func (o *GetSecuritySummaryForbidden) IsServerError() bool
- func (o *GetSecuritySummaryForbidden) IsSuccess() bool
- func (o *GetSecuritySummaryForbidden) String() string
- type GetSecuritySummaryInternalServerError
- func (o *GetSecuritySummaryInternalServerError) Error() string
- func (o *GetSecuritySummaryInternalServerError) GetPayload() *models.Errors
- func (o *GetSecuritySummaryInternalServerError) IsClientError() bool
- func (o *GetSecuritySummaryInternalServerError) IsCode(code int) bool
- func (o *GetSecuritySummaryInternalServerError) IsRedirect() bool
- func (o *GetSecuritySummaryInternalServerError) IsServerError() bool
- func (o *GetSecuritySummaryInternalServerError) IsSuccess() bool
- func (o *GetSecuritySummaryInternalServerError) String() string
- type GetSecuritySummaryNotFound
- func (o *GetSecuritySummaryNotFound) Error() string
- func (o *GetSecuritySummaryNotFound) GetPayload() *models.Errors
- func (o *GetSecuritySummaryNotFound) IsClientError() bool
- func (o *GetSecuritySummaryNotFound) IsCode(code int) bool
- func (o *GetSecuritySummaryNotFound) IsRedirect() bool
- func (o *GetSecuritySummaryNotFound) IsServerError() bool
- func (o *GetSecuritySummaryNotFound) IsSuccess() bool
- func (o *GetSecuritySummaryNotFound) String() string
- type GetSecuritySummaryOK
- func (o *GetSecuritySummaryOK) Error() string
- func (o *GetSecuritySummaryOK) GetPayload() *models.SecuritySummary
- func (o *GetSecuritySummaryOK) IsClientError() bool
- func (o *GetSecuritySummaryOK) IsCode(code int) bool
- func (o *GetSecuritySummaryOK) IsRedirect() bool
- func (o *GetSecuritySummaryOK) IsServerError() bool
- func (o *GetSecuritySummaryOK) IsSuccess() bool
- func (o *GetSecuritySummaryOK) String() string
- type GetSecuritySummaryParams
- func NewGetSecuritySummaryParams() *GetSecuritySummaryParams
- func NewGetSecuritySummaryParamsWithContext(ctx context.Context) *GetSecuritySummaryParams
- func NewGetSecuritySummaryParamsWithHTTPClient(client *http.Client) *GetSecuritySummaryParams
- func NewGetSecuritySummaryParamsWithTimeout(timeout time.Duration) *GetSecuritySummaryParams
- func (o *GetSecuritySummaryParams) SetContext(ctx context.Context)
- func (o *GetSecuritySummaryParams) SetDefaults()
- func (o *GetSecuritySummaryParams) SetHTTPClient(client *http.Client)
- func (o *GetSecuritySummaryParams) SetTimeout(timeout time.Duration)
- func (o *GetSecuritySummaryParams) SetWithDangerousArtifact(withDangerousArtifact *bool)
- func (o *GetSecuritySummaryParams) SetWithDangerousCVE(withDangerousCVE *bool)
- func (o *GetSecuritySummaryParams) SetXRequestID(xRequestID *string)
- func (o *GetSecuritySummaryParams) WithContext(ctx context.Context) *GetSecuritySummaryParams
- func (o *GetSecuritySummaryParams) WithDefaults() *GetSecuritySummaryParams
- func (o *GetSecuritySummaryParams) WithHTTPClient(client *http.Client) *GetSecuritySummaryParams
- func (o *GetSecuritySummaryParams) WithTimeout(timeout time.Duration) *GetSecuritySummaryParams
- func (o *GetSecuritySummaryParams) WithWithDangerousArtifact(withDangerousArtifact *bool) *GetSecuritySummaryParams
- func (o *GetSecuritySummaryParams) WithWithDangerousCVE(withDangerousCVE *bool) *GetSecuritySummaryParams
- func (o *GetSecuritySummaryParams) WithXRequestID(xRequestID *string) *GetSecuritySummaryParams
- func (o *GetSecuritySummaryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSecuritySummaryReader
- type GetSecuritySummaryUnauthorized
- func (o *GetSecuritySummaryUnauthorized) Error() string
- func (o *GetSecuritySummaryUnauthorized) GetPayload() *models.Errors
- func (o *GetSecuritySummaryUnauthorized) IsClientError() bool
- func (o *GetSecuritySummaryUnauthorized) IsCode(code int) bool
- func (o *GetSecuritySummaryUnauthorized) IsRedirect() bool
- func (o *GetSecuritySummaryUnauthorized) IsServerError() bool
- func (o *GetSecuritySummaryUnauthorized) IsSuccess() bool
- func (o *GetSecuritySummaryUnauthorized) String() string
- type ListVulnerabilitiesBadRequest
- func (o *ListVulnerabilitiesBadRequest) Error() string
- func (o *ListVulnerabilitiesBadRequest) GetPayload() *models.Errors
- func (o *ListVulnerabilitiesBadRequest) IsClientError() bool
- func (o *ListVulnerabilitiesBadRequest) IsCode(code int) bool
- func (o *ListVulnerabilitiesBadRequest) IsRedirect() bool
- func (o *ListVulnerabilitiesBadRequest) IsServerError() bool
- func (o *ListVulnerabilitiesBadRequest) IsSuccess() bool
- func (o *ListVulnerabilitiesBadRequest) String() string
- type ListVulnerabilitiesInternalServerError
- func (o *ListVulnerabilitiesInternalServerError) Error() string
- func (o *ListVulnerabilitiesInternalServerError) GetPayload() *models.Errors
- func (o *ListVulnerabilitiesInternalServerError) IsClientError() bool
- func (o *ListVulnerabilitiesInternalServerError) IsCode(code int) bool
- func (o *ListVulnerabilitiesInternalServerError) IsRedirect() bool
- func (o *ListVulnerabilitiesInternalServerError) IsServerError() bool
- func (o *ListVulnerabilitiesInternalServerError) IsSuccess() bool
- func (o *ListVulnerabilitiesInternalServerError) String() string
- type ListVulnerabilitiesOK
- func (o *ListVulnerabilitiesOK) Error() string
- func (o *ListVulnerabilitiesOK) GetPayload() []*models.VulnerabilityItem
- func (o *ListVulnerabilitiesOK) IsClientError() bool
- func (o *ListVulnerabilitiesOK) IsCode(code int) bool
- func (o *ListVulnerabilitiesOK) IsRedirect() bool
- func (o *ListVulnerabilitiesOK) IsServerError() bool
- func (o *ListVulnerabilitiesOK) IsSuccess() bool
- func (o *ListVulnerabilitiesOK) String() string
- type ListVulnerabilitiesParams
- func NewListVulnerabilitiesParams() *ListVulnerabilitiesParams
- func NewListVulnerabilitiesParamsWithContext(ctx context.Context) *ListVulnerabilitiesParams
- func NewListVulnerabilitiesParamsWithHTTPClient(client *http.Client) *ListVulnerabilitiesParams
- func NewListVulnerabilitiesParamsWithTimeout(timeout time.Duration) *ListVulnerabilitiesParams
- func (o *ListVulnerabilitiesParams) SetContext(ctx context.Context)
- func (o *ListVulnerabilitiesParams) SetDefaults()
- func (o *ListVulnerabilitiesParams) SetHTTPClient(client *http.Client)
- func (o *ListVulnerabilitiesParams) SetPage(page *int64)
- func (o *ListVulnerabilitiesParams) SetPageSize(pageSize *int64)
- func (o *ListVulnerabilitiesParams) SetQ(q *string)
- func (o *ListVulnerabilitiesParams) SetTimeout(timeout time.Duration)
- func (o *ListVulnerabilitiesParams) SetTuneCount(tuneCount *bool)
- func (o *ListVulnerabilitiesParams) SetWithTag(withTag *bool)
- func (o *ListVulnerabilitiesParams) SetXRequestID(xRequestID *string)
- func (o *ListVulnerabilitiesParams) WithContext(ctx context.Context) *ListVulnerabilitiesParams
- func (o *ListVulnerabilitiesParams) WithDefaults() *ListVulnerabilitiesParams
- func (o *ListVulnerabilitiesParams) WithHTTPClient(client *http.Client) *ListVulnerabilitiesParams
- func (o *ListVulnerabilitiesParams) WithPage(page *int64) *ListVulnerabilitiesParams
- func (o *ListVulnerabilitiesParams) WithPageSize(pageSize *int64) *ListVulnerabilitiesParams
- func (o *ListVulnerabilitiesParams) WithQ(q *string) *ListVulnerabilitiesParams
- func (o *ListVulnerabilitiesParams) WithTimeout(timeout time.Duration) *ListVulnerabilitiesParams
- func (o *ListVulnerabilitiesParams) WithTuneCount(tuneCount *bool) *ListVulnerabilitiesParams
- func (o *ListVulnerabilitiesParams) WithWithTag(withTag *bool) *ListVulnerabilitiesParams
- func (o *ListVulnerabilitiesParams) WithXRequestID(xRequestID *string) *ListVulnerabilitiesParams
- func (o *ListVulnerabilitiesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListVulnerabilitiesReader
- type ListVulnerabilitiesUnauthorized
- func (o *ListVulnerabilitiesUnauthorized) Error() string
- func (o *ListVulnerabilitiesUnauthorized) GetPayload() *models.Errors
- func (o *ListVulnerabilitiesUnauthorized) IsClientError() bool
- func (o *ListVulnerabilitiesUnauthorized) IsCode(code int) bool
- func (o *ListVulnerabilitiesUnauthorized) IsRedirect() bool
- func (o *ListVulnerabilitiesUnauthorized) IsServerError() bool
- func (o *ListVulnerabilitiesUnauthorized) IsSuccess() bool
- func (o *ListVulnerabilitiesUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { /* ListVulnerabilities gets the vulnerability list Get the vulnerability list. use q to pass the query condition, supported conditions: cve_id(exact match) cvss_score_v3(range condition) severity(exact match) repository_name(exact match) project_id(exact match) package(exact match) tag(exact match) digest(exact match) */ ListVulnerabilities(ctx context.Context, params *ListVulnerabilitiesParams) (*ListVulnerabilitiesOK, error) /* GetSecuritySummary gets vulnerability system summary Retrieve the vulnerability summary of the system*/ GetSecuritySummary(ctx context.Context, params *GetSecuritySummaryParams) (*GetSecuritySummaryOK, error) }
API is the interface of the securityhub client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for securityhub API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client
New creates a new securityhub API client.
func (*Client) GetSecuritySummary ¶
func (a *Client) GetSecuritySummary(ctx context.Context, params *GetSecuritySummaryParams) (*GetSecuritySummaryOK, error)
GetSecuritySummary gets vulnerability system summary
Retrieve the vulnerability summary of the system
func (*Client) ListVulnerabilities ¶
func (a *Client) ListVulnerabilities(ctx context.Context, params *ListVulnerabilitiesParams) (*ListVulnerabilitiesOK, error)
ListVulnerabilities gets the vulnerability list
Get the vulnerability list. use q to pass the query condition, supported conditions: cve_id(exact match) cvss_score_v3(range condition) severity(exact match) repository_name(exact match) project_id(exact match) package(exact match) tag(exact match) digest(exact match)
type GetSecuritySummaryForbidden ¶
type GetSecuritySummaryForbidden struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetSecuritySummaryForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetSecuritySummaryForbidden ¶
func NewGetSecuritySummaryForbidden() *GetSecuritySummaryForbidden
NewGetSecuritySummaryForbidden creates a GetSecuritySummaryForbidden with default headers values
func (*GetSecuritySummaryForbidden) Error ¶
func (o *GetSecuritySummaryForbidden) Error() string
func (*GetSecuritySummaryForbidden) GetPayload ¶
func (o *GetSecuritySummaryForbidden) GetPayload() *models.Errors
func (*GetSecuritySummaryForbidden) IsClientError ¶
func (o *GetSecuritySummaryForbidden) IsClientError() bool
IsClientError returns true when this get security summary forbidden response has a 4xx status code
func (*GetSecuritySummaryForbidden) IsCode ¶
func (o *GetSecuritySummaryForbidden) IsCode(code int) bool
IsCode returns true when this get security summary forbidden response a status code equal to that given
func (*GetSecuritySummaryForbidden) IsRedirect ¶
func (o *GetSecuritySummaryForbidden) IsRedirect() bool
IsRedirect returns true when this get security summary forbidden response has a 3xx status code
func (*GetSecuritySummaryForbidden) IsServerError ¶
func (o *GetSecuritySummaryForbidden) IsServerError() bool
IsServerError returns true when this get security summary forbidden response has a 5xx status code
func (*GetSecuritySummaryForbidden) IsSuccess ¶
func (o *GetSecuritySummaryForbidden) IsSuccess() bool
IsSuccess returns true when this get security summary forbidden response has a 2xx status code
func (*GetSecuritySummaryForbidden) String ¶
func (o *GetSecuritySummaryForbidden) String() string
type GetSecuritySummaryInternalServerError ¶
type GetSecuritySummaryInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetSecuritySummaryInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewGetSecuritySummaryInternalServerError ¶
func NewGetSecuritySummaryInternalServerError() *GetSecuritySummaryInternalServerError
NewGetSecuritySummaryInternalServerError creates a GetSecuritySummaryInternalServerError with default headers values
func (*GetSecuritySummaryInternalServerError) Error ¶
func (o *GetSecuritySummaryInternalServerError) Error() string
func (*GetSecuritySummaryInternalServerError) GetPayload ¶
func (o *GetSecuritySummaryInternalServerError) GetPayload() *models.Errors
func (*GetSecuritySummaryInternalServerError) IsClientError ¶
func (o *GetSecuritySummaryInternalServerError) IsClientError() bool
IsClientError returns true when this get security summary internal server error response has a 4xx status code
func (*GetSecuritySummaryInternalServerError) IsCode ¶
func (o *GetSecuritySummaryInternalServerError) IsCode(code int) bool
IsCode returns true when this get security summary internal server error response a status code equal to that given
func (*GetSecuritySummaryInternalServerError) IsRedirect ¶
func (o *GetSecuritySummaryInternalServerError) IsRedirect() bool
IsRedirect returns true when this get security summary internal server error response has a 3xx status code
func (*GetSecuritySummaryInternalServerError) IsServerError ¶
func (o *GetSecuritySummaryInternalServerError) IsServerError() bool
IsServerError returns true when this get security summary internal server error response has a 5xx status code
func (*GetSecuritySummaryInternalServerError) IsSuccess ¶
func (o *GetSecuritySummaryInternalServerError) IsSuccess() bool
IsSuccess returns true when this get security summary internal server error response has a 2xx status code
func (*GetSecuritySummaryInternalServerError) String ¶
func (o *GetSecuritySummaryInternalServerError) String() string
type GetSecuritySummaryNotFound ¶
type GetSecuritySummaryNotFound struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetSecuritySummaryNotFound describes a response with status code 404, with default header values.
Not found
func NewGetSecuritySummaryNotFound ¶
func NewGetSecuritySummaryNotFound() *GetSecuritySummaryNotFound
NewGetSecuritySummaryNotFound creates a GetSecuritySummaryNotFound with default headers values
func (*GetSecuritySummaryNotFound) Error ¶
func (o *GetSecuritySummaryNotFound) Error() string
func (*GetSecuritySummaryNotFound) GetPayload ¶
func (o *GetSecuritySummaryNotFound) GetPayload() *models.Errors
func (*GetSecuritySummaryNotFound) IsClientError ¶
func (o *GetSecuritySummaryNotFound) IsClientError() bool
IsClientError returns true when this get security summary not found response has a 4xx status code
func (*GetSecuritySummaryNotFound) IsCode ¶
func (o *GetSecuritySummaryNotFound) IsCode(code int) bool
IsCode returns true when this get security summary not found response a status code equal to that given
func (*GetSecuritySummaryNotFound) IsRedirect ¶
func (o *GetSecuritySummaryNotFound) IsRedirect() bool
IsRedirect returns true when this get security summary not found response has a 3xx status code
func (*GetSecuritySummaryNotFound) IsServerError ¶
func (o *GetSecuritySummaryNotFound) IsServerError() bool
IsServerError returns true when this get security summary not found response has a 5xx status code
func (*GetSecuritySummaryNotFound) IsSuccess ¶
func (o *GetSecuritySummaryNotFound) IsSuccess() bool
IsSuccess returns true when this get security summary not found response has a 2xx status code
func (*GetSecuritySummaryNotFound) String ¶
func (o *GetSecuritySummaryNotFound) String() string
type GetSecuritySummaryOK ¶
type GetSecuritySummaryOK struct {
Payload *models.SecuritySummary
}
GetSecuritySummaryOK describes a response with status code 200, with default header values.
Success
func NewGetSecuritySummaryOK ¶
func NewGetSecuritySummaryOK() *GetSecuritySummaryOK
NewGetSecuritySummaryOK creates a GetSecuritySummaryOK with default headers values
func (*GetSecuritySummaryOK) Error ¶
func (o *GetSecuritySummaryOK) Error() string
func (*GetSecuritySummaryOK) GetPayload ¶
func (o *GetSecuritySummaryOK) GetPayload() *models.SecuritySummary
func (*GetSecuritySummaryOK) IsClientError ¶
func (o *GetSecuritySummaryOK) IsClientError() bool
IsClientError returns true when this get security summary o k response has a 4xx status code
func (*GetSecuritySummaryOK) IsCode ¶
func (o *GetSecuritySummaryOK) IsCode(code int) bool
IsCode returns true when this get security summary o k response a status code equal to that given
func (*GetSecuritySummaryOK) IsRedirect ¶
func (o *GetSecuritySummaryOK) IsRedirect() bool
IsRedirect returns true when this get security summary o k response has a 3xx status code
func (*GetSecuritySummaryOK) IsServerError ¶
func (o *GetSecuritySummaryOK) IsServerError() bool
IsServerError returns true when this get security summary o k response has a 5xx status code
func (*GetSecuritySummaryOK) IsSuccess ¶
func (o *GetSecuritySummaryOK) IsSuccess() bool
IsSuccess returns true when this get security summary o k response has a 2xx status code
func (*GetSecuritySummaryOK) String ¶
func (o *GetSecuritySummaryOK) String() string
type GetSecuritySummaryParams ¶
type GetSecuritySummaryParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string /* WithDangerousArtifact. Specify whether the dangerous Artifact are included inside summary information */ WithDangerousArtifact *bool /* WithDangerousCVE. Specify whether the dangerous CVEs are included inside summary information */ WithDangerousCVE *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSecuritySummaryParams contains all the parameters to send to the API endpoint
for the get security summary operation. Typically these are written to a http.Request.
func NewGetSecuritySummaryParams ¶
func NewGetSecuritySummaryParams() *GetSecuritySummaryParams
NewGetSecuritySummaryParams creates a new GetSecuritySummaryParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetSecuritySummaryParamsWithContext ¶
func NewGetSecuritySummaryParamsWithContext(ctx context.Context) *GetSecuritySummaryParams
NewGetSecuritySummaryParamsWithContext creates a new GetSecuritySummaryParams object with the ability to set a context for a request.
func NewGetSecuritySummaryParamsWithHTTPClient ¶
func NewGetSecuritySummaryParamsWithHTTPClient(client *http.Client) *GetSecuritySummaryParams
NewGetSecuritySummaryParamsWithHTTPClient creates a new GetSecuritySummaryParams object with the ability to set a custom HTTPClient for a request.
func NewGetSecuritySummaryParamsWithTimeout ¶
func NewGetSecuritySummaryParamsWithTimeout(timeout time.Duration) *GetSecuritySummaryParams
NewGetSecuritySummaryParamsWithTimeout creates a new GetSecuritySummaryParams object with the ability to set a timeout on a request.
func (*GetSecuritySummaryParams) SetContext ¶
func (o *GetSecuritySummaryParams) SetContext(ctx context.Context)
SetContext adds the context to the get security summary params
func (*GetSecuritySummaryParams) SetDefaults ¶
func (o *GetSecuritySummaryParams) SetDefaults()
SetDefaults hydrates default values in the get security summary params (not the query body).
All values with no default are reset to their zero value.
func (*GetSecuritySummaryParams) SetHTTPClient ¶
func (o *GetSecuritySummaryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get security summary params
func (*GetSecuritySummaryParams) SetTimeout ¶
func (o *GetSecuritySummaryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get security summary params
func (*GetSecuritySummaryParams) SetWithDangerousArtifact ¶
func (o *GetSecuritySummaryParams) SetWithDangerousArtifact(withDangerousArtifact *bool)
SetWithDangerousArtifact adds the withDangerousArtifact to the get security summary params
func (*GetSecuritySummaryParams) SetWithDangerousCVE ¶
func (o *GetSecuritySummaryParams) SetWithDangerousCVE(withDangerousCVE *bool)
SetWithDangerousCVE adds the withDangerousCve to the get security summary params
func (*GetSecuritySummaryParams) SetXRequestID ¶
func (o *GetSecuritySummaryParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get security summary params
func (*GetSecuritySummaryParams) WithContext ¶
func (o *GetSecuritySummaryParams) WithContext(ctx context.Context) *GetSecuritySummaryParams
WithContext adds the context to the get security summary params
func (*GetSecuritySummaryParams) WithDefaults ¶
func (o *GetSecuritySummaryParams) WithDefaults() *GetSecuritySummaryParams
WithDefaults hydrates default values in the get security summary params (not the query body).
All values with no default are reset to their zero value.
func (*GetSecuritySummaryParams) WithHTTPClient ¶
func (o *GetSecuritySummaryParams) WithHTTPClient(client *http.Client) *GetSecuritySummaryParams
WithHTTPClient adds the HTTPClient to the get security summary params
func (*GetSecuritySummaryParams) WithTimeout ¶
func (o *GetSecuritySummaryParams) WithTimeout(timeout time.Duration) *GetSecuritySummaryParams
WithTimeout adds the timeout to the get security summary params
func (*GetSecuritySummaryParams) WithWithDangerousArtifact ¶
func (o *GetSecuritySummaryParams) WithWithDangerousArtifact(withDangerousArtifact *bool) *GetSecuritySummaryParams
WithWithDangerousArtifact adds the withDangerousArtifact to the get security summary params
func (*GetSecuritySummaryParams) WithWithDangerousCVE ¶
func (o *GetSecuritySummaryParams) WithWithDangerousCVE(withDangerousCVE *bool) *GetSecuritySummaryParams
WithWithDangerousCVE adds the withDangerousCVE to the get security summary params
func (*GetSecuritySummaryParams) WithXRequestID ¶
func (o *GetSecuritySummaryParams) WithXRequestID(xRequestID *string) *GetSecuritySummaryParams
WithXRequestID adds the xRequestID to the get security summary params
func (*GetSecuritySummaryParams) WriteToRequest ¶
func (o *GetSecuritySummaryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSecuritySummaryReader ¶
type GetSecuritySummaryReader struct {
// contains filtered or unexported fields
}
GetSecuritySummaryReader is a Reader for the GetSecuritySummary structure.
func (*GetSecuritySummaryReader) ReadResponse ¶
func (o *GetSecuritySummaryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSecuritySummaryUnauthorized ¶
type GetSecuritySummaryUnauthorized struct { string }XRequestID
GetSecuritySummaryUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetSecuritySummaryUnauthorized ¶
func NewGetSecuritySummaryUnauthorized() *GetSecuritySummaryUnauthorized
NewGetSecuritySummaryUnauthorized creates a GetSecuritySummaryUnauthorized with default headers values
func (*GetSecuritySummaryUnauthorized) Error ¶
func (o *GetSecuritySummaryUnauthorized) Error() string
func (*GetSecuritySummaryUnauthorized) GetPayload ¶
func (o *GetSecuritySummaryUnauthorized) GetPayload() *models.Errors
func (*GetSecuritySummaryUnauthorized) IsClientError ¶
func (o *GetSecuritySummaryUnauthorized) IsClientError() bool
IsClientError returns true when this get security summary unauthorized response has a 4xx status code
func (*GetSecuritySummaryUnauthorized) IsCode ¶
func (o *GetSecuritySummaryUnauthorized) IsCode(code int) bool
IsCode returns true when this get security summary unauthorized response a status code equal to that given
func (*GetSecuritySummaryUnauthorized) IsRedirect ¶
func (o *GetSecuritySummaryUnauthorized) IsRedirect() bool
IsRedirect returns true when this get security summary unauthorized response has a 3xx status code
func (*GetSecuritySummaryUnauthorized) IsServerError ¶
func (o *GetSecuritySummaryUnauthorized) IsServerError() bool
IsServerError returns true when this get security summary unauthorized response has a 5xx status code
func (*GetSecuritySummaryUnauthorized) IsSuccess ¶
func (o *GetSecuritySummaryUnauthorized) IsSuccess() bool
IsSuccess returns true when this get security summary unauthorized response has a 2xx status code
func (*GetSecuritySummaryUnauthorized) String ¶
func (o *GetSecuritySummaryUnauthorized) String() string
type ListVulnerabilitiesBadRequest ¶
type ListVulnerabilitiesBadRequest struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
ListVulnerabilitiesBadRequest describes a response with status code 400, with default header values.
Bad request
func NewListVulnerabilitiesBadRequest ¶
func NewListVulnerabilitiesBadRequest() *ListVulnerabilitiesBadRequest
NewListVulnerabilitiesBadRequest creates a ListVulnerabilitiesBadRequest with default headers values
func (*ListVulnerabilitiesBadRequest) Error ¶
func (o *ListVulnerabilitiesBadRequest) Error() string
func (*ListVulnerabilitiesBadRequest) GetPayload ¶
func (o *ListVulnerabilitiesBadRequest) GetPayload() *models.Errors
func (*ListVulnerabilitiesBadRequest) IsClientError ¶
func (o *ListVulnerabilitiesBadRequest) IsClientError() bool
IsClientError returns true when this list vulnerabilities bad request response has a 4xx status code
func (*ListVulnerabilitiesBadRequest) IsCode ¶
func (o *ListVulnerabilitiesBadRequest) IsCode(code int) bool
IsCode returns true when this list vulnerabilities bad request response a status code equal to that given
func (*ListVulnerabilitiesBadRequest) IsRedirect ¶
func (o *ListVulnerabilitiesBadRequest) IsRedirect() bool
IsRedirect returns true when this list vulnerabilities bad request response has a 3xx status code
func (*ListVulnerabilitiesBadRequest) IsServerError ¶
func (o *ListVulnerabilitiesBadRequest) IsServerError() bool
IsServerError returns true when this list vulnerabilities bad request response has a 5xx status code
func (*ListVulnerabilitiesBadRequest) IsSuccess ¶
func (o *ListVulnerabilitiesBadRequest) IsSuccess() bool
IsSuccess returns true when this list vulnerabilities bad request response has a 2xx status code
func (*ListVulnerabilitiesBadRequest) String ¶
func (o *ListVulnerabilitiesBadRequest) String() string
type ListVulnerabilitiesInternalServerError ¶
type ListVulnerabilitiesInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
ListVulnerabilitiesInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewListVulnerabilitiesInternalServerError ¶
func NewListVulnerabilitiesInternalServerError() *ListVulnerabilitiesInternalServerError
NewListVulnerabilitiesInternalServerError creates a ListVulnerabilitiesInternalServerError with default headers values
func (*ListVulnerabilitiesInternalServerError) Error ¶
func (o *ListVulnerabilitiesInternalServerError) Error() string
func (*ListVulnerabilitiesInternalServerError) GetPayload ¶
func (o *ListVulnerabilitiesInternalServerError) GetPayload() *models.Errors
func (*ListVulnerabilitiesInternalServerError) IsClientError ¶
func (o *ListVulnerabilitiesInternalServerError) IsClientError() bool
IsClientError returns true when this list vulnerabilities internal server error response has a 4xx status code
func (*ListVulnerabilitiesInternalServerError) IsCode ¶
func (o *ListVulnerabilitiesInternalServerError) IsCode(code int) bool
IsCode returns true when this list vulnerabilities internal server error response a status code equal to that given
func (*ListVulnerabilitiesInternalServerError) IsRedirect ¶
func (o *ListVulnerabilitiesInternalServerError) IsRedirect() bool
IsRedirect returns true when this list vulnerabilities internal server error response has a 3xx status code
func (*ListVulnerabilitiesInternalServerError) IsServerError ¶
func (o *ListVulnerabilitiesInternalServerError) IsServerError() bool
IsServerError returns true when this list vulnerabilities internal server error response has a 5xx status code
func (*ListVulnerabilitiesInternalServerError) IsSuccess ¶
func (o *ListVulnerabilitiesInternalServerError) IsSuccess() bool
IsSuccess returns true when this list vulnerabilities internal server error response has a 2xx status code
func (*ListVulnerabilitiesInternalServerError) String ¶
func (o *ListVulnerabilitiesInternalServerError) String() string
type ListVulnerabilitiesOK ¶
type ListVulnerabilitiesOK struct { /* Link refers to the previous page and next page */ Link string /* The total count of vulnerabilities */ XTotalCount int64 Payload []*models.VulnerabilityItem }
ListVulnerabilitiesOK describes a response with status code 200, with default header values.
The vulnerability list.
func NewListVulnerabilitiesOK ¶
func NewListVulnerabilitiesOK() *ListVulnerabilitiesOK
NewListVulnerabilitiesOK creates a ListVulnerabilitiesOK with default headers values
func (*ListVulnerabilitiesOK) Error ¶
func (o *ListVulnerabilitiesOK) Error() string
func (*ListVulnerabilitiesOK) GetPayload ¶
func (o *ListVulnerabilitiesOK) GetPayload() []*models.VulnerabilityItem
func (*ListVulnerabilitiesOK) IsClientError ¶
func (o *ListVulnerabilitiesOK) IsClientError() bool
IsClientError returns true when this list vulnerabilities o k response has a 4xx status code
func (*ListVulnerabilitiesOK) IsCode ¶
func (o *ListVulnerabilitiesOK) IsCode(code int) bool
IsCode returns true when this list vulnerabilities o k response a status code equal to that given
func (*ListVulnerabilitiesOK) IsRedirect ¶
func (o *ListVulnerabilitiesOK) IsRedirect() bool
IsRedirect returns true when this list vulnerabilities o k response has a 3xx status code
func (*ListVulnerabilitiesOK) IsServerError ¶
func (o *ListVulnerabilitiesOK) IsServerError() bool
IsServerError returns true when this list vulnerabilities o k response has a 5xx status code
func (*ListVulnerabilitiesOK) IsSuccess ¶
func (o *ListVulnerabilitiesOK) IsSuccess() bool
IsSuccess returns true when this list vulnerabilities o k response has a 2xx status code
func (*ListVulnerabilitiesOK) String ¶
func (o *ListVulnerabilitiesOK) String() string
type ListVulnerabilitiesParams ¶
type ListVulnerabilitiesParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string /* Page. The page number Format: int64 Default: 1 */ Page *int64 /* PageSize. The size of per page Format: int64 Default: 10 */ PageSize *int64 /* Q. Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max] */ Q *string /* TuneCount. Enable to ignore X-Total-Count when the total count > 1000, if the total count is less than 1000, the real total count is returned, else -1. */ TuneCount *bool /* WithTag. Specify whether the tag information is included inside vulnerability information */ WithTag *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListVulnerabilitiesParams contains all the parameters to send to the API endpoint
for the list vulnerabilities operation. Typically these are written to a http.Request.
func NewListVulnerabilitiesParams ¶
func NewListVulnerabilitiesParams() *ListVulnerabilitiesParams
NewListVulnerabilitiesParams creates a new ListVulnerabilitiesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewListVulnerabilitiesParamsWithContext ¶
func NewListVulnerabilitiesParamsWithContext(ctx context.Context) *ListVulnerabilitiesParams
NewListVulnerabilitiesParamsWithContext creates a new ListVulnerabilitiesParams object with the ability to set a context for a request.
func NewListVulnerabilitiesParamsWithHTTPClient ¶
func NewListVulnerabilitiesParamsWithHTTPClient(client *http.Client) *ListVulnerabilitiesParams
NewListVulnerabilitiesParamsWithHTTPClient creates a new ListVulnerabilitiesParams object with the ability to set a custom HTTPClient for a request.
func NewListVulnerabilitiesParamsWithTimeout ¶
func NewListVulnerabilitiesParamsWithTimeout(timeout time.Duration) *ListVulnerabilitiesParams
NewListVulnerabilitiesParamsWithTimeout creates a new ListVulnerabilitiesParams object with the ability to set a timeout on a request.
func (*ListVulnerabilitiesParams) SetContext ¶
func (o *ListVulnerabilitiesParams) SetContext(ctx context.Context)
SetContext adds the context to the list vulnerabilities params
func (*ListVulnerabilitiesParams) SetDefaults ¶
func (o *ListVulnerabilitiesParams) SetDefaults()
SetDefaults hydrates default values in the list vulnerabilities params (not the query body).
All values with no default are reset to their zero value.
func (*ListVulnerabilitiesParams) SetHTTPClient ¶
func (o *ListVulnerabilitiesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list vulnerabilities params
func (*ListVulnerabilitiesParams) SetPage ¶
func (o *ListVulnerabilitiesParams) SetPage(page *int64)
SetPage adds the page to the list vulnerabilities params
func (*ListVulnerabilitiesParams) SetPageSize ¶
func (o *ListVulnerabilitiesParams) SetPageSize(pageSize *int64)
SetPageSize adds the pageSize to the list vulnerabilities params
func (*ListVulnerabilitiesParams) SetQ ¶
func (o *ListVulnerabilitiesParams) SetQ(q *string)
SetQ adds the q to the list vulnerabilities params
func (*ListVulnerabilitiesParams) SetTimeout ¶
func (o *ListVulnerabilitiesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list vulnerabilities params
func (*ListVulnerabilitiesParams) SetTuneCount ¶
func (o *ListVulnerabilitiesParams) SetTuneCount(tuneCount *bool)
SetTuneCount adds the tuneCount to the list vulnerabilities params
func (*ListVulnerabilitiesParams) SetWithTag ¶
func (o *ListVulnerabilitiesParams) SetWithTag(withTag *bool)
SetWithTag adds the withTag to the list vulnerabilities params
func (*ListVulnerabilitiesParams) SetXRequestID ¶
func (o *ListVulnerabilitiesParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the list vulnerabilities params
func (*ListVulnerabilitiesParams) WithContext ¶
func (o *ListVulnerabilitiesParams) WithContext(ctx context.Context) *ListVulnerabilitiesParams
WithContext adds the context to the list vulnerabilities params
func (*ListVulnerabilitiesParams) WithDefaults ¶
func (o *ListVulnerabilitiesParams) WithDefaults() *ListVulnerabilitiesParams
WithDefaults hydrates default values in the list vulnerabilities params (not the query body).
All values with no default are reset to their zero value.
func (*ListVulnerabilitiesParams) WithHTTPClient ¶
func (o *ListVulnerabilitiesParams) WithHTTPClient(client *http.Client) *ListVulnerabilitiesParams
WithHTTPClient adds the HTTPClient to the list vulnerabilities params
func (*ListVulnerabilitiesParams) WithPage ¶
func (o *ListVulnerabilitiesParams) WithPage(page *int64) *ListVulnerabilitiesParams
WithPage adds the page to the list vulnerabilities params
func (*ListVulnerabilitiesParams) WithPageSize ¶
func (o *ListVulnerabilitiesParams) WithPageSize(pageSize *int64) *ListVulnerabilitiesParams
WithPageSize adds the pageSize to the list vulnerabilities params
func (*ListVulnerabilitiesParams) WithQ ¶
func (o *ListVulnerabilitiesParams) WithQ(q *string) *ListVulnerabilitiesParams
WithQ adds the q to the list vulnerabilities params
func (*ListVulnerabilitiesParams) WithTimeout ¶
func (o *ListVulnerabilitiesParams) WithTimeout(timeout time.Duration) *ListVulnerabilitiesParams
WithTimeout adds the timeout to the list vulnerabilities params
func (*ListVulnerabilitiesParams) WithTuneCount ¶
func (o *ListVulnerabilitiesParams) WithTuneCount(tuneCount *bool) *ListVulnerabilitiesParams
WithTuneCount adds the tuneCount to the list vulnerabilities params
func (*ListVulnerabilitiesParams) WithWithTag ¶
func (o *ListVulnerabilitiesParams) WithWithTag(withTag *bool) *ListVulnerabilitiesParams
WithWithTag adds the withTag to the list vulnerabilities params
func (*ListVulnerabilitiesParams) WithXRequestID ¶
func (o *ListVulnerabilitiesParams) WithXRequestID(xRequestID *string) *ListVulnerabilitiesParams
WithXRequestID adds the xRequestID to the list vulnerabilities params
func (*ListVulnerabilitiesParams) WriteToRequest ¶
func (o *ListVulnerabilitiesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListVulnerabilitiesReader ¶
type ListVulnerabilitiesReader struct {
// contains filtered or unexported fields
}
ListVulnerabilitiesReader is a Reader for the ListVulnerabilities structure.
func (*ListVulnerabilitiesReader) ReadResponse ¶
func (o *ListVulnerabilitiesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListVulnerabilitiesUnauthorized ¶
type ListVulnerabilitiesUnauthorized struct { string }XRequestID
ListVulnerabilitiesUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewListVulnerabilitiesUnauthorized ¶
func NewListVulnerabilitiesUnauthorized() *ListVulnerabilitiesUnauthorized
NewListVulnerabilitiesUnauthorized creates a ListVulnerabilitiesUnauthorized with default headers values
func (*ListVulnerabilitiesUnauthorized) Error ¶
func (o *ListVulnerabilitiesUnauthorized) Error() string
func (*ListVulnerabilitiesUnauthorized) GetPayload ¶
func (o *ListVulnerabilitiesUnauthorized) GetPayload() *models.Errors
func (*ListVulnerabilitiesUnauthorized) IsClientError ¶
func (o *ListVulnerabilitiesUnauthorized) IsClientError() bool
IsClientError returns true when this list vulnerabilities unauthorized response has a 4xx status code
func (*ListVulnerabilitiesUnauthorized) IsCode ¶
func (o *ListVulnerabilitiesUnauthorized) IsCode(code int) bool
IsCode returns true when this list vulnerabilities unauthorized response a status code equal to that given
func (*ListVulnerabilitiesUnauthorized) IsRedirect ¶
func (o *ListVulnerabilitiesUnauthorized) IsRedirect() bool
IsRedirect returns true when this list vulnerabilities unauthorized response has a 3xx status code
func (*ListVulnerabilitiesUnauthorized) IsServerError ¶
func (o *ListVulnerabilitiesUnauthorized) IsServerError() bool
IsServerError returns true when this list vulnerabilities unauthorized response has a 5xx status code
func (*ListVulnerabilitiesUnauthorized) IsSuccess ¶
func (o *ListVulnerabilitiesUnauthorized) IsSuccess() bool
IsSuccess returns true when this list vulnerabilities unauthorized response has a 2xx status code
func (*ListVulnerabilitiesUnauthorized) String ¶
func (o *ListVulnerabilitiesUnauthorized) String() string