audit

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 11 Imported by: 1

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 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 is the option for 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.

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 (*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

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

WithBody adds the body to the find audit traces params

func (*FindAuditTracesParams) WithContext

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.

Jump to

Keyboard shortcuts

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