Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetFindingsByProjectForbidden
- type GetFindingsByProjectNotFound
- type GetFindingsByProjectOK
- type GetFindingsByProjectParams
- func NewGetFindingsByProjectParams() *GetFindingsByProjectParams
- func NewGetFindingsByProjectParamsWithContext(ctx context.Context) *GetFindingsByProjectParams
- func NewGetFindingsByProjectParamsWithHTTPClient(client *http.Client) *GetFindingsByProjectParams
- func NewGetFindingsByProjectParamsWithTimeout(timeout time.Duration) *GetFindingsByProjectParams
- func (o *GetFindingsByProjectParams) SetContext(ctx context.Context)
- func (o *GetFindingsByProjectParams) SetDefaults()
- func (o *GetFindingsByProjectParams) SetHTTPClient(client *http.Client)
- func (o *GetFindingsByProjectParams) SetSuppressed(suppressed *bool)
- func (o *GetFindingsByProjectParams) SetTimeout(timeout time.Duration)
- func (o *GetFindingsByProjectParams) SetUUID(uuid string)
- func (o *GetFindingsByProjectParams) WithContext(ctx context.Context) *GetFindingsByProjectParams
- func (o *GetFindingsByProjectParams) WithDefaults() *GetFindingsByProjectParams
- func (o *GetFindingsByProjectParams) WithHTTPClient(client *http.Client) *GetFindingsByProjectParams
- func (o *GetFindingsByProjectParams) WithSuppressed(suppressed *bool) *GetFindingsByProjectParams
- func (o *GetFindingsByProjectParams) WithTimeout(timeout time.Duration) *GetFindingsByProjectParams
- func (o *GetFindingsByProjectParams) WithUUID(uuid string) *GetFindingsByProjectParams
- func (o *GetFindingsByProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetFindingsByProjectReader
- type GetFindingsByProjectUnauthorized
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 finding API
func (*Client) GetFindingsByProject ¶
func (a *Client) GetFindingsByProject(params *GetFindingsByProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFindingsByProjectOK, error)
GetFindingsByProject returns a list of all findings 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 { GetFindingsByProject(params *GetFindingsByProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFindingsByProjectOK, 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 finding API client.
type GetFindingsByProjectForbidden ¶
type GetFindingsByProjectForbidden struct { }
GetFindingsByProjectForbidden describes a response with status code 403, with default header values.
Access to the specified project is forbidden
func NewGetFindingsByProjectForbidden ¶
func NewGetFindingsByProjectForbidden() *GetFindingsByProjectForbidden
NewGetFindingsByProjectForbidden creates a GetFindingsByProjectForbidden with default headers values
func (*GetFindingsByProjectForbidden) Error ¶
func (o *GetFindingsByProjectForbidden) Error() string
type GetFindingsByProjectNotFound ¶
type GetFindingsByProjectNotFound struct { }
GetFindingsByProjectNotFound describes a response with status code 404, with default header values.
The project could not be found
func NewGetFindingsByProjectNotFound ¶
func NewGetFindingsByProjectNotFound() *GetFindingsByProjectNotFound
NewGetFindingsByProjectNotFound creates a GetFindingsByProjectNotFound with default headers values
func (*GetFindingsByProjectNotFound) Error ¶
func (o *GetFindingsByProjectNotFound) Error() string
type GetFindingsByProjectOK ¶
type GetFindingsByProjectOK struct { /* The total number of findings Format: int64 */ XTotalCount int64 Payload []*models.Finding }
GetFindingsByProjectOK describes a response with status code 200, with default header values.
successful operation
func NewGetFindingsByProjectOK ¶
func NewGetFindingsByProjectOK() *GetFindingsByProjectOK
NewGetFindingsByProjectOK creates a GetFindingsByProjectOK with default headers values
func (*GetFindingsByProjectOK) Error ¶
func (o *GetFindingsByProjectOK) Error() string
func (*GetFindingsByProjectOK) GetPayload ¶
func (o *GetFindingsByProjectOK) GetPayload() []*models.Finding
type GetFindingsByProjectParams ¶
type GetFindingsByProjectParams struct { /* Suppressed. Optionally includes suppressed findings */ Suppressed *bool // UUID. UUID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetFindingsByProjectParams contains all the parameters to send to the API endpoint
for the get findings by project operation. Typically these are written to a http.Request.
func NewGetFindingsByProjectParams ¶
func NewGetFindingsByProjectParams() *GetFindingsByProjectParams
NewGetFindingsByProjectParams creates a new GetFindingsByProjectParams 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 NewGetFindingsByProjectParamsWithContext ¶
func NewGetFindingsByProjectParamsWithContext(ctx context.Context) *GetFindingsByProjectParams
NewGetFindingsByProjectParamsWithContext creates a new GetFindingsByProjectParams object with the ability to set a context for a request.
func NewGetFindingsByProjectParamsWithHTTPClient ¶
func NewGetFindingsByProjectParamsWithHTTPClient(client *http.Client) *GetFindingsByProjectParams
NewGetFindingsByProjectParamsWithHTTPClient creates a new GetFindingsByProjectParams object with the ability to set a custom HTTPClient for a request.
func NewGetFindingsByProjectParamsWithTimeout ¶
func NewGetFindingsByProjectParamsWithTimeout(timeout time.Duration) *GetFindingsByProjectParams
NewGetFindingsByProjectParamsWithTimeout creates a new GetFindingsByProjectParams object with the ability to set a timeout on a request.
func (*GetFindingsByProjectParams) SetContext ¶
func (o *GetFindingsByProjectParams) SetContext(ctx context.Context)
SetContext adds the context to the get findings by project params
func (*GetFindingsByProjectParams) SetDefaults ¶
func (o *GetFindingsByProjectParams) SetDefaults()
SetDefaults hydrates default values in the get findings by project params (not the query body).
All values with no default are reset to their zero value.
func (*GetFindingsByProjectParams) SetHTTPClient ¶
func (o *GetFindingsByProjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get findings by project params
func (*GetFindingsByProjectParams) SetSuppressed ¶
func (o *GetFindingsByProjectParams) SetSuppressed(suppressed *bool)
SetSuppressed adds the suppressed to the get findings by project params
func (*GetFindingsByProjectParams) SetTimeout ¶
func (o *GetFindingsByProjectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get findings by project params
func (*GetFindingsByProjectParams) SetUUID ¶
func (o *GetFindingsByProjectParams) SetUUID(uuid string)
SetUUID adds the uuid to the get findings by project params
func (*GetFindingsByProjectParams) WithContext ¶
func (o *GetFindingsByProjectParams) WithContext(ctx context.Context) *GetFindingsByProjectParams
WithContext adds the context to the get findings by project params
func (*GetFindingsByProjectParams) WithDefaults ¶
func (o *GetFindingsByProjectParams) WithDefaults() *GetFindingsByProjectParams
WithDefaults hydrates default values in the get findings by project params (not the query body).
All values with no default are reset to their zero value.
func (*GetFindingsByProjectParams) WithHTTPClient ¶
func (o *GetFindingsByProjectParams) WithHTTPClient(client *http.Client) *GetFindingsByProjectParams
WithHTTPClient adds the HTTPClient to the get findings by project params
func (*GetFindingsByProjectParams) WithSuppressed ¶
func (o *GetFindingsByProjectParams) WithSuppressed(suppressed *bool) *GetFindingsByProjectParams
WithSuppressed adds the suppressed to the get findings by project params
func (*GetFindingsByProjectParams) WithTimeout ¶
func (o *GetFindingsByProjectParams) WithTimeout(timeout time.Duration) *GetFindingsByProjectParams
WithTimeout adds the timeout to the get findings by project params
func (*GetFindingsByProjectParams) WithUUID ¶
func (o *GetFindingsByProjectParams) WithUUID(uuid string) *GetFindingsByProjectParams
WithUUID adds the uuid to the get findings by project params
func (*GetFindingsByProjectParams) WriteToRequest ¶
func (o *GetFindingsByProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetFindingsByProjectReader ¶
type GetFindingsByProjectReader struct {
// contains filtered or unexported fields
}
GetFindingsByProjectReader is a Reader for the GetFindingsByProject structure.
func (*GetFindingsByProjectReader) ReadResponse ¶
func (o *GetFindingsByProjectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetFindingsByProjectUnauthorized ¶
type GetFindingsByProjectUnauthorized struct { }
GetFindingsByProjectUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetFindingsByProjectUnauthorized ¶
func NewGetFindingsByProjectUnauthorized() *GetFindingsByProjectUnauthorized
NewGetFindingsByProjectUnauthorized creates a GetFindingsByProjectUnauthorized with default headers values
func (*GetFindingsByProjectUnauthorized) Error ¶
func (o *GetFindingsByProjectUnauthorized) Error() string