log_service

package
v3.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 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 SyslogOK

type SyslogOK struct {
	Payload *models.RestLogMessageCollection
}
SyslogOK describes a response with status code 200, with default header values.

SyslogOK syslog o k

func NewSyslogOK

func NewSyslogOK() *SyslogOK

NewSyslogOK creates a SyslogOK with default headers values

func (*SyslogOK) Error

func (o *SyslogOK) Error() string

func (*SyslogOK) GetPayload

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

type SyslogParams

type SyslogParams struct {

	// Body.
	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.

Jump to

Keyboard shortcuts

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