logs

package
v0.0.0-...-3e1e694 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddLogBadRequest

type AddLogBadRequest struct {
	Payload *models.ErrorResponse
}
AddLogBadRequest describes a response with status code 400, with default header values.

Bad params suplied

func NewAddLogBadRequest

func NewAddLogBadRequest() *AddLogBadRequest

NewAddLogBadRequest creates a AddLogBadRequest with default headers values

func (*AddLogBadRequest) Error

func (o *AddLogBadRequest) Error() string

func (*AddLogBadRequest) GetPayload

func (o *AddLogBadRequest) GetPayload() *models.ErrorResponse

type AddLogInternalServerError

type AddLogInternalServerError struct {
	Payload *models.ErrorResponse
}
AddLogInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewAddLogInternalServerError

func NewAddLogInternalServerError() *AddLogInternalServerError

NewAddLogInternalServerError creates a AddLogInternalServerError with default headers values

func (*AddLogInternalServerError) Error

func (o *AddLogInternalServerError) Error() string

func (*AddLogInternalServerError) GetPayload

type AddLogOK

type AddLogOK struct {
}
AddLogOK describes a response with status code 200, with default header values.

OK

func NewAddLogOK

func NewAddLogOK() *AddLogOK

NewAddLogOK creates a AddLogOK with default headers values

func (*AddLogOK) Error

func (o *AddLogOK) Error() string

type AddLogParams

type AddLogParams struct {

	// Body.
	Body []*models.AddLog

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

AddLogParams contains all the parameters to send to the API endpoint

for the add log operation.

Typically these are written to a http.Request.

func NewAddLogParams

func NewAddLogParams() *AddLogParams

NewAddLogParams creates a new AddLogParams 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 NewAddLogParamsWithContext

func NewAddLogParamsWithContext(ctx context.Context) *AddLogParams

NewAddLogParamsWithContext creates a new AddLogParams object with the ability to set a context for a request.

func NewAddLogParamsWithHTTPClient

func NewAddLogParamsWithHTTPClient(client *http.Client) *AddLogParams

NewAddLogParamsWithHTTPClient creates a new AddLogParams object with the ability to set a custom HTTPClient for a request.

func NewAddLogParamsWithTimeout

func NewAddLogParamsWithTimeout(timeout time.Duration) *AddLogParams

NewAddLogParamsWithTimeout creates a new AddLogParams object with the ability to set a timeout on a request.

func (*AddLogParams) SetBody

func (o *AddLogParams) SetBody(body []*models.AddLog)

SetBody adds the body to the add log params

func (*AddLogParams) SetContext

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

SetContext adds the context to the add log params

func (*AddLogParams) SetDefaults

func (o *AddLogParams) SetDefaults()

SetDefaults hydrates default values in the add log params (not the query body).

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

func (*AddLogParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add log params

func (*AddLogParams) SetTimeout

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

SetTimeout adds the timeout to the add log params

func (*AddLogParams) WithBody

func (o *AddLogParams) WithBody(body []*models.AddLog) *AddLogParams

WithBody adds the body to the add log params

func (*AddLogParams) WithContext

func (o *AddLogParams) WithContext(ctx context.Context) *AddLogParams

WithContext adds the context to the add log params

func (*AddLogParams) WithDefaults

func (o *AddLogParams) WithDefaults() *AddLogParams

WithDefaults hydrates default values in the add log params (not the query body).

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

func (*AddLogParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add log params

func (*AddLogParams) WithTimeout

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

WithTimeout adds the timeout to the add log params

func (*AddLogParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddLogReader

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

AddLogReader is a Reader for the AddLog structure.

func (*AddLogReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddLogTooManyRequests

type AddLogTooManyRequests struct {
	Payload *models.ErrorResponse
}
AddLogTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewAddLogTooManyRequests

func NewAddLogTooManyRequests() *AddLogTooManyRequests

NewAddLogTooManyRequests creates a AddLogTooManyRequests with default headers values

func (*AddLogTooManyRequests) Error

func (o *AddLogTooManyRequests) Error() string

func (*AddLogTooManyRequests) GetPayload

func (o *AddLogTooManyRequests) GetPayload() *models.ErrorResponse

type AddLogUnauthorized

type AddLogUnauthorized struct {
	Payload *models.ErrorResponse
}
AddLogUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewAddLogUnauthorized

func NewAddLogUnauthorized() *AddLogUnauthorized

NewAddLogUnauthorized creates a AddLogUnauthorized with default headers values

func (*AddLogUnauthorized) Error

func (o *AddLogUnauthorized) Error() string

func (*AddLogUnauthorized) GetPayload

func (o *AddLogUnauthorized) GetPayload() *models.ErrorResponse

type Client

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

Client for logs API

func (*Client) AddLog

func (a *Client) AddLog(params *AddLogParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddLogOK, error)

AddLog adds log

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 {
	AddLog(params *AddLogParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddLogOK, 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 logs API client.

Jump to

Keyboard shortcuts

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