auditlog

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ListAuditLogsBadRequestCode int = 400

ListAuditLogsBadRequestCode is the HTTP code returned for type ListAuditLogsBadRequest

View Source
const ListAuditLogsInternalServerErrorCode int = 500

ListAuditLogsInternalServerErrorCode is the HTTP code returned for type ListAuditLogsInternalServerError

View Source
const ListAuditLogsOKCode int = 200

ListAuditLogsOKCode is the HTTP code returned for type ListAuditLogsOK

View Source
const ListAuditLogsUnauthorizedCode int = 401

ListAuditLogsUnauthorizedCode is the HTTP code returned for type ListAuditLogsUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type ListAuditLogs

type ListAuditLogs struct {
	Context *middleware.Context
	Handler ListAuditLogsHandler
}

ListAuditLogs swagger:route GET /audit-logs auditlog listAuditLogs

Get 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 NewListAuditLogs

func NewListAuditLogs(ctx *middleware.Context, handler ListAuditLogsHandler) *ListAuditLogs

NewListAuditLogs creates a new http.Handler for the list audit logs operation

func (*ListAuditLogs) ServeHTTP

func (o *ListAuditLogs) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListAuditLogsBadRequest

type ListAuditLogsBadRequest struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListAuditLogsBadRequest Bad request

swagger:response listAuditLogsBadRequest

func NewListAuditLogsBadRequest

func NewListAuditLogsBadRequest() *ListAuditLogsBadRequest

NewListAuditLogsBadRequest creates ListAuditLogsBadRequest with default headers values

func (*ListAuditLogsBadRequest) SetPayload

func (o *ListAuditLogsBadRequest) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list audit logs bad request response

func (*ListAuditLogsBadRequest) SetXRequestID

func (o *ListAuditLogsBadRequest) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list audit logs bad request response

func (*ListAuditLogsBadRequest) WithPayload

WithPayload adds the payload to the list audit logs bad request response

func (*ListAuditLogsBadRequest) WithXRequestID

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

WithXRequestID adds the xRequestId to the list audit logs bad request response

func (*ListAuditLogsBadRequest) WriteResponse

