logs

package
v0.0.0-...-7077701 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 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 logs API

func New

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

New creates a new logs API client.

func (*Client) GetDeviceLog

func (a *Client) GetDeviceLog(params *GetDeviceLogParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceLogOK, error)

GetDeviceLog get specified device's log

func (*Client) GetProjectLog

func (a *Client) GetProjectLog(params *GetProjectLogParams, authInfo runtime.ClientAuthInfoWriter) (*GetProjectLogOK, error)

GetProjectLog get specified project's log

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetDeviceLogNotFound

type GetDeviceLogNotFound struct {
}

GetDeviceLogNotFound handles this case with default header values.

device not found.

func NewGetDeviceLogNotFound

func NewGetDeviceLogNotFound() *GetDeviceLogNotFound

NewGetDeviceLogNotFound creates a GetDeviceLogNotFound with default headers values

func (*GetDeviceLogNotFound) Error

func (o *GetDeviceLogNotFound) Error() string

type GetDeviceLogOK

type GetDeviceLogOK struct {
	Payload []*models.DeviceLog
}

GetDeviceLogOK handles this case with default header values.

successful operation

func NewGetDeviceLogOK

func NewGetDeviceLogOK() *GetDeviceLogOK

NewGetDeviceLogOK creates a GetDeviceLogOK with default headers values

func (*GetDeviceLogOK) Error

func (o *GetDeviceLogOK) Error() string

func (*GetDeviceLogOK) GetPayload

func (o *GetDeviceLogOK) GetPayload() []*models.DeviceLog

type GetDeviceLogParams

type GetDeviceLogParams struct {

	/*DeviceID
	  deviceId

	*/
	DeviceID string

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

GetDeviceLogParams contains all the parameters to send to the API endpoint for the get device log operation typically these are written to a http.Request

func NewGetDeviceLogParams

func NewGetDeviceLogParams() *GetDeviceLogParams

NewGetDeviceLogParams creates a new GetDeviceLogParams object with the default values initialized.

func NewGetDeviceLogParamsWithContext

func NewGetDeviceLogParamsWithContext(ctx context.Context) *GetDeviceLogParams

NewGetDeviceLogParamsWithContext creates a new GetDeviceLogParams object with the default values initialized, and the ability to set a context for a request

func NewGetDeviceLogParamsWithHTTPClient

func NewGetDeviceLogParamsWithHTTPClient(client *http.Client) *GetDeviceLogParams

NewGetDeviceLogParamsWithHTTPClient creates a new GetDeviceLogParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetDeviceLogParamsWithTimeout

func NewGetDeviceLogParamsWithTimeout(timeout time.Duration) *GetDeviceLogParams

NewGetDeviceLogParamsWithTimeout creates a new GetDeviceLogParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetDeviceLogParams) SetContext

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

SetContext adds the context to the get device log params

func (*GetDeviceLogParams) SetDeviceID

func (o *GetDeviceLogParams) SetDeviceID(deviceID string)

SetDeviceID adds the deviceId to the get device log params

func (*GetDeviceLogParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get device log params

func (*GetDeviceLogParams) SetTimeout

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

SetTimeout adds the timeout to the get device log params

func (*GetDeviceLogParams) WithContext

WithContext adds the context to the get device log params

func (*GetDeviceLogParams) WithDeviceID

func (o *GetDeviceLogParams) WithDeviceID(deviceID string) *GetDeviceLogParams

WithDeviceID adds the deviceID to the get device log params

func (*GetDeviceLogParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get device log params

func (*GetDeviceLogParams) WithTimeout

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

WithTimeout adds the timeout to the get device log params

func (*GetDeviceLogParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetDeviceLogReader

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

GetDeviceLogReader is a Reader for the GetDeviceLog structure.

func (*GetDeviceLogReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetProjectLogNotFound

type GetProjectLogNotFound struct {
}

GetProjectLogNotFound handles this case with default header values.

device not found

func NewGetProjectLogNotFound

func NewGetProjectLogNotFound() *GetProjectLogNotFound

NewGetProjectLogNotFound creates a GetProjectLogNotFound with default headers values

func (*GetProjectLogNotFound) Error

func (o *GetProjectLogNotFound) Error() string

type GetProjectLogOK

type GetProjectLogOK struct {
	Payload []*models.DeviceLog
}

GetProjectLogOK handles this case with default header values.

successful operation

func NewGetProjectLogOK

func NewGetProjectLogOK() *GetProjectLogOK

NewGetProjectLogOK creates a GetProjectLogOK with default headers values

func (*GetProjectLogOK) Error

func (o *GetProjectLogOK) Error() string

func (*GetProjectLogOK) GetPayload

func (o *GetProjectLogOK) GetPayload() []*models.DeviceLog

type GetProjectLogParams

type GetProjectLogParams struct {

	/*ProjectID
	  project id

	*/
	ProjectID string

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

GetProjectLogParams contains all the parameters to send to the API endpoint for the get project log operation typically these are written to a http.Request

func NewGetProjectLogParams

func NewGetProjectLogParams() *GetProjectLogParams

NewGetProjectLogParams creates a new GetProjectLogParams object with the default values initialized.

func NewGetProjectLogParamsWithContext

func NewGetProjectLogParamsWithContext(ctx context.Context) *GetProjectLogParams

NewGetProjectLogParamsWithContext creates a new GetProjectLogParams object with the default values initialized, and the ability to set a context for a request

func NewGetProjectLogParamsWithHTTPClient

func NewGetProjectLogParamsWithHTTPClient(client *http.Client) *GetProjectLogParams

NewGetProjectLogParamsWithHTTPClient creates a new GetProjectLogParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetProjectLogParamsWithTimeout

func NewGetProjectLogParamsWithTimeout(timeout time.Duration) *GetProjectLogParams

NewGetProjectLogParamsWithTimeout creates a new GetProjectLogParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetProjectLogParams) SetContext

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

SetContext adds the context to the get project log params

func (*GetProjectLogParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get project log params

func (*GetProjectLogParams) SetProjectID

func (o *GetProjectLogParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the get project log params

func (*GetProjectLogParams) SetTimeout

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

SetTimeout adds the timeout to the get project log params

func (*GetProjectLogParams) WithContext

WithContext adds the context to the get project log params

func (*GetProjectLogParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get project log params

func (*GetProjectLogParams) WithProjectID

func (o *GetProjectLogParams) WithProjectID(projectID string) *GetProjectLogParams

WithProjectID adds the projectID to the get project log params

func (*GetProjectLogParams) WithTimeout

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

WithTimeout adds the timeout to the get project log params

func (*GetProjectLogParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetProjectLogReader

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

GetProjectLogReader is a Reader for the GetProjectLog structure.

func (*GetProjectLogReader) ReadResponse

func (o *GetProjectLogReader) 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