cluster

package
v1.26.13 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: BSD-3-Clause 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 cluster API

func (*Client) ClusterGetStatistics

func (a *Client) ClusterGetStatistics(params *ClusterGetStatisticsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterGetStatisticsOK, error)

ClusterGetStatistics Returns Raft cluster statistics of Weaviate DB.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ClusterGetStatistics(params *ClusterGetStatisticsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterGetStatisticsOK, 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 cluster API client.

type ClusterGetStatisticsForbidden

type ClusterGetStatisticsForbidden struct {
	Payload *models.ErrorResponse
}

ClusterGetStatisticsForbidden describes a response with status code 403, with default header values.

Forbidden

func NewClusterGetStatisticsForbidden

func NewClusterGetStatisticsForbidden() *ClusterGetStatisticsForbidden

NewClusterGetStatisticsForbidden creates a ClusterGetStatisticsForbidden with default headers values

func (*ClusterGetStatisticsForbidden) Code

Code gets the status code for the cluster get statistics forbidden response

func (*ClusterGetStatisticsForbidden) Error

func (*ClusterGetStatisticsForbidden) GetPayload

func (*ClusterGetStatisticsForbidden) IsClientError

func (o *ClusterGetStatisticsForbidden) IsClientError() bool

IsClientError returns true when this cluster get statistics forbidden response has a 4xx status code

func (*ClusterGetStatisticsForbidden) IsCode

func (o *ClusterGetStatisticsForbidden) IsCode(code int) bool

IsCode returns true when this cluster get statistics forbidden response a status code equal to that given

func (*ClusterGetStatisticsForbidden) IsRedirect

func (o *ClusterGetStatisticsForbidden) IsRedirect() bool

IsRedirect returns true when this cluster get statistics forbidden response has a 3xx status code

func (*ClusterGetStatisticsForbidden) IsServerError

func (o *ClusterGetStatisticsForbidden) IsServerError() bool

IsServerError returns true when this cluster get statistics forbidden response has a 5xx status code

func (*ClusterGetStatisticsForbidden) IsSuccess

func (o *ClusterGetStatisticsForbidden) IsSuccess() bool

IsSuccess returns true when this cluster get statistics forbidden response has a 2xx status code

func (*ClusterGetStatisticsForbidden) String

type ClusterGetStatisticsInternalServerError

type ClusterGetStatisticsInternalServerError struct {
	Payload *models.ErrorResponse
}

ClusterGetStatisticsInternalServerError describes a response with status code 500, with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewClusterGetStatisticsInternalServerError

func NewClusterGetStatisticsInternalServerError() *ClusterGetStatisticsInternalServerError

NewClusterGetStatisticsInternalServerError creates a ClusterGetStatisticsInternalServerError with default headers values

func (*ClusterGetStatisticsInternalServerError) Code

Code gets the status code for the cluster get statistics internal server error response

func (*ClusterGetStatisticsInternalServerError) Error

func (*ClusterGetStatisticsInternalServerError) GetPayload

func (*ClusterGetStatisticsInternalServerError) IsClientError

func (o *ClusterGetStatisticsInternalServerError) IsClientError() bool

IsClientError returns true when this cluster get statistics internal server error response has a 4xx status code

func (*ClusterGetStatisticsInternalServerError) IsCode

IsCode returns true when this cluster get statistics internal server error response a status code equal to that given

func (*ClusterGetStatisticsInternalServerError) IsRedirect

IsRedirect returns true when this cluster get statistics internal server error response has a 3xx status code

func (*ClusterGetStatisticsInternalServerError) IsServerError

func (o *ClusterGetStatisticsInternalServerError) IsServerError() bool

IsServerError returns true when this cluster get statistics internal server error response has a 5xx status code

func (*ClusterGetStatisticsInternalServerError) IsSuccess

IsSuccess returns true when this cluster get statistics internal server error response has a 2xx status code

func (*ClusterGetStatisticsInternalServerError) String

type ClusterGetStatisticsOK

type ClusterGetStatisticsOK struct {
	Payload *models.ClusterStatisticsResponse
}

ClusterGetStatisticsOK describes a response with status code 200, with default header values.

Cluster statistics successfully returned

func NewClusterGetStatisticsOK

func NewClusterGetStatisticsOK() *ClusterGetStatisticsOK

NewClusterGetStatisticsOK creates a ClusterGetStatisticsOK with default headers values

func (*ClusterGetStatisticsOK) Code

func (o *ClusterGetStatisticsOK) Code() int

Code gets the status code for the cluster get statistics o k response

func (*ClusterGetStatisticsOK) Error

func (o *ClusterGetStatisticsOK) Error() string

func (*ClusterGetStatisticsOK) GetPayload

func (*ClusterGetStatisticsOK) IsClientError

func (o *ClusterGetStatisticsOK) IsClientError() bool

IsClientError returns true when this cluster get statistics o k response has a 4xx status code

func (*ClusterGetStatisticsOK) IsCode

func (o *ClusterGetStatisticsOK) IsCode(code int) bool

IsCode returns true when this cluster get statistics o k response a status code equal to that given

func (*ClusterGetStatisticsOK) IsRedirect

func (o *ClusterGetStatisticsOK) IsRedirect() bool

IsRedirect returns true when this cluster get statistics o k response has a 3xx status code

func (*ClusterGetStatisticsOK) IsServerError

func (o *ClusterGetStatisticsOK) IsServerError() bool

IsServerError returns true when this cluster get statistics o k response has a 5xx status code

func (*ClusterGetStatisticsOK) IsSuccess

func (o *ClusterGetStatisticsOK) IsSuccess() bool

IsSuccess returns true when this cluster get statistics o k response has a 2xx status code

func (*ClusterGetStatisticsOK) String

func (o *ClusterGetStatisticsOK) String() string

type ClusterGetStatisticsParams

type ClusterGetStatisticsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ClusterGetStatisticsParams contains all the parameters to send to the API endpoint

for the cluster get statistics operation.

Typically these are written to a http.Request.

func NewClusterGetStatisticsParams

func NewClusterGetStatisticsParams() *ClusterGetStatisticsParams

NewClusterGetStatisticsParams creates a new ClusterGetStatisticsParams 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 NewClusterGetStatisticsParamsWithContext

func NewClusterGetStatisticsParamsWithContext(ctx context.Context) *ClusterGetStatisticsParams

NewClusterGetStatisticsParamsWithContext creates a new ClusterGetStatisticsParams object with the ability to set a context for a request.

func NewClusterGetStatisticsParamsWithHTTPClient

func NewClusterGetStatisticsParamsWithHTTPClient(client *http.Client) *ClusterGetStatisticsParams

NewClusterGetStatisticsParamsWithHTTPClient creates a new ClusterGetStatisticsParams object with the ability to set a custom HTTPClient for a request.

func NewClusterGetStatisticsParamsWithTimeout

func NewClusterGetStatisticsParamsWithTimeout(timeout time.Duration) *ClusterGetStatisticsParams

NewClusterGetStatisticsParamsWithTimeout creates a new ClusterGetStatisticsParams object with the ability to set a timeout on a request.

func (*ClusterGetStatisticsParams) SetContext

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

SetContext adds the context to the cluster get statistics params

func (*ClusterGetStatisticsParams) SetDefaults

func (o *ClusterGetStatisticsParams) SetDefaults()

SetDefaults hydrates default values in the cluster get statistics params (not the query body).

All values with no default are reset to their zero value.

func (*ClusterGetStatisticsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the cluster get statistics params

func (*ClusterGetStatisticsParams) SetTimeout

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

SetTimeout adds the timeout to the cluster get statistics params

func (*ClusterGetStatisticsParams) WithContext

WithContext adds the context to the cluster get statistics params

func (*ClusterGetStatisticsParams) WithDefaults

WithDefaults hydrates default values in the cluster get statistics params (not the query body).

All values with no default are reset to their zero value.

func (*ClusterGetStatisticsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the cluster get statistics params

func (*ClusterGetStatisticsParams) WithTimeout

WithTimeout adds the timeout to the cluster get statistics params

func (*ClusterGetStatisticsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ClusterGetStatisticsReader

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

ClusterGetStatisticsReader is a Reader for the ClusterGetStatistics structure.

func (*ClusterGetStatisticsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ClusterGetStatisticsUnauthorized

type ClusterGetStatisticsUnauthorized struct {
}

ClusterGetStatisticsUnauthorized describes a response with status code 401, with default header values.

Unauthorized or invalid credentials.

func NewClusterGetStatisticsUnauthorized

func NewClusterGetStatisticsUnauthorized() *ClusterGetStatisticsUnauthorized

NewClusterGetStatisticsUnauthorized creates a ClusterGetStatisticsUnauthorized with default headers values

func (*ClusterGetStatisticsUnauthorized) Code

Code gets the status code for the cluster get statistics unauthorized response

func (*ClusterGetStatisticsUnauthorized) Error

func (*ClusterGetStatisticsUnauthorized) IsClientError

func (o *ClusterGetStatisticsUnauthorized) IsClientError() bool

IsClientError returns true when this cluster get statistics unauthorized response has a 4xx status code

func (*ClusterGetStatisticsUnauthorized) IsCode

func (o *ClusterGetStatisticsUnauthorized) IsCode(code int) bool

IsCode returns true when this cluster get statistics unauthorized response a status code equal to that given

func (*ClusterGetStatisticsUnauthorized) IsRedirect

func (o *ClusterGetStatisticsUnauthorized) IsRedirect() bool

IsRedirect returns true when this cluster get statistics unauthorized response has a 3xx status code

func (*ClusterGetStatisticsUnauthorized) IsServerError

func (o *ClusterGetStatisticsUnauthorized) IsServerError() bool

IsServerError returns true when this cluster get statistics unauthorized response has a 5xx status code

func (*ClusterGetStatisticsUnauthorized) IsSuccess

func (o *ClusterGetStatisticsUnauthorized) IsSuccess() bool

IsSuccess returns true when this cluster get statistics unauthorized response has a 2xx status code

func (*ClusterGetStatisticsUnauthorized) String

type ClusterGetStatisticsUnprocessableEntity

type ClusterGetStatisticsUnprocessableEntity struct {
	Payload *models.ErrorResponse
}

ClusterGetStatisticsUnprocessableEntity describes a response with status code 422, with default header values.

Invalid backup restoration status attempt.

func NewClusterGetStatisticsUnprocessableEntity

func NewClusterGetStatisticsUnprocessableEntity() *ClusterGetStatisticsUnprocessableEntity

NewClusterGetStatisticsUnprocessableEntity creates a ClusterGetStatisticsUnprocessableEntity with default headers values

func (*ClusterGetStatisticsUnprocessableEntity) Code

Code gets the status code for the cluster get statistics unprocessable entity response

func (*ClusterGetStatisticsUnprocessableEntity) Error

func (*ClusterGetStatisticsUnprocessableEntity) GetPayload

func (*ClusterGetStatisticsUnprocessableEntity) IsClientError

func (o *ClusterGetStatisticsUnprocessableEntity) IsClientError() bool

IsClientError returns true when this cluster get statistics unprocessable entity response has a 4xx status code

func (*ClusterGetStatisticsUnprocessableEntity) IsCode

IsCode returns true when this cluster get statistics unprocessable entity response a status code equal to that given

func (*ClusterGetStatisticsUnprocessableEntity) IsRedirect

IsRedirect returns true when this cluster get statistics unprocessable entity response has a 3xx status code

func (*ClusterGetStatisticsUnprocessableEntity) IsServerError

func (o *ClusterGetStatisticsUnprocessableEntity) IsServerError() bool

IsServerError returns true when this cluster get statistics unprocessable entity response has a 5xx status code

func (*ClusterGetStatisticsUnprocessableEntity) IsSuccess

IsSuccess returns true when this cluster get statistics unprocessable entity response has a 2xx status code

func (*ClusterGetStatisticsUnprocessableEntity) String

Jump to

Keyboard shortcuts

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