func (o *ListAuditLogsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListAuditLogsHandler

type ListAuditLogsHandler interface {
	Handle(ListAuditLogsParams, interface{}) middleware.Responder
}

ListAuditLogsHandler interface for that can handle valid list audit logs params

type ListAuditLogsHandlerFunc

type ListAuditLogsHandlerFunc func(ListAuditLogsParams, interface{}) middleware.Responder

ListAuditLogsHandlerFunc turns a function with the right signature into a list audit logs handler

func (ListAuditLogsHandlerFunc) Handle

func (fn ListAuditLogsHandlerFunc) Handle(params ListAuditLogsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ListAuditLogsInternalServerError

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

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListAuditLogsInternalServerError Internal server error

swagger:response listAuditLogsInternalServerError

func NewListAuditLogsInternalServerError

func NewListAuditLogsInternalServerError() *ListAuditLogsInternalServerError

NewListAuditLogsInternalServerError creates ListAuditLogsInternalServerError with default headers values

func (*ListAuditLogsInternalServerError) SetPayload

func (o *ListAuditLogsInternalServerError) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list audit logs internal server error response

func (*ListAuditLogsInternalServerError) SetXRequestID

func (o *ListAuditLogsInternalServerError) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list audit logs internal server error response

func (*ListAuditLogsInternalServerError) WithPayload

WithPayload adds the payload to the list audit logs internal server error response

func (*ListAuditLogsInternalServerError) WithXRequestID

WithXRequestID adds the xRequestId to the list audit logs internal server error response

func (*ListAuditLogsInternalServerError) WriteResponse

func (o *ListAuditLogsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListAuditLogsOK

type ListAuditLogsOK struct {
	/*Link refers to the previous page and next page

	 */
	Link string `json:"Link"`
	/*The total count of auditlogs

	 */
	XTotalCount int64 `json:"X-Total-Count"`

	/*
	  In: Body
	*/
	Payload []*models.AuditLog `json:"body,omitempty"`
}

ListAuditLogsOK Success

swagger:response listAuditLogsOK

func NewListAuditLogsOK

func NewListAuditLogsOK() *ListAuditLogsOK

NewListAuditLogsOK creates ListAuditLogsOK with default headers values

func (o *ListAuditLogsOK) SetLink(link string)

SetLink sets the link to the list audit logs o k response

func (*ListAuditLogsOK) SetPayload

func (o *ListAuditLogsOK) SetPayload(payload []*models.AuditLog)

SetPayload sets the payload to the list audit logs o k response

func (*ListAuditLogsOK) SetXTotalCount

func (o *ListAuditLogsOK) SetXTotalCount(xTotalCount int64)

SetXTotalCount sets the xTotalCount to the list audit logs o k response

func (o *ListAuditLogsOK) WithLink(link string) *ListAuditLogsOK

WithLink adds the link to the list audit logs o k response

func (*ListAuditLogsOK) WithPayload

func (o *ListAuditLogsOK) WithPayload(payload []*models.AuditLog) *ListAuditLogsOK

WithPayload adds the payload to the list audit logs o k response

func (*ListAuditLogsOK) WithXTotalCount

func (o *ListAuditLogsOK) WithXTotalCount(xTotalCount int64) *ListAuditLogsOK

WithXTotalCount adds the xTotalCount to the list audit logs o k response

func (*ListAuditLogsOK) WriteResponse

func (o *ListAuditLogsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListAuditLogsParams

type ListAuditLogsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*An unique ID for the request
	  Min Length: 1
	  In: header
	*/
	XRequestID *string
	/*The page number
	  In: query
	  Default: 1
	*/
	Page *int64
	/*The size of per page
	  Maximum: 100
	  In: query
	  Default: 10
	*/
	PageSize *int64
	/*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]
	  In: query
	*/
	Q *string
}

ListAuditLogsParams contains all the bound params for the list audit logs operation typically these are obtained from a http.Request

swagger:parameters listAuditLogs

func NewListAuditLogsParams

func NewListAuditLogsParams() ListAuditLogsParams

NewListAuditLogsParams creates a new ListAuditLogsParams object with the default values initialized.

func (*ListAuditLogsParams) BindRequest

func (o *ListAuditLogsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListAuditLogsParams() beforehand.

type ListAuditLogsURL

type ListAuditLogsURL struct {
	Page     *int64
	PageSize *int64
	Q        *string
	// contains filtered or unexported fields
}

ListAuditLogsURL generates an URL for the list audit logs operation

func (*ListAuditLogsURL) Build

func (o *ListAuditLogsURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListAuditLogsURL) BuildFull

func (o *ListAuditLogsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListAuditLogsURL) Must

func (o *ListAuditLogsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListAuditLogsURL) SetBasePath

func (o *ListAuditLogsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListAuditLogsURL) String

func (o *ListAuditLogsURL) String() string

String returns the string representation of the path with query string

func (*ListAuditLogsURL) StringFull

func (o *ListAuditLogsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListAuditLogsURL) WithBasePath

func (o *ListAuditLogsURL) WithBasePath(bp string) *ListAuditLogsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListAuditLogsUnauthorized

type ListAuditLogsUnauthorized struct {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

ListAuditLogsUnauthorized Unauthorized

swagger:response listAuditLogsUnauthorized

func NewListAuditLogsUnauthorized

func NewListAuditLogsUnauthorized() *ListAuditLogsUnauthorized

NewListAuditLogsUnauthorized creates ListAuditLogsUnauthorized with default headers values

func (*ListAuditLogsUnauthorized) SetPayload

func (o *ListAuditLogsUnauthorized) SetPayload(payload *models.Errors)

SetPayload sets the payload to the list audit logs unauthorized response

func (*ListAuditLogsUnauthorized) SetXRequestID

func (o *ListAuditLogsUnauthorized) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the list audit logs unauthorized response

func (*ListAuditLogsUnauthorized) WithPayload

WithPayload adds the payload to the list audit logs unauthorized response

func (*ListAuditLogsUnauthorized) WithXRequestID

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

WithXRequestID adds the xRequestId to the list audit logs unauthorized response

func (*ListAuditLogsUnauthorized) WriteResponse

func (o *ListAuditLogsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

Jump to

Keyboard shortcuts

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