logs_api

package
v2.18.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: AGPL-3.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 API

func (*Client) GetLogs

func (a *Client) GetLogs(params *GetLogsParams) (*GetLogsOK, error)

GetLogs gets logs gets all logs from db cluster

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetLogs(params *GetLogsParams) (*GetLogsOK, 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 API client.

type DetailsItems0

type DetailsItems0 struct {

	// type url
	TypeURL string `json:"type_url,omitempty"`

	// value
	// Format: byte
	Value strfmt.Base64 `json:"value,omitempty"`
}

DetailsItems0 details items0 swagger:model DetailsItems0

func (*DetailsItems0) MarshalBinary

func (o *DetailsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DetailsItems0) UnmarshalBinary

func (o *DetailsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DetailsItems0) Validate

func (o *DetailsItems0) Validate(formats strfmt.Registry) error

Validate validates this details items0

type GetLogsBody

type GetLogsBody struct {

	// Kubernetes cluster name.
	KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"`

	// DB cluster name.
	ClusterName string `json:"cluster_name,omitempty"`
}

GetLogsBody get logs body swagger:model GetLogsBody

func (*GetLogsBody) MarshalBinary

func (o *GetLogsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetLogsBody) UnmarshalBinary

func (o *GetLogsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetLogsBody) Validate

func (o *GetLogsBody) Validate(formats strfmt.Registry) error

Validate validates this get logs body

type GetLogsDefault

type GetLogsDefault struct {
	Payload *GetLogsDefaultBody
	// contains filtered or unexported fields
}

GetLogsDefault handles this case with default header values.

An unexpected error response.

func NewGetLogsDefault

func NewGetLogsDefault(code int) *GetLogsDefault

NewGetLogsDefault creates a GetLogsDefault with default headers values

func (*GetLogsDefault) Code

func (o *GetLogsDefault) Code() int

Code gets the status code for the get logs default response

func (*GetLogsDefault) Error

func (o *GetLogsDefault) Error() string

func (*GetLogsDefault) GetPayload

func (o *GetLogsDefault) GetPayload() *GetLogsDefaultBody

type GetLogsDefaultBody

type GetLogsDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

GetLogsDefaultBody get logs default body swagger:model GetLogsDefaultBody

func (*GetLogsDefaultBody) MarshalBinary

func (o *GetLogsDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetLogsDefaultBody) UnmarshalBinary

func (o *GetLogsDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetLogsDefaultBody) Validate

func (o *GetLogsDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this get logs default body

type GetLogsOK

type GetLogsOK struct {
	Payload *GetLogsOKBody
}

GetLogsOK handles this case with default header values.

A successful response.

func NewGetLogsOK

func NewGetLogsOK() *GetLogsOK

NewGetLogsOK creates a GetLogsOK with default headers values

func (*GetLogsOK) Error

func (o *GetLogsOK) Error() string

func (*GetLogsOK) GetPayload

func (o *GetLogsOK) GetPayload() *GetLogsOKBody

type GetLogsOKBody

type GetLogsOKBody struct {

	// Log represents list of logs. Each entry contains either container's logs or,
	// when container field is empty, pod's events.
	Logs []*LogsItems0 `json:"logs"`
}

GetLogsOKBody get logs OK body swagger:model GetLogsOKBody

func (*GetLogsOKBody) MarshalBinary

func (o *GetLogsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetLogsOKBody) UnmarshalBinary

func (o *GetLogsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetLogsOKBody) Validate

func (o *GetLogsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get logs OK body

type GetLogsParams

type GetLogsParams struct {

	/*Body*/
	Body GetLogsBody

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

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

func NewGetLogsParams

func NewGetLogsParams() *GetLogsParams

NewGetLogsParams creates a new GetLogsParams object with the default values initialized.

func NewGetLogsParamsWithContext

func NewGetLogsParamsWithContext(ctx context.Context) *GetLogsParams

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

func NewGetLogsParamsWithHTTPClient

func NewGetLogsParamsWithHTTPClient(client *http.Client) *GetLogsParams

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

func NewGetLogsParamsWithTimeout

func NewGetLogsParamsWithTimeout(timeout time.Duration) *GetLogsParams

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

func (*GetLogsParams) SetBody

func (o *GetLogsParams) SetBody(body GetLogsBody)

SetBody adds the body to the get logs params

func (*GetLogsParams) SetContext

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

SetContext adds the context to the get logs params

func (*GetLogsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get logs params

func (*GetLogsParams) SetTimeout

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

SetTimeout adds the timeout to the get logs params

func (*GetLogsParams) WithBody

func (o *GetLogsParams) WithBody(body GetLogsBody) *GetLogsParams

WithBody adds the body to the get logs params

func (*GetLogsParams) WithContext

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

WithContext adds the context to the get logs params

func (*GetLogsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get logs params

func (*GetLogsParams) WithTimeout

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

WithTimeout adds the timeout to the get logs params

func (*GetLogsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetLogsReader

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

GetLogsReader is a Reader for the GetLogs structure.

func (*GetLogsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type LogsItems0

type LogsItems0 struct {

	// Pod name.
	Pod string `json:"pod,omitempty"`

	// Container name.
	Container string `json:"container,omitempty"`

	// Content of container's log or pod's events.
	Logs []string `json:"logs"`
}

LogsItems0 Logs contain logs for certain pod's container. If container is an empty // string, logs contain pod's events. swagger:model LogsItems0

func (*LogsItems0) MarshalBinary

func (o *LogsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LogsItems0) UnmarshalBinary

func (o *LogsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LogsItems0) Validate

func (o *LogsItems0) Validate(formats strfmt.Registry) error

Validate validates this logs items0

Jump to

Keyboard shortcuts

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