unidentified_containers

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT 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 unidentified containers API

func (*Client) Count

func (a *Client) Count(params *CountParams, opts ...ClientOption) (*CountOK, error)

Count returns the total count of unidentified containers over a time period

func (*Client) CountByDateRange

func (a *Client) CountByDateRange(params *CountByDateRangeParams, opts ...ClientOption) (*CountByDateRangeOK, error)

CountByDateRange returns the count of unidentified containers over the last 7 days

func (*Client) Search

func (a *Client) Search(params *SearchParams, opts ...ClientOption) (*SearchOK, error)

Search searches unidentified containers by the provided search criteria

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 {
	Count(params *CountParams, opts ...ClientOption) (*CountOK, error)

	CountByDateRange(params *CountByDateRangeParams, opts ...ClientOption) (*CountByDateRangeOK, error)

	Search(params *SearchParams, opts ...ClientOption) (*SearchOK, 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 unidentified containers API client.

type CountByDateRangeForbidden

type CountByDateRangeForbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}

CountByDateRangeForbidden describes a response with status code 403, with default header values.

Forbidden

func NewCountByDateRangeForbidden

func NewCountByDateRangeForbidden() *CountByDateRangeForbidden

NewCountByDateRangeForbidden creates a CountByDateRangeForbidden with default headers values

func (*CountByDateRangeForbidden) Code

func (o *CountByDateRangeForbidden) Code() int

Code gets the status code for the count by date range forbidden response

func (*CountByDateRangeForbidden) Error

func (o *CountByDateRangeForbidden) Error() string

func (*CountByDateRangeForbidden) GetPayload

func (*CountByDateRangeForbidden) IsClientError

func (o *CountByDateRangeForbidden) IsClientError() bool

IsClientError returns true when this count by date range forbidden response has a 4xx status code

func (*CountByDateRangeForbidden) IsCode

func (o *CountByDateRangeForbidden) IsCode(code int) bool

IsCode returns true when this count by date range forbidden response a status code equal to that given

func (*CountByDateRangeForbidden) IsRedirect

func (o *CountByDateRangeForbidden) IsRedirect() bool

IsRedirect returns true when this count by date range forbidden response has a 3xx status code

func (*CountByDateRangeForbidden) IsServerError

func (o *CountByDateRangeForbidden) IsServerError() bool

IsServerError returns true when this count by date range forbidden response has a 5xx status code

func (*CountByDateRangeForbidden) IsSuccess

func (o *CountByDateRangeForbidden) IsSuccess() bool

IsSuccess returns true when this count by date range forbidden response has a 2xx status code

func (*CountByDateRangeForbidden) String

func (o *CountByDateRangeForbidden) String() string

type CountByDateRangeInternalServerError

type CountByDateRangeInternalServerError struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.CoreEntitiesResponse
}

CountByDateRangeInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewCountByDateRangeInternalServerError

func NewCountByDateRangeInternalServerError() *CountByDateRangeInternalServerError

NewCountByDateRangeInternalServerError creates a CountByDateRangeInternalServerError with default headers values

func (*CountByDateRangeInternalServerError) Code

Code gets the status code for the count by date range internal server error response

func (*CountByDateRangeInternalServerError) Error

func (*CountByDateRangeInternalServerError) GetPayload

func (*CountByDateRangeInternalServerError) IsClientError

func (o *CountByDateRangeInternalServerError) IsClientError() bool

IsClientError returns true when this count by date range internal server error response has a 4xx status code

func (*CountByDateRangeInternalServerError) IsCode

IsCode returns true when this count by date range internal server error response a status code equal to that given

func (*CountByDateRangeInternalServerError) IsRedirect

func (o *CountByDateRangeInternalServerError) IsRedirect() bool

IsRedirect returns true when this count by date range internal server error response has a 3xx status code

func (*CountByDateRangeInternalServerError) IsServerError

func (o *CountByDateRangeInternalServerError) IsServerError() bool

IsServerError returns true when this count by date range internal server error response has a 5xx status code

func (*CountByDateRangeInternalServerError) IsSuccess

IsSuccess returns true when this count by date range internal server error response has a 2xx status code

