system_cve_allowlist

package
v0.0.0-...-deb1a44 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 10 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 system cve allowlist API

func (*Client) GetSystemCVEAllowlist

func (a *Client) GetSystemCVEAllowlist(params *GetSystemCVEAllowlistParams, authInfo runtime.ClientAuthInfoWriter) (*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(params *PutSystemCVEAllowlistParams, authInfo runtime.ClientAuthInfoWriter) (*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.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetSystemCVEAllowlist(params *GetSystemCVEAllowlistParams, authInfo runtime.ClientAuthInfoWriter) (*GetSystemCVEAllowlistOK, error)

	PutSystemCVEAllowlist(params *PutSystemCVEAllowlistParams, authInfo runtime.ClientAuthInfoWriter) (*PutSystemCVEAllowlistOK, 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 system cve allowlist API client.

type GetSystemCVEAllowlistInternalServerError

type GetSystemCVEAllowlistInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetSystemCVEAllowlistInternalServerError handles this case 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

type GetSystemCVEAllowlistOK

type GetSystemCVEAllowlistOK struct {
	Payload *model.CVEAllowlist
}

GetSystemCVEAllowlistOK handles this case 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() *model.CVEAllowlist

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 values initialized.

func NewGetSystemCVEAllowlistParamsWithContext

func NewGetSystemCVEAllowlistParamsWithContext(ctx context.Context) *GetSystemCVEAllowlistParams

NewGetSystemCVEAllowlistParamsWithContext creates a new GetSystemCVEAllowlistParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 *model.Errors
}

GetSystemCVEAllowlistUnauthorized handles this case with default header values.

Unauthorized

func NewGetSystemCVEAllowlistUnauthorized

func NewGetSystemCVEAllowlistUnauthorized() *GetSystemCVEAllowlistUnauthorized

NewGetSystemCVEAllowlistUnauthorized creates a GetSystemCVEAllowlistUnauthorized with default headers values

func (*GetSystemCVEAllowlistUnauthorized) Error

func (*GetSystemCVEAllowlistUnauthorized) GetPayload

type PutSystemCVEAllowlistForbidden

type PutSystemCVEAllowlistForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

PutSystemCVEAllowlistForbidden handles this case 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() *model.Errors

type PutSystemCVEAllowlistInternalServerError

type PutSystemCVEAllowlistInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

PutSystemCVEAllowlistInternalServerError handles this case 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

type PutSystemCVEAllowlistOK

type PutSystemCVEAllowlistOK struct {
}

PutSystemCVEAllowlistOK handles this case 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

type PutSystemCVEAllowlistParams

type PutSystemCVEAllowlistParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Allowlist
	  The allowlist with new content

	*/
	Allowlist *model.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 values initialized.

func NewPutSystemCVEAllowlistParamsWithContext

func NewPutSystemCVEAllowlistParamsWithContext(ctx context.Context) *PutSystemCVEAllowlistParams

NewPutSystemCVEAllowlistParamsWithContext creates a new PutSystemCVEAllowlistParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*PutSystemCVEAllowlistParams) SetAllowlist

func (o *PutSystemCVEAllowlistParams) SetAllowlist(allowlist *model.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) 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) 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 *model.Errors
}

PutSystemCVEAllowlistUnauthorized handles this case with default header values.

Unauthorized

func NewPutSystemCVEAllowlistUnauthorized

func NewPutSystemCVEAllowlistUnauthorized() *PutSystemCVEAllowlistUnauthorized

NewPutSystemCVEAllowlistUnauthorized creates a PutSystemCVEAllowlistUnauthorized with default headers values

func (*PutSystemCVEAllowlistUnauthorized) Error

func (*PutSystemCVEAllowlistUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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