Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetVulnerabilitiesByProjectForbidden
- type GetVulnerabilitiesByProjectNotFound
- type GetVulnerabilitiesByProjectOK
- type GetVulnerabilitiesByProjectParams
- func NewGetVulnerabilitiesByProjectParams() *GetVulnerabilitiesByProjectParams
- func NewGetVulnerabilitiesByProjectParamsWithContext(ctx context.Context) *GetVulnerabilitiesByProjectParams
- func NewGetVulnerabilitiesByProjectParamsWithHTTPClient(client *http.Client) *GetVulnerabilitiesByProjectParams
- func NewGetVulnerabilitiesByProjectParamsWithTimeout(timeout time.Duration) *GetVulnerabilitiesByProjectParams
- func (o *GetVulnerabilitiesByProjectParams) SetContext(ctx context.Context)
- func (o *GetVulnerabilitiesByProjectParams) SetDefaults()
- func (o *GetVulnerabilitiesByProjectParams) SetHTTPClient(client *http.Client)
- func (o *GetVulnerabilitiesByProjectParams) SetSuppressed(suppressed *bool)
- func (o *GetVulnerabilitiesByProjectParams) SetTimeout(timeout time.Duration)
- func (o *GetVulnerabilitiesByProjectParams) SetUUID(uuid string)
- func (o *GetVulnerabilitiesByProjectParams) WithContext(ctx context.Context) *GetVulnerabilitiesByProjectParams
- func (o *GetVulnerabilitiesByProjectParams) WithDefaults() *GetVulnerabilitiesByProjectParams
- func (o *GetVulnerabilitiesByProjectParams) WithHTTPClient(client *http.Client) *GetVulnerabilitiesByProjectParams
- func (o *GetVulnerabilitiesByProjectParams) WithSuppressed(suppressed *bool) *GetVulnerabilitiesByProjectParams
- func (o *GetVulnerabilitiesByProjectParams) WithTimeout(timeout time.Duration) *GetVulnerabilitiesByProjectParams
- func (o *GetVulnerabilitiesByProjectParams) WithUUID(uuid string) *GetVulnerabilitiesByProjectParams
- func (o *GetVulnerabilitiesByProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetVulnerabilitiesByProjectReader
- type GetVulnerabilitiesByProjectUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for vulnerability API
func (*Client) GetVulnerabilitiesByProject ¶
func (a *Client) GetVulnerabilitiesByProject(params *GetVulnerabilitiesByProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVulnerabilitiesByProjectOK, error)
GetVulnerabilitiesByProject returns a list of all vulnerabilities for a specific project
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetVulnerabilitiesByProject(params *GetVulnerabilitiesByProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVulnerabilitiesByProjectOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new vulnerability API client.
type GetVulnerabilitiesByProjectForbidden ¶
type GetVulnerabilitiesByProjectForbidden struct { }
GetVulnerabilitiesByProjectForbidden describes a response with status code 403, with default header values.
Access to the specified project is forbidden
func NewGetVulnerabilitiesByProjectForbidden ¶
func NewGetVulnerabilitiesByProjectForbidden() *GetVulnerabilitiesByProjectForbidden
NewGetVulnerabilitiesByProjectForbidden creates a GetVulnerabilitiesByProjectForbidden with default headers values
func (*GetVulnerabilitiesByProjectForbidden) Error ¶
func (o *GetVulnerabilitiesByProjectForbidden) Error() string
type GetVulnerabilitiesByProjectNotFound ¶
type GetVulnerabilitiesByProjectNotFound struct { }
GetVulnerabilitiesByProjectNotFound describes a response with status code 404, with default header values.
The project could not be found
func NewGetVulnerabilitiesByProjectNotFound ¶
func NewGetVulnerabilitiesByProjectNotFound() *GetVulnerabilitiesByProjectNotFound
NewGetVulnerabilitiesByProjectNotFound creates a GetVulnerabilitiesByProjectNotFound with default headers values
func (*GetVulnerabilitiesByProjectNotFound) Error ¶
func (o *GetVulnerabilitiesByProjectNotFound) Error() string
type GetVulnerabilitiesByProjectOK ¶
type GetVulnerabilitiesByProjectOK struct { /* The total number of vulnerabilities Format: int64 */ XTotalCount int64 Payload []*models.Vulnerability }
GetVulnerabilitiesByProjectOK describes a response with status code 200, with default header values.
successful operation
func NewGetVulnerabilitiesByProjectOK ¶
func NewGetVulnerabilitiesByProjectOK() *GetVulnerabilitiesByProjectOK
NewGetVulnerabilitiesByProjectOK creates a GetVulnerabilitiesByProjectOK with default headers values
func (*GetVulnerabilitiesByProjectOK) Error ¶
func (o *GetVulnerabilitiesByProjectOK) Error() string
func (*GetVulnerabilitiesByProjectOK) GetPayload ¶
func (o *GetVulnerabilitiesByProjectOK) GetPayload() []*models.Vulnerability
type GetVulnerabilitiesByProjectParams ¶
type GetVulnerabilitiesByProjectParams struct { /* Suppressed. Optionally includes suppressed vulnerabilities */ Suppressed *bool // UUID. UUID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetVulnerabilitiesByProjectParams contains all the parameters to send to the API endpoint
for the get vulnerabilities by project operation. Typically these are written to a http.Request.
func NewGetVulnerabilitiesByProjectParams ¶
func NewGetVulnerabilitiesByProjectParams() *GetVulnerabilitiesByProjectParams
NewGetVulnerabilitiesByProjectParams creates a new GetVulnerabilitiesByProjectParams 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 NewGetVulnerabilitiesByProjectParamsWithContext ¶
func NewGetVulnerabilitiesByProjectParamsWithContext(ctx context.Context) *GetVulnerabilitiesByProjectParams
NewGetVulnerabilitiesByProjectParamsWithContext creates a new GetVulnerabilitiesByProjectParams object with the ability to set a context for a request.
func NewGetVulnerabilitiesByProjectParamsWithHTTPClient ¶
func NewGetVulnerabilitiesByProjectParamsWithHTTPClient(client *http.Client) *GetVulnerabilitiesByProjectParams
NewGetVulnerabilitiesByProjectParamsWithHTTPClient creates a new GetVulnerabilitiesByProjectParams object with the ability to set a custom HTTPClient for a request.
func NewGetVulnerabilitiesByProjectParamsWithTimeout ¶
func NewGetVulnerabilitiesByProjectParamsWithTimeout(timeout time.Duration) *GetVulnerabilitiesByProjectParams
NewGetVulnerabilitiesByProjectParamsWithTimeout creates a new GetVulnerabilitiesByProjectParams object with the ability to set a timeout on a request.
func (*GetVulnerabilitiesByProjectParams) SetContext ¶
func (o *GetVulnerabilitiesByProjectParams) SetContext(ctx context.Context)
SetContext adds the context to the get vulnerabilities by project params
func (*GetVulnerabilitiesByProjectParams) SetDefaults ¶
func (o *GetVulnerabilitiesByProjectParams) SetDefaults()
SetDefaults hydrates default values in the get vulnerabilities by project params (not the query body).
All values with no default are reset to their zero value.
func (*GetVulnerabilitiesByProjectParams) SetHTTPClient ¶
func (o *GetVulnerabilitiesByProjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get vulnerabilities by project params
func (*GetVulnerabilitiesByProjectParams) SetSuppressed ¶
func (o *GetVulnerabilitiesByProjectParams) SetSuppressed(suppressed *bool)
SetSuppressed adds the suppressed to the get vulnerabilities by project params
func (*GetVulnerabilitiesByProjectParams) SetTimeout ¶
func (o *GetVulnerabilitiesByProjectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get vulnerabilities by project params
func (*GetVulnerabilitiesByProjectParams) SetUUID ¶
func (o *GetVulnerabilitiesByProjectParams) SetUUID(uuid string)
SetUUID adds the uuid to the get vulnerabilities by project params
func (*GetVulnerabilitiesByProjectParams) WithContext ¶
func (o *GetVulnerabilitiesByProjectParams) WithContext(ctx context.Context) *GetVulnerabilitiesByProjectParams
WithContext adds the context to the get vulnerabilities by project params
func (*GetVulnerabilitiesByProjectParams) WithDefaults ¶
func (o *GetVulnerabilitiesByProjectParams) WithDefaults() *GetVulnerabilitiesByProjectParams
WithDefaults hydrates default values in the get vulnerabilities by project params (not the query body).
All values with no default are reset to their zero value.
func (*GetVulnerabilitiesByProjectParams) WithHTTPClient ¶
func (o *GetVulnerabilitiesByProjectParams) WithHTTPClient(client *http.Client) *GetVulnerabilitiesByProjectParams
WithHTTPClient adds the HTTPClient to the get vulnerabilities by project params
func (*GetVulnerabilitiesByProjectParams) WithSuppressed ¶
func (o *GetVulnerabilitiesByProjectParams) WithSuppressed(suppressed *bool) *GetVulnerabilitiesByProjectParams
WithSuppressed adds the suppressed to the get vulnerabilities by project params
func (*GetVulnerabilitiesByProjectParams) WithTimeout ¶
func (o *GetVulnerabilitiesByProjectParams) WithTimeout(timeout time.Duration) *GetVulnerabilitiesByProjectParams
WithTimeout adds the timeout to the get vulnerabilities by project params
func (*GetVulnerabilitiesByProjectParams) WithUUID ¶
func (o *GetVulnerabilitiesByProjectParams) WithUUID(uuid string) *GetVulnerabilitiesByProjectParams
WithUUID adds the uuid to the get vulnerabilities by project params
func (*GetVulnerabilitiesByProjectParams) WriteToRequest ¶
func (o *GetVulnerabilitiesByProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetVulnerabilitiesByProjectReader ¶
type GetVulnerabilitiesByProjectReader struct {
// contains filtered or unexported fields
}
GetVulnerabilitiesByProjectReader is a Reader for the GetVulnerabilitiesByProject structure.
func (*GetVulnerabilitiesByProjectReader) ReadResponse ¶
func (o *GetVulnerabilitiesByProjectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetVulnerabilitiesByProjectUnauthorized ¶
type GetVulnerabilitiesByProjectUnauthorized struct { }
GetVulnerabilitiesByProjectUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetVulnerabilitiesByProjectUnauthorized ¶
func NewGetVulnerabilitiesByProjectUnauthorized() *GetVulnerabilitiesByProjectUnauthorized
NewGetVulnerabilitiesByProjectUnauthorized creates a GetVulnerabilitiesByProjectUnauthorized with default headers values
func (*GetVulnerabilitiesByProjectUnauthorized) Error ¶
func (o *GetVulnerabilitiesByProjectUnauthorized) Error() string