func (*CountByDateRangeInternalServerError) String

type CountByDateRangeOK

type CountByDateRangeOK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.ModelsAggregateValuesByFieldResponse
}

CountByDateRangeOK describes a response with status code 200, with default header values.

OK

func NewCountByDateRangeOK

func NewCountByDateRangeOK() *CountByDateRangeOK

NewCountByDateRangeOK creates a CountByDateRangeOK with default headers values

func (*CountByDateRangeOK) Code

func (o *CountByDateRangeOK) Code() int

Code gets the status code for the count by date range o k response

func (*CountByDateRangeOK) Error

func (o *CountByDateRangeOK) Error() string

func (*CountByDateRangeOK) GetPayload

func (*CountByDateRangeOK) IsClientError

func (o *CountByDateRangeOK) IsClientError() bool

IsClientError returns true when this count by date range o k response has a 4xx status code

func (*CountByDateRangeOK) IsCode

func (o *CountByDateRangeOK) IsCode(code int) bool

IsCode returns true when this count by date range o k response a status code equal to that given

func (*CountByDateRangeOK) IsRedirect

func (o *CountByDateRangeOK) IsRedirect() bool

IsRedirect returns true when this count by date range o k response has a 3xx status code

func (*CountByDateRangeOK) IsServerError

func (o *CountByDateRangeOK) IsServerError() bool

IsServerError returns true when this count by date range o k response has a 5xx status code

func (*CountByDateRangeOK) IsSuccess

func (o *CountByDateRangeOK) IsSuccess() bool

IsSuccess returns true when this count by date range o k response has a 2xx status code

func (*CountByDateRangeOK) String

func (o *CountByDateRangeOK) String() string

type CountByDateRangeParams

