auditlog

package
v5.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 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) (*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 ClientService

type ClientService interface {
	ListAuditLogs(params *ListAuditLogsParams, authInfo runtime.ClientAuthInfoWriter) (*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 *model.Errors
}

ListAuditLogsBadRequest handles this case 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() *model.Errors

type ListAuditLogsInternalServerError

type ListAuditLogsInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListAuditLogsInternalServerError handles this case 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 []*model.AuditLog
}

ListAuditLogsOK handles this case 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() []*model.AuditLog

type ListAuditLogsParams

type ListAuditLogsParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Page
	  The page number

	*/
	Page *int64
	/*PageSize
	  The size of per page

	*/
	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
	/*Sort
	  Sort the resource list in ascending or descending order. e.g. sort by field1 in ascending orderr and field2 in descending order with "sort=field1,-field2"

	*/
	Sort *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 values initialized.

func NewListAuditLogsParamsWithContext

func NewListAuditLogsParamsWithContext(ctx context.Context) *ListAuditLogsParams

NewListAuditLogsParamsWithContext creates a new ListAuditLogsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) SetSort

func (o *ListAuditLogsParams) SetSort(sort *string)

SetSort adds the sort 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) 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) WithSort

func (o *ListAuditLogsParams) WithSort(sort *string) *ListAuditLogsParams

WithSort adds the sort 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 *model.Errors
}

ListAuditLogsUnauthorized handles this case 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() *model.Errors

Jump to

Keyboard shortcuts

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