Documentation
¶
Index ¶
- type Client
- func (a *Client) CveGetCveDetail(params *CveGetCveDetailParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CveGetCveDetailOK, error)
- func (a *Client) CveGetCveList(params *CveGetCveListParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CveGetCveListOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CveGetCveDetailOK
- type CveGetCveDetailParams
- func NewCveGetCveDetailParams() *CveGetCveDetailParams
- func NewCveGetCveDetailParamsWithContext(ctx context.Context) *CveGetCveDetailParams
- func NewCveGetCveDetailParamsWithHTTPClient(client *http.Client) *CveGetCveDetailParams
- func NewCveGetCveDetailParamsWithTimeout(timeout time.Duration) *CveGetCveDetailParams
- func (o *CveGetCveDetailParams) SetAuthorization(authorization *string)
- func (o *CveGetCveDetailParams) SetContext(ctx context.Context)
- func (o *CveGetCveDetailParams) SetCveID(cveID string)
- func (o *CveGetCveDetailParams) SetDefaults()
- func (o *CveGetCveDetailParams) SetHTTPClient(client *http.Client)
- func (o *CveGetCveDetailParams) SetTimeout(timeout time.Duration)
- func (o *CveGetCveDetailParams) WithAuthorization(authorization *string) *CveGetCveDetailParams
- func (o *CveGetCveDetailParams) WithContext(ctx context.Context) *CveGetCveDetailParams
- func (o *CveGetCveDetailParams) WithCveID(cveID string) *CveGetCveDetailParams
- func (o *CveGetCveDetailParams) WithDefaults() *CveGetCveDetailParams
- func (o *CveGetCveDetailParams) WithHTTPClient(client *http.Client) *CveGetCveDetailParams
- func (o *CveGetCveDetailParams) WithTimeout(timeout time.Duration) *CveGetCveDetailParams
- func (o *CveGetCveDetailParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CveGetCveDetailReader
- type CveGetCveListOK
- type CveGetCveListParams
- func (o *CveGetCveListParams) SetAuthorization(authorization *string)
- func (o *CveGetCveListParams) SetContext(ctx context.Context)
- func (o *CveGetCveListParams) SetDefaults()
- func (o *CveGetCveListParams) SetFilterCpeID(filterCpeID *int64)
- func (o *CveGetCveListParams) SetFilterPkgID(filterPkgID *int64)
- func (o *CveGetCveListParams) SetFilterRoleID(filterRoleID *int64)
- func (o *CveGetCveListParams) SetFilterServerID(filterServerID *int64)
- func (o *CveGetCveListParams) SetHTTPClient(client *http.Client)
- func (o *CveGetCveListParams) SetLimit(limit *int64)
- func (o *CveGetCveListParams) SetOffset(offset *int64)
- func (o *CveGetCveListParams) SetPage(page *int64)
- func (o *CveGetCveListParams) SetTimeout(timeout time.Duration)
- func (o *CveGetCveListParams) WithAuthorization(authorization *string) *CveGetCveListParams
- func (o *CveGetCveListParams) WithContext(ctx context.Context) *CveGetCveListParams
- func (o *CveGetCveListParams) WithDefaults() *CveGetCveListParams
- func (o *CveGetCveListParams) WithFilterCpeID(filterCpeID *int64) *CveGetCveListParams
- func (o *CveGetCveListParams) WithFilterPkgID(filterPkgID *int64) *CveGetCveListParams
- func (o *CveGetCveListParams) WithFilterRoleID(filterRoleID *int64) *CveGetCveListParams
- func (o *CveGetCveListParams) WithFilterServerID(filterServerID *int64) *CveGetCveListParams
- func (o *CveGetCveListParams) WithHTTPClient(client *http.Client) *CveGetCveListParams
- func (o *CveGetCveListParams) WithLimit(limit *int64) *CveGetCveListParams
- func (o *CveGetCveListParams) WithOffset(offset *int64) *CveGetCveListParams
- func (o *CveGetCveListParams) WithPage(page *int64) *CveGetCveListParams
- func (o *CveGetCveListParams) WithTimeout(timeout time.Duration) *CveGetCveListParams
- func (o *CveGetCveListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CveGetCveListReader
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 cve API
func (*Client) CveGetCveDetail ¶
func (a *Client) CveGetCveDetail(params *CveGetCveDetailParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CveGetCveDetailOK, error)
CveGetCveDetail gets cve detail cve
cve detail
func (*Client) CveGetCveList ¶
func (a *Client) CveGetCveList(params *CveGetCveListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CveGetCveListOK, error)
CveGetCveList gets cve list cve
cve list
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CveGetCveDetail(params *CveGetCveDetailParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CveGetCveDetailOK, error) CveGetCveList(params *CveGetCveListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CveGetCveListOK, 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 cve API client.
type CveGetCveDetailOK ¶
type CveGetCveDetailOK struct {
Payload *models.CveGetCveDetailResponseBody
}
CveGetCveDetailOK describes a response with status code 200, with default header values.
OK response.
func NewCveGetCveDetailOK ¶
func NewCveGetCveDetailOK() *CveGetCveDetailOK
NewCveGetCveDetailOK creates a CveGetCveDetailOK with default headers values
func (*CveGetCveDetailOK) Error ¶
func (o *CveGetCveDetailOK) Error() string
func (*CveGetCveDetailOK) GetPayload ¶
func (o *CveGetCveDetailOK) GetPayload() *models.CveGetCveDetailResponseBody
type CveGetCveDetailParams ¶
type CveGetCveDetailParams struct { /* Authorization. api key auth */ Authorization *string /* CveID. Cve ID */ CveID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CveGetCveDetailParams contains all the parameters to send to the API endpoint
for the cve get cve detail operation. Typically these are written to a http.Request.
func NewCveGetCveDetailParams ¶
func NewCveGetCveDetailParams() *CveGetCveDetailParams
NewCveGetCveDetailParams creates a new CveGetCveDetailParams 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 NewCveGetCveDetailParamsWithContext ¶
func NewCveGetCveDetailParamsWithContext(ctx context.Context) *CveGetCveDetailParams
NewCveGetCveDetailParamsWithContext creates a new CveGetCveDetailParams object with the ability to set a context for a request.
func NewCveGetCveDetailParamsWithHTTPClient ¶
func NewCveGetCveDetailParamsWithHTTPClient(client *http.Client) *CveGetCveDetailParams
NewCveGetCveDetailParamsWithHTTPClient creates a new CveGetCveDetailParams object with the ability to set a custom HTTPClient for a request.
func NewCveGetCveDetailParamsWithTimeout ¶
func NewCveGetCveDetailParamsWithTimeout(timeout time.Duration) *CveGetCveDetailParams
NewCveGetCveDetailParamsWithTimeout creates a new CveGetCveDetailParams object with the ability to set a timeout on a request.
func (*CveGetCveDetailParams) SetAuthorization ¶
func (o *CveGetCveDetailParams) SetAuthorization(authorization *string)
SetAuthorization adds the authorization to the cve get cve detail params
func (*CveGetCveDetailParams) SetContext ¶
func (o *CveGetCveDetailParams) SetContext(ctx context.Context)
SetContext adds the context to the cve get cve detail params
func (*CveGetCveDetailParams) SetCveID ¶
func (o *CveGetCveDetailParams) SetCveID(cveID string)
SetCveID adds the cveId to the cve get cve detail params
func (*CveGetCveDetailParams) SetDefaults ¶
func (o *CveGetCveDetailParams) SetDefaults()
SetDefaults hydrates default values in the cve get cve detail params (not the query body).
All values with no default are reset to their zero value.
func (*CveGetCveDetailParams) SetHTTPClient ¶
func (o *CveGetCveDetailParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the cve get cve detail params
func (*CveGetCveDetailParams) SetTimeout ¶
func (o *CveGetCveDetailParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the cve get cve detail params
func (*CveGetCveDetailParams) WithAuthorization ¶
func (o *CveGetCveDetailParams) WithAuthorization(authorization *string) *CveGetCveDetailParams
WithAuthorization adds the authorization to the cve get cve detail params
func (*CveGetCveDetailParams) WithContext ¶
func (o *CveGetCveDetailParams) WithContext(ctx context.Context) *CveGetCveDetailParams
WithContext adds the context to the cve get cve detail params
func (*CveGetCveDetailParams) WithCveID ¶
func (o *CveGetCveDetailParams) WithCveID(cveID string) *CveGetCveDetailParams
WithCveID adds the cveID to the cve get cve detail params
func (*CveGetCveDetailParams) WithDefaults ¶
func (o *CveGetCveDetailParams) WithDefaults() *CveGetCveDetailParams
WithDefaults hydrates default values in the cve get cve detail params (not the query body).
All values with no default are reset to their zero value.
func (*CveGetCveDetailParams) WithHTTPClient ¶
func (o *CveGetCveDetailParams) WithHTTPClient(client *http.Client) *CveGetCveDetailParams
WithHTTPClient adds the HTTPClient to the cve get cve detail params
func (*CveGetCveDetailParams) WithTimeout ¶
func (o *CveGetCveDetailParams) WithTimeout(timeout time.Duration) *CveGetCveDetailParams
WithTimeout adds the timeout to the cve get cve detail params
func (*CveGetCveDetailParams) WriteToRequest ¶
func (o *CveGetCveDetailParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CveGetCveDetailReader ¶
type CveGetCveDetailReader struct {
// contains filtered or unexported fields
}
CveGetCveDetailReader is a Reader for the CveGetCveDetail structure.
func (*CveGetCveDetailReader) ReadResponse ¶
func (o *CveGetCveDetailReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CveGetCveListOK ¶
type CveGetCveListOK struct {
Payload *models.CveGetCveListResponseBody
}
CveGetCveListOK describes a response with status code 200, with default header values.
OK response.
func NewCveGetCveListOK ¶
func NewCveGetCveListOK() *CveGetCveListOK
NewCveGetCveListOK creates a CveGetCveListOK with default headers values
func (*CveGetCveListOK) Error ¶
func (o *CveGetCveListOK) Error() string
func (*CveGetCveListOK) GetPayload ¶
func (o *CveGetCveListOK) GetPayload() *models.CveGetCveListResponseBody
type CveGetCveListParams ¶
type CveGetCveListParams struct { /* Authorization. api key auth */ Authorization *string /* FilterCpeID. CpeID filter */ FilterCpeID *int64 /* FilterPkgID. PackageID filter */ FilterPkgID *int64 /* FilterRoleID. ServerRoleID filter */ FilterRoleID *int64 /* FilterServerID. ServerID filter */ FilterServerID *int64 /* Limit. Limit Default: 20 */ Limit *int64 /* Offset. Offset */ Offset *int64 /* Page. Page Number Default: 1 */ Page *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CveGetCveListParams contains all the parameters to send to the API endpoint
for the cve get cve list operation. Typically these are written to a http.Request.
func NewCveGetCveListParams ¶
func NewCveGetCveListParams() *CveGetCveListParams
NewCveGetCveListParams creates a new CveGetCveListParams 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 NewCveGetCveListParamsWithContext ¶
func NewCveGetCveListParamsWithContext(ctx context.Context) *CveGetCveListParams
NewCveGetCveListParamsWithContext creates a new CveGetCveListParams object with the ability to set a context for a request.
func NewCveGetCveListParamsWithHTTPClient ¶
func NewCveGetCveListParamsWithHTTPClient(client *http.Client) *CveGetCveListParams
NewCveGetCveListParamsWithHTTPClient creates a new CveGetCveListParams object with the ability to set a custom HTTPClient for a request.
func NewCveGetCveListParamsWithTimeout ¶
func NewCveGetCveListParamsWithTimeout(timeout time.Duration) *CveGetCveListParams
NewCveGetCveListParamsWithTimeout creates a new CveGetCveListParams object with the ability to set a timeout on a request.
func (*CveGetCveListParams) SetAuthorization ¶
func (o *CveGetCveListParams) SetAuthorization(authorization *string)
SetAuthorization adds the authorization to the cve get cve list params
func (*CveGetCveListParams) SetContext ¶
func (o *CveGetCveListParams) SetContext(ctx context.Context)
SetContext adds the context to the cve get cve list params
func (*CveGetCveListParams) SetDefaults ¶
func (o *CveGetCveListParams) SetDefaults()
SetDefaults hydrates default values in the cve get cve list params (not the query body).
All values with no default are reset to their zero value.
func (*CveGetCveListParams) SetFilterCpeID ¶
func (o *CveGetCveListParams) SetFilterCpeID(filterCpeID *int64)
SetFilterCpeID adds the filterCpeId to the cve get cve list params
func (*CveGetCveListParams) SetFilterPkgID ¶
func (o *CveGetCveListParams) SetFilterPkgID(filterPkgID *int64)
SetFilterPkgID adds the filterPkgId to the cve get cve list params
func (*CveGetCveListParams) SetFilterRoleID ¶
func (o *CveGetCveListParams) SetFilterRoleID(filterRoleID *int64)
SetFilterRoleID adds the filterRoleId to the cve get cve list params
func (*CveGetCveListParams) SetFilterServerID ¶
func (o *CveGetCveListParams) SetFilterServerID(filterServerID *int64)
SetFilterServerID adds the filterServerId to the cve get cve list params
func (*CveGetCveListParams) SetHTTPClient ¶
func (o *CveGetCveListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the cve get cve list params
func (*CveGetCveListParams) SetLimit ¶
func (o *CveGetCveListParams) SetLimit(limit *int64)
SetLimit adds the limit to the cve get cve list params
func (*CveGetCveListParams) SetOffset ¶
func (o *CveGetCveListParams) SetOffset(offset *int64)
SetOffset adds the offset to the cve get cve list params
func (*CveGetCveListParams) SetPage ¶
func (o *CveGetCveListParams) SetPage(page *int64)
SetPage adds the page to the cve get cve list params
func (*CveGetCveListParams) SetTimeout ¶
func (o *CveGetCveListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the cve get cve list params
func (*CveGetCveListParams) WithAuthorization ¶
func (o *CveGetCveListParams) WithAuthorization(authorization *string) *CveGetCveListParams
WithAuthorization adds the authorization to the cve get cve list params
func (*CveGetCveListParams) WithContext ¶
func (o *CveGetCveListParams) WithContext(ctx context.Context) *CveGetCveListParams
WithContext adds the context to the cve get cve list params
func (*CveGetCveListParams) WithDefaults ¶
func (o *CveGetCveListParams) WithDefaults() *CveGetCveListParams
WithDefaults hydrates default values in the cve get cve list params (not the query body).
All values with no default are reset to their zero value.
func (*CveGetCveListParams) WithFilterCpeID ¶
func (o *CveGetCveListParams) WithFilterCpeID(filterCpeID *int64) *CveGetCveListParams
WithFilterCpeID adds the filterCpeID to the cve get cve list params
func (*CveGetCveListParams) WithFilterPkgID ¶
func (o *CveGetCveListParams) WithFilterPkgID(filterPkgID *int64) *CveGetCveListParams
WithFilterPkgID adds the filterPkgID to the cve get cve list params
func (*CveGetCveListParams) WithFilterRoleID ¶
func (o *CveGetCveListParams) WithFilterRoleID(filterRoleID *int64) *CveGetCveListParams
WithFilterRoleID adds the filterRoleID to the cve get cve list params
func (*CveGetCveListParams) WithFilterServerID ¶
func (o *CveGetCveListParams) WithFilterServerID(filterServerID *int64) *CveGetCveListParams
WithFilterServerID adds the filterServerID to the cve get cve list params
func (*CveGetCveListParams) WithHTTPClient ¶
func (o *CveGetCveListParams) WithHTTPClient(client *http.Client) *CveGetCveListParams
WithHTTPClient adds the HTTPClient to the cve get cve list params
func (*CveGetCveListParams) WithLimit ¶
func (o *CveGetCveListParams) WithLimit(limit *int64) *CveGetCveListParams
WithLimit adds the limit to the cve get cve list params
func (*CveGetCveListParams) WithOffset ¶
func (o *CveGetCveListParams) WithOffset(offset *int64) *CveGetCveListParams
WithOffset adds the offset to the cve get cve list params
func (*CveGetCveListParams) WithPage ¶
func (o *CveGetCveListParams) WithPage(page *int64) *CveGetCveListParams
WithPage adds the page to the cve get cve list params
func (*CveGetCveListParams) WithTimeout ¶
func (o *CveGetCveListParams) WithTimeout(timeout time.Duration) *CveGetCveListParams
WithTimeout adds the timeout to the cve get cve list params
func (*CveGetCveListParams) WriteToRequest ¶
func (o *CveGetCveListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CveGetCveListReader ¶
type CveGetCveListReader struct {
// contains filtered or unexported fields
}
CveGetCveListReader is a Reader for the CveGetCveList structure.
func (*CveGetCveListReader) ReadResponse ¶
func (o *CveGetCveListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.