auditlog

package
v0.0.0-...-fde7ecd Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: MIT Imports: 11 Imported by: 0

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 auditlog API

func (*Client) ListAuditLogs

func (a *Client) ListAuditLogs(params *ListAuditLogsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListAuditLogsOK, error)

ListAuditLogs gets recent logs of the projects which the user is a member of

This endpoint let user see the recent operation logs of the projects which he is member of

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 {
	ListAuditLogs(params *ListAuditLogsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListAuditLogsOK, 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 auditlog API client.

type ListAuditLogsBadRequest

type ListAuditLogsBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}
ListAuditLogsBadRequest describes a response with status code 400, with default header values.

Bad request

func NewListAuditLogsBadRequest

func NewListAuditLogsBadRequest() *ListAuditLogsBadRequest

NewListAuditLogsBadRequest creates a ListAuditLogsBadRequest with default headers values

func (*ListAuditLogsBadRequest) Error

func (o *ListAuditLogsBadRequest) Error() string

func (*ListAuditLogsBadRequest) GetPayload

func (o *ListAuditLogsBadRequest) GetPayload() *models.Errors

type ListAuditLogsInternalServerError

type ListAuditLogsInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}
ListAuditLogsInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewListAuditLogsInternalServerError

func NewListAuditLogsInternalServerError() *ListAuditLogsInternalServerError

NewListAuditLogsInternalServerError creates a ListAuditLogsInternalServerError with default headers values

func (*ListAuditLogsInternalServerError) Error

func (*ListAuditLogsInternalServerError) GetPayload

type ListAuditLogsOK

type ListAuditLogsOK struct {

	/* Link refers to the previous page and next page
	 */
	Link string

	/* The total count of auditlogs
	 */
	XTotalCount int64

	Payload []*models.AuditLog
}
ListAuditLogsOK describes a response with status code 200, with default header values.

Success

func NewListAuditLogsOK

func NewListAuditLogsOK() *ListAuditLogsOK

NewListAuditLogsOK creates a ListAuditLogsOK with default headers values

func (*ListAuditLogsOK) Error

func (o *ListAuditLogsOK) Error() string

func (*ListAuditLogsOK) GetPayload

func (o *ListAuditLogsOK) GetPayload() []*models.AuditLog

type ListAuditLogsParams

type ListAuditLogsParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string

	/* Page.

	   The page number

	   Format: int64
	   Default: 1
	*/
	Page *int64

	/* PageSize.

	   The size of per page

	   Format: int64
	   Default: 10
	*/
	PageSize *int64

	/* Q.

	   Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max]
	*/
	Q *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListAuditLogsParams contains all the parameters to send to the API endpoint

for the list audit logs operation.

Typically these are written to a http.Request.

func NewListAuditLogsParams

func NewListAuditLogsParams() *ListAuditLogsParams

NewListAuditLogsParams creates a new ListAuditLogsParams 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 NewListAuditLogsParamsWithContext

func NewListAuditLogsParamsWithContext(ctx context.Context) *ListAuditLogsParams

NewListAuditLogsParamsWithContext creates a new ListAuditLogsParams object with the ability to set a context for a request.

func NewListAuditLogsParamsWithHTTPClient

func NewListAuditLogsParamsWithHTTPClient(client *http.Client) *ListAuditLogsParams

NewListAuditLogsParamsWithHTTPClient creates a new ListAuditLogsParams object with the ability to set a custom HTTPClient for a request.

func NewListAuditLogsParamsWithTimeout

func NewListAuditLogsParamsWithTimeout(timeout time.Duration) *ListAuditLogsParams

NewListAuditLogsParamsWithTimeout creates a new ListAuditLogsParams object with the ability to set a timeout on a request.

func (*ListAuditLogsParams) SetContext

func (o *ListAuditLogsParams) SetContext(ctx context.Context)

SetContext adds the context to the list audit logs params

func (*ListAuditLogsParams) SetDefaults

func (o *ListAuditLogsParams) SetDefaults()

SetDefaults hydrates default values in the list audit logs params (not the query body).

All values with no default are reset to their zero value.

func (*ListAuditLogsParams) SetHTTPClient

func (o *ListAuditLogsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list audit logs params

func (*ListAuditLogsParams) SetPage

func (o *ListAuditLogsParams) SetPage(page *int64)

SetPage adds the page to the list audit logs params

func (*ListAuditLogsParams) SetPageSize

func (o *ListAuditLogsParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the list audit logs params

func (*ListAuditLogsParams) SetQ

func (o *ListAuditLogsParams) SetQ(q *string)

SetQ adds the q to the list audit logs params

func (*ListAuditLogsParams) SetTimeout

func (o *ListAuditLogsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list audit logs params

func (*ListAuditLogsParams) SetXRequestID

func (o *ListAuditLogsParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the list audit logs params

func (*ListAuditLogsParams) WithContext

WithContext adds the context to the list audit logs params

func (*ListAuditLogsParams) WithDefaults

func (o *ListAuditLogsParams) WithDefaults() *ListAuditLogsParams

WithDefaults hydrates default values in the list audit logs params (not the query body).

All values with no default are reset to their zero value.

func (*ListAuditLogsParams) WithHTTPClient

func (o *ListAuditLogsParams) WithHTTPClient(client *http.Client) *ListAuditLogsParams

WithHTTPClient adds the HTTPClient to the list audit logs params

func (*ListAuditLogsParams) WithPage

func (o *ListAuditLogsParams) WithPage(page *int64) *ListAuditLogsParams

WithPage adds the page to the list audit logs params

func (*ListAuditLogsParams) WithPageSize

func (o *ListAuditLogsParams) WithPageSize(pageSize *int64) *ListAuditLogsParams

WithPageSize adds the pageSize to the list audit logs params

func (*ListAuditLogsParams) WithQ

WithQ adds the q to the list audit logs params

func (*ListAuditLogsParams) WithTimeout

func (o *ListAuditLogsParams) WithTimeout(timeout time.Duration) *ListAuditLogsParams

WithTimeout adds the timeout to the list audit logs params

func (*ListAuditLogsParams) WithXRequestID

func (o *ListAuditLogsParams) WithXRequestID(xRequestID *string) *ListAuditLogsParams

WithXRequestID adds the xRequestID to the list audit logs params

func (*ListAuditLogsParams) WriteToRequest

func (o *ListAuditLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListAuditLogsReader

type ListAuditLogsReader struct {
	// contains filtered or unexported fields
}

ListAuditLogsReader is a Reader for the ListAuditLogs structure.

func (*ListAuditLogsReader) ReadResponse

func (o *ListAuditLogsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListAuditLogsUnauthorized

type ListAuditLogsUnauthorized struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}
ListAuditLogsUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewListAuditLogsUnauthorized

func NewListAuditLogsUnauthorized() *ListAuditLogsUnauthorized

NewListAuditLogsUnauthorized creates a ListAuditLogsUnauthorized with default headers values

func (*ListAuditLogsUnauthorized) Error

func (o *ListAuditLogsUnauthorized) Error() string

func (*ListAuditLogsUnauthorized) GetPayload

func (o *ListAuditLogsUnauthorized) GetPayload() *models.Errors

Jump to

Keyboard shortcuts

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