system_cve_allowlist

package
v0.210.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	/*
	   GetSystemCVEAllowlist gets the system level allowlist of CVE

	   Get the system level allowlist of CVE.  This API can be called by all authenticated users.*/
	GetSystemCVEAllowlist(ctx context.Context, params *GetSystemCVEAllowlistParams) (*GetSystemCVEAllowlistOK, error)
	/*
	   PutSystemCVEAllowlist updates the system level allowlist of CVE

	   This API overwrites the system level allowlist of CVE with the list in request body.  Only system Admin has permission to call this API.*/
	PutSystemCVEAllowlist(ctx context.Context, params *PutSystemCVEAllowlistParams) (*PutSystemCVEAllowlistOK, error)
}

API is the interface of the system cve allowlist client

type Client

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

Client for system cve allowlist API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client

New creates a new system cve allowlist API client.

func (*Client) GetSystemCVEAllowlist

func (a *Client) GetSystemCVEAllowlist(ctx context.Context, params *GetSystemCVEAllowlistParams) (*GetSystemCVEAllowlistOK, error)

GetSystemCVEAllowlist gets the system level allowlist of CVE

Get the system level allowlist of CVE. This API can be called by all authenticated users.

func (*Client) PutSystemCVEAllowlist

func (a *Client) PutSystemCVEAllowlist(ctx context.Context, params *PutSystemCVEAllowlistParams) (*PutSystemCVEAllowlistOK, error)

PutSystemCVEAllowlist updates the system level allowlist of CVE

This API overwrites the system level allowlist of CVE with the list in request body. Only system Admin has permission to call this API.

type GetSystemCVEAllowlistInternalServerError

type GetSystemCVEAllowlistInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Internal server error

func NewGetSystemCVEAllowlistInternalServerError

func NewGetSystemCVEAllowlistInternalServerError() *GetSystemCVEAllowlistInternalServerError

NewGetSystemCVEAllowlistInternalServerError creates a GetSystemCVEAllowlistInternalServerError with default headers values

func (*GetSystemCVEAllowlistInternalServerError) Error

func (*GetSystemCVEAllowlistInternalServerError) GetPayload

func (*GetSystemCVEAllowlistInternalServerError) IsClientError added in v0.26.2

IsClientError returns true when this get system Cve allowlist internal server error response has a 4xx status code

func (*GetSystemCVEAllowlistInternalServerError) IsCode added in v0.26.2

IsCode returns true when this get system Cve allowlist internal server error response a status code equal to that given

func (*GetSystemCVEAllowlistInternalServerError) IsRedirect added in v0.26.2

IsRedirect returns true when this get system Cve allowlist internal server error response has a 3xx status code

func (*GetSystemCVEAllowlistInternalServerError) IsServerError added in v0.26.2

IsServerError returns true when this get system Cve allowlist internal server error response has a 5xx status code

func (*GetSystemCVEAllowlistInternalServerError) IsSuccess added in v0.26.2

IsSuccess returns true when this get system Cve allowlist internal server error response has a 2xx status code

func (*GetSystemCVEAllowlistInternalServerError) String added in v0.26.2

type GetSystemCVEAllowlistOK

type GetSystemCVEAllowlistOK struct {
	Payload *models.CVEAllowlist
}

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

Successfully retrieved the CVE allowlist.

func NewGetSystemCVEAllowlistOK

func NewGetSystemCVEAllowlistOK() *GetSystemCVEAllowlistOK

NewGetSystemCVEAllowlistOK creates a GetSystemCVEAllowlistOK with default headers values

func (*GetSystemCVEAllowlistOK) Error

func (o *GetSystemCVEAllowlistOK) Error() string

func (*GetSystemCVEAllowlistOK) GetPayload

func (o *GetSystemCVEAllowlistOK) GetPayload() *models.CVEAllowlist

func (*GetSystemCVEAllowlistOK) IsClientError added in v0.26.2

func (o *GetSystemCVEAllowlistOK) IsClientError() bool

IsClientError returns true when this get system Cve allowlist o k response has a 4xx status code

func (*GetSystemCVEAllowlistOK) IsCode added in v0.26.2

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

