vulnerability

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 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 vulnerability API

func (*Client) GetApplicationVulnerabilitySummaries

func (a *Client) GetApplicationVulnerabilitySummaries(params *GetApplicationVulnerabilitySummariesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetApplicationVulnerabilitySummariesOK, error)

GetApplicationVulnerabilitySummaries gets vulnerability summaries for components and jobs in an application

func (*Client) GetComponentVulnerabilities

func (a *Client) GetComponentVulnerabilities(params *GetComponentVulnerabilitiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetComponentVulnerabilitiesOK, error)

GetComponentVulnerabilities gets vulnerability summary for components in an environment

func (*Client) GetEnvironmentVulnerabilitySummary

func (a *Client) GetEnvironmentVulnerabilitySummary(params *GetEnvironmentVulnerabilitySummaryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEnvironmentVulnerabilitySummaryOK, error)

GetEnvironmentVulnerabilitySummary gets vulnerability summary for components in an environment

func (*Client) GetJobVulnerabilities

func (a *Client) GetJobVulnerabilities(params *GetJobVulnerabilitiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetJobVulnerabilitiesOK, error)

GetJobVulnerabilities gets vulnerability summary for job in an environment

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 may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	GetApplicationVulnerabilitySummaries(params *GetApplicationVulnerabilitySummariesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetApplicationVulnerabilitySummariesOK, error)

	GetComponentVulnerabilities(params *GetComponentVulnerabilitiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetComponentVulnerabilitiesOK, error)

	GetEnvironmentVulnerabilitySummary(params *GetEnvironmentVulnerabilitySummaryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEnvironmentVulnerabilitySummaryOK, error)

	GetJobVulnerabilities(params *GetJobVulnerabilitiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetJobVulnerabilitiesOK, 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.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new vulnerability API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new vulnerability API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type GetApplicationVulnerabilitySummariesNotFound

type GetApplicationVulnerabilitySummariesNotFound struct {
}

GetApplicationVulnerabilitySummariesNotFound describes a response with status code 404, with default header values.

Not found

func NewGetApplicationVulnerabilitySummariesNotFound

func NewGetApplicationVulnerabilitySummariesNotFound() *GetApplicationVulnerabilitySummariesNotFound

NewGetApplicationVulnerabilitySummariesNotFound creates a GetApplicationVulnerabilitySummariesNotFound with default headers values

func (*GetApplicationVulnerabilitySummariesNotFound) Code

Code gets the status code for the get application vulnerability summaries not found response

func (*GetApplicationVulnerabilitySummariesNotFound) Error

func (*GetApplicationVulnerabilitySummariesNotFound) IsClientError

IsClientError returns true when this get application vulnerability summaries not found response has a 4xx status code

func (*GetApplicationVulnerabilitySummariesNotFound) IsCode

IsCode returns true when this get application vulnerability summaries not found response a status code equal to that given

func (*GetApplicationVulnerabilitySummariesNotFound) IsRedirect

IsRedirect returns true when this get application vulnerability summaries not found response has a 3xx status code

func (*GetApplicationVulnerabilitySummariesNotFound) IsServerError

IsServerError returns true when this get application vulnerability summaries not found response has a 5xx status code

func (*GetApplicationVulnerabilitySummariesNotFound) IsSuccess

IsSuccess returns true when this get application vulnerability summaries not found response has a 2xx status code

func (*GetApplicationVulnerabilitySummariesNotFound) String

type GetApplicationVulnerabilitySummariesOK

type GetApplicationVulnerabilitySummariesOK struct {
	Payload models.ApplicationVulnerabilities
}

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

Successful get vulnerability summaries for application

func NewGetApplicationVulnerabilitySummariesOK

func NewGetApplicationVulnerabilitySummariesOK() *GetApplicationVulnerabilitySummariesOK

NewGetApplicationVulnerabilitySummariesOK creates a GetApplicationVulnerabilitySummariesOK with default headers values

func (*GetApplicationVulnerabilitySummariesOK) Code

Code gets the status code for the get application vulnerability summaries o k response

func (*GetApplicationVulnerabilitySummariesOK) Error

func (*GetApplicationVulnerabilitySummariesOK) GetPayload

func (*GetApplicationVulnerabilitySummariesOK) IsClientError

func (o *GetApplicationVulnerabilitySummariesOK) IsClientError() bool

IsClientError returns true when this get application vulnerability summaries o k response has a 4xx status code

func (*GetApplicationVulnerabilitySummariesOK) IsCode

IsCode returns true when this get application vulnerability summaries o k response a status code equal to that given

func (*GetApplicationVulnerabilitySummariesOK) IsRedirect

IsRedirect returns true when this get application vulnerability summaries o k response has a 3xx status code

func (*GetApplicationVulnerabilitySummariesOK) IsServerError

func (o *GetApplicationVulnerabilitySummariesOK) IsServerError() bool

IsServerError returns true when this get application vulnerability summaries o k response has a 5xx status code

func (*GetApplicationVulnerabilitySummariesOK) IsSuccess

IsSuccess returns true when this get application vulnerability summaries o k response has a 2xx status code

func (*GetApplicationVulnerabilitySummariesOK) String

type GetApplicationVulnerabilitySummariesParams

type GetApplicationVulnerabilitySummariesParams struct {

	/* AppName.

	   Name of the application
	*/
	AppName string

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

GetApplicationVulnerabilitySummariesParams contains all the parameters to send to the API endpoint

for the get application vulnerability summaries operation.

Typically these are written to a http.Request.

func NewGetApplicationVulnerabilitySummariesParams

func NewGetApplicationVulnerabilitySummariesParams() *GetApplicationVulnerabilitySummariesParams

NewGetApplicationVulnerabilitySummariesParams creates a new GetApplicationVulnerabilitySummariesParams 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 NewGetApplicationVulnerabilitySummariesParamsWithContext

func NewGetApplicationVulnerabilitySummariesParamsWithContext(ctx context.Context) *GetApplicationVulnerabilitySummariesParams

NewGetApplicationVulnerabilitySummariesParamsWithContext creates a new GetApplicationVulnerabilitySummariesParams object with the ability to set a context for a request.

func NewGetApplicationVulnerabilitySummariesParamsWithHTTPClient

func NewGetApplicationVulnerabilitySummariesParamsWithHTTPClient(client *http.Client) *GetApplicationVulnerabilitySummariesParams

NewGetApplicationVulnerabilitySummariesParamsWithHTTPClient creates a new GetApplicationVulnerabilitySummariesParams object with the ability to set a custom HTTPClient for a request.

func NewGetApplicationVulnerabilitySummariesParamsWithTimeout

func NewGetApplicationVulnerabilitySummariesParamsWithTimeout(timeout time.Duration) *GetApplicationVulnerabilitySummariesParams

NewGetApplicationVulnerabilitySummariesParamsWithTimeout creates a new GetApplicationVulnerabilitySummariesParams object with the ability to set a timeout on a request.

func (*GetApplicationVulnerabilitySummariesParams) SetAppName

func (o *GetApplicationVulnerabilitySummariesParams) SetAppName(appName string)

SetAppName adds the appName to the get application vulnerability summaries params

func (*GetApplicationVulnerabilitySummariesParams) SetContext

SetContext adds the context to the get application vulnerability summaries params

func (*GetApplicationVulnerabilitySummariesParams) SetDefaults

SetDefaults hydrates default values in the get application vulnerability summaries params (not the query body).

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

func (*GetApplicationVulnerabilitySummariesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get application vulnerability summaries params

func (*GetApplicationVulnerabilitySummariesParams) SetTimeout

SetTimeout adds the timeout to the get application vulnerability summaries params

func (*GetApplicationVulnerabilitySummariesParams) WithAppName

WithAppName adds the appName to the get application vulnerability summaries params

func (*GetApplicationVulnerabilitySummariesParams) WithContext

WithContext adds the context to the get application vulnerability summaries params

func (*GetApplicationVulnerabilitySummariesParams) WithDefaults

WithDefaults hydrates default values in the get application vulnerability summaries params (not the query body).

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

func (*GetApplicationVulnerabilitySummariesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get application vulnerability summaries params

func (*GetApplicationVulnerabilitySummariesParams) WithTimeout

WithTimeout adds the timeout to the get application vulnerability summaries params

func (*GetApplicationVulnerabilitySummariesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetApplicationVulnerabilitySummariesReader

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

GetApplicationVulnerabilitySummariesReader is a Reader for the GetApplicationVulnerabilitySummaries structure.

func (*GetApplicationVulnerabilitySummariesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetApplicationVulnerabilitySummariesUnauthorized

type GetApplicationVulnerabilitySummariesUnauthorized struct {
}

GetApplicationVulnerabilitySummariesUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetApplicationVulnerabilitySummariesUnauthorized

func NewGetApplicationVulnerabilitySummariesUnauthorized() *GetApplicationVulnerabilitySummariesUnauthorized

NewGetApplicationVulnerabilitySummariesUnauthorized creates a GetApplicationVulnerabilitySummariesUnauthorized with default headers values

func (*GetApplicationVulnerabilitySummariesUnauthorized) Code

Code gets the status code for the get application vulnerability summaries unauthorized response

func (*GetApplicationVulnerabilitySummariesUnauthorized) Error

func (*GetApplicationVulnerabilitySummariesUnauthorized) IsClientError

IsClientError returns true when this get application vulnerability summaries unauthorized response has a 4xx status code

func (*GetApplicationVulnerabilitySummariesUnauthorized) IsCode

IsCode returns true when this get application vulnerability summaries unauthorized response a status code equal to that given

func (*GetApplicationVulnerabilitySummariesUnauthorized) IsRedirect

IsRedirect returns true when this get application vulnerability summaries unauthorized response has a 3xx status code

func (*GetApplicationVulnerabilitySummariesUnauthorized) IsServerError

IsServerError returns true when this get application vulnerability summaries unauthorized response has a 5xx status code

func (*GetApplicationVulnerabilitySummariesUnauthorized) IsSuccess

IsSuccess returns true when this get application vulnerability summaries unauthorized response has a 2xx status code

func (*GetApplicationVulnerabilitySummariesUnauthorized) String

type GetComponentVulnerabilitiesNotFound

type GetComponentVulnerabilitiesNotFound struct {
}

GetComponentVulnerabilitiesNotFound describes a response with status code 404, with default header values.

Not found

func NewGetComponentVulnerabilitiesNotFound

func NewGetComponentVulnerabilitiesNotFound() *GetComponentVulnerabilitiesNotFound

NewGetComponentVulnerabilitiesNotFound creates a GetComponentVulnerabilitiesNotFound with default headers values

func (*GetComponentVulnerabilitiesNotFound) Code

Code gets the status code for the get component vulnerabilities not found response

func (*GetComponentVulnerabilitiesNotFound) Error

func (*GetComponentVulnerabilitiesNotFound) IsClientError

func (o *GetComponentVulnerabilitiesNotFound) IsClientError() bool

IsClientError returns true when this get component vulnerabilities not found response has a 4xx status code

func (*GetComponentVulnerabilitiesNotFound) IsCode

IsCode returns true when this get component vulnerabilities not found response a status code equal to that given

func (*GetComponentVulnerabilitiesNotFound) IsRedirect

func (o *GetComponentVulnerabilitiesNotFound) IsRedirect() bool

IsRedirect returns true when this get component vulnerabilities not found response has a 3xx status code

func (*GetComponentVulnerabilitiesNotFound) IsServerError

func (o *GetComponentVulnerabilitiesNotFound) IsServerError() bool

IsServerError returns true when this get component vulnerabilities not found response has a 5xx status code

func (*GetComponentVulnerabilitiesNotFound) IsSuccess

IsSuccess returns true when this get component vulnerabilities not found response has a 2xx status code

func (*GetComponentVulnerabilitiesNotFound) String

type GetComponentVulnerabilitiesOK

type GetComponentVulnerabilitiesOK struct {
	Payload *models.ImageWithLastScan
}

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

Successful get vulnerabilities for a component

func NewGetComponentVulnerabilitiesOK

func NewGetComponentVulnerabilitiesOK() *GetComponentVulnerabilitiesOK

NewGetComponentVulnerabilitiesOK creates a GetComponentVulnerabilitiesOK with default headers values

func (*GetComponentVulnerabilitiesOK) Code

Code gets the status code for the get component vulnerabilities o k response

func (*GetComponentVulnerabilitiesOK) Error

func (*GetComponentVulnerabilitiesOK) GetPayload

func (*GetComponentVulnerabilitiesOK) IsClientError

func (o *GetComponentVulnerabilitiesOK) IsClientError() bool

IsClientError returns true when this get component vulnerabilities o k response has a 4xx status code

func (*GetComponentVulnerabilitiesOK) IsCode

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

IsCode returns true when this get component vulnerabilities o k response a status code equal to that given

func (*GetComponentVulnerabilitiesOK) IsRedirect

func (o *GetComponentVulnerabilitiesOK) IsRedirect() bool

IsRedirect returns true when this get component vulnerabilities o k response has a 3xx status code

func (*GetComponentVulnerabilitiesOK) IsServerError

func (o *GetComponentVulnerabilitiesOK) IsServerError() bool

IsServerError returns true when this get component vulnerabilities o k response has a 5xx status code

func (*GetComponentVulnerabilitiesOK) IsSuccess

func (o *GetComponentVulnerabilitiesOK) IsSuccess() bool

IsSuccess returns true when this get component vulnerabilities o k response has a 2xx status code

func (*GetComponentVulnerabilitiesOK) String

type GetComponentVulnerabilitiesParams

type GetComponentVulnerabilitiesParams struct {

	/* AppName.

	   Name of the application
	*/
	AppName string

	/* ComponentName.

	   Name of the component
	*/
	ComponentName string

	/* EnvName.

	   Name of the environment
	*/
	EnvName string

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

GetComponentVulnerabilitiesParams contains all the parameters to send to the API endpoint

for the get component vulnerabilities operation.

Typically these are written to a http.Request.

func NewGetComponentVulnerabilitiesParams

func NewGetComponentVulnerabilitiesParams() *GetComponentVulnerabilitiesParams

NewGetComponentVulnerabilitiesParams creates a new GetComponentVulnerabilitiesParams 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 NewGetComponentVulnerabilitiesParamsWithContext

func NewGetComponentVulnerabilitiesParamsWithContext(ctx context.Context) *GetComponentVulnerabilitiesParams

NewGetComponentVulnerabilitiesParamsWithContext creates a new GetComponentVulnerabilitiesParams object with the ability to set a context for a request.

func NewGetComponentVulnerabilitiesParamsWithHTTPClient

func NewGetComponentVulnerabilitiesParamsWithHTTPClient(client *http.Client) *GetComponentVulnerabilitiesParams

NewGetComponentVulnerabilitiesParamsWithHTTPClient creates a new GetComponentVulnerabilitiesParams object with the ability to set a custom HTTPClient for a request.

func NewGetComponentVulnerabilitiesParamsWithTimeout

func NewGetComponentVulnerabilitiesParamsWithTimeout(timeout time.Duration) *GetComponentVulnerabilitiesParams

NewGetComponentVulnerabilitiesParamsWithTimeout creates a new GetComponentVulnerabilitiesParams object with the ability to set a timeout on a request.

func (*GetComponentVulnerabilitiesParams) SetAppName

func (o *GetComponentVulnerabilitiesParams) SetAppName(appName string)

SetAppName adds the appName to the get component vulnerabilities params

func (*GetComponentVulnerabilitiesParams) SetComponentName

func (o *GetComponentVulnerabilitiesParams) SetComponentName(componentName string)

SetComponentName adds the componentName to the get component vulnerabilities params

func (*GetComponentVulnerabilitiesParams) SetContext

SetContext adds the context to the get component vulnerabilities params

func (*GetComponentVulnerabilitiesParams) SetDefaults

func (o *GetComponentVulnerabilitiesParams) SetDefaults()

SetDefaults hydrates default values in the get component vulnerabilities params (not the query body).

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

func (*GetComponentVulnerabilitiesParams) SetEnvName

func (o *GetComponentVulnerabilitiesParams) SetEnvName(envName string)

SetEnvName adds the envName to the get component vulnerabilities params

func (*GetComponentVulnerabilitiesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get component vulnerabilities params

func (*GetComponentVulnerabilitiesParams) SetTimeout

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

SetTimeout adds the timeout to the get component vulnerabilities params

func (*GetComponentVulnerabilitiesParams) WithAppName

WithAppName adds the appName to the get component vulnerabilities params

func (*GetComponentVulnerabilitiesParams) WithComponentName

func (o *GetComponentVulnerabilitiesParams) WithComponentName(componentName string) *GetComponentVulnerabilitiesParams

WithComponentName adds the componentName to the get component vulnerabilities params

func (*GetComponentVulnerabilitiesParams) WithContext

WithContext adds the context to the get component vulnerabilities params

func (*GetComponentVulnerabilitiesParams) WithDefaults

WithDefaults hydrates default values in the get component vulnerabilities params (not the query body).

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

func (*GetComponentVulnerabilitiesParams) WithEnvName

WithEnvName adds the envName to the get component vulnerabilities params

func (*GetComponentVulnerabilitiesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get component vulnerabilities params

func (*GetComponentVulnerabilitiesParams) WithTimeout

WithTimeout adds the timeout to the get component vulnerabilities params

func (*GetComponentVulnerabilitiesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetComponentVulnerabilitiesReader

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

GetComponentVulnerabilitiesReader is a Reader for the GetComponentVulnerabilities structure.

func (*GetComponentVulnerabilitiesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetComponentVulnerabilitiesUnauthorized

type GetComponentVulnerabilitiesUnauthorized struct {
}

GetComponentVulnerabilitiesUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetComponentVulnerabilitiesUnauthorized

func NewGetComponentVulnerabilitiesUnauthorized() *GetComponentVulnerabilitiesUnauthorized

NewGetComponentVulnerabilitiesUnauthorized creates a GetComponentVulnerabilitiesUnauthorized with default headers values

func (*GetComponentVulnerabilitiesUnauthorized) Code

Code gets the status code for the get component vulnerabilities unauthorized response

func (*GetComponentVulnerabilitiesUnauthorized) Error

func (*GetComponentVulnerabilitiesUnauthorized) IsClientError

func (o *GetComponentVulnerabilitiesUnauthorized) IsClientError() bool

IsClientError returns true when this get component vulnerabilities unauthorized response has a 4xx status code

func (*GetComponentVulnerabilitiesUnauthorized) IsCode

IsCode returns true when this get component vulnerabilities unauthorized response a status code equal to that given

func (*GetComponentVulnerabilitiesUnauthorized) IsRedirect

IsRedirect returns true when this get component vulnerabilities unauthorized response has a 3xx status code

func (*GetComponentVulnerabilitiesUnauthorized) IsServerError

func (o *GetComponentVulnerabilitiesUnauthorized) IsServerError() bool

IsServerError returns true when this get component vulnerabilities unauthorized response has a 5xx status code

func (*GetComponentVulnerabilitiesUnauthorized) IsSuccess

IsSuccess returns true when this get component vulnerabilities unauthorized response has a 2xx status code

func (*GetComponentVulnerabilitiesUnauthorized) String

type GetEnvironmentVulnerabilitySummaryNotFound

type GetEnvironmentVulnerabilitySummaryNotFound struct {
}

GetEnvironmentVulnerabilitySummaryNotFound describes a response with status code 404, with default header values.

Not found

func NewGetEnvironmentVulnerabilitySummaryNotFound

func NewGetEnvironmentVulnerabilitySummaryNotFound() *GetEnvironmentVulnerabilitySummaryNotFound

NewGetEnvironmentVulnerabilitySummaryNotFound creates a GetEnvironmentVulnerabilitySummaryNotFound with default headers values

func (*GetEnvironmentVulnerabilitySummaryNotFound) Code

Code gets the status code for the get environment vulnerability summary not found response

func (*GetEnvironmentVulnerabilitySummaryNotFound) Error

func (*GetEnvironmentVulnerabilitySummaryNotFound) IsClientError

IsClientError returns true when this get environment vulnerability summary not found response has a 4xx status code

func (*GetEnvironmentVulnerabilitySummaryNotFound) IsCode

IsCode returns true when this get environment vulnerability summary not found response a status code equal to that given

func (*GetEnvironmentVulnerabilitySummaryNotFound) IsRedirect

IsRedirect returns true when this get environment vulnerability summary not found response has a 3xx status code

func (*GetEnvironmentVulnerabilitySummaryNotFound) IsServerError

IsServerError returns true when this get environment vulnerability summary not found response has a 5xx status code

func (*GetEnvironmentVulnerabilitySummaryNotFound) IsSuccess

IsSuccess returns true when this get environment vulnerability summary not found response has a 2xx status code

func (*GetEnvironmentVulnerabilitySummaryNotFound) String

type GetEnvironmentVulnerabilitySummaryOK

type GetEnvironmentVulnerabilitySummaryOK struct {
	Payload *models.EnvironmentVulnerabilities
}

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

Successful get vulnerability summary for application

func NewGetEnvironmentVulnerabilitySummaryOK

func NewGetEnvironmentVulnerabilitySummaryOK() *GetEnvironmentVulnerabilitySummaryOK

NewGetEnvironmentVulnerabilitySummaryOK creates a GetEnvironmentVulnerabilitySummaryOK with default headers values

func (*GetEnvironmentVulnerabilitySummaryOK) Code

Code gets the status code for the get environment vulnerability summary o k response

func (*GetEnvironmentVulnerabilitySummaryOK) Error

func (*GetEnvironmentVulnerabilitySummaryOK) GetPayload

func (*GetEnvironmentVulnerabilitySummaryOK) IsClientError

func (o *GetEnvironmentVulnerabilitySummaryOK) IsClientError() bool

IsClientError returns true when this get environment vulnerability summary o k response has a 4xx status code

func (*GetEnvironmentVulnerabilitySummaryOK) IsCode

IsCode returns true when this get environment vulnerability summary o k response a status code equal to that given

func (*GetEnvironmentVulnerabilitySummaryOK) IsRedirect

IsRedirect returns true when this get environment vulnerability summary o k response has a 3xx status code

func (*GetEnvironmentVulnerabilitySummaryOK) IsServerError

func (o *GetEnvironmentVulnerabilitySummaryOK) IsServerError() bool

IsServerError returns true when this get environment vulnerability summary o k response has a 5xx status code

func (*GetEnvironmentVulnerabilitySummaryOK) IsSuccess

IsSuccess returns true when this get environment vulnerability summary o k response has a 2xx status code

func (*GetEnvironmentVulnerabilitySummaryOK) String

type GetEnvironmentVulnerabilitySummaryParams

type GetEnvironmentVulnerabilitySummaryParams struct {

	/* AppName.

	   Name of the application
	*/
	AppName string

	/* EnvName.

	   Name of the environment
	*/
	EnvName string

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

GetEnvironmentVulnerabilitySummaryParams contains all the parameters to send to the API endpoint

for the get environment vulnerability summary operation.

Typically these are written to a http.Request.

func NewGetEnvironmentVulnerabilitySummaryParams

func NewGetEnvironmentVulnerabilitySummaryParams() *GetEnvironmentVulnerabilitySummaryParams

NewGetEnvironmentVulnerabilitySummaryParams creates a new GetEnvironmentVulnerabilitySummaryParams 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 NewGetEnvironmentVulnerabilitySummaryParamsWithContext

func NewGetEnvironmentVulnerabilitySummaryParamsWithContext(ctx context.Context) *GetEnvironmentVulnerabilitySummaryParams

NewGetEnvironmentVulnerabilitySummaryParamsWithContext creates a new GetEnvironmentVulnerabilitySummaryParams object with the ability to set a context for a request.

func NewGetEnvironmentVulnerabilitySummaryParamsWithHTTPClient

func NewGetEnvironmentVulnerabilitySummaryParamsWithHTTPClient(client *http.Client) *GetEnvironmentVulnerabilitySummaryParams

NewGetEnvironmentVulnerabilitySummaryParamsWithHTTPClient creates a new GetEnvironmentVulnerabilitySummaryParams object with the ability to set a custom HTTPClient for a request.

func NewGetEnvironmentVulnerabilitySummaryParamsWithTimeout

func NewGetEnvironmentVulnerabilitySummaryParamsWithTimeout(timeout time.Duration) *GetEnvironmentVulnerabilitySummaryParams

NewGetEnvironmentVulnerabilitySummaryParamsWithTimeout creates a new GetEnvironmentVulnerabilitySummaryParams object with the ability to set a timeout on a request.

func (*GetEnvironmentVulnerabilitySummaryParams) SetAppName

func (o *GetEnvironmentVulnerabilitySummaryParams) SetAppName(appName string)

SetAppName adds the appName to the get environment vulnerability summary params

func (*GetEnvironmentVulnerabilitySummaryParams) SetContext

SetContext adds the context to the get environment vulnerability summary params

func (*GetEnvironmentVulnerabilitySummaryParams) SetDefaults

SetDefaults hydrates default values in the get environment vulnerability summary params (not the query body).

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

func (*GetEnvironmentVulnerabilitySummaryParams) SetEnvName

func (o *GetEnvironmentVulnerabilitySummaryParams) SetEnvName(envName string)

SetEnvName adds the envName to the get environment vulnerability summary params

func (*GetEnvironmentVulnerabilitySummaryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get environment vulnerability summary params

func (*GetEnvironmentVulnerabilitySummaryParams) SetTimeout

SetTimeout adds the timeout to the get environment vulnerability summary params

func (*GetEnvironmentVulnerabilitySummaryParams) WithAppName

WithAppName adds the appName to the get environment vulnerability summary params

func (*GetEnvironmentVulnerabilitySummaryParams) WithContext

WithContext adds the context to the get environment vulnerability summary params

func (*GetEnvironmentVulnerabilitySummaryParams) WithDefaults

WithDefaults hydrates default values in the get environment vulnerability summary params (not the query body).

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

func (*GetEnvironmentVulnerabilitySummaryParams) WithEnvName

WithEnvName adds the envName to the get environment vulnerability summary params

func (*GetEnvironmentVulnerabilitySummaryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get environment vulnerability summary params

func (*GetEnvironmentVulnerabilitySummaryParams) WithTimeout

WithTimeout adds the timeout to the get environment vulnerability summary params

func (*GetEnvironmentVulnerabilitySummaryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetEnvironmentVulnerabilitySummaryReader

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

GetEnvironmentVulnerabilitySummaryReader is a Reader for the GetEnvironmentVulnerabilitySummary structure.

func (*GetEnvironmentVulnerabilitySummaryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetEnvironmentVulnerabilitySummaryUnauthorized

type GetEnvironmentVulnerabilitySummaryUnauthorized struct {
}

GetEnvironmentVulnerabilitySummaryUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetEnvironmentVulnerabilitySummaryUnauthorized

func NewGetEnvironmentVulnerabilitySummaryUnauthorized() *GetEnvironmentVulnerabilitySummaryUnauthorized

NewGetEnvironmentVulnerabilitySummaryUnauthorized creates a GetEnvironmentVulnerabilitySummaryUnauthorized with default headers values

func (*GetEnvironmentVulnerabilitySummaryUnauthorized) Code

Code gets the status code for the get environment vulnerability summary unauthorized response

func (*GetEnvironmentVulnerabilitySummaryUnauthorized) Error

func (*GetEnvironmentVulnerabilitySummaryUnauthorized) IsClientError

IsClientError returns true when this get environment vulnerability summary unauthorized response has a 4xx status code

func (*GetEnvironmentVulnerabilitySummaryUnauthorized) IsCode

IsCode returns true when this get environment vulnerability summary unauthorized response a status code equal to that given

func (*GetEnvironmentVulnerabilitySummaryUnauthorized) IsRedirect

IsRedirect returns true when this get environment vulnerability summary unauthorized response has a 3xx status code

func (*GetEnvironmentVulnerabilitySummaryUnauthorized) IsServerError

IsServerError returns true when this get environment vulnerability summary unauthorized response has a 5xx status code

func (*GetEnvironmentVulnerabilitySummaryUnauthorized) IsSuccess

IsSuccess returns true when this get environment vulnerability summary unauthorized response has a 2xx status code

func (*GetEnvironmentVulnerabilitySummaryUnauthorized) String

type GetJobVulnerabilitiesNotFound

type GetJobVulnerabilitiesNotFound struct {
}

GetJobVulnerabilitiesNotFound describes a response with status code 404, with default header values.

Not found

func NewGetJobVulnerabilitiesNotFound

func NewGetJobVulnerabilitiesNotFound() *GetJobVulnerabilitiesNotFound

NewGetJobVulnerabilitiesNotFound creates a GetJobVulnerabilitiesNotFound with default headers values

func (*GetJobVulnerabilitiesNotFound) Code

Code gets the status code for the get job vulnerabilities not found response

func (*GetJobVulnerabilitiesNotFound) Error

func (*GetJobVulnerabilitiesNotFound) IsClientError

func (o *GetJobVulnerabilitiesNotFound) IsClientError() bool

IsClientError returns true when this get job vulnerabilities not found response has a 4xx status code

func (*GetJobVulnerabilitiesNotFound) IsCode

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

IsCode returns true when this get job vulnerabilities not found response a status code equal to that given

func (*GetJobVulnerabilitiesNotFound) IsRedirect

func (o *GetJobVulnerabilitiesNotFound) IsRedirect() bool

IsRedirect returns true when this get job vulnerabilities not found response has a 3xx status code

func (*GetJobVulnerabilitiesNotFound) IsServerError

func (o *GetJobVulnerabilitiesNotFound) IsServerError() bool

IsServerError returns true when this get job vulnerabilities not found response has a 5xx status code

func (*GetJobVulnerabilitiesNotFound) IsSuccess

func (o *GetJobVulnerabilitiesNotFound) IsSuccess() bool

IsSuccess returns true when this get job vulnerabilities not found response has a 2xx status code

func (*GetJobVulnerabilitiesNotFound) String

type GetJobVulnerabilitiesOK

type GetJobVulnerabilitiesOK struct {
	Payload *models.ImageWithLastScan
}

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

Successful get vulnerabilities for a job

func NewGetJobVulnerabilitiesOK

func NewGetJobVulnerabilitiesOK() *GetJobVulnerabilitiesOK

NewGetJobVulnerabilitiesOK creates a GetJobVulnerabilitiesOK with default headers values

func (*GetJobVulnerabilitiesOK) Code

func (o *GetJobVulnerabilitiesOK) Code() int

Code gets the status code for the get job vulnerabilities o k response

func (*GetJobVulnerabilitiesOK) Error

func (o *GetJobVulnerabilitiesOK) Error() string

func (*GetJobVulnerabilitiesOK) GetPayload

func (*GetJobVulnerabilitiesOK) IsClientError

func (o *GetJobVulnerabilitiesOK) IsClientError() bool

IsClientError returns true when this get job vulnerabilities o k response has a 4xx status code

func (*GetJobVulnerabilitiesOK) IsCode

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

IsCode returns true when this get job vulnerabilities o k response a status code equal to that given

func (*GetJobVulnerabilitiesOK) IsRedirect

func (o *GetJobVulnerabilitiesOK) IsRedirect() bool

IsRedirect returns true when this get job vulnerabilities o k response has a 3xx status code

func (*GetJobVulnerabilitiesOK) IsServerError

func (o *GetJobVulnerabilitiesOK) IsServerError() bool

IsServerError returns true when this get job vulnerabilities o k response has a 5xx status code

func (*GetJobVulnerabilitiesOK) IsSuccess

func (o *GetJobVulnerabilitiesOK) IsSuccess() bool

IsSuccess returns true when this get job vulnerabilities o k response has a 2xx status code

func (*GetJobVulnerabilitiesOK) String

func (o *GetJobVulnerabilitiesOK) String() string

type GetJobVulnerabilitiesParams

type GetJobVulnerabilitiesParams struct {

	/* AppName.

	   Name of the application
	*/
	AppName string

	/* EnvName.

	   Name of the environment
	*/
	EnvName string

	/* JobName.

	   Name of the job
	*/
	JobName string

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

GetJobVulnerabilitiesParams contains all the parameters to send to the API endpoint

for the get job vulnerabilities operation.

Typically these are written to a http.Request.

func NewGetJobVulnerabilitiesParams

func NewGetJobVulnerabilitiesParams() *GetJobVulnerabilitiesParams

NewGetJobVulnerabilitiesParams creates a new GetJobVulnerabilitiesParams 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 NewGetJobVulnerabilitiesParamsWithContext

func NewGetJobVulnerabilitiesParamsWithContext(ctx context.Context) *GetJobVulnerabilitiesParams

NewGetJobVulnerabilitiesParamsWithContext creates a new GetJobVulnerabilitiesParams object with the ability to set a context for a request.

func NewGetJobVulnerabilitiesParamsWithHTTPClient

func NewGetJobVulnerabilitiesParamsWithHTTPClient(client *http.Client) *GetJobVulnerabilitiesParams

NewGetJobVulnerabilitiesParamsWithHTTPClient creates a new GetJobVulnerabilitiesParams object with the ability to set a custom HTTPClient for a request.

func NewGetJobVulnerabilitiesParamsWithTimeout

func NewGetJobVulnerabilitiesParamsWithTimeout(timeout time.Duration) *GetJobVulnerabilitiesParams

NewGetJobVulnerabilitiesParamsWithTimeout creates a new GetJobVulnerabilitiesParams object with the ability to set a timeout on a request.

func (*GetJobVulnerabilitiesParams) SetAppName

func (o *GetJobVulnerabilitiesParams) SetAppName(appName string)

SetAppName adds the appName to the get job vulnerabilities params

func (*GetJobVulnerabilitiesParams) SetContext

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

SetContext adds the context to the get job vulnerabilities params

func (*GetJobVulnerabilitiesParams) SetDefaults

func (o *GetJobVulnerabilitiesParams) SetDefaults()

SetDefaults hydrates default values in the get job vulnerabilities params (not the query body).

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

func (*GetJobVulnerabilitiesParams) SetEnvName

func (o *GetJobVulnerabilitiesParams) SetEnvName(envName string)

SetEnvName adds the envName to the get job vulnerabilities params

func (*GetJobVulnerabilitiesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get job vulnerabilities params

func (*GetJobVulnerabilitiesParams) SetJobName

func (o *GetJobVulnerabilitiesParams) SetJobName(jobName string)

SetJobName adds the jobName to the get job vulnerabilities params

func (*GetJobVulnerabilitiesParams) SetTimeout

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

SetTimeout adds the timeout to the get job vulnerabilities params

func (*GetJobVulnerabilitiesParams) WithAppName

WithAppName adds the appName to the get job vulnerabilities params

func (*GetJobVulnerabilitiesParams) WithContext

WithContext adds the context to the get job vulnerabilities params

func (*GetJobVulnerabilitiesParams) WithDefaults

WithDefaults hydrates default values in the get job vulnerabilities params (not the query body).

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

func (*GetJobVulnerabilitiesParams) WithEnvName

WithEnvName adds the envName to the get job vulnerabilities params

func (*GetJobVulnerabilitiesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get job vulnerabilities params

func (*GetJobVulnerabilitiesParams) WithJobName

WithJobName adds the jobName to the get job vulnerabilities params

func (*GetJobVulnerabilitiesParams) WithTimeout

WithTimeout adds the timeout to the get job vulnerabilities params

func (*GetJobVulnerabilitiesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetJobVulnerabilitiesReader

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

GetJobVulnerabilitiesReader is a Reader for the GetJobVulnerabilities structure.

func (*GetJobVulnerabilitiesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetJobVulnerabilitiesUnauthorized

type GetJobVulnerabilitiesUnauthorized struct {
}

GetJobVulnerabilitiesUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetJobVulnerabilitiesUnauthorized

func NewGetJobVulnerabilitiesUnauthorized() *GetJobVulnerabilitiesUnauthorized

NewGetJobVulnerabilitiesUnauthorized creates a GetJobVulnerabilitiesUnauthorized with default headers values

func (*GetJobVulnerabilitiesUnauthorized) Code

Code gets the status code for the get job vulnerabilities unauthorized response

func (*GetJobVulnerabilitiesUnauthorized) Error

func (*GetJobVulnerabilitiesUnauthorized) IsClientError

func (o *GetJobVulnerabilitiesUnauthorized) IsClientError() bool

IsClientError returns true when this get job vulnerabilities unauthorized response has a 4xx status code

func (*GetJobVulnerabilitiesUnauthorized) IsCode

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

IsCode returns true when this get job vulnerabilities unauthorized response a status code equal to that given

func (*GetJobVulnerabilitiesUnauthorized) IsRedirect

func (o *GetJobVulnerabilitiesUnauthorized) IsRedirect() bool

IsRedirect returns true when this get job vulnerabilities unauthorized response has a 3xx status code

func (*GetJobVulnerabilitiesUnauthorized) IsServerError

func (o *GetJobVulnerabilitiesUnauthorized) IsServerError() bool

IsServerError returns true when this get job vulnerabilities unauthorized response has a 5xx status code

func (*GetJobVulnerabilitiesUnauthorized) IsSuccess

func (o *GetJobVulnerabilitiesUnauthorized) IsSuccess() bool

IsSuccess returns true when this get job vulnerabilities unauthorized response has a 2xx status code

func (*GetJobVulnerabilitiesUnauthorized) String

Jump to

Keyboard shortcuts

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