log_service

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 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 New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new log service API client.

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) (*SyslogOK, error)

Syslog technicals logs in Json or c s v format

type SyslogOK

type SyslogOK struct {
	Payload *models.RestLogMessageCollection
}

SyslogOK handles this case 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

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 values initialized.

func NewSyslogParamsWithContext

func NewSyslogParamsWithContext(ctx context.Context) *SyslogParams

NewSyslogParamsWithContext creates a new SyslogParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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