Documentation
¶
Index ¶
- type API
- type Client
- type GetNSAssessmentBadRequest
- type GetNSAssessmentInternalServerError
- type GetNSAssessmentOK
- type GetNSAssessmentParams
- func NewGetNSAssessmentParams() *GetNSAssessmentParams
- func NewGetNSAssessmentParamsWithContext(ctx context.Context) *GetNSAssessmentParams
- func NewGetNSAssessmentParamsWithHTTPClient(client *http.Client) *GetNSAssessmentParams
- func NewGetNSAssessmentParamsWithTimeout(timeout time.Duration) *GetNSAssessmentParams
- func (o *GetNSAssessmentParams) SetContext(ctx context.Context)
- func (o *GetNSAssessmentParams) SetHTTPClient(client *http.Client)
- func (o *GetNSAssessmentParams) SetNs(ns string)
- func (o *GetNSAssessmentParams) SetPolicy(policy string)
- func (o *GetNSAssessmentParams) SetTimeout(timeout time.Duration)
- func (o *GetNSAssessmentParams) WithContext(ctx context.Context) *GetNSAssessmentParams
- func (o *GetNSAssessmentParams) WithHTTPClient(client *http.Client) *GetNSAssessmentParams
- func (o *GetNSAssessmentParams) WithNs(ns string) *GetNSAssessmentParams
- func (o *GetNSAssessmentParams) WithPolicy(policy string) *GetNSAssessmentParams
- func (o *GetNSAssessmentParams) WithTimeout(timeout time.Duration) *GetNSAssessmentParams
- func (o *GetNSAssessmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetNSAssessmentReader
- type ListNamespacesInternalServerError
- type ListNamespacesOK
- type ListNamespacesParams
- func NewListNamespacesParams() *ListNamespacesParams
- func NewListNamespacesParamsWithContext(ctx context.Context) *ListNamespacesParams
- func NewListNamespacesParamsWithHTTPClient(client *http.Client) *ListNamespacesParams
- func NewListNamespacesParamsWithTimeout(timeout time.Duration) *ListNamespacesParams
- func (o *ListNamespacesParams) SetContext(ctx context.Context)
- func (o *ListNamespacesParams) SetHTTPClient(client *http.Client)
- func (o *ListNamespacesParams) SetTimeout(timeout time.Duration)
- func (o *ListNamespacesParams) WithContext(ctx context.Context) *ListNamespacesParams
- func (o *ListNamespacesParams) WithHTTPClient(client *http.Client) *ListNamespacesParams
- func (o *ListNamespacesParams) WithTimeout(timeout time.Duration) *ListNamespacesParams
- func (o *ListNamespacesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListNamespacesReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { /* GetNSAssessment gets inspection policy info under the namespace The related assessments of the workloads under the namespace are returned*/ GetNSAssessment(ctx context.Context, params *GetNSAssessmentParams) (*GetNSAssessmentOK, error) /* ListNamespaces lists all the namespaces with inspection policies from the k8s cluster*/ ListNamespaces(ctx context.Context, params *ListNamespacesParams) (*ListNamespacesOK, error) }
API is the interface of the assessment client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for assessment API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client
New creates a new assessment API client.
func (*Client) GetNSAssessment ¶
func (a *Client) GetNSAssessment(ctx context.Context, params *GetNSAssessmentParams) (*GetNSAssessmentOK, error)
GetNSAssessment gets inspection policy info under the namespace
The related assessments of the workloads under the namespace are returned
func (*Client) ListNamespaces ¶
func (a *Client) ListNamespaces(ctx context.Context, params *ListNamespacesParams) (*ListNamespacesOK, error)
ListNamespaces lists all the namespaces with inspection policies from the k8s cluster
type GetNSAssessmentBadRequest ¶
type GetNSAssessmentBadRequest struct { }
GetNSAssessmentBadRequest handles this case with default header values.
Bad request
func NewGetNSAssessmentBadRequest ¶
func NewGetNSAssessmentBadRequest() *GetNSAssessmentBadRequest
NewGetNSAssessmentBadRequest creates a GetNSAssessmentBadRequest with default headers values
func (*GetNSAssessmentBadRequest) Error ¶
func (o *GetNSAssessmentBadRequest) Error() string
type GetNSAssessmentInternalServerError ¶
type GetNSAssessmentInternalServerError struct { }
GetNSAssessmentInternalServerError handles this case with default header values.
Internal server error occurred
func NewGetNSAssessmentInternalServerError ¶
func NewGetNSAssessmentInternalServerError() *GetNSAssessmentInternalServerError
NewGetNSAssessmentInternalServerError creates a GetNSAssessmentInternalServerError with default headers values
func (*GetNSAssessmentInternalServerError) Error ¶
func (o *GetNSAssessmentInternalServerError) Error() string
type GetNSAssessmentOK ¶
type GetNSAssessmentOK struct {
Payload *models.AssessmentResponse
}
GetNSAssessmentOK handles this case with default header values.
successful operation
func NewGetNSAssessmentOK ¶
func NewGetNSAssessmentOK() *GetNSAssessmentOK
NewGetNSAssessmentOK creates a GetNSAssessmentOK with default headers values
func (*GetNSAssessmentOK) Error ¶
func (o *GetNSAssessmentOK) Error() string
func (*GetNSAssessmentOK) GetPayload ¶
func (o *GetNSAssessmentOK) GetPayload() *models.AssessmentResponse
type GetNSAssessmentParams ¶
type GetNSAssessmentParams struct { /*Ns namespace name */ Ns string /*Policy inspection policy name */ Policy string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetNSAssessmentParams contains all the parameters to send to the API endpoint for the get n s assessment operation typically these are written to a http.Request
func NewGetNSAssessmentParams ¶
func NewGetNSAssessmentParams() *GetNSAssessmentParams
NewGetNSAssessmentParams creates a new GetNSAssessmentParams object with the default values initialized.
func NewGetNSAssessmentParamsWithContext ¶
func NewGetNSAssessmentParamsWithContext(ctx context.Context) *GetNSAssessmentParams
NewGetNSAssessmentParamsWithContext creates a new GetNSAssessmentParams object with the default values initialized, and the ability to set a context for a request
func NewGetNSAssessmentParamsWithHTTPClient ¶
func NewGetNSAssessmentParamsWithHTTPClient(client *http.Client) *GetNSAssessmentParams
NewGetNSAssessmentParamsWithHTTPClient creates a new GetNSAssessmentParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetNSAssessmentParamsWithTimeout ¶
func NewGetNSAssessmentParamsWithTimeout(timeout time.Duration) *GetNSAssessmentParams
NewGetNSAssessmentParamsWithTimeout creates a new GetNSAssessmentParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetNSAssessmentParams) SetContext ¶
func (o *GetNSAssessmentParams) SetContext(ctx context.Context)
SetContext adds the context to the get n s assessment params
func (*GetNSAssessmentParams) SetHTTPClient ¶
func (o *GetNSAssessmentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get n s assessment params
func (*GetNSAssessmentParams) SetNs ¶
func (o *GetNSAssessmentParams) SetNs(ns string)
SetNs adds the ns to the get n s assessment params
func (*GetNSAssessmentParams) SetPolicy ¶
func (o *GetNSAssessmentParams) SetPolicy(policy string)
SetPolicy adds the policy to the get n s assessment params
func (*GetNSAssessmentParams) SetTimeout ¶
func (o *GetNSAssessmentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get n s assessment params
func (*GetNSAssessmentParams) WithContext ¶
func (o *GetNSAssessmentParams) WithContext(ctx context.Context) *GetNSAssessmentParams
WithContext adds the context to the get n s assessment params
func (*GetNSAssessmentParams) WithHTTPClient ¶
func (o *GetNSAssessmentParams) WithHTTPClient(client *http.Client) *GetNSAssessmentParams
WithHTTPClient adds the HTTPClient to the get n s assessment params
func (*GetNSAssessmentParams) WithNs ¶
func (o *GetNSAssessmentParams) WithNs(ns string) *GetNSAssessmentParams
WithNs adds the ns to the get n s assessment params
func (*GetNSAssessmentParams) WithPolicy ¶
func (o *GetNSAssessmentParams) WithPolicy(policy string) *GetNSAssessmentParams
WithPolicy adds the policy to the get n s assessment params
func (*GetNSAssessmentParams) WithTimeout ¶
func (o *GetNSAssessmentParams) WithTimeout(timeout time.Duration) *GetNSAssessmentParams
WithTimeout adds the timeout to the get n s assessment params
func (*GetNSAssessmentParams) WriteToRequest ¶
func (o *GetNSAssessmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetNSAssessmentReader ¶
type GetNSAssessmentReader struct {
// contains filtered or unexported fields
}
GetNSAssessmentReader is a Reader for the GetNSAssessment structure.
func (*GetNSAssessmentReader) ReadResponse ¶
func (o *GetNSAssessmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListNamespacesInternalServerError ¶
type ListNamespacesInternalServerError struct { }
ListNamespacesInternalServerError handles this case with default header values.
Internal server error occurred
func NewListNamespacesInternalServerError ¶
func NewListNamespacesInternalServerError() *ListNamespacesInternalServerError
NewListNamespacesInternalServerError creates a ListNamespacesInternalServerError with default headers values
func (*ListNamespacesInternalServerError) Error ¶
func (o *ListNamespacesInternalServerError) Error() string
type ListNamespacesOK ¶
type ListNamespacesOK struct {
Payload []*models.NSWithPolicies
}
ListNamespacesOK handles this case with default header values.
successful operation
func NewListNamespacesOK ¶
func NewListNamespacesOK() *ListNamespacesOK
NewListNamespacesOK creates a ListNamespacesOK with default headers values
func (*ListNamespacesOK) Error ¶
func (o *ListNamespacesOK) Error() string
func (*ListNamespacesOK) GetPayload ¶
func (o *ListNamespacesOK) GetPayload() []*models.NSWithPolicies
type ListNamespacesParams ¶
type ListNamespacesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListNamespacesParams contains all the parameters to send to the API endpoint for the list namespaces operation typically these are written to a http.Request
func NewListNamespacesParams ¶
func NewListNamespacesParams() *ListNamespacesParams
NewListNamespacesParams creates a new ListNamespacesParams object with the default values initialized.
func NewListNamespacesParamsWithContext ¶
func NewListNamespacesParamsWithContext(ctx context.Context) *ListNamespacesParams
NewListNamespacesParamsWithContext creates a new ListNamespacesParams object with the default values initialized, and the ability to set a context for a request
func NewListNamespacesParamsWithHTTPClient ¶
func NewListNamespacesParamsWithHTTPClient(client *http.Client) *ListNamespacesParams
NewListNamespacesParamsWithHTTPClient creates a new ListNamespacesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListNamespacesParamsWithTimeout ¶
func NewListNamespacesParamsWithTimeout(timeout time.Duration) *ListNamespacesParams
NewListNamespacesParamsWithTimeout creates a new ListNamespacesParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListNamespacesParams) SetContext ¶
func (o *ListNamespacesParams) SetContext(ctx context.Context)
SetContext adds the context to the list namespaces params
func (*ListNamespacesParams) SetHTTPClient ¶
func (o *ListNamespacesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list namespaces params
func (*ListNamespacesParams) SetTimeout ¶
func (o *ListNamespacesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list namespaces params
func (*ListNamespacesParams) WithContext ¶
func (o *ListNamespacesParams) WithContext(ctx context.Context) *ListNamespacesParams
WithContext adds the context to the list namespaces params
func (*ListNamespacesParams) WithHTTPClient ¶
func (o *ListNamespacesParams) WithHTTPClient(client *http.Client) *ListNamespacesParams
WithHTTPClient adds the HTTPClient to the list namespaces params
func (*ListNamespacesParams) WithTimeout ¶
func (o *ListNamespacesParams) WithTimeout(timeout time.Duration) *ListNamespacesParams
WithTimeout adds the timeout to the list namespaces params
func (*ListNamespacesParams) WriteToRequest ¶
func (o *ListNamespacesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListNamespacesReader ¶
type ListNamespacesReader struct {
// contains filtered or unexported fields
}
ListNamespacesReader is a Reader for the ListNamespaces structure.
func (*ListNamespacesReader) ReadResponse ¶
func (o *ListNamespacesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.