operations

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: 12 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 operations API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) WeaviateRoot

func (a *Client) WeaviateRoot(params *WeaviateRootParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WeaviateRootOK, error)

WeaviateRoot Home. Discover the REST API

func (*Client) WeaviateWellknownLiveness

func (a *Client) WeaviateWellknownLiveness(params *WeaviateWellknownLivenessParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WeaviateWellknownLivenessOK, error)

WeaviateWellknownLiveness Determines whether the application is alive. Can be used for kubernetes liveness probe

func (*Client) WeaviateWellknownReadiness

func (a *Client) WeaviateWellknownReadiness(params *WeaviateWellknownReadinessParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WeaviateWellknownReadinessOK, error)

WeaviateWellknownReadiness Determines whether the application is ready to receive traffic. Can be used for kubernetes readiness probe.

type ClientOption added in v1.18.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	WeaviateRoot(params *WeaviateRootParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WeaviateRootOK, error)

	WeaviateWellknownLiveness(params *WeaviateWellknownLivenessParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WeaviateWellknownLivenessOK, error)

	WeaviateWellknownReadiness(params *WeaviateWellknownReadinessParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WeaviateWellknownReadinessOK, 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 operations API client.

type WeaviateRootOK

type WeaviateRootOK struct {
	Payload *WeaviateRootOKBody
}

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

Weaviate is alive and ready to serve content

func NewWeaviateRootOK

func NewWeaviateRootOK() *WeaviateRootOK

NewWeaviateRootOK creates a WeaviateRootOK with default headers values

func (*WeaviateRootOK) Code added in v1.18.0

func (o *WeaviateRootOK) Code() int

Code gets the status code for the weaviate root o k response

func (*WeaviateRootOK) Error

func (o *WeaviateRootOK) Error() string

func (*WeaviateRootOK) GetPayload

func (o *WeaviateRootOK) GetPayload() *WeaviateRootOKBody

func (*WeaviateRootOK) IsClientError added in v1.18.0

func (o *WeaviateRootOK) IsClientError() bool

IsClientError returns true when this weaviate root o k response has a 4xx status code

func (*WeaviateRootOK) IsCode added in v1.18.0

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

IsCode returns true when this weaviate root o k response a status code equal to that given

func (*WeaviateRootOK) IsRedirect added in v1.18.0

func (o *WeaviateRootOK) IsRedirect() bool

IsRedirect returns true when this weaviate root o k response has a 3xx status code

func (*WeaviateRootOK) IsServerError added in v1.18.0

func (o *WeaviateRootOK) IsServerError() bool

IsServerError returns true when this weaviate root o k response has a 5xx status code

func (*WeaviateRootOK) IsSuccess added in v1.18.0

func (o *WeaviateRootOK) IsSuccess() bool

IsSuccess returns true when this weaviate root o k response has a 2xx status code

func (*WeaviateRootOK) String added in v1.18.0

func (o *WeaviateRootOK) String() string

type WeaviateRootOKBody

type WeaviateRootOKBody struct {

	// links
	Links []*models.Link `json:"links"`
}

WeaviateRootOKBody weaviate root o k body swagger:model WeaviateRootOKBody

func (*WeaviateRootOKBody) ContextValidate added in v1.18.0

func (o *WeaviateRootOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this weaviate root o k body based on the context it is used

func (*WeaviateRootOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*WeaviateRootOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*WeaviateRootOKBody) Validate

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

Validate validates this weaviate root o k body

type WeaviateRootParams

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

WeaviateRootParams contains all the parameters to send to the API endpoint

for the weaviate root operation.

Typically these are written to a http.Request.

func NewWeaviateRootParams

func NewWeaviateRootParams() *WeaviateRootParams

NewWeaviateRootParams creates a new WeaviateRootParams 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 NewWeaviateRootParamsWithContext

func NewWeaviateRootParamsWithContext(ctx context.Context) *WeaviateRootParams

NewWeaviateRootParamsWithContext creates a new WeaviateRootParams object with the ability to set a context for a request.

func NewWeaviateRootParamsWithHTTPClient

func NewWeaviateRootParamsWithHTTPClient(client *http.Client) *WeaviateRootParams

NewWeaviateRootParamsWithHTTPClient creates a new WeaviateRootParams object with the ability to set a custom HTTPClient for a request.

func NewWeaviateRootParamsWithTimeout

func NewWeaviateRootParamsWithTimeout(timeout time.Duration) *WeaviateRootParams

NewWeaviateRootParamsWithTimeout creates a new WeaviateRootParams object with the ability to set a timeout on a request.

func (*WeaviateRootParams) SetContext

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

SetContext adds the context to the weaviate root params

func (*WeaviateRootParams) SetDefaults added in v1.18.0

func (o *WeaviateRootParams) SetDefaults()

SetDefaults hydrates default values in the weaviate root params (not the query body).

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

func (*WeaviateRootParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the weaviate root params

func (*WeaviateRootParams) SetTimeout

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

SetTimeout adds the timeout to the weaviate root params

func (*WeaviateRootParams) WithContext

WithContext adds the context to the weaviate root params

func (*WeaviateRootParams) WithDefaults added in v1.18.0

func (o *WeaviateRootParams) WithDefaults() *WeaviateRootParams

WithDefaults hydrates default values in the weaviate root params (not the query body).

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

func (*WeaviateRootParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the weaviate root params

func (*WeaviateRootParams) WithTimeout

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

WithTimeout adds the timeout to the weaviate root params

func (*WeaviateRootParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type WeaviateRootReader

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

WeaviateRootReader is a Reader for the WeaviateRoot structure.

func (*WeaviateRootReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type WeaviateWellknownLivenessOK

type WeaviateWellknownLivenessOK struct {
}

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

The application is able to respond to HTTP requests

func NewWeaviateWellknownLivenessOK

func NewWeaviateWellknownLivenessOK() *WeaviateWellknownLivenessOK

NewWeaviateWellknownLivenessOK creates a WeaviateWellknownLivenessOK with default headers values

func (*WeaviateWellknownLivenessOK) Code added in v1.18.0

func (o *WeaviateWellknownLivenessOK) Code() int

Code gets the status code for the weaviate wellknown liveness o k response

func (*WeaviateWellknownLivenessOK) Error

func (*WeaviateWellknownLivenessOK) IsClientError added in v1.18.0

func (o *WeaviateWellknownLivenessOK) IsClientError() bool

IsClientError returns true when this weaviate wellknown liveness o k response has a 4xx status code

func (*WeaviateWellknownLivenessOK) IsCode added in v1.18.0

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

IsCode returns true when this weaviate wellknown liveness o k response a status code equal to that given

func (*WeaviateWellknownLivenessOK) IsRedirect added in v1.18.0

func (o *WeaviateWellknownLivenessOK) IsRedirect() bool

IsRedirect returns true when this weaviate wellknown liveness o k response has a 3xx status code

func (*WeaviateWellknownLivenessOK) IsServerError added in v1.18.0

func (o *WeaviateWellknownLivenessOK) IsServerError() bool

IsServerError returns true when this weaviate wellknown liveness o k response has a 5xx status code

func (*WeaviateWellknownLivenessOK) IsSuccess added in v1.18.0

func (o *WeaviateWellknownLivenessOK) IsSuccess() bool

IsSuccess returns true when this weaviate wellknown liveness o k response has a 2xx status code

func (*WeaviateWellknownLivenessOK) String added in v1.18.0

func (o *WeaviateWellknownLivenessOK) String() string

type WeaviateWellknownLivenessParams

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

WeaviateWellknownLivenessParams contains all the parameters to send to the API endpoint

for the weaviate wellknown liveness operation.

Typically these are written to a http.Request.

func NewWeaviateWellknownLivenessParams

func NewWeaviateWellknownLivenessParams() *WeaviateWellknownLivenessParams

NewWeaviateWellknownLivenessParams creates a new WeaviateWellknownLivenessParams 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 NewWeaviateWellknownLivenessParamsWithContext

func NewWeaviateWellknownLivenessParamsWithContext(ctx context.Context) *WeaviateWellknownLivenessParams

NewWeaviateWellknownLivenessParamsWithContext creates a new WeaviateWellknownLivenessParams object with the ability to set a context for a request.

func NewWeaviateWellknownLivenessParamsWithHTTPClient

func NewWeaviateWellknownLivenessParamsWithHTTPClient(client *http.Client) *WeaviateWellknownLivenessParams

NewWeaviateWellknownLivenessParamsWithHTTPClient creates a new WeaviateWellknownLivenessParams object with the ability to set a custom HTTPClient for a request.

func NewWeaviateWellknownLivenessParamsWithTimeout

func NewWeaviateWellknownLivenessParamsWithTimeout(timeout time.Duration) *WeaviateWellknownLivenessParams

NewWeaviateWellknownLivenessParamsWithTimeout creates a new WeaviateWellknownLivenessParams object with the ability to set a timeout on a request.

func (*WeaviateWellknownLivenessParams) SetContext

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

SetContext adds the context to the weaviate wellknown liveness params

func (*WeaviateWellknownLivenessParams) SetDefaults added in v1.18.0

func (o *WeaviateWellknownLivenessParams) SetDefaults()

SetDefaults hydrates default values in the weaviate wellknown liveness params (not the query body).

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

func (*WeaviateWellknownLivenessParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the weaviate wellknown liveness params

func (*WeaviateWellknownLivenessParams) SetTimeout

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

SetTimeout adds the timeout to the weaviate wellknown liveness params

func (*WeaviateWellknownLivenessParams) WithContext

WithContext adds the context to the weaviate wellknown liveness params

func (*WeaviateWellknownLivenessParams) WithDefaults added in v1.18.0

WithDefaults hydrates default values in the weaviate wellknown liveness params (not the query body).

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

func (*WeaviateWellknownLivenessParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the weaviate wellknown liveness params

func (*WeaviateWellknownLivenessParams) WithTimeout

WithTimeout adds the timeout to the weaviate wellknown liveness params

func (*WeaviateWellknownLivenessParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type WeaviateWellknownLivenessReader

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

WeaviateWellknownLivenessReader is a Reader for the WeaviateWellknownLiveness structure.

func (*WeaviateWellknownLivenessReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type WeaviateWellknownReadinessOK

type WeaviateWellknownReadinessOK struct {
}

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

The application has completed its start-up routine and is ready to accept traffic.

func NewWeaviateWellknownReadinessOK

func NewWeaviateWellknownReadinessOK() *WeaviateWellknownReadinessOK

NewWeaviateWellknownReadinessOK creates a WeaviateWellknownReadinessOK with default headers values

func (*WeaviateWellknownReadinessOK) Code added in v1.18.0

Code gets the status code for the weaviate wellknown readiness o k response

func (*WeaviateWellknownReadinessOK) Error

func (*WeaviateWellknownReadinessOK) IsClientError added in v1.18.0

func (o *WeaviateWellknownReadinessOK) IsClientError() bool

IsClientError returns true when this weaviate wellknown readiness o k response has a 4xx status code

func (*WeaviateWellknownReadinessOK) IsCode added in v1.18.0

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

IsCode returns true when this weaviate wellknown readiness o k response a status code equal to that given

func (*WeaviateWellknownReadinessOK) IsRedirect added in v1.18.0

func (o *WeaviateWellknownReadinessOK) IsRedirect() bool

IsRedirect returns true when this weaviate wellknown readiness o k response has a 3xx status code

func (*WeaviateWellknownReadinessOK) IsServerError added in v1.18.0

func (o *WeaviateWellknownReadinessOK) IsServerError() bool

IsServerError returns true when this weaviate wellknown readiness o k response has a 5xx status code

func (*WeaviateWellknownReadinessOK) IsSuccess added in v1.18.0

func (o *WeaviateWellknownReadinessOK) IsSuccess() bool

IsSuccess returns true when this weaviate wellknown readiness o k response has a 2xx status code

func (*WeaviateWellknownReadinessOK) String added in v1.18.0

type WeaviateWellknownReadinessParams

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

WeaviateWellknownReadinessParams contains all the parameters to send to the API endpoint

for the weaviate wellknown readiness operation.

Typically these are written to a http.Request.

func NewWeaviateWellknownReadinessParams

func NewWeaviateWellknownReadinessParams() *WeaviateWellknownReadinessParams

NewWeaviateWellknownReadinessParams creates a new WeaviateWellknownReadinessParams 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 NewWeaviateWellknownReadinessParamsWithContext

func NewWeaviateWellknownReadinessParamsWithContext(ctx context.Context) *WeaviateWellknownReadinessParams

NewWeaviateWellknownReadinessParamsWithContext creates a new WeaviateWellknownReadinessParams object with the ability to set a context for a request.

func NewWeaviateWellknownReadinessParamsWithHTTPClient

func NewWeaviateWellknownReadinessParamsWithHTTPClient(client *http.Client) *WeaviateWellknownReadinessParams

NewWeaviateWellknownReadinessParamsWithHTTPClient creates a new WeaviateWellknownReadinessParams object with the ability to set a custom HTTPClient for a request.

func NewWeaviateWellknownReadinessParamsWithTimeout

func NewWeaviateWellknownReadinessParamsWithTimeout(timeout time.Duration) *WeaviateWellknownReadinessParams

NewWeaviateWellknownReadinessParamsWithTimeout creates a new WeaviateWellknownReadinessParams object with the ability to set a timeout on a request.

func (*WeaviateWellknownReadinessParams) SetContext

SetContext adds the context to the weaviate wellknown readiness params

func (*WeaviateWellknownReadinessParams) SetDefaults added in v1.18.0

func (o *WeaviateWellknownReadinessParams) SetDefaults()

SetDefaults hydrates default values in the weaviate wellknown readiness params (not the query body).

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

func (*WeaviateWellknownReadinessParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the weaviate wellknown readiness params

func (*WeaviateWellknownReadinessParams) SetTimeout

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

SetTimeout adds the timeout to the weaviate wellknown readiness params

func (*WeaviateWellknownReadinessParams) WithContext

WithContext adds the context to the weaviate wellknown readiness params

func (*WeaviateWellknownReadinessParams) WithDefaults added in v1.18.0

WithDefaults hydrates default values in the weaviate wellknown readiness params (not the query body).

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

func (*WeaviateWellknownReadinessParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the weaviate wellknown readiness params

func (*WeaviateWellknownReadinessParams) WithTimeout

WithTimeout adds the timeout to the weaviate wellknown readiness params

func (*WeaviateWellknownReadinessParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type WeaviateWellknownReadinessReader

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

WeaviateWellknownReadinessReader is a Reader for the WeaviateWellknownReadiness structure.

func (*WeaviateWellknownReadinessReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type WeaviateWellknownReadinessServiceUnavailable

type WeaviateWellknownReadinessServiceUnavailable struct {
}

WeaviateWellknownReadinessServiceUnavailable describes a response with status code 503, with default header values.

The application is currently not able to serve traffic. If other horizontal replicas of weaviate are available and they are capable of receiving traffic, all traffic should be redirected there instead.

func NewWeaviateWellknownReadinessServiceUnavailable

func NewWeaviateWellknownReadinessServiceUnavailable() *WeaviateWellknownReadinessServiceUnavailable

NewWeaviateWellknownReadinessServiceUnavailable creates a WeaviateWellknownReadinessServiceUnavailable with default headers values

func (*WeaviateWellknownReadinessServiceUnavailable) Code added in v1.18.0

Code gets the status code for the weaviate wellknown readiness service unavailable response

func (*WeaviateWellknownReadinessServiceUnavailable) Error

func (*WeaviateWellknownReadinessServiceUnavailable) IsClientError added in v1.18.0

IsClientError returns true when this weaviate wellknown readiness service unavailable response has a 4xx status code

func (*WeaviateWellknownReadinessServiceUnavailable) IsCode added in v1.18.0

IsCode returns true when this weaviate wellknown readiness service unavailable response a status code equal to that given

func (*WeaviateWellknownReadinessServiceUnavailable) IsRedirect added in v1.18.0

IsRedirect returns true when this weaviate wellknown readiness service unavailable response has a 3xx status code

func (*WeaviateWellknownReadinessServiceUnavailable) IsServerError added in v1.18.0

IsServerError returns true when this weaviate wellknown readiness service unavailable response has a 5xx status code

func (*WeaviateWellknownReadinessServiceUnavailable) IsSuccess added in v1.18.0

IsSuccess returns true when this weaviate wellknown readiness service unavailable response has a 2xx status code

func (*WeaviateWellknownReadinessServiceUnavailable) String added in v1.18.0

Jump to

Keyboard shortcuts

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