finding

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 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

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

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

WithContext adds the context to the get findings by project params

func (*GetFindingsByProjectParams) WithDefaults

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

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

WithTimeout adds the timeout to the get findings by project params

func (*GetFindingsByProjectParams) WithUUID

WithUUID adds the uuid to the get findings by project params

func (*GetFindingsByProjectParams) WriteToRequest

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

Jump to

Keyboard shortcuts

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