log_service

package
v4.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 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 Client

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

Client for log service API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) Syslog

func (a *Client) Syslog(params *SyslogParams, opts ...ClientOption) (*SyslogOK, error)

Syslog technicals logs in Json or c s v format

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	Syslog(params *SyslogParams, opts ...ClientOption) (*SyslogOK, 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 log service API client.

type SyslogForbidden

type SyslogForbidden struct {
	Payload *models.RestError
}

SyslogForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewSyslogForbidden

func NewSyslogForbidden() *SyslogForbidden

NewSyslogForbidden creates a SyslogForbidden with default headers values

func (*SyslogForbidden) Code added in v4.0.1

func (o *SyslogForbidden) Code() int

Code gets the status code for the syslog forbidden response

func (*SyslogForbidden) Error

func (o *SyslogForbidden) Error() string

func (*SyslogForbidden) GetPayload

func (o *SyslogForbidden) GetPayload() *models.RestError

func (*SyslogForbidden) IsClientError

func (o *SyslogForbidden) IsClientError() bool

IsClientError returns true when this syslog forbidden response has a 4xx status code

func (*SyslogForbidden) IsCode

func (o *SyslogForbidden) IsCode(code int) bool

IsCode returns true when this syslog forbidden response a status code equal to that given

func (*SyslogForbidden) IsRedirect

func (o *SyslogForbidden) IsRedirect() bool

IsRedirect returns true when this syslog forbidden response has a 3xx status code

func (*SyslogForbidden) IsServerError

func (o *SyslogForbidden) IsServerError() bool

IsServerError returns true when this syslog forbidden response has a 5xx status code

func (*SyslogForbidden) IsSuccess

func (o *SyslogForbidden) IsSuccess() bool

IsSuccess returns true when this syslog forbidden response has a 2xx status code

func (*SyslogForbidden) String

func (o *SyslogForbidden) String() string

type SyslogInternalServerError

type SyslogInternalServerError struct {
	Payload *models.RestError
}

SyslogInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewSyslogInternalServerError

func NewSyslogInternalServerError() *SyslogInternalServerError

NewSyslogInternalServerError creates a SyslogInternalServerError with default headers values

func (*SyslogInternalServerError) Code added in v4.0.1

func (o *SyslogInternalServerError) Code() int

Code gets the status code for the syslog internal server error response

func (*SyslogInternalServerError) Error

func (o *SyslogInternalServerError) Error() string

func (*SyslogInternalServerError) GetPayload

func (o *SyslogInternalServerError) GetPayload() *models.RestError

func (*SyslogInternalServerError) IsClientError

func (o *SyslogInternalServerError) IsClientError() bool

IsClientError returns true when this syslog internal server error response has a 4xx status code

func (*SyslogInternalServerError) IsCode

func (o *SyslogInternalServerError) IsCode(code int) bool

IsCode returns true when this syslog internal server error response a status code equal to that given

func (*SyslogInternalServerError) IsRedirect

func (o *SyslogInternalServerError) IsRedirect() bool

IsRedirect returns true when this syslog internal server error response has a 3xx status code

func (*SyslogInternalServerError) IsServerError

func (o *SyslogInternalServerError) IsServerError() bool

IsServerError returns true when this syslog internal server error response has a 5xx status code

func (*SyslogInternalServerError) IsSuccess

func (o *SyslogInternalServerError) IsSuccess() bool

IsSuccess returns true when this syslog internal server error response has a 2xx status code

func (*SyslogInternalServerError) String

func (o *SyslogInternalServerError) String() string

type SyslogNotFound

type SyslogNotFound struct {
	Payload *models.RestError
}

SyslogNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewSyslogNotFound

func NewSyslogNotFound() *SyslogNotFound

NewSyslogNotFound creates a SyslogNotFound with default headers values

func (*SyslogNotFound) Code added in v4.0.1

func (o *SyslogNotFound) Code() int

Code gets the status code for the syslog not found response

func (*SyslogNotFound) Error

func (o *SyslogNotFound) Error() string

func (*SyslogNotFound) GetPayload

func (o *SyslogNotFound) GetPayload() *models.RestError

func (*SyslogNotFound) IsClientError

func (o *SyslogNotFound) IsClientError() bool

IsClientError returns true when this syslog not found response has a 4xx status code

func (*SyslogNotFound) IsCode

func (o *SyslogNotFound) IsCode(code int) bool

IsCode returns true when this syslog not found response a status code equal to that given

func (*SyslogNotFound) IsRedirect

func (o *SyslogNotFound) IsRedirect() bool

IsRedirect returns true when this syslog not found response has a 3xx status code

func (*SyslogNotFound) IsServerError

func (o *SyslogNotFound) IsServerError() bool

IsServerError returns true when this syslog not found response has a 5xx status code

func (*SyslogNotFound) IsSuccess

func (o *SyslogNotFound) IsSuccess() bool

IsSuccess returns true when this syslog not found response has a 2xx status code

func (*SyslogNotFound) String

func (o *SyslogNotFound) String() string

type SyslogOK

type SyslogOK struct {
	Payload *models.RestLogMessageCollection
}

SyslogOK describes a response with status code 200, with default header values.

A successful response.

func NewSyslogOK

func NewSyslogOK() *SyslogOK

NewSyslogOK creates a SyslogOK with default headers values

func (*SyslogOK) Code added in v4.0.1

func (o *SyslogOK) Code() int

Code gets the status code for the syslog o k response

func (*SyslogOK) Error

func (o *SyslogOK) Error() string

func (*SyslogOK) GetPayload

func (o *SyslogOK) GetPayload() *models.RestLogMessageCollection

func (*SyslogOK) IsClientError

func (o *SyslogOK) IsClientError() bool

IsClientError returns true when this syslog o k response has a 4xx status code

func (*SyslogOK) IsCode

func (o *SyslogOK) IsCode(code int) bool

IsCode returns true when this syslog o k response a status code equal to that given

func (*SyslogOK) IsRedirect

func (o *SyslogOK) IsRedirect() bool

IsRedirect returns true when this syslog o k response has a 3xx status code

func (*SyslogOK) IsServerError

func (o *SyslogOK) IsServerError() bool

IsServerError returns true when this syslog o k response has a 5xx status code

func (*SyslogOK) IsSuccess

func (o *SyslogOK) IsSuccess() bool

IsSuccess returns true when this syslog o k response has a 2xx status code

func (*SyslogOK) String

func (o *SyslogOK) String() string

type SyslogParams

type SyslogParams struct {

	/* Body.

	   ListLogRequest launches a parameterised query in the log repository and streams the results.
	*/
	Body *models.LogListLogRequest

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

SyslogParams contains all the parameters to send to the API endpoint

for the syslog operation.

Typically these are written to a http.Request.

func NewSyslogParams

func NewSyslogParams() *SyslogParams

NewSyslogParams creates a new SyslogParams 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 NewSyslogParamsWithContext

func NewSyslogParamsWithContext(ctx context.Context) *SyslogParams

NewSyslogParamsWithContext creates a new SyslogParams object with the ability to set a context for a request.

func NewSyslogParamsWithHTTPClient

func NewSyslogParamsWithHTTPClient(client *http.Client) *SyslogParams

NewSyslogParamsWithHTTPClient creates a new SyslogParams object with the ability to set a custom HTTPClient for a request.

func NewSyslogParamsWithTimeout

func NewSyslogParamsWithTimeout(timeout time.Duration) *SyslogParams

NewSyslogParamsWithTimeout creates a new SyslogParams object with the ability to set a timeout on a request.

func (*SyslogParams) SetBody

func (o *SyslogParams) SetBody(body *models.LogListLogRequest)

SetBody adds the body to the syslog params

func (*SyslogParams) SetContext

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

SetContext adds the context to the syslog params

func (*SyslogParams) SetDefaults

func (o *SyslogParams) SetDefaults()

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

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

func (*SyslogParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the syslog params

func (*SyslogParams) SetTimeout

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

SetTimeout adds the timeout to the syslog params

func (*SyslogParams) WithBody

func (o *SyslogParams) WithBody(body *models.LogListLogRequest) *SyslogParams

WithBody adds the body to the syslog params

func (*SyslogParams) WithContext

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

WithContext adds the context to the syslog params

func (*SyslogParams) WithDefaults

func (o *SyslogParams) WithDefaults() *SyslogParams

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

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

func (*SyslogParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the syslog params

func (*SyslogParams) WithTimeout

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

WithTimeout adds the timeout to the syslog params

func (*SyslogParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SyslogReader

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

SyslogReader is a Reader for the Syslog structure.

func (*SyslogReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SyslogUnauthorized

type SyslogUnauthorized struct {
}

SyslogUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewSyslogUnauthorized

func NewSyslogUnauthorized() *SyslogUnauthorized

NewSyslogUnauthorized creates a SyslogUnauthorized with default headers values

func (*SyslogUnauthorized) Code added in v4.0.1

func (o *SyslogUnauthorized) Code() int

Code gets the status code for the syslog unauthorized response

func (*SyslogUnauthorized) Error

func (o *SyslogUnauthorized) Error() string

func (*SyslogUnauthorized) IsClientError

func (o *SyslogUnauthorized) IsClientError() bool

IsClientError returns true when this syslog unauthorized response has a 4xx status code

func (*SyslogUnauthorized) IsCode

func (o *SyslogUnauthorized) IsCode(code int) bool

IsCode returns true when this syslog unauthorized response a status code equal to that given

func (*SyslogUnauthorized) IsRedirect

func (o *SyslogUnauthorized) IsRedirect() bool

IsRedirect returns true when this syslog unauthorized response has a 3xx status code

func (*SyslogUnauthorized) IsServerError

func (o *SyslogUnauthorized) IsServerError() bool

IsServerError returns true when this syslog unauthorized response has a 5xx status code

func (*SyslogUnauthorized) IsSuccess

func (o *SyslogUnauthorized) IsSuccess() bool

IsSuccess returns true when this syslog unauthorized response has a 2xx status code

func (*SyslogUnauthorized) String

func (o *SyslogUnauthorized) String() string

Jump to

Keyboard shortcuts

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