logs

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2020 License: MPL-2.0 Imports: 11 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 (*Client) GetV1Logs

func (a *Client) GetV1Logs(params *GetV1LogsParams) (*GetV1LogsOK, error)

GetV1Logs lists logs

func (*Client) PostV1LogsLogIDAction

func (a *Client) PostV1LogsLogIDAction(params *PostV1LogsLogIDActionParams) (*PostV1LogsLogIDActionOK, error)

PostV1LogsLogIDAction resends log

You may resend log to one or more destinations

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetV1Logs(params *GetV1LogsParams) (*GetV1LogsOK, error)

	PostV1LogsLogIDAction(params *PostV1LogsLogIDActionParams) (*PostV1LogsLogIDActionOK, 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.

type GetV1LogsOK

type GetV1LogsOK struct {
	Payload *models.LogsResponse
}

GetV1LogsOK handles this case with default header values.

Successful Response

func NewGetV1LogsOK

func NewGetV1LogsOK() *GetV1LogsOK

NewGetV1LogsOK creates a GetV1LogsOK with default headers values

func (*GetV1LogsOK) Error

func (o *GetV1LogsOK) Error() string

func (*GetV1LogsOK) GetPayload

func (o *GetV1LogsOK) GetPayload() *models.LogsResponse

type GetV1LogsParams

type GetV1LogsParams struct {

	/*Bucket
	  Optional bucket ID for filtering logs

	*/
	Bucket *string
	/*From
	  YYYY-MM-DD date from when the logs should be returned, for example '2020-01-01'

	*/
	From *string
	/*Limit
	  Limit of the logs to return

	*/
	Limit *int64
	/*Offset
	  Offset of the logs when querying

	*/
	Offset *int64
	/*Status
	  Webhook log status

	*/
	Status *string
	/*To
	  YYYY-MM-DD last day till when the logs should be returned, for example '2020-01-02' (includes the last day)

	*/
	To *string

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

GetV1LogsParams contains all the parameters to send to the API endpoint for the get v1 logs operation typically these are written to a http.Request

func NewGetV1LogsParams

func NewGetV1LogsParams() *GetV1LogsParams

NewGetV1LogsParams creates a new GetV1LogsParams object with the default values initialized.

func NewGetV1LogsParamsWithContext

func NewGetV1LogsParamsWithContext(ctx context.Context) *GetV1LogsParams

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

func NewGetV1LogsParamsWithHTTPClient

func NewGetV1LogsParamsWithHTTPClient(client *http.Client) *GetV1LogsParams

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

func NewGetV1LogsParamsWithTimeout

func NewGetV1LogsParamsWithTimeout(timeout time.Duration) *GetV1LogsParams

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

func (*GetV1LogsParams) SetBucket

func (o *GetV1LogsParams) SetBucket(bucket *string)

SetBucket adds the bucket to the get v1 logs params

func (*GetV1LogsParams) SetContext

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

SetContext adds the context to the get v1 logs params

func (*GetV1LogsParams) SetFrom

func (o *GetV1LogsParams) SetFrom(from *string)

SetFrom adds the from to the get v1 logs params

func (*GetV1LogsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 logs params

func (*GetV1LogsParams) SetLimit

func (o *GetV1LogsParams) SetLimit(limit *int64)

SetLimit adds the limit to the get v1 logs params

func (*GetV1LogsParams) SetOffset

func (o *GetV1LogsParams) SetOffset(offset *int64)

SetOffset adds the offset to the get v1 logs params

func (*GetV1LogsParams) SetStatus

func (o *GetV1LogsParams) SetStatus(status *string)

SetStatus adds the status to the get v1 logs params

func (*GetV1LogsParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 logs params

func (*GetV1LogsParams) SetTo

func (o *GetV1LogsParams) SetTo(to *string)

SetTo adds the to to the get v1 logs params

func (*GetV1LogsParams) WithBucket

func (o *GetV1LogsParams) WithBucket(bucket *string) *GetV1LogsParams

WithBucket adds the bucket to the get v1 logs params

func (*GetV1LogsParams) WithContext

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

WithContext adds the context to the get v1 logs params

func (*GetV1LogsParams) WithFrom

func (o *GetV1LogsParams) WithFrom(from *string) *GetV1LogsParams

WithFrom adds the from to the get v1 logs params

func (*GetV1LogsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get v1 logs params

func (*GetV1LogsParams) WithLimit

func (o *GetV1LogsParams) WithLimit(limit *int64) *GetV1LogsParams

WithLimit adds the limit to the get v1 logs params

func (*GetV1LogsParams) WithOffset

func (o *GetV1LogsParams) WithOffset(offset *int64) *GetV1LogsParams

WithOffset adds the offset to the get v1 logs params

func (*GetV1LogsParams) WithStatus

func (o *GetV1LogsParams) WithStatus(status *string) *GetV1LogsParams

WithStatus adds the status to the get v1 logs params

func (*GetV1LogsParams) WithTimeout

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

WithTimeout adds the timeout to the get v1 logs params

func (*GetV1LogsParams) WithTo

func (o *GetV1LogsParams) WithTo(to *string) *GetV1LogsParams

WithTo adds the to to the get v1 logs params

func (*GetV1LogsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetV1LogsReader

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

GetV1LogsReader is a Reader for the GetV1Logs structure.

func (*GetV1LogsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostV1LogsLogIDActionBadRequest

type PostV1LogsLogIDActionBadRequest struct {
}

PostV1LogsLogIDActionBadRequest handles this case with default header values.

Invalid request

func NewPostV1LogsLogIDActionBadRequest

func NewPostV1LogsLogIDActionBadRequest() *PostV1LogsLogIDActionBadRequest

NewPostV1LogsLogIDActionBadRequest creates a PostV1LogsLogIDActionBadRequest with default headers values

func (*PostV1LogsLogIDActionBadRequest) Error

type PostV1LogsLogIDActionOK

type PostV1LogsLogIDActionOK struct {
	Payload *models.Response
}

PostV1LogsLogIDActionOK handles this case with default header values.

PostV1LogsLogIDActionOK post v1 logs log Id action o k

func NewPostV1LogsLogIDActionOK

func NewPostV1LogsLogIDActionOK() *PostV1LogsLogIDActionOK

NewPostV1LogsLogIDActionOK creates a PostV1LogsLogIDActionOK with default headers values

func (*PostV1LogsLogIDActionOK) Error

func (o *PostV1LogsLogIDActionOK) Error() string

func (*PostV1LogsLogIDActionOK) GetPayload

func (o *PostV1LogsLogIDActionOK) GetPayload() *models.Response

type PostV1LogsLogIDActionParams

type PostV1LogsLogIDActionParams struct {

	/*Body*/
	Body *models.LogAction
	/*LogID
	  ID of a log

	*/
	LogID string

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

PostV1LogsLogIDActionParams contains all the parameters to send to the API endpoint for the post v1 logs log ID action operation typically these are written to a http.Request

func NewPostV1LogsLogIDActionParams

func NewPostV1LogsLogIDActionParams() *PostV1LogsLogIDActionParams

NewPostV1LogsLogIDActionParams creates a new PostV1LogsLogIDActionParams object with the default values initialized.

func NewPostV1LogsLogIDActionParamsWithContext

func NewPostV1LogsLogIDActionParamsWithContext(ctx context.Context) *PostV1LogsLogIDActionParams

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

func NewPostV1LogsLogIDActionParamsWithHTTPClient

func NewPostV1LogsLogIDActionParamsWithHTTPClient(client *http.Client) *PostV1LogsLogIDActionParams

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

func NewPostV1LogsLogIDActionParamsWithTimeout

func NewPostV1LogsLogIDActionParamsWithTimeout(timeout time.Duration) *PostV1LogsLogIDActionParams

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

func (*PostV1LogsLogIDActionParams) SetBody

func (o *PostV1LogsLogIDActionParams) SetBody(body *models.LogAction)

SetBody adds the body to the post v1 logs log ID action params

func (*PostV1LogsLogIDActionParams) SetContext

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

SetContext adds the context to the post v1 logs log ID action params

func (*PostV1LogsLogIDActionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post v1 logs log ID action params

func (*PostV1LogsLogIDActionParams) SetLogID

func (o *PostV1LogsLogIDActionParams) SetLogID(logID string)

SetLogID adds the logId to the post v1 logs log ID action params

func (*PostV1LogsLogIDActionParams) SetTimeout

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

SetTimeout adds the timeout to the post v1 logs log ID action params

func (*PostV1LogsLogIDActionParams) WithBody

WithBody adds the body to the post v1 logs log ID action params

func (*PostV1LogsLogIDActionParams) WithContext

WithContext adds the context to the post v1 logs log ID action params

func (*PostV1LogsLogIDActionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post v1 logs log ID action params

func (*PostV1LogsLogIDActionParams) WithLogID

WithLogID adds the logID to the post v1 logs log ID action params

func (*PostV1LogsLogIDActionParams) WithTimeout

WithTimeout adds the timeout to the post v1 logs log ID action params

func (*PostV1LogsLogIDActionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostV1LogsLogIDActionReader

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

PostV1LogsLogIDActionReader is a Reader for the PostV1LogsLogIDAction structure.

func (*PostV1LogsLogIDActionReader) ReadResponse

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