Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type FindAuditTracesDefault
- func (o *FindAuditTracesDefault) Code() int
- func (o *FindAuditTracesDefault) Error() string
- func (o *FindAuditTracesDefault) GetPayload() *httperrors.HTTPErrorResponse
- func (o *FindAuditTracesDefault) IsClientError() bool
- func (o *FindAuditTracesDefault) IsCode(code int) bool
- func (o *FindAuditTracesDefault) IsRedirect() bool
- func (o *FindAuditTracesDefault) IsServerError() bool
- func (o *FindAuditTracesDefault) IsSuccess() bool
- func (o *FindAuditTracesDefault) String() string
- type FindAuditTracesOK
- func (o *FindAuditTracesOK) Code() int
- func (o *FindAuditTracesOK) Error() string
- func (o *FindAuditTracesOK) GetPayload() []*models.V1AuditResponse
- func (o *FindAuditTracesOK) IsClientError() bool
- func (o *FindAuditTracesOK) IsCode(code int) bool
- func (o *FindAuditTracesOK) IsRedirect() bool
- func (o *FindAuditTracesOK) IsServerError() bool
- func (o *FindAuditTracesOK) IsSuccess() bool
- func (o *FindAuditTracesOK) String() string
- type FindAuditTracesParams
- func NewFindAuditTracesParams() *FindAuditTracesParams
- func NewFindAuditTracesParamsWithContext(ctx context.Context) *FindAuditTracesParams
- func NewFindAuditTracesParamsWithHTTPClient(client *http.Client) *FindAuditTracesParams
- func NewFindAuditTracesParamsWithTimeout(timeout time.Duration) *FindAuditTracesParams
- func (o *FindAuditTracesParams) SetBody(body *models.V1AuditFindRequest)
- func (o *FindAuditTracesParams) SetContext(ctx context.Context)
- func (o *FindAuditTracesParams) SetDefaults()
- func (o *FindAuditTracesParams) SetHTTPClient(client *http.Client)
- func (o *FindAuditTracesParams) SetTimeout(timeout time.Duration)
- func (o *FindAuditTracesParams) WithBody(body *models.V1AuditFindRequest) *FindAuditTracesParams
- func (o *FindAuditTracesParams) WithContext(ctx context.Context) *FindAuditTracesParams
- func (o *FindAuditTracesParams) WithDefaults() *FindAuditTracesParams
- func (o *FindAuditTracesParams) WithHTTPClient(client *http.Client) *FindAuditTracesParams
- func (o *FindAuditTracesParams) WithTimeout(timeout time.Duration) *FindAuditTracesParams
- func (o *FindAuditTracesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FindAuditTracesReader
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 audit API
func (*Client) FindAuditTraces ¶
func (a *Client) FindAuditTraces(params *FindAuditTracesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindAuditTracesOK, error)
FindAuditTraces finds all audit traces that match given properties
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 may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface { FindAuditTraces(params *FindAuditTracesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindAuditTracesOK, 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 audit API client.
func NewClientWithBasicAuth ¶ added in v0.32.0
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new audit API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶ added in v0.32.0
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new audit API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type FindAuditTracesDefault ¶
type FindAuditTracesDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
FindAuditTracesDefault describes a response with status code -1, with default header values.
Error
func NewFindAuditTracesDefault ¶
func NewFindAuditTracesDefault(code int) *FindAuditTracesDefault
NewFindAuditTracesDefault creates a FindAuditTracesDefault with default headers values
func (*FindAuditTracesDefault) Code ¶
func (o *FindAuditTracesDefault) Code() int
Code gets the status code for the find audit traces default response
func (*FindAuditTracesDefault) Error ¶
func (o *FindAuditTracesDefault) Error() string
func (*FindAuditTracesDefault) GetPayload ¶
func (o *FindAuditTracesDefault) GetPayload() *httperrors.HTTPErrorResponse
func (*FindAuditTracesDefault) IsClientError ¶
func (o *FindAuditTracesDefault) IsClientError() bool
IsClientError returns true when this find audit traces default response has a 4xx status code
func (*FindAuditTracesDefault) IsCode ¶
func (o *FindAuditTracesDefault) IsCode(code int) bool
IsCode returns true when this find audit traces default response a status code equal to that given
func (*FindAuditTracesDefault) IsRedirect ¶
func (o *FindAuditTracesDefault) IsRedirect() bool
IsRedirect returns true when this find audit traces default response has a 3xx status code
func (*FindAuditTracesDefault) IsServerError ¶
func (o *FindAuditTracesDefault) IsServerError() bool
IsServerError returns true when this find audit traces default response has a 5xx status code
func (*FindAuditTracesDefault) IsSuccess ¶
func (o *FindAuditTracesDefault) IsSuccess() bool
IsSuccess returns true when this find audit traces default response has a 2xx status code
func (*FindAuditTracesDefault) String ¶
func (o *FindAuditTracesDefault) String() string
type FindAuditTracesOK ¶
type FindAuditTracesOK struct {
Payload []*models.V1AuditResponse
}
FindAuditTracesOK describes a response with status code 200, with default header values.
OK
func NewFindAuditTracesOK ¶
func NewFindAuditTracesOK() *FindAuditTracesOK
NewFindAuditTracesOK creates a FindAuditTracesOK with default headers values
func (*FindAuditTracesOK) Code ¶
func (o *FindAuditTracesOK) Code() int
Code gets the status code for the find audit traces o k response
func (*FindAuditTracesOK) Error ¶
func (o *FindAuditTracesOK) Error() string
func (*FindAuditTracesOK) GetPayload ¶
func (o *FindAuditTracesOK) GetPayload() []*models.V1AuditResponse
func (*FindAuditTracesOK) IsClientError ¶
func (o *FindAuditTracesOK) IsClientError() bool
IsClientError returns true when this find audit traces o k response has a 4xx status code
func (*FindAuditTracesOK) IsCode ¶
func (o *FindAuditTracesOK) IsCode(code int) bool
IsCode returns true when this find audit traces o k response a status code equal to that given
func (*FindAuditTracesOK) IsRedirect ¶
func (o *FindAuditTracesOK) IsRedirect() bool
IsRedirect returns true when this find audit traces o k response has a 3xx status code
func (*FindAuditTracesOK) IsServerError ¶
func (o *FindAuditTracesOK) IsServerError() bool
IsServerError returns true when this find audit traces o k response has a 5xx status code
func (*FindAuditTracesOK) IsSuccess ¶
func (o *FindAuditTracesOK) IsSuccess() bool
IsSuccess returns true when this find audit traces o k response has a 2xx status code
func (*FindAuditTracesOK) String ¶
func (o *FindAuditTracesOK) String() string
type FindAuditTracesParams ¶
type FindAuditTracesParams struct { // Body. Body *models.V1AuditFindRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
FindAuditTracesParams contains all the parameters to send to the API endpoint
for the find audit traces operation. Typically these are written to a http.Request.
func NewFindAuditTracesParams ¶
func NewFindAuditTracesParams() *FindAuditTracesParams
NewFindAuditTracesParams creates a new FindAuditTracesParams 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 NewFindAuditTracesParamsWithContext ¶
func NewFindAuditTracesParamsWithContext(ctx context.Context) *FindAuditTracesParams
NewFindAuditTracesParamsWithContext creates a new FindAuditTracesParams object with the ability to set a context for a request.
func NewFindAuditTracesParamsWithHTTPClient ¶
func NewFindAuditTracesParamsWithHTTPClient(client *http.Client) *FindAuditTracesParams
NewFindAuditTracesParamsWithHTTPClient creates a new FindAuditTracesParams object with the ability to set a custom HTTPClient for a request.
func NewFindAuditTracesParamsWithTimeout ¶
func NewFindAuditTracesParamsWithTimeout(timeout time.Duration) *FindAuditTracesParams
NewFindAuditTracesParamsWithTimeout creates a new FindAuditTracesParams object with the ability to set a timeout on a request.
func (*FindAuditTracesParams) SetBody ¶
func (o *FindAuditTracesParams) SetBody(body *models.V1AuditFindRequest)
SetBody adds the body to the find audit traces params
func (*FindAuditTracesParams) SetContext ¶
func (o *FindAuditTracesParams) SetContext(ctx context.Context)
SetContext adds the context to the find audit traces params
func (*FindAuditTracesParams) SetDefaults ¶
func (o *FindAuditTracesParams) SetDefaults()
SetDefaults hydrates default values in the find audit traces params (not the query body).
All values with no default are reset to their zero value.
func (*FindAuditTracesParams) SetHTTPClient ¶
func (o *FindAuditTracesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the find audit traces params
func (*FindAuditTracesParams) SetTimeout ¶
func (o *FindAuditTracesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the find audit traces params
func (*FindAuditTracesParams) WithBody ¶
func (o *FindAuditTracesParams) WithBody(body *models.V1AuditFindRequest) *FindAuditTracesParams
WithBody adds the body to the find audit traces params
func (*FindAuditTracesParams) WithContext ¶
func (o *FindAuditTracesParams) WithContext(ctx context.Context) *FindAuditTracesParams
WithContext adds the context to the find audit traces params
func (*FindAuditTracesParams) WithDefaults ¶
func (o *FindAuditTracesParams) WithDefaults() *FindAuditTracesParams
WithDefaults hydrates default values in the find audit traces params (not the query body).
All values with no default are reset to their zero value.
func (*FindAuditTracesParams) WithHTTPClient ¶
func (o *FindAuditTracesParams) WithHTTPClient(client *http.Client) *FindAuditTracesParams
WithHTTPClient adds the HTTPClient to the find audit traces params
func (*FindAuditTracesParams) WithTimeout ¶
func (o *FindAuditTracesParams) WithTimeout(timeout time.Duration) *FindAuditTracesParams
WithTimeout adds the timeout to the find audit traces params
func (*FindAuditTracesParams) WriteToRequest ¶
func (o *FindAuditTracesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FindAuditTracesReader ¶
type FindAuditTracesReader struct {
// contains filtered or unexported fields
}
FindAuditTracesReader is a Reader for the FindAuditTraces structure.
func (*FindAuditTracesReader) ReadResponse ¶
func (o *FindAuditTracesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.