Documentation ¶
Index ¶
- type Client
- func (a *Client) GetSystemCVEAllowlist(params *GetSystemCVEAllowlistParams, authInfo runtime.ClientAuthInfoWriter) (*GetSystemCVEAllowlistOK, error)
- func (a *Client) PutSystemCVEAllowlist(params *PutSystemCVEAllowlistParams, authInfo runtime.ClientAuthInfoWriter) (*PutSystemCVEAllowlistOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type GetSystemCVEAllowlistInternalServerError
- type GetSystemCVEAllowlistOK
- type GetSystemCVEAllowlistParams
- func NewGetSystemCVEAllowlistParams() *GetSystemCVEAllowlistParams
- func NewGetSystemCVEAllowlistParamsWithContext(ctx context.Context) *GetSystemCVEAllowlistParams
- func NewGetSystemCVEAllowlistParamsWithHTTPClient(client *http.Client) *GetSystemCVEAllowlistParams
- func NewGetSystemCVEAllowlistParamsWithTimeout(timeout time.Duration) *GetSystemCVEAllowlistParams
- func (o *GetSystemCVEAllowlistParams) SetContext(ctx context.Context)
- func (o *GetSystemCVEAllowlistParams) SetHTTPClient(client *http.Client)
- func (o *GetSystemCVEAllowlistParams) SetTimeout(timeout time.Duration)
- func (o *GetSystemCVEAllowlistParams) SetXRequestID(xRequestID *string)
- func (o *GetSystemCVEAllowlistParams) WithContext(ctx context.Context) *GetSystemCVEAllowlistParams
- func (o *GetSystemCVEAllowlistParams) WithHTTPClient(client *http.Client) *GetSystemCVEAllowlistParams
- func (o *GetSystemCVEAllowlistParams) WithTimeout(timeout time.Duration) *GetSystemCVEAllowlistParams
- func (o *GetSystemCVEAllowlistParams) WithXRequestID(xRequestID *string) *GetSystemCVEAllowlistParams
- func (o *GetSystemCVEAllowlistParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSystemCVEAllowlistReader
- type GetSystemCVEAllowlistUnauthorized
- type PutSystemCVEAllowlistForbidden
- type PutSystemCVEAllowlistInternalServerError
- type PutSystemCVEAllowlistOK
- type PutSystemCVEAllowlistParams
- func NewPutSystemCVEAllowlistParams() *PutSystemCVEAllowlistParams
- func NewPutSystemCVEAllowlistParamsWithContext(ctx context.Context) *PutSystemCVEAllowlistParams
- func NewPutSystemCVEAllowlistParamsWithHTTPClient(client *http.Client) *PutSystemCVEAllowlistParams
- func NewPutSystemCVEAllowlistParamsWithTimeout(timeout time.Duration) *PutSystemCVEAllowlistParams
- func (o *PutSystemCVEAllowlistParams) SetAllowlist(allowlist *model.CVEAllowlist)
- func (o *PutSystemCVEAllowlistParams) SetContext(ctx context.Context)
- func (o *PutSystemCVEAllowlistParams) SetHTTPClient(client *http.Client)
- func (o *PutSystemCVEAllowlistParams) SetTimeout(timeout time.Duration)
- func (o *PutSystemCVEAllowlistParams) SetXRequestID(xRequestID *string)
- func (o *PutSystemCVEAllowlistParams) WithAllowlist(allowlist *model.CVEAllowlist) *PutSystemCVEAllowlistParams
- func (o *PutSystemCVEAllowlistParams) WithContext(ctx context.Context) *PutSystemCVEAllowlistParams
- func (o *PutSystemCVEAllowlistParams) WithHTTPClient(client *http.Client) *PutSystemCVEAllowlistParams
- func (o *PutSystemCVEAllowlistParams) WithTimeout(timeout time.Duration) *PutSystemCVEAllowlistParams
- func (o *PutSystemCVEAllowlistParams) WithXRequestID(xRequestID *string) *PutSystemCVEAllowlistParams
- func (o *PutSystemCVEAllowlistParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutSystemCVEAllowlistReader
- type PutSystemCVEAllowlistUnauthorized
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 (o *GetSystemCVEAllowlistInternalServerError) Error() string
func (*GetSystemCVEAllowlistInternalServerError) GetPayload ¶
func (o *GetSystemCVEAllowlistInternalServerError) GetPayload() *model.Errors
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 ¶
func (o *GetSystemCVEAllowlistParams) WithContext(ctx context.Context) *GetSystemCVEAllowlistParams
WithContext adds the context to the get system CVE allowlist params
func (*GetSystemCVEAllowlistParams) WithHTTPClient ¶
func (o *GetSystemCVEAllowlistParams) WithHTTPClient(client *http.Client) *GetSystemCVEAllowlistParams
WithHTTPClient adds the HTTPClient to the get system CVE allowlist params
func (*GetSystemCVEAllowlistParams) WithTimeout ¶
func (o *GetSystemCVEAllowlistParams) WithTimeout(timeout time.Duration) *GetSystemCVEAllowlistParams
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 ¶
func (o *GetSystemCVEAllowlistParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 { string }XRequestID
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 (o *GetSystemCVEAllowlistUnauthorized) Error() string
func (*GetSystemCVEAllowlistUnauthorized) GetPayload ¶
func (o *GetSystemCVEAllowlistUnauthorized) GetPayload() *model.Errors
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 (o *PutSystemCVEAllowlistForbidden) Error() string
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 (o *PutSystemCVEAllowlistInternalServerError) Error() string
func (*PutSystemCVEAllowlistInternalServerError) GetPayload ¶
func (o *PutSystemCVEAllowlistInternalServerError) GetPayload() *model.Errors
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 ¶
func (o *PutSystemCVEAllowlistParams) WithAllowlist(allowlist *model.CVEAllowlist) *PutSystemCVEAllowlistParams
WithAllowlist adds the allowlist to the put system CVE allowlist params
func (*PutSystemCVEAllowlistParams) WithContext ¶
func (o *PutSystemCVEAllowlistParams) WithContext(ctx context.Context) *PutSystemCVEAllowlistParams
WithContext adds the context to the put system CVE allowlist params
func (*PutSystemCVEAllowlistParams) WithHTTPClient ¶
func (o *PutSystemCVEAllowlistParams) WithHTTPClient(client *http.Client) *PutSystemCVEAllowlistParams
WithHTTPClient adds the HTTPClient to the put system CVE allowlist params
func (*PutSystemCVEAllowlistParams) WithTimeout ¶
func (o *PutSystemCVEAllowlistParams) WithTimeout(timeout time.Duration) *PutSystemCVEAllowlistParams
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 ¶
func (o *PutSystemCVEAllowlistParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 { string }XRequestID
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 (o *PutSystemCVEAllowlistUnauthorized) Error() string
func (*PutSystemCVEAllowlistUnauthorized) GetPayload ¶
func (o *PutSystemCVEAllowlistUnauthorized) GetPayload() *model.Errors