type CountByDateRangeParams struct {

	/* Filter.

	   Filter Unidentified Containers using a query in Falcon Query Language (FQL). Supported filters:  assessed_images_count,cid,cluster_name,containers_impacted_count,detections_count,image_assessment_detections_count,last_seen,namespace,node_name,severity,unassessed_images_count,visible_to_k8s
	*/
	Filter *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CountByDateRangeParams contains all the parameters to send to the API endpoint

for the count by date range operation.

Typically these are written to a http.Request.

func NewCountByDateRangeParams

func NewCountByDateRangeParams() *CountByDateRangeParams

NewCountByDateRangeParams creates a new CountByDateRangeParams 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 NewCountByDateRangeParamsWithContext

func NewCountByDateRangeParamsWithContext(ctx context.Context) *CountByDateRangeParams

NewCountByDateRangeParamsWithContext creates a new CountByDateRangeParams object with the ability to set a context for a request.

func NewCountByDateRangeParamsWithHTTPClient

func NewCountByDateRangeParamsWithHTTPClient(client *http.Client) *CountByDateRangeParams

NewCountByDateRangeParamsWithHTTPClient creates a new CountByDateRangeParams object with the ability to set a custom HTTPClient for a request.

func NewCountByDateRangeParamsWithTimeout

func NewCountByDateRangeParamsWithTimeout(timeout time.Duration) *CountByDateRangeParams

NewCountByDateRangeParamsWithTimeout creates a new CountByDateRangeParams object with the ability to set a timeout on a request.

func (*CountByDateRangeParams) SetContext

func (o *CountByDateRangeParams) SetContext(ctx context.Context)

SetContext adds the context to the count by date range params

func (*CountByDateRangeParams) SetDefaults

func (o *CountByDateRangeParams) SetDefaults()

SetDefaults hydrates default values in the count by date range params (not the query body).

All values with no default are reset to their zero value.

func (*CountByDateRangeParams) SetFilter

func (o *CountByDateRangeParams) SetFilter(filter *string)

SetFilter adds the filter to the count by date range params

func (*CountByDateRangeParams) SetHTTPClient

func (o *CountByDateRangeParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the count by date range params

func (*CountByDateRangeParams) SetTimeout

func (o *CountByDateRangeParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the count by date range params

func (*CountByDateRangeParams) WithContext

WithContext adds the context to the count by date range params

func (*CountByDateRangeParams) WithDefaults

WithDefaults hydrates default values in the count by date range params (not the query body).

All values with no default are reset to their zero value.

func (*CountByDateRangeParams) WithFilter

func (o *CountByDateRangeParams) WithFilter(filter *string) *CountByDateRangeParams

WithFilter adds the filter to the count by date range params

func (*CountByDateRangeParams) WithHTTPClient

func (o *CountByDateRangeParams) WithHTTPClient(client *http.Client) *CountByDateRangeParams

WithHTTPClient adds the HTTPClient to the count by date range params

func (*CountByDateRangeParams) WithTimeout

WithTimeout adds the timeout to the count by date range params

func (*CountByDateRangeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CountByDateRangeReader

type CountByDateRangeReader struct {
	// contains filtered or unexported fields
}

CountByDateRangeReader is a Reader for the CountByDateRange structure.

func (*CountByDateRangeReader) ReadResponse

func (o *CountByDateRangeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CountByDateRangeTooManyRequests

type CountByDateRangeTooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}

CountByDateRangeTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewCountByDateRangeTooManyRequests

func NewCountByDateRangeTooManyRequests() *CountByDateRangeTooManyRequests

NewCountByDateRangeTooManyRequests creates a CountByDateRangeTooManyRequests with default headers values

func (*CountByDateRangeTooManyRequests) Code

Code gets the status code for the count by date range too many requests response

func (*CountByDateRangeTooManyRequests) Error

func (*CountByDateRangeTooManyRequests) GetPayload

func (*CountByDateRangeTooManyRequests) IsClientError

func (o *CountByDateRangeTooManyRequests) IsClientError() bool

IsClientError returns true when this count by date range too many requests response has a 4xx status code

func (*CountByDateRangeTooManyRequests) IsCode

func (o *CountByDateRangeTooManyRequests) IsCode(code int) bool

IsCode returns true when this count by date range too many requests response a status code equal to that given

func (*CountByDateRangeTooManyRequests) IsRedirect

func (o *CountByDateRangeTooManyRequests) IsRedirect() bool

IsRedirect returns true when this count by date range too many requests response has a 3xx status code

func (*CountByDateRangeTooManyRequests) IsServerError

func (o *CountByDateRangeTooManyRequests) IsServerError() bool

IsServerError returns true when this count by date range too many requests response has a 5xx status code

func (*CountByDateRangeTooManyRequests) IsSuccess

func (o *CountByDateRangeTooManyRequests) IsSuccess() bool

IsSuccess returns true when this count by date range too many requests response has a 2xx status code

func (*CountByDateRangeTooManyRequests) String

type CountForbidden

type CountForbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}

CountForbidden describes a response with status code 403, with default header values.

Forbidden

func NewCountForbidden

func NewCountForbidden() *CountForbidden

NewCountForbidden creates a CountForbidden with default headers values

func (*CountForbidden) Code

func (o *CountForbidden) Code() int

Code gets the status code for the count forbidden response

func (*CountForbidden) Error

func (o *CountForbidden) Error() string

func (*CountForbidden) GetPayload

func (o *CountForbidden) GetPayload() *models.MsaReplyMetaOnly

func (*CountForbidden) IsClientError

func (o *CountForbidden) IsClientError() bool

IsClientError returns true when this count forbidden response has a 4xx status code

func (*CountForbidden) IsCode

func (o *CountForbidden) IsCode(code int) bool

IsCode returns true when this count forbidden response a status code equal to that given

func (*CountForbidden) IsRedirect

func (o *CountForbidden) IsRedirect() bool

IsRedirect returns true when this count forbidden response has a 3xx status code

func (*CountForbidden) IsServerError

func (o *CountForbidden) IsServerError() bool

IsServerError returns true when this count forbidden response has a 5xx status code

func (*CountForbidden) IsSuccess

func (o *CountForbidden) IsSuccess() bool

IsSuccess returns true when this count forbidden response has a 2xx status code

func (*CountForbidden) String

func (o *CountForbidden) String() string

type CountInternalServerError

type CountInternalServerError struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.CoreEntitiesResponse
}

CountInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewCountInternalServerError

func NewCountInternalServerError() *CountInternalServerError

NewCountInternalServerError creates a CountInternalServerError with default headers values

func (*CountInternalServerError) Code

func (o *CountInternalServerError) Code() int

Code gets the status code for the count internal server error response

func (*CountInternalServerError) Error

func (o *CountInternalServerError) Error() string

func (*CountInternalServerError) GetPayload

func (*CountInternalServerError) IsClientError

func (o *CountInternalServerError) IsClientError() bool

IsClientError returns true when this count internal server error response has a 4xx status code

func (*CountInternalServerError) IsCode

func (o *CountInternalServerError) IsCode(code int) bool

IsCode returns true when this count internal server error response a status code equal to that given

func (*CountInternalServerError) IsRedirect

func (o *CountInternalServerError) IsRedirect() bool

IsRedirect returns true when this count internal server error response has a 3xx status code

func (*CountInternalServerError) IsServerError

func (o *CountInternalServerError) IsServerError() bool

IsServerError returns true when this count internal server error response has a 5xx status code

func (*CountInternalServerError) IsSuccess

func (o *CountInternalServerError) IsSuccess() bool

IsSuccess returns true when this count internal server error response has a 2xx status code

func (*CountInternalServerError) String

func (o *CountInternalServerError) String() string

type CountOK

type CountOK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.UnidentifiedcontainersUnidentifiedContainersCountValue
}

CountOK describes a response with status code 200, with default header values.

OK

func NewCountOK

func NewCountOK() *CountOK

NewCountOK creates a CountOK with default headers values

func (*CountOK) Code

func (o *CountOK) Code() int

Code gets the status code for the count o k response

func (*CountOK) Error

func (o *CountOK) Error() string

func (*CountOK) IsClientError

func (o *CountOK) IsClientError() bool

IsClientError returns true when this count o k response has a 4xx status code

func (*CountOK) IsCode

func (o *CountOK) IsCode(code int) bool

IsCode returns true when this count o k response a status code equal to that given

func (*CountOK) IsRedirect

func (o *CountOK) IsRedirect() bool

IsRedirect returns true when this count o k response has a 3xx status code

func (*CountOK) IsServerError

func (o *CountOK) IsServerError() bool

IsServerError returns true when this count o k response has a 5xx status code

func (*CountOK) IsSuccess

func (o *CountOK) IsSuccess() bool

IsSuccess returns true when this count o k response has a 2xx status code

func (*CountOK) String

func (o *CountOK) String() string

type CountParams

type CountParams struct {

	/* Filter.

	   Filter Unidentified Containers using a query in Falcon Query Language (FQL). Supported filters:  assessed_images_count,cid,cluster_name,containers_impacted_count,detections_count,image_assessment_detections_count,last_seen,namespace,node_name,severity,unassessed_images_count,visible_to_k8s
	*/
	Filter *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CountParams contains all the parameters to send to the API endpoint

for the count operation.

Typically these are written to a http.Request.

func NewCountParams

func NewCountParams() *CountParams

NewCountParams creates a new CountParams 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 NewCountParamsWithContext

func NewCountParamsWithContext(ctx context.Context) *CountParams

NewCountParamsWithContext creates a new CountParams object with the ability to set a context for a request.

func NewCountParamsWithHTTPClient

func NewCountParamsWithHTTPClient(client *http.Client) *CountParams

NewCountParamsWithHTTPClient creates a new CountParams object with the ability to set a custom HTTPClient for a request.

func NewCountParamsWithTimeout

func NewCountParamsWithTimeout(timeout time.Duration) *CountParams

NewCountParamsWithTimeout creates a new CountParams object with the ability to set a timeout on a request.

func (*CountParams) SetContext

func (o *CountParams) SetContext(ctx context.Context)

SetContext adds the context to the count params

func (*CountParams) SetDefaults

func (o *CountParams) SetDefaults()

SetDefaults hydrates default values in the count params (not the query body).

All values with no default are reset to their zero value.

func (*CountParams) SetFilter

func (o *CountParams) SetFilter(filter *string)

SetFilter adds the filter to the count params

func (*CountParams) SetHTTPClient

func (o *CountParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the count params

func (*CountParams) SetTimeout

func (o *CountParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the count params

func (*CountParams) WithContext

func (o *CountParams) WithContext(ctx context.Context) *CountParams

WithContext adds the context to the count params

func (*CountParams) WithDefaults

func (o *CountParams) WithDefaults() *CountParams

WithDefaults hydrates default values in the count params (not the query body).

All values with no default are reset to their zero value.

func (*CountParams) WithFilter

func (o *CountParams) WithFilter(filter *string) *CountParams

WithFilter adds the filter to the count params

func (*CountParams) WithHTTPClient

func (o *CountParams) WithHTTPClient(client *http.Client) *CountParams

WithHTTPClient adds the HTTPClient to the count params

func (*CountParams) WithTimeout

func (o *CountParams) WithTimeout(timeout time.Duration) *CountParams

WithTimeout adds the timeout to the count params

func (*CountParams) WriteToRequest

func (o *CountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CountReader

type CountReader struct {
	// contains filtered or unexported fields
}

CountReader is a Reader for the Count structure.

func (*CountReader) ReadResponse

func (o *CountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CountTooManyRequests

type CountTooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}

CountTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewCountTooManyRequests

func NewCountTooManyRequests() *CountTooManyRequests

NewCountTooManyRequests creates a CountTooManyRequests with default headers values

func (*CountTooManyRequests) Code

func (o *CountTooManyRequests) Code() int

Code gets the status code for the count too many requests response

func (*CountTooManyRequests) Error

func (o *CountTooManyRequests) Error() string

func (*CountTooManyRequests) GetPayload

func (o *CountTooManyRequests) GetPayload() *models.MsaReplyMetaOnly

func (*CountTooManyRequests) IsClientError

func (o *CountTooManyRequests) IsClientError() bool

IsClientError returns true when this count too many requests response has a 4xx status code

func (*CountTooManyRequests) IsCode

func (o *CountTooManyRequests) IsCode(code int) bool

IsCode returns true when this count too many requests response a status code equal to that given

func (*CountTooManyRequests) IsRedirect

func (o *CountTooManyRequests) IsRedirect() bool

IsRedirect returns true when this count too many requests response has a 3xx status code

func (*CountTooManyRequests) IsServerError

func (o *CountTooManyRequests) IsServerError() bool

IsServerError returns true when this count too many requests response has a 5xx status code

func (*CountTooManyRequests) IsSuccess

func (o *CountTooManyRequests) IsSuccess() bool

IsSuccess returns true when this count too many requests response has a 2xx status code

func (*CountTooManyRequests) String

func (o *CountTooManyRequests) String() string

type SearchForbidden

type SearchForbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}

SearchForbidden describes a response with status code 403, with default header values.

Forbidden

func NewSearchForbidden

func NewSearchForbidden() *SearchForbidden

NewSearchForbidden creates a SearchForbidden with default headers values

func (*SearchForbidden) Code

func (o *SearchForbidden) Code() int

Code gets the status code for the search forbidden response

func (*SearchForbidden) Error

func (o *SearchForbidden) Error() string

func (*SearchForbidden) GetPayload

func (o *SearchForbidden) GetPayload() *models.MsaReplyMetaOnly

func (*SearchForbidden) IsClientError

func (o *SearchForbidden) IsClientError() bool

IsClientError returns true when this search forbidden response has a 4xx status code

func (*SearchForbidden) IsCode

func (o *SearchForbidden) IsCode(code int) bool

IsCode returns true when this search forbidden response a status code equal to that given

func (*SearchForbidden) IsRedirect

func (o *SearchForbidden) IsRedirect() bool

IsRedirect returns true when this search forbidden response has a 3xx status code

func (*SearchForbidden) IsServerError

func (o *SearchForbidden) IsServerError() bool

IsServerError returns true when this search forbidden response has a 5xx status code

func (*SearchForbidden) IsSuccess

func (o *SearchForbidden) IsSuccess() bool

IsSuccess returns true when this search forbidden response has a 2xx status code

func (*SearchForbidden) String

func (o *SearchForbidden) String() string

type SearchInternalServerError

type SearchInternalServerError struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.CoreEntitiesResponse
}

SearchInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewSearchInternalServerError

func NewSearchInternalServerError() *SearchInternalServerError

NewSearchInternalServerError creates a SearchInternalServerError with default headers values

func (*SearchInternalServerError) Code

func (o *SearchInternalServerError) Code() int

Code gets the status code for the search internal server error response

func (*SearchInternalServerError) Error

func (o *SearchInternalServerError) Error() string

func (*SearchInternalServerError) GetPayload

func (*SearchInternalServerError) IsClientError

func (o *SearchInternalServerError) IsClientError() bool

IsClientError returns true when this search internal server error response has a 4xx status code

func (*SearchInternalServerError) IsCode

func (o *SearchInternalServerError) IsCode(code int) bool

IsCode returns true when this search internal server error response a status code equal to that given

func (*SearchInternalServerError) IsRedirect

func (o *SearchInternalServerError) IsRedirect() bool

IsRedirect returns true when this search internal server error response has a 3xx status code

func (*SearchInternalServerError) IsServerError

func (o *SearchInternalServerError) IsServerError() bool

IsServerError returns true when this search internal server error response has a 5xx status code

func (*SearchInternalServerError) IsSuccess

func (o *SearchInternalServerError) IsSuccess() bool

IsSuccess returns true when this search internal server error response has a 2xx status code

func (*SearchInternalServerError) String

func (o *SearchInternalServerError) String() string

type SearchOK

type SearchOK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.UnidentifiedcontainersUnidentifiedContainerAPIResponse
}

SearchOK describes a response with status code 200, with default header values.

OK

func NewSearchOK

func NewSearchOK() *SearchOK

NewSearchOK creates a SearchOK with default headers values

func (*SearchOK) Code

func (o *SearchOK) Code() int

Code gets the status code for the search o k response

func (*SearchOK) Error

func (o *SearchOK) Error() string

func (*SearchOK) IsClientError

func (o *SearchOK) IsClientError() bool

IsClientError returns true when this search o k response has a 4xx status code

func (*SearchOK) IsCode

func (o *SearchOK) IsCode(code int) bool

IsCode returns true when this search o k response a status code equal to that given

func (*SearchOK) IsRedirect

func (o *SearchOK) IsRedirect() bool

IsRedirect returns true when this search o k response has a 3xx status code

func (*SearchOK) IsServerError

func (o *SearchOK) IsServerError() bool

IsServerError returns true when this search o k response has a 5xx status code

func (*SearchOK) IsSuccess

func (o *SearchOK) IsSuccess() bool

IsSuccess returns true when this search o k response has a 2xx status code

func (*SearchOK) String

func (o *SearchOK) String() string

type SearchParams

type SearchParams struct {

	/* Filter.

	   Search Unidentified Containers using a query in Falcon Query Language (FQL). Supported filters:  assessed_images_count,cid,cluster_name,containers_impacted_count,detections_count,image_assessment_detections_count,last_seen,namespace,node_name,severity,unassessed_images_count,visible_to_k8s
	*/
	Filter *string

	/* Limit.

	   The upper-bound on the number of records to retrieve.
	*/
	Limit *int64

	/* Offset.

	   The offset from where to begin.
	*/
	Offset *int64

	/* Sort.

	   The fields to sort the records on.
	*/
	Sort *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SearchParams contains all the parameters to send to the API endpoint

for the search operation.

Typically these are written to a http.Request.

func NewSearchParams

func NewSearchParams() *SearchParams

NewSearchParams creates a new SearchParams 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 NewSearchParamsWithContext

func NewSearchParamsWithContext(ctx context.Context) *SearchParams

NewSearchParamsWithContext creates a new SearchParams object with the ability to set a context for a request.

func NewSearchParamsWithHTTPClient

func NewSearchParamsWithHTTPClient(client *http.Client) *SearchParams

NewSearchParamsWithHTTPClient creates a new SearchParams object with the ability to set a custom HTTPClient for a request.

func NewSearchParamsWithTimeout

func NewSearchParamsWithTimeout(timeout time.Duration) *SearchParams

NewSearchParamsWithTimeout creates a new SearchParams object with the ability to set a timeout on a request.

func (*SearchParams) SetContext

func (o *SearchParams) SetContext(ctx context.Context)

SetContext adds the context to the search params

func (*SearchParams) SetDefaults

func (o *SearchParams) SetDefaults()

SetDefaults hydrates default values in the search params (not the query body).

All values with no default are reset to their zero value.

func (*SearchParams) SetFilter

func (o *SearchParams) SetFilter(filter *string)

SetFilter adds the filter to the search params

func (*SearchParams) SetHTTPClient

func (o *SearchParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the search params

func (*SearchParams) SetLimit

func (o *SearchParams) SetLimit(limit *int64)

SetLimit adds the limit to the search params

func (*SearchParams) SetOffset

func (o *SearchParams) SetOffset(offset *int64)

SetOffset adds the offset to the search params

func (*SearchParams) SetSort

func (o *SearchParams) SetSort(sort *string)

SetSort adds the sort to the search params

func (*SearchParams) SetTimeout

func (o *SearchParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the search params

func (*SearchParams) WithContext

func (o *SearchParams) WithContext(ctx context.Context) *SearchParams

WithContext adds the context to the search params

func (*SearchParams) WithDefaults

func (o *SearchParams) WithDefaults() *SearchParams

WithDefaults hydrates default values in the search params (not the query body).

All values with no default are reset to their zero value.

func (*SearchParams) WithFilter

func (o *SearchParams) WithFilter(filter *string) *SearchParams

WithFilter adds the filter to the search params

func (*SearchParams) WithHTTPClient

func (o *SearchParams) WithHTTPClient(client *http.Client) *SearchParams

WithHTTPClient adds the HTTPClient to the search params

func (*SearchParams) WithLimit

func (o *SearchParams) WithLimit(limit *int64) *SearchParams

WithLimit adds the limit to the search params

func (*SearchParams) WithOffset

func (o *SearchParams) WithOffset(offset *int64) *SearchParams

WithOffset adds the offset to the search params

func (*SearchParams) WithSort

func (o *SearchParams) WithSort(sort *string) *SearchParams

WithSort adds the sort to the search params

func (*SearchParams) WithTimeout

func (o *SearchParams) WithTimeout(timeout time.Duration) *SearchParams

WithTimeout adds the timeout to the search params

func (*SearchParams) WriteToRequest

func (o *SearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SearchReader

type SearchReader struct {
	// contains filtered or unexported fields
}

SearchReader is a Reader for the Search structure.

func (*SearchReader) ReadResponse

func (o *SearchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SearchTooManyRequests

type SearchTooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}

SearchTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewSearchTooManyRequests

func NewSearchTooManyRequests() *SearchTooManyRequests

NewSearchTooManyRequests creates a SearchTooManyRequests with default headers values

func (*SearchTooManyRequests) Code

func (o *SearchTooManyRequests) Code() int

Code gets the status code for the search too many requests response

func (*SearchTooManyRequests) Error

func (o *SearchTooManyRequests) Error() string

func (*SearchTooManyRequests) GetPayload

func (*SearchTooManyRequests) IsClientError

func (o *SearchTooManyRequests) IsClientError() bool

IsClientError returns true when this search too many requests response has a 4xx status code

func (*SearchTooManyRequests) IsCode

func (o *SearchTooManyRequests) IsCode(code int) bool

IsCode returns true when this search too many requests response a status code equal to that given

func (*SearchTooManyRequests) IsRedirect

func (o *SearchTooManyRequests) IsRedirect() bool

IsRedirect returns true when this search too many requests response has a 3xx status code

func (*SearchTooManyRequests) IsServerError

func (o *SearchTooManyRequests) IsServerError() bool

IsServerError returns true when this search too many requests response has a 5xx status code

func (*SearchTooManyRequests) IsSuccess

func (o *SearchTooManyRequests) IsSuccess() bool

IsSuccess returns true when this search too many requests response has a 2xx status code

func (*SearchTooManyRequests) String

func (o *SearchTooManyRequests) String() string

Jump to

Keyboard shortcuts

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