Documentation ¶
Index ¶
- type API
- type Client
- type ListAuditLogsBadRequest
- func (o *ListAuditLogsBadRequest) Error() string
- func (o *ListAuditLogsBadRequest) GetPayload() *models.Errors
- func (o *ListAuditLogsBadRequest) IsClientError() bool
- func (o *ListAuditLogsBadRequest) IsCode(code int) bool
- func (o *ListAuditLogsBadRequest) IsRedirect() bool
- func (o *ListAuditLogsBadRequest) IsServerError() bool
- func (o *ListAuditLogsBadRequest) IsSuccess() bool
- func (o *ListAuditLogsBadRequest) String() string
- type ListAuditLogsInternalServerError
- func (o *ListAuditLogsInternalServerError) Error() string
- func (o *ListAuditLogsInternalServerError) GetPayload() *models.Errors
- func (o *ListAuditLogsInternalServerError) IsClientError() bool
- func (o *ListAuditLogsInternalServerError) IsCode(code int) bool
- func (o *ListAuditLogsInternalServerError) IsRedirect() bool
- func (o *ListAuditLogsInternalServerError) IsServerError() bool
- func (o *ListAuditLogsInternalServerError) IsSuccess() bool
- func (o *ListAuditLogsInternalServerError) String() string
- type ListAuditLogsOK
- func (o *ListAuditLogsOK) Error() string
- func (o *ListAuditLogsOK) GetPayload() []*models.AuditLog
- func (o *ListAuditLogsOK) IsClientError() bool
- func (o *ListAuditLogsOK) IsCode(code int) bool
- func (o *ListAuditLogsOK) IsRedirect() bool
- func (o *ListAuditLogsOK) IsServerError() bool
- func (o *ListAuditLogsOK) IsSuccess() bool
- func (o *ListAuditLogsOK) String() string
- type ListAuditLogsParams
- func (o *ListAuditLogsParams) SetContext(ctx context.Context)
- func (o *ListAuditLogsParams) SetDefaults()
- func (o *ListAuditLogsParams) SetHTTPClient(client *http.Client)
- func (o *ListAuditLogsParams) SetPage(page *int64)
- func (o *ListAuditLogsParams) SetPageSize(pageSize *int64)
- func (o *ListAuditLogsParams) SetQ(q *string)
- func (o *ListAuditLogsParams) SetSort(sort *string)
- func (o *ListAuditLogsParams) SetTimeout(timeout time.Duration)
- func (o *ListAuditLogsParams) SetXRequestID(xRequestID *string)
- func (o *ListAuditLogsParams) WithContext(ctx context.Context) *ListAuditLogsParams
- func (o *ListAuditLogsParams) WithDefaults() *ListAuditLogsParams
- func (o *ListAuditLogsParams) WithHTTPClient(client *http.Client) *ListAuditLogsParams
- func (o *ListAuditLogsParams) WithPage(page *int64) *ListAuditLogsParams
- func (o *ListAuditLogsParams) WithPageSize(pageSize *int64) *ListAuditLogsParams
- func (o *ListAuditLogsParams) WithQ(q *string) *ListAuditLogsParams
- func (o *ListAuditLogsParams) WithSort(sort *string) *ListAuditLogsParams
- func (o *ListAuditLogsParams) WithTimeout(timeout time.Duration) *ListAuditLogsParams
- func (o *ListAuditLogsParams) WithXRequestID(xRequestID *string) *ListAuditLogsParams
- func (o *ListAuditLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListAuditLogsReader
- type ListAuditLogsUnauthorized
- func (o *ListAuditLogsUnauthorized) Error() string
- func (o *ListAuditLogsUnauthorized) GetPayload() *models.Errors
- func (o *ListAuditLogsUnauthorized) IsClientError() bool
- func (o *ListAuditLogsUnauthorized) IsCode(code int) bool
- func (o *ListAuditLogsUnauthorized) IsRedirect() bool
- func (o *ListAuditLogsUnauthorized) IsServerError() bool
- func (o *ListAuditLogsUnauthorized) IsSuccess() bool
- func (o *ListAuditLogsUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { /* 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 */ ListAuditLogs(ctx context.Context, params *ListAuditLogsParams) (*ListAuditLogsOK, error) }
API is the interface of the auditlog client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for auditlog API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client
New creates a new auditlog API client.
func (*Client) ListAuditLogs ¶
func (a *Client) ListAuditLogs(ctx context.Context, params *ListAuditLogsParams) (*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
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
func (*ListAuditLogsBadRequest) IsClientError ¶
func (o *ListAuditLogsBadRequest) IsClientError() bool
IsClientError returns true when this list audit logs bad request response has a 4xx status code
func (*ListAuditLogsBadRequest) IsCode ¶
func (o *ListAuditLogsBadRequest) IsCode(code int) bool
IsCode returns true when this list audit logs bad request response a status code equal to that given
func (*ListAuditLogsBadRequest) IsRedirect ¶
func (o *ListAuditLogsBadRequest) IsRedirect() bool
IsRedirect returns true when this list audit logs bad request response has a 3xx status code
func (*ListAuditLogsBadRequest) IsServerError ¶
func (o *ListAuditLogsBadRequest) IsServerError() bool
IsServerError returns true when this list audit logs bad request response has a 5xx status code
func (*ListAuditLogsBadRequest) IsSuccess ¶
func (o *ListAuditLogsBadRequest) IsSuccess() bool
IsSuccess returns true when this list audit logs bad request response has a 2xx status code
func (*ListAuditLogsBadRequest) String ¶
func (o *ListAuditLogsBadRequest) String() string
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 (o *ListAuditLogsInternalServerError) Error() string
func (*ListAuditLogsInternalServerError) GetPayload ¶
func (o *ListAuditLogsInternalServerError) GetPayload() *models.Errors
func (*ListAuditLogsInternalServerError) IsClientError ¶
func (o *ListAuditLogsInternalServerError) IsClientError() bool
IsClientError returns true when this list audit logs internal server error response has a 4xx status code
func (*ListAuditLogsInternalServerError) IsCode ¶
func (o *ListAuditLogsInternalServerError) IsCode(code int) bool
IsCode returns true when this list audit logs internal server error response a status code equal to that given
func (*ListAuditLogsInternalServerError) IsRedirect ¶
func (o *ListAuditLogsInternalServerError) IsRedirect() bool
IsRedirect returns true when this list audit logs internal server error response has a 3xx status code
func (*ListAuditLogsInternalServerError) IsServerError ¶
func (o *ListAuditLogsInternalServerError) IsServerError() bool
IsServerError returns true when this list audit logs internal server error response has a 5xx status code
func (*ListAuditLogsInternalServerError) IsSuccess ¶
func (o *ListAuditLogsInternalServerError) IsSuccess() bool
IsSuccess returns true when this list audit logs internal server error response has a 2xx status code
func (*ListAuditLogsInternalServerError) String ¶
func (o *ListAuditLogsInternalServerError) String() string
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
func (*ListAuditLogsOK) IsClientError ¶
func (o *ListAuditLogsOK) IsClientError() bool
IsClientError returns true when this list audit logs o k response has a 4xx status code
func (*ListAuditLogsOK) IsCode ¶
func (o *ListAuditLogsOK) IsCode(code int) bool
IsCode returns true when this list audit logs o k response a status code equal to that given
func (*ListAuditLogsOK) IsRedirect ¶
func (o *ListAuditLogsOK) IsRedirect() bool
IsRedirect returns true when this list audit logs o k response has a 3xx status code
func (*ListAuditLogsOK) IsServerError ¶
func (o *ListAuditLogsOK) IsServerError() bool
IsServerError returns true when this list audit logs o k response has a 5xx status code
func (*ListAuditLogsOK) IsSuccess ¶
func (o *ListAuditLogsOK) IsSuccess() bool
IsSuccess returns true when this list audit logs o k response has a 2xx status code
func (*ListAuditLogsOK) String ¶
func (o *ListAuditLogsOK) String() string
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 /* Sort. Sort the resource list in ascending or descending order. e.g. sort by field1 in ascending order 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 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) 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 ¶
func (o *ListAuditLogsParams) WithContext(ctx context.Context) *ListAuditLogsParams
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 ¶
func (o *ListAuditLogsParams) WithQ(q *string) *ListAuditLogsParams
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 { string }XRequestID
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
func (*ListAuditLogsUnauthorized) IsClientError ¶
func (o *ListAuditLogsUnauthorized) IsClientError() bool
IsClientError returns true when this list audit logs unauthorized response has a 4xx status code
func (*ListAuditLogsUnauthorized) IsCode ¶
func (o *ListAuditLogsUnauthorized) IsCode(code int) bool
IsCode returns true when this list audit logs unauthorized response a status code equal to that given
func (*ListAuditLogsUnauthorized) IsRedirect ¶
func (o *ListAuditLogsUnauthorized) IsRedirect() bool
IsRedirect returns true when this list audit logs unauthorized response has a 3xx status code
func (*ListAuditLogsUnauthorized) IsServerError ¶
func (o *ListAuditLogsUnauthorized) IsServerError() bool
IsServerError returns true when this list audit logs unauthorized response has a 5xx status code
func (*ListAuditLogsUnauthorized) IsSuccess ¶
func (o *ListAuditLogsUnauthorized) IsSuccess() bool
IsSuccess returns true when this list audit logs unauthorized response has a 2xx status code
func (*ListAuditLogsUnauthorized) String ¶
func (o *ListAuditLogsUnauthorized) String() string