meta

package
v1.24.10 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 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 meta API

func (*Client) MetaGet

func (a *Client) MetaGet(params *MetaGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetaGetOK, error)

MetaGet returns meta information of the current weaviate instance

Gives meta information about the server and can be used to provide information to another Weaviate instance that wants to interact with the current instance.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v1.18.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	MetaGet(params *MetaGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetaGetOK, 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 meta API client.

type MetaGetForbidden

type MetaGetForbidden struct {
	Payload *models.ErrorResponse
}

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

Forbidden

func NewMetaGetForbidden

func NewMetaGetForbidden() *MetaGetForbidden

NewMetaGetForbidden creates a MetaGetForbidden with default headers values

func (*MetaGetForbidden) Code added in v1.18.0

func (o *MetaGetForbidden) Code() int

Code gets the status code for the meta get forbidden response

func (*MetaGetForbidden) Error

func (o *MetaGetForbidden) Error() string

func (*MetaGetForbidden) GetPayload

func (o *MetaGetForbidden) GetPayload() *models.ErrorResponse

func (*MetaGetForbidden) IsClientError added in v1.18.0

func (o *MetaGetForbidden) IsClientError() bool

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

func (*MetaGetForbidden) IsCode added in v1.18.0

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

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

func (*MetaGetForbidden) IsRedirect added in v1.18.0

func (o *MetaGetForbidden) IsRedirect() bool

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

func (*MetaGetForbidden) IsServerError added in v1.18.0

func (o *MetaGetForbidden) IsServerError() bool

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

func (*MetaGetForbidden) IsSuccess added in v1.18.0

func (o *MetaGetForbidden) IsSuccess() bool

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

func (*MetaGetForbidden) String added in v1.18.0

func (o *MetaGetForbidden) String() string

type MetaGetInternalServerError

type MetaGetInternalServerError struct {
	Payload *models.ErrorResponse
}

MetaGetInternalServerError 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 NewMetaGetInternalServerError

func NewMetaGetInternalServerError() *MetaGetInternalServerError

NewMetaGetInternalServerError creates a MetaGetInternalServerError with default headers values

func (*MetaGetInternalServerError) Code added in v1.18.0

func (o *MetaGetInternalServerError) Code() int

Code gets the status code for the meta get internal server error response

func (*MetaGetInternalServerError) Error

func (*MetaGetInternalServerError) GetPayload

func (*MetaGetInternalServerError) IsClientError added in v1.18.0

func (o *MetaGetInternalServerError) IsClientError() bool

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

func (*MetaGetInternalServerError) IsCode added in v1.18.0

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

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

func (*MetaGetInternalServerError) IsRedirect added in v1.18.0

func (o *MetaGetInternalServerError) IsRedirect() bool

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

func (*MetaGetInternalServerError) IsServerError added in v1.18.0

func (o *MetaGetInternalServerError) IsServerError() bool

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

func (*MetaGetInternalServerError) IsSuccess added in v1.18.0

func (o *MetaGetInternalServerError) IsSuccess() bool

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

func (*MetaGetInternalServerError) String added in v1.18.0

func (o *MetaGetInternalServerError) String() string

type MetaGetOK

type MetaGetOK struct {
	Payload *models.Meta
}

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

Successful response.

func NewMetaGetOK

func NewMetaGetOK() *MetaGetOK

NewMetaGetOK creates a MetaGetOK with default headers values

func (*MetaGetOK) Code added in v1.18.0

func (o *MetaGetOK) Code() int

Code gets the status code for the meta get o k response

func (*MetaGetOK) Error

func (o *MetaGetOK) Error() string

func (*MetaGetOK) GetPayload

func (o *MetaGetOK) GetPayload() *models.Meta

func (*MetaGetOK) IsClientError added in v1.18.0

func (o *MetaGetOK) IsClientError() bool

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

func (*MetaGetOK) IsCode added in v1.18.0

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

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

func (*MetaGetOK) IsRedirect added in v1.18.0

func (o *MetaGetOK) IsRedirect() bool

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

func (*MetaGetOK) IsServerError added in v1.18.0

func (o *MetaGetOK) IsServerError() bool

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

func (*MetaGetOK) IsSuccess added in v1.18.0

func (o *MetaGetOK) IsSuccess() bool

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

func (*MetaGetOK) String added in v1.18.0

func (o *MetaGetOK) String() string

type MetaGetParams

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

MetaGetParams contains all the parameters to send to the API endpoint

for the meta get operation.

Typically these are written to a http.Request.

func NewMetaGetParams

func NewMetaGetParams() *MetaGetParams

NewMetaGetParams creates a new MetaGetParams 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 NewMetaGetParamsWithContext

func NewMetaGetParamsWithContext(ctx context.Context) *MetaGetParams

NewMetaGetParamsWithContext creates a new MetaGetParams object with the ability to set a context for a request.

func NewMetaGetParamsWithHTTPClient

func NewMetaGetParamsWithHTTPClient(client *http.Client) *MetaGetParams

NewMetaGetParamsWithHTTPClient creates a new MetaGetParams object with the ability to set a custom HTTPClient for a request.

func NewMetaGetParamsWithTimeout

func NewMetaGetParamsWithTimeout(timeout time.Duration) *MetaGetParams

NewMetaGetParamsWithTimeout creates a new MetaGetParams object with the ability to set a timeout on a request.

func (*MetaGetParams) SetContext

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

SetContext adds the context to the meta get params

func (*MetaGetParams) SetDefaults added in v1.18.0

func (o *MetaGetParams) SetDefaults()

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

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

func (*MetaGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the meta get params

func (*MetaGetParams) SetTimeout

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

SetTimeout adds the timeout to the meta get params

func (*MetaGetParams) WithContext

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

WithContext adds the context to the meta get params

func (*MetaGetParams) WithDefaults added in v1.18.0

func (o *MetaGetParams) WithDefaults() *MetaGetParams

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

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

func (*MetaGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the meta get params

func (*MetaGetParams) WithTimeout

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

WithTimeout adds the timeout to the meta get params

func (*MetaGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type MetaGetReader

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

MetaGetReader is a Reader for the MetaGet structure.

func (*MetaGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type MetaGetUnauthorized

type MetaGetUnauthorized struct {
}

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

Unauthorized or invalid credentials.

func NewMetaGetUnauthorized

func NewMetaGetUnauthorized() *MetaGetUnauthorized

NewMetaGetUnauthorized creates a MetaGetUnauthorized with default headers values

func (*MetaGetUnauthorized) Code added in v1.18.0

func (o *MetaGetUnauthorized) Code() int

Code gets the status code for the meta get unauthorized response

func (*MetaGetUnauthorized) Error

func (o *MetaGetUnauthorized) Error() string

func (*MetaGetUnauthorized) IsClientError added in v1.18.0

func (o *MetaGetUnauthorized) IsClientError() bool

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

func (*MetaGetUnauthorized) IsCode added in v1.18.0

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

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

func (*MetaGetUnauthorized) IsRedirect added in v1.18.0

func (o *MetaGetUnauthorized) IsRedirect() bool

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

func (*MetaGetUnauthorized) IsServerError added in v1.18.0

func (o *MetaGetUnauthorized) IsServerError() bool

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

func (*MetaGetUnauthorized) IsSuccess added in v1.18.0

func (o *MetaGetUnauthorized) IsSuccess() bool

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

func (*MetaGetUnauthorized) String added in v1.18.0

func (o *MetaGetUnauthorized) String() string

Jump to

Keyboard shortcuts

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