Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type MetaGetForbidden
- func (o *MetaGetForbidden) Code() int
- func (o *MetaGetForbidden) Error() string
- func (o *MetaGetForbidden) GetPayload() *models.ErrorResponse
- func (o *MetaGetForbidden) IsClientError() bool
- func (o *MetaGetForbidden) IsCode(code int) bool
- func (o *MetaGetForbidden) IsRedirect() bool
- func (o *MetaGetForbidden) IsServerError() bool
- func (o *MetaGetForbidden) IsSuccess() bool
- func (o *MetaGetForbidden) String() string
- type MetaGetInternalServerError
- func (o *MetaGetInternalServerError) Code() int
- func (o *MetaGetInternalServerError) Error() string
- func (o *MetaGetInternalServerError) GetPayload() *models.ErrorResponse
- func (o *MetaGetInternalServerError) IsClientError() bool
- func (o *MetaGetInternalServerError) IsCode(code int) bool
- func (o *MetaGetInternalServerError) IsRedirect() bool
- func (o *MetaGetInternalServerError) IsServerError() bool
- func (o *MetaGetInternalServerError) IsSuccess() bool
- func (o *MetaGetInternalServerError) String() string
- type MetaGetOK
- func (o *MetaGetOK) Code() int
- func (o *MetaGetOK) Error() string
- func (o *MetaGetOK) GetPayload() *models.Meta
- func (o *MetaGetOK) IsClientError() bool
- func (o *MetaGetOK) IsCode(code int) bool
- func (o *MetaGetOK) IsRedirect() bool
- func (o *MetaGetOK) IsServerError() bool
- func (o *MetaGetOK) IsSuccess() bool
- func (o *MetaGetOK) String() string
- type MetaGetParams
- func (o *MetaGetParams) SetContext(ctx context.Context)
- func (o *MetaGetParams) SetDefaults()
- func (o *MetaGetParams) SetHTTPClient(client *http.Client)
- func (o *MetaGetParams) SetTimeout(timeout time.Duration)
- func (o *MetaGetParams) WithContext(ctx context.Context) *MetaGetParams
- func (o *MetaGetParams) WithDefaults() *MetaGetParams
- func (o *MetaGetParams) WithHTTPClient(client *http.Client) *MetaGetParams
- func (o *MetaGetParams) WithTimeout(timeout time.Duration) *MetaGetParams
- func (o *MetaGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MetaGetReader
- type MetaGetUnauthorized
- func (o *MetaGetUnauthorized) Code() int
- func (o *MetaGetUnauthorized) Error() string
- func (o *MetaGetUnauthorized) IsClientError() bool
- func (o *MetaGetUnauthorized) IsCode(code int) bool
- func (o *MetaGetUnauthorized) IsRedirect() bool
- func (o *MetaGetUnauthorized) IsServerError() bool
- func (o *MetaGetUnauthorized) IsSuccess() bool
- func (o *MetaGetUnauthorized) String() string
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 (o *MetaGetInternalServerError) Error() string
func (*MetaGetInternalServerError) GetPayload ¶
func (o *MetaGetInternalServerError) GetPayload() *models.ErrorResponse
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 ¶
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) GetPayload ¶
func (*MetaGetOK) IsClientError ¶ added in v1.18.0
IsClientError returns true when this meta get o k response has a 4xx status code
func (*MetaGetOK) IsCode ¶ added in v1.18.0
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
IsRedirect returns true when this meta get o k response has a 3xx status code
func (*MetaGetOK) IsServerError ¶ added in v1.18.0
IsServerError returns true when this meta get o k response has a 5xx status code
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