vulnerability

package
v0.0.0-...-5f6b411 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

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

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 (*GetVulnerabilitiesByProjectOK) GetPayload

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

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

WithContext adds the context to the get vulnerabilities by project params

func (*GetVulnerabilitiesByProjectParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get vulnerabilities by project params

func (*GetVulnerabilitiesByProjectParams) WithSuppressed

WithSuppressed adds the suppressed to the get vulnerabilities by project params

func (*GetVulnerabilitiesByProjectParams) WithTimeout

WithTimeout adds the timeout to the get vulnerabilities by project params

func (*GetVulnerabilitiesByProjectParams) WithUUID

WithUUID adds the uuid to the get vulnerabilities by project params

func (*GetVulnerabilitiesByProjectParams) WriteToRequest

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

Jump to

Keyboard shortcuts

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