IsCode returns true when this get system Cve allowlist o k response a status code equal to that given

func (*GetSystemCVEAllowlistOK) IsRedirect added in v0.26.2

func (o *GetSystemCVEAllowlistOK) IsRedirect() bool

IsRedirect returns true when this get system Cve allowlist o k response has a 3xx status code

func (*GetSystemCVEAllowlistOK) IsServerError added in v0.26.2

func (o *GetSystemCVEAllowlistOK) IsServerError() bool

IsServerError returns true when this get system Cve allowlist o k response has a 5xx status code

func (*GetSystemCVEAllowlistOK) IsSuccess added in v0.26.2

func (o *GetSystemCVEAllowlistOK) IsSuccess() bool

IsSuccess returns true when this get system Cve allowlist o k response has a 2xx status code

func (*GetSystemCVEAllowlistOK) String added in v0.26.2

func (o *GetSystemCVEAllowlistOK) String() string

type GetSystemCVEAllowlistParams

type GetSystemCVEAllowlistParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string

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

GetSystemCVEAllowlistParams contains all the parameters to send to the API endpoint

for the get system CVE allowlist operation.

Typically these are written to a http.Request.

func NewGetSystemCVEAllowlistParams

func NewGetSystemCVEAllowlistParams() *GetSystemCVEAllowlistParams

NewGetSystemCVEAllowlistParams creates a new GetSystemCVEAllowlistParams 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 NewGetSystemCVEAllowlistParamsWithContext

func NewGetSystemCVEAllowlistParamsWithContext(ctx context.Context) *GetSystemCVEAllowlistParams

NewGetSystemCVEAllowlistParamsWithContext creates a new GetSystemCVEAllowlistParams object with the ability to set a context for a request.

func NewGetSystemCVEAllowlistParamsWithHTTPClient

func NewGetSystemCVEAllowlistParamsWithHTTPClient(client *http.Client) *GetSystemCVEAllowlistParams

NewGetSystemCVEAllowlistParamsWithHTTPClient creates a new GetSystemCVEAllowlistParams object with the ability to set a custom HTTPClient for a request.

func NewGetSystemCVEAllowlistParamsWithTimeout

func NewGetSystemCVEAllowlistParamsWithTimeout(timeout time.Duration) *GetSystemCVEAllowlistParams

NewGetSystemCVEAllowlistParamsWithTimeout creates a new GetSystemCVEAllowlistParams object with the ability to set a timeout on a request.

func (*GetSystemCVEAllowlistParams) SetContext

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

SetContext adds the context to the get system CVE allowlist params

func (*GetSystemCVEAllowlistParams) SetDefaults

func (o *GetSystemCVEAllowlistParams) SetDefaults()

SetDefaults hydrates default values in the get system CVE allowlist params (not the query body).

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

func (*GetSystemCVEAllowlistParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get system CVE allowlist params

func (*GetSystemCVEAllowlistParams) SetTimeout

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

SetTimeout adds the timeout to the get system CVE allowlist params

func (*GetSystemCVEAllowlistParams) SetXRequestID

func (o *GetSystemCVEAllowlistParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get system CVE allowlist params

func (*GetSystemCVEAllowlistParams) WithContext

WithContext adds the context to the get system CVE allowlist params

func (*GetSystemCVEAllowlistParams) WithDefaults

WithDefaults hydrates default values in the get system CVE allowlist params (not the query body).

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

func (*GetSystemCVEAllowlistParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get system CVE allowlist params

func (*GetSystemCVEAllowlistParams) WithTimeout

WithTimeout adds the timeout to the get system CVE allowlist params

func (*GetSystemCVEAllowlistParams) WithXRequestID

func (o *GetSystemCVEAllowlistParams) WithXRequestID(xRequestID *string) *GetSystemCVEAllowlistParams

WithXRequestID adds the xRequestID to the get system CVE allowlist params

func (*GetSystemCVEAllowlistParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSystemCVEAllowlistReader

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

GetSystemCVEAllowlistReader is a Reader for the GetSystemCVEAllowlist structure.

func (*GetSystemCVEAllowlistReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSystemCVEAllowlistUnauthorized

type GetSystemCVEAllowlistUnauthorized struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Unauthorized

func NewGetSystemCVEAllowlistUnauthorized

func NewGetSystemCVEAllowlistUnauthorized() *GetSystemCVEAllowlistUnauthorized

NewGetSystemCVEAllowlistUnauthorized creates a GetSystemCVEAllowlistUnauthorized with default headers values

func (*GetSystemCVEAllowlistUnauthorized) Error

func (*GetSystemCVEAllowlistUnauthorized) GetPayload

func (*GetSystemCVEAllowlistUnauthorized) IsClientError added in v0.26.2

func (o *GetSystemCVEAllowlistUnauthorized) IsClientError() bool

IsClientError returns true when this get system Cve allowlist unauthorized response has a 4xx status code

func (*GetSystemCVEAllowlistUnauthorized) IsCode added in v0.26.2

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

IsCode returns true when this get system Cve allowlist unauthorized response a status code equal to that given

func (*GetSystemCVEAllowlistUnauthorized) IsRedirect added in v0.26.2

func (o *GetSystemCVEAllowlistUnauthorized) IsRedirect() bool

IsRedirect returns true when this get system Cve allowlist unauthorized response has a 3xx status code

func (*GetSystemCVEAllowlistUnauthorized) IsServerError added in v0.26.2

func (o *GetSystemCVEAllowlistUnauthorized) IsServerError() bool

IsServerError returns true when this get system Cve allowlist unauthorized response has a 5xx status code

func (*GetSystemCVEAllowlistUnauthorized) IsSuccess added in v0.26.2

func (o *GetSystemCVEAllowlistUnauthorized) IsSuccess() bool

IsSuccess returns true when this get system Cve allowlist unauthorized response has a 2xx status code

func (*GetSystemCVEAllowlistUnauthorized) String added in v0.26.2

type PutSystemCVEAllowlistForbidden

type PutSystemCVEAllowlistForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Forbidden

func NewPutSystemCVEAllowlistForbidden

func NewPutSystemCVEAllowlistForbidden() *PutSystemCVEAllowlistForbidden

NewPutSystemCVEAllowlistForbidden creates a PutSystemCVEAllowlistForbidden with default headers values

func (*PutSystemCVEAllowlistForbidden) Error

func (*PutSystemCVEAllowlistForbidden) GetPayload

func (o *PutSystemCVEAllowlistForbidden) GetPayload() *models.Errors

func (*PutSystemCVEAllowlistForbidden) IsClientError added in v0.26.2

func (o *PutSystemCVEAllowlistForbidden) IsClientError() bool

IsClientError returns true when this put system Cve allowlist forbidden response has a 4xx status code

func (*PutSystemCVEAllowlistForbidden) IsCode added in v0.26.2

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

IsCode returns true when this put system Cve allowlist forbidden response a status code equal to that given

func (*PutSystemCVEAllowlistForbidden) IsRedirect added in v0.26.2

func (o *PutSystemCVEAllowlistForbidden) IsRedirect() bool

IsRedirect returns true when this put system Cve allowlist forbidden response has a 3xx status code

func (*PutSystemCVEAllowlistForbidden) IsServerError added in v0.26.2

func (o *PutSystemCVEAllowlistForbidden) IsServerError() bool

IsServerError returns true when this put system Cve allowlist forbidden response has a 5xx status code

func (*PutSystemCVEAllowlistForbidden) IsSuccess added in v0.26.2

func (o *PutSystemCVEAllowlistForbidden) IsSuccess() bool

IsSuccess returns true when this put system Cve allowlist forbidden response has a 2xx status code

func (*PutSystemCVEAllowlistForbidden) String added in v0.26.2

type PutSystemCVEAllowlistInternalServerError

type PutSystemCVEAllowlistInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Internal server error

func NewPutSystemCVEAllowlistInternalServerError

func NewPutSystemCVEAllowlistInternalServerError() *PutSystemCVEAllowlistInternalServerError

NewPutSystemCVEAllowlistInternalServerError creates a PutSystemCVEAllowlistInternalServerError with default headers values

func (*PutSystemCVEAllowlistInternalServerError) Error

func (*PutSystemCVEAllowlistInternalServerError) GetPayload

func (*PutSystemCVEAllowlistInternalServerError) IsClientError added in v0.26.2

IsClientError returns true when this put system Cve allowlist internal server error response has a 4xx status code

func (*PutSystemCVEAllowlistInternalServerError) IsCode added in v0.26.2

IsCode returns true when this put system Cve allowlist internal server error response a status code equal to that given

func (*PutSystemCVEAllowlistInternalServerError) IsRedirect added in v0.26.2

IsRedirect returns true when this put system Cve allowlist internal server error response has a 3xx status code

func (*PutSystemCVEAllowlistInternalServerError) IsServerError added in v0.26.2

IsServerError returns true when this put system Cve allowlist internal server error response has a 5xx status code

func (*PutSystemCVEAllowlistInternalServerError) IsSuccess added in v0.26.2

IsSuccess returns true when this put system Cve allowlist internal server error response has a 2xx status code

func (*PutSystemCVEAllowlistInternalServerError) String added in v0.26.2

type PutSystemCVEAllowlistOK

type PutSystemCVEAllowlistOK struct {
}

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

Successfully updated the CVE allowlist.

func NewPutSystemCVEAllowlistOK

func NewPutSystemCVEAllowlistOK() *PutSystemCVEAllowlistOK

NewPutSystemCVEAllowlistOK creates a PutSystemCVEAllowlistOK with default headers values

func (*PutSystemCVEAllowlistOK) Error

func (o *PutSystemCVEAllowlistOK) Error() string

func (*PutSystemCVEAllowlistOK) IsClientError added in v0.26.2

func (o *PutSystemCVEAllowlistOK) IsClientError() bool

IsClientError returns true when this put system Cve allowlist o k response has a 4xx status code

func (*PutSystemCVEAllowlistOK) IsCode added in v0.26.2

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

IsCode returns true when this put system Cve allowlist o k response a status code equal to that given

func (*PutSystemCVEAllowlistOK) IsRedirect added in v0.26.2

func (o *PutSystemCVEAllowlistOK) IsRedirect() bool

IsRedirect returns true when this put system Cve allowlist o k response has a 3xx status code

func (*PutSystemCVEAllowlistOK) IsServerError added in v0.26.2

func (o *PutSystemCVEAllowlistOK) IsServerError() bool

IsServerError returns true when this put system Cve allowlist o k response has a 5xx status code

func (*PutSystemCVEAllowlistOK) IsSuccess added in v0.26.2

func (o *PutSystemCVEAllowlistOK) IsSuccess() bool

IsSuccess returns true when this put system Cve allowlist o k response has a 2xx status code

func (*PutSystemCVEAllowlistOK) String added in v0.26.2

func (o *PutSystemCVEAllowlistOK) String() string

type PutSystemCVEAllowlistParams

type PutSystemCVEAllowlistParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string

	/* Allowlist.

	   The allowlist with new content
	*/
	Allowlist *models.CVEAllowlist

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

PutSystemCVEAllowlistParams contains all the parameters to send to the API endpoint

for the put system CVE allowlist operation.

Typically these are written to a http.Request.

func NewPutSystemCVEAllowlistParams

func NewPutSystemCVEAllowlistParams() *PutSystemCVEAllowlistParams

NewPutSystemCVEAllowlistParams creates a new PutSystemCVEAllowlistParams 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 NewPutSystemCVEAllowlistParamsWithContext

func NewPutSystemCVEAllowlistParamsWithContext(ctx context.Context) *PutSystemCVEAllowlistParams

NewPutSystemCVEAllowlistParamsWithContext creates a new PutSystemCVEAllowlistParams object with the ability to set a context for a request.

func NewPutSystemCVEAllowlistParamsWithHTTPClient

func NewPutSystemCVEAllowlistParamsWithHTTPClient(client *http.Client) *PutSystemCVEAllowlistParams

NewPutSystemCVEAllowlistParamsWithHTTPClient creates a new PutSystemCVEAllowlistParams object with the ability to set a custom HTTPClient for a request.

func NewPutSystemCVEAllowlistParamsWithTimeout

func NewPutSystemCVEAllowlistParamsWithTimeout(timeout time.Duration) *PutSystemCVEAllowlistParams

NewPutSystemCVEAllowlistParamsWithTimeout creates a new PutSystemCVEAllowlistParams object with the ability to set a timeout on a request.

func (*PutSystemCVEAllowlistParams) SetAllowlist

func (o *PutSystemCVEAllowlistParams) SetAllowlist(allowlist *models.CVEAllowlist)

SetAllowlist adds the allowlist to the put system CVE allowlist params

func (*PutSystemCVEAllowlistParams) SetContext

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

SetContext adds the context to the put system CVE allowlist params

func (*PutSystemCVEAllowlistParams) SetDefaults

func (o *PutSystemCVEAllowlistParams) SetDefaults()

SetDefaults hydrates default values in the put system CVE allowlist params (not the query body).

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

func (*PutSystemCVEAllowlistParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put system CVE allowlist params

func (*PutSystemCVEAllowlistParams) SetTimeout

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

SetTimeout adds the timeout to the put system CVE allowlist params

func (*PutSystemCVEAllowlistParams) SetXRequestID

func (o *PutSystemCVEAllowlistParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the put system CVE allowlist params

func (*PutSystemCVEAllowlistParams) WithAllowlist

WithAllowlist adds the allowlist to the put system CVE allowlist params

func (*PutSystemCVEAllowlistParams) WithContext

WithContext adds the context to the put system CVE allowlist params

func (*PutSystemCVEAllowlistParams) WithDefaults

WithDefaults hydrates default values in the put system CVE allowlist params (not the query body).

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

func (*PutSystemCVEAllowlistParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the put system CVE allowlist params

func (*PutSystemCVEAllowlistParams) WithTimeout

WithTimeout adds the timeout to the put system CVE allowlist params

func (*PutSystemCVEAllowlistParams) WithXRequestID

func (o *PutSystemCVEAllowlistParams) WithXRequestID(xRequestID *string) *PutSystemCVEAllowlistParams

WithXRequestID adds the xRequestID to the put system CVE allowlist params

func (*PutSystemCVEAllowlistParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutSystemCVEAllowlistReader

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

PutSystemCVEAllowlistReader is a Reader for the PutSystemCVEAllowlist structure.

func (*PutSystemCVEAllowlistReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutSystemCVEAllowlistUnauthorized

type PutSystemCVEAllowlistUnauthorized struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Unauthorized

func NewPutSystemCVEAllowlistUnauthorized

func NewPutSystemCVEAllowlistUnauthorized() *PutSystemCVEAllowlistUnauthorized

NewPutSystemCVEAllowlistUnauthorized creates a PutSystemCVEAllowlistUnauthorized with default headers values

func (*PutSystemCVEAllowlistUnauthorized) Error

func (*PutSystemCVEAllowlistUnauthorized) GetPayload

func (*PutSystemCVEAllowlistUnauthorized) IsClientError added in v0.26.2

func (o *PutSystemCVEAllowlistUnauthorized) IsClientError() bool

IsClientError returns true when this put system Cve allowlist unauthorized response has a 4xx status code

func (*PutSystemCVEAllowlistUnauthorized) IsCode added in v0.26.2

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

IsCode returns true when this put system Cve allowlist unauthorized response a status code equal to that given

func (*PutSystemCVEAllowlistUnauthorized) IsRedirect added in v0.26.2

func (o *PutSystemCVEAllowlistUnauthorized) IsRedirect() bool

IsRedirect returns true when this put system Cve allowlist unauthorized response has a 3xx status code

func (*PutSystemCVEAllowlistUnauthorized) IsServerError added in v0.26.2

func (o *PutSystemCVEAllowlistUnauthorized) IsServerError() bool

IsServerError returns true when this put system Cve allowlist unauthorized response has a 5xx status code

func (*PutSystemCVEAllowlistUnauthorized) IsSuccess added in v0.26.2

func (o *PutSystemCVEAllowlistUnauthorized) IsSuccess() bool

IsSuccess returns true when this put system Cve allowlist unauthorized response has a 2xx status code

func (*PutSystemCVEAllowlistUnauthorized) String added in v0.26.2

Jump to

Keyboard shortcuts

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