api

package
v1.0.0-alpha.17 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.11.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func NewTigrisBeginTransactionRequest

func NewTigrisBeginTransactionRequest(server string, db string, body TigrisBeginTransactionJSONRequestBody) (*http.Request, error)

NewTigrisBeginTransactionRequest calls the generic TigrisBeginTransaction builder with application/json body

func NewTigrisBeginTransactionRequestWithBody

func NewTigrisBeginTransactionRequestWithBody(server string, db string, contentType string, body io.Reader) (*http.Request, error)

NewTigrisBeginTransactionRequestWithBody generates requests for TigrisBeginTransaction with any type of body

func NewTigrisCommitTransactionRequest

func NewTigrisCommitTransactionRequest(server string, db string, body TigrisCommitTransactionJSONRequestBody) (*http.Request, error)

NewTigrisCommitTransactionRequest calls the generic TigrisCommitTransaction builder with application/json body

func NewTigrisCommitTransactionRequestWithBody

func NewTigrisCommitTransactionRequestWithBody(server string, db string, contentType string, body io.Reader) (*http.Request, error)

NewTigrisCommitTransactionRequestWithBody generates requests for TigrisCommitTransaction with any type of body

func NewTigrisCreateDatabaseRequest

func NewTigrisCreateDatabaseRequest(server string, db string, body TigrisCreateDatabaseJSONRequestBody) (*http.Request, error)

NewTigrisCreateDatabaseRequest calls the generic TigrisCreateDatabase builder with application/json body

func NewTigrisCreateDatabaseRequestWithBody

func NewTigrisCreateDatabaseRequestWithBody(server string, db string, contentType string, body io.Reader) (*http.Request, error)

NewTigrisCreateDatabaseRequestWithBody generates requests for TigrisCreateDatabase with any type of body

func NewTigrisCreateOrUpdateCollectionRequest

func NewTigrisCreateOrUpdateCollectionRequest(server string, db string, collection string, body TigrisCreateOrUpdateCollectionJSONRequestBody) (*http.Request, error)

NewTigrisCreateOrUpdateCollectionRequest calls the generic TigrisCreateOrUpdateCollection builder with application/json body

func NewTigrisCreateOrUpdateCollectionRequestWithBody

func NewTigrisCreateOrUpdateCollectionRequestWithBody(server string, db string, collection string, contentType string, body io.Reader) (*http.Request, error)

NewTigrisCreateOrUpdateCollectionRequestWithBody generates requests for TigrisCreateOrUpdateCollection with any type of body

func NewTigrisDeleteRequest

func NewTigrisDeleteRequest(server string, db string, collection string, body TigrisDeleteJSONRequestBody) (*http.Request, error)

NewTigrisDeleteRequest calls the generic TigrisDelete builder with application/json body

func NewTigrisDeleteRequestWithBody

func NewTigrisDeleteRequestWithBody(server string, db string, collection string, contentType string, body io.Reader) (*http.Request, error)

NewTigrisDeleteRequestWithBody generates requests for TigrisDelete with any type of body

func NewTigrisDescribeCollectionRequest

func NewTigrisDescribeCollectionRequest(server string, db string, collection string, body TigrisDescribeCollectionJSONRequestBody) (*http.Request, error)

NewTigrisDescribeCollectionRequest calls the generic TigrisDescribeCollection builder with application/json body

func NewTigrisDescribeCollectionRequestWithBody

func NewTigrisDescribeCollectionRequestWithBody(server string, db string, collection string, contentType string, body io.Reader) (*http.Request, error)

NewTigrisDescribeCollectionRequestWithBody generates requests for TigrisDescribeCollection with any type of body

func NewTigrisDescribeDatabaseRequest

func NewTigrisDescribeDatabaseRequest(server string, db string, body TigrisDescribeDatabaseJSONRequestBody) (*http.Request, error)

NewTigrisDescribeDatabaseRequest calls the generic TigrisDescribeDatabase builder with application/json body

func NewTigrisDescribeDatabaseRequestWithBody

func NewTigrisDescribeDatabaseRequestWithBody(server string, db string, contentType string, body io.Reader) (*http.Request, error)

NewTigrisDescribeDatabaseRequestWithBody generates requests for TigrisDescribeDatabase with any type of body

func NewTigrisDropCollectionRequest

func NewTigrisDropCollectionRequest(server string, db string, collection string, body TigrisDropCollectionJSONRequestBody) (*http.Request, error)

NewTigrisDropCollectionRequest calls the generic TigrisDropCollection builder with application/json body

func NewTigrisDropCollectionRequestWithBody

func NewTigrisDropCollectionRequestWithBody(server string, db string, collection string, contentType string, body io.Reader) (*http.Request, error)

NewTigrisDropCollectionRequestWithBody generates requests for TigrisDropCollection with any type of body

func NewTigrisDropDatabaseRequest

func NewTigrisDropDatabaseRequest(server string, db string, body TigrisDropDatabaseJSONRequestBody) (*http.Request, error)

NewTigrisDropDatabaseRequest calls the generic TigrisDropDatabase builder with application/json body

func NewTigrisDropDatabaseRequestWithBody

func NewTigrisDropDatabaseRequestWithBody(server string, db string, contentType string, body io.Reader) (*http.Request, error)

NewTigrisDropDatabaseRequestWithBody generates requests for TigrisDropDatabase with any type of body

func NewTigrisGetInfoRequest

func NewTigrisGetInfoRequest(server string) (*http.Request, error)

NewTigrisGetInfoRequest generates requests for TigrisGetInfo

func NewTigrisInsertRequest

func NewTigrisInsertRequest(server string, db string, collection string, body TigrisInsertJSONRequestBody) (*http.Request, error)

NewTigrisInsertRequest calls the generic TigrisInsert builder with application/json body

func NewTigrisInsertRequestWithBody

func NewTigrisInsertRequestWithBody(server string, db string, collection string, contentType string, body io.Reader) (*http.Request, error)

NewTigrisInsertRequestWithBody generates requests for TigrisInsert with any type of body

func NewTigrisListCollectionsRequest

func NewTigrisListCollectionsRequest(server string, db string, body TigrisListCollectionsJSONRequestBody) (*http.Request, error)

NewTigrisListCollectionsRequest calls the generic TigrisListCollections builder with application/json body

func NewTigrisListCollectionsRequestWithBody

func NewTigrisListCollectionsRequestWithBody(server string, db string, contentType string, body io.Reader) (*http.Request, error)

NewTigrisListCollectionsRequestWithBody generates requests for TigrisListCollections with any type of body

func NewTigrisListDatabasesRequest

func NewTigrisListDatabasesRequest(server string) (*http.Request, error)

NewTigrisListDatabasesRequest generates requests for TigrisListDatabases

func NewTigrisReadRequest

func NewTigrisReadRequest(server string, db string, collection string, body TigrisReadJSONRequestBody) (*http.Request, error)

NewTigrisReadRequest calls the generic TigrisRead builder with application/json body

func NewTigrisReadRequestWithBody

func NewTigrisReadRequestWithBody(server string, db string, collection string, contentType string, body io.Reader) (*http.Request, error)

NewTigrisReadRequestWithBody generates requests for TigrisRead with any type of body

func NewTigrisReplaceRequest

func NewTigrisReplaceRequest(server string, db string, collection string, body TigrisReplaceJSONRequestBody) (*http.Request, error)

NewTigrisReplaceRequest calls the generic TigrisReplace builder with application/json body

func NewTigrisReplaceRequestWithBody

func NewTigrisReplaceRequestWithBody(server string, db string, collection string, contentType string, body io.Reader) (*http.Request, error)

NewTigrisReplaceRequestWithBody generates requests for TigrisReplace with any type of body

func NewTigrisRollbackTransactionRequest

func NewTigrisRollbackTransactionRequest(server string, db string, body TigrisRollbackTransactionJSONRequestBody) (*http.Request, error)

NewTigrisRollbackTransactionRequest calls the generic TigrisRollbackTransaction builder with application/json body

func NewTigrisRollbackTransactionRequestWithBody

func NewTigrisRollbackTransactionRequestWithBody(server string, db string, contentType string, body io.Reader) (*http.Request, error)

NewTigrisRollbackTransactionRequestWithBody generates requests for TigrisRollbackTransaction with any type of body

func NewTigrisStreamRequest

func NewTigrisStreamRequest(server string, db string, body TigrisStreamJSONRequestBody) (*http.Request, error)

NewTigrisStreamRequest calls the generic TigrisStream builder with application/json body

func NewTigrisStreamRequestWithBody

func NewTigrisStreamRequestWithBody(server string, db string, contentType string, body io.Reader) (*http.Request, error)

NewTigrisStreamRequestWithBody generates requests for TigrisStream with any type of body

func NewTigrisUpdateRequest

func NewTigrisUpdateRequest(server string, db string, collection string, body TigrisUpdateJSONRequestBody) (*http.Request, error)

NewTigrisUpdateRequest calls the generic TigrisUpdate builder with application/json body

func NewTigrisUpdateRequestWithBody

func NewTigrisUpdateRequestWithBody(server string, db string, collection string, contentType string, body io.Reader) (*http.Request, error)

NewTigrisUpdateRequestWithBody generates requests for TigrisUpdate with any type of body

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

Types

type BeginTransactionRequest

type BeginTransactionRequest struct {
	// Options that can be used to modify the transaction semantics.
	Options *TransactionOptions `json:"options,omitempty"`
}

Start new transaction in database specified by "db".

type BeginTransactionResponse

type BeginTransactionResponse struct {
	// Contains ID which uniquely identifies transaction This context is returned by BeginTransaction request and should be passed in the subsequent requests in order to run them in the context of the same transaction.
	TxCtx *TransactionCtx `json:"tx_ctx,omitempty"`
}

Start transaction returns transaction context which uniquely identifies the transaction

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) TigrisBeginTransaction

func (c *Client) TigrisBeginTransaction(ctx context.Context, db string, body TigrisBeginTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisBeginTransactionWithBody

func (c *Client) TigrisBeginTransactionWithBody(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisCommitTransaction

func (c *Client) TigrisCommitTransaction(ctx context.Context, db string, body TigrisCommitTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisCommitTransactionWithBody

func (c *Client) TigrisCommitTransactionWithBody(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisCreateDatabase

func (c *Client) TigrisCreateDatabase(ctx context.Context, db string, body TigrisCreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisCreateDatabaseWithBody

func (c *Client) TigrisCreateDatabaseWithBody(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisCreateOrUpdateCollection

func (c *Client) TigrisCreateOrUpdateCollection(ctx context.Context, db string, collection string, body TigrisCreateOrUpdateCollectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisCreateOrUpdateCollectionWithBody

func (c *Client) TigrisCreateOrUpdateCollectionWithBody(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisDelete

func (c *Client) TigrisDelete(ctx context.Context, db string, collection string, body TigrisDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisDeleteWithBody

func (c *Client) TigrisDeleteWithBody(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisDescribeCollection

func (c *Client) TigrisDescribeCollection(ctx context.Context, db string, collection string, body TigrisDescribeCollectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisDescribeCollectionWithBody

func (c *Client) TigrisDescribeCollectionWithBody(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisDescribeDatabase

func (c *Client) TigrisDescribeDatabase(ctx context.Context, db string, body TigrisDescribeDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisDescribeDatabaseWithBody

func (c *Client) TigrisDescribeDatabaseWithBody(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisDropCollection

func (c *Client) TigrisDropCollection(ctx context.Context, db string, collection string, body TigrisDropCollectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisDropCollectionWithBody

func (c *Client) TigrisDropCollectionWithBody(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisDropDatabase

func (c *Client) TigrisDropDatabase(ctx context.Context, db string, body TigrisDropDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisDropDatabaseWithBody

func (c *Client) TigrisDropDatabaseWithBody(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisGetInfo

func (c *Client) TigrisGetInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisInsert

func (c *Client) TigrisInsert(ctx context.Context, db string, collection string, body TigrisInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisInsertWithBody

func (c *Client) TigrisInsertWithBody(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisListCollections

func (c *Client) TigrisListCollections(ctx context.Context, db string, body TigrisListCollectionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisListCollectionsWithBody

func (c *Client) TigrisListCollectionsWithBody(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisListDatabases

func (c *Client) TigrisListDatabases(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisRead

func (c *Client) TigrisRead(ctx context.Context, db string, collection string, body TigrisReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisReadWithBody

func (c *Client) TigrisReadWithBody(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisReplace

func (c *Client) TigrisReplace(ctx context.Context, db string, collection string, body TigrisReplaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisReplaceWithBody

func (c *Client) TigrisReplaceWithBody(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisRollbackTransaction

func (c *Client) TigrisRollbackTransaction(ctx context.Context, db string, body TigrisRollbackTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisRollbackTransactionWithBody

func (c *Client) TigrisRollbackTransactionWithBody(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisStream

func (c *Client) TigrisStream(ctx context.Context, db string, body TigrisStreamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisStreamWithBody

func (c *Client) TigrisStreamWithBody(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisUpdate

func (c *Client) TigrisUpdate(ctx context.Context, db string, collection string, body TigrisUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TigrisUpdateWithBody

func (c *Client) TigrisUpdateWithBody(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// TigrisListDatabases request
	TigrisListDatabases(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TigrisListCollections request with any body
	TigrisListCollectionsWithBody(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TigrisListCollections(ctx context.Context, db string, body TigrisListCollectionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TigrisCreateOrUpdateCollection request with any body
	TigrisCreateOrUpdateCollectionWithBody(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TigrisCreateOrUpdateCollection(ctx context.Context, db string, collection string, body TigrisCreateOrUpdateCollectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TigrisDescribeCollection request with any body
	TigrisDescribeCollectionWithBody(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TigrisDescribeCollection(ctx context.Context, db string, collection string, body TigrisDescribeCollectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TigrisDelete request with any body
	TigrisDeleteWithBody(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TigrisDelete(ctx context.Context, db string, collection string, body TigrisDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TigrisInsert request with any body
	TigrisInsertWithBody(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TigrisInsert(ctx context.Context, db string, collection string, body TigrisInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TigrisRead request with any body
	TigrisReadWithBody(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TigrisRead(ctx context.Context, db string, collection string, body TigrisReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TigrisReplace request with any body
	TigrisReplaceWithBody(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TigrisReplace(ctx context.Context, db string, collection string, body TigrisReplaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TigrisUpdate request with any body
	TigrisUpdateWithBody(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TigrisUpdate(ctx context.Context, db string, collection string, body TigrisUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TigrisDropCollection request with any body
	TigrisDropCollectionWithBody(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TigrisDropCollection(ctx context.Context, db string, collection string, body TigrisDropCollectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TigrisCreateDatabase request with any body
	TigrisCreateDatabaseWithBody(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TigrisCreateDatabase(ctx context.Context, db string, body TigrisCreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TigrisDescribeDatabase request with any body
	TigrisDescribeDatabaseWithBody(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TigrisDescribeDatabase(ctx context.Context, db string, body TigrisDescribeDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TigrisDropDatabase request with any body
	TigrisDropDatabaseWithBody(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TigrisDropDatabase(ctx context.Context, db string, body TigrisDropDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TigrisStream request with any body
	TigrisStreamWithBody(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TigrisStream(ctx context.Context, db string, body TigrisStreamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TigrisBeginTransaction request with any body
	TigrisBeginTransactionWithBody(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TigrisBeginTransaction(ctx context.Context, db string, body TigrisBeginTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TigrisCommitTransaction request with any body
	TigrisCommitTransactionWithBody(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TigrisCommitTransaction(ctx context.Context, db string, body TigrisCommitTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TigrisRollbackTransaction request with any body
	TigrisRollbackTransactionWithBody(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TigrisRollbackTransaction(ctx context.Context, db string, body TigrisRollbackTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TigrisGetInfo request
	TigrisGetInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) TigrisBeginTransactionWithBodyWithResponse

func (c *ClientWithResponses) TigrisBeginTransactionWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisBeginTransactionResponse, error)

TigrisBeginTransactionWithBodyWithResponse request with arbitrary body returning *TigrisBeginTransactionResponse

func (*ClientWithResponses) TigrisBeginTransactionWithResponse

func (c *ClientWithResponses) TigrisBeginTransactionWithResponse(ctx context.Context, db string, body TigrisBeginTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisBeginTransactionResponse, error)

func (*ClientWithResponses) TigrisCommitTransactionWithBodyWithResponse

func (c *ClientWithResponses) TigrisCommitTransactionWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisCommitTransactionResponse, error)

TigrisCommitTransactionWithBodyWithResponse request with arbitrary body returning *TigrisCommitTransactionResponse

func (*ClientWithResponses) TigrisCommitTransactionWithResponse

func (c *ClientWithResponses) TigrisCommitTransactionWithResponse(ctx context.Context, db string, body TigrisCommitTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisCommitTransactionResponse, error)

func (*ClientWithResponses) TigrisCreateDatabaseWithBodyWithResponse

func (c *ClientWithResponses) TigrisCreateDatabaseWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisCreateDatabaseResponse, error)

TigrisCreateDatabaseWithBodyWithResponse request with arbitrary body returning *TigrisCreateDatabaseResponse

func (*ClientWithResponses) TigrisCreateDatabaseWithResponse

func (c *ClientWithResponses) TigrisCreateDatabaseWithResponse(ctx context.Context, db string, body TigrisCreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisCreateDatabaseResponse, error)

func (*ClientWithResponses) TigrisCreateOrUpdateCollectionWithBodyWithResponse

func (c *ClientWithResponses) TigrisCreateOrUpdateCollectionWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisCreateOrUpdateCollectionResponse, error)

TigrisCreateOrUpdateCollectionWithBodyWithResponse request with arbitrary body returning *TigrisCreateOrUpdateCollectionResponse

func (*ClientWithResponses) TigrisCreateOrUpdateCollectionWithResponse

func (c *ClientWithResponses) TigrisCreateOrUpdateCollectionWithResponse(ctx context.Context, db string, collection string, body TigrisCreateOrUpdateCollectionJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisCreateOrUpdateCollectionResponse, error)

func (*ClientWithResponses) TigrisDeleteWithBodyWithResponse

func (c *ClientWithResponses) TigrisDeleteWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisDeleteResponse, error)

TigrisDeleteWithBodyWithResponse request with arbitrary body returning *TigrisDeleteResponse

func (*ClientWithResponses) TigrisDeleteWithResponse

func (c *ClientWithResponses) TigrisDeleteWithResponse(ctx context.Context, db string, collection string, body TigrisDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisDeleteResponse, error)

func (*ClientWithResponses) TigrisDescribeCollectionWithBodyWithResponse

func (c *ClientWithResponses) TigrisDescribeCollectionWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisDescribeCollectionResponse, error)

TigrisDescribeCollectionWithBodyWithResponse request with arbitrary body returning *TigrisDescribeCollectionResponse

func (*ClientWithResponses) TigrisDescribeCollectionWithResponse

func (c *ClientWithResponses) TigrisDescribeCollectionWithResponse(ctx context.Context, db string, collection string, body TigrisDescribeCollectionJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisDescribeCollectionResponse, error)

func (*ClientWithResponses) TigrisDescribeDatabaseWithBodyWithResponse

func (c *ClientWithResponses) TigrisDescribeDatabaseWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisDescribeDatabaseResponse, error)

TigrisDescribeDatabaseWithBodyWithResponse request with arbitrary body returning *TigrisDescribeDatabaseResponse

func (*ClientWithResponses) TigrisDescribeDatabaseWithResponse

func (c *ClientWithResponses) TigrisDescribeDatabaseWithResponse(ctx context.Context, db string, body TigrisDescribeDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisDescribeDatabaseResponse, error)

func (*ClientWithResponses) TigrisDropCollectionWithBodyWithResponse

func (c *ClientWithResponses) TigrisDropCollectionWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisDropCollectionResponse, error)

TigrisDropCollectionWithBodyWithResponse request with arbitrary body returning *TigrisDropCollectionResponse

func (*ClientWithResponses) TigrisDropCollectionWithResponse

func (c *ClientWithResponses) TigrisDropCollectionWithResponse(ctx context.Context, db string, collection string, body TigrisDropCollectionJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisDropCollectionResponse, error)

func (*ClientWithResponses) TigrisDropDatabaseWithBodyWithResponse

func (c *ClientWithResponses) TigrisDropDatabaseWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisDropDatabaseResponse, error)

TigrisDropDatabaseWithBodyWithResponse request with arbitrary body returning *TigrisDropDatabaseResponse

func (*ClientWithResponses) TigrisDropDatabaseWithResponse

func (c *ClientWithResponses) TigrisDropDatabaseWithResponse(ctx context.Context, db string, body TigrisDropDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisDropDatabaseResponse, error)

func (*ClientWithResponses) TigrisGetInfoWithResponse

func (c *ClientWithResponses) TigrisGetInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*TigrisGetInfoResponse, error)

TigrisGetInfoWithResponse request returning *TigrisGetInfoResponse

func (*ClientWithResponses) TigrisInsertWithBodyWithResponse

func (c *ClientWithResponses) TigrisInsertWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisInsertResponse, error)

TigrisInsertWithBodyWithResponse request with arbitrary body returning *TigrisInsertResponse

func (*ClientWithResponses) TigrisInsertWithResponse

func (c *ClientWithResponses) TigrisInsertWithResponse(ctx context.Context, db string, collection string, body TigrisInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisInsertResponse, error)

func (*ClientWithResponses) TigrisListCollectionsWithBodyWithResponse

func (c *ClientWithResponses) TigrisListCollectionsWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisListCollectionsResponse, error)

TigrisListCollectionsWithBodyWithResponse request with arbitrary body returning *TigrisListCollectionsResponse

func (*ClientWithResponses) TigrisListCollectionsWithResponse

func (c *ClientWithResponses) TigrisListCollectionsWithResponse(ctx context.Context, db string, body TigrisListCollectionsJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisListCollectionsResponse, error)

func (*ClientWithResponses) TigrisListDatabasesWithResponse

func (c *ClientWithResponses) TigrisListDatabasesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*TigrisListDatabasesResponse, error)

TigrisListDatabasesWithResponse request returning *TigrisListDatabasesResponse

func (*ClientWithResponses) TigrisReadWithBodyWithResponse

func (c *ClientWithResponses) TigrisReadWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisReadResponse, error)

TigrisReadWithBodyWithResponse request with arbitrary body returning *TigrisReadResponse

func (*ClientWithResponses) TigrisReadWithResponse

func (c *ClientWithResponses) TigrisReadWithResponse(ctx context.Context, db string, collection string, body TigrisReadJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisReadResponse, error)

func (*ClientWithResponses) TigrisReplaceWithBodyWithResponse

func (c *ClientWithResponses) TigrisReplaceWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisReplaceResponse, error)

TigrisReplaceWithBodyWithResponse request with arbitrary body returning *TigrisReplaceResponse

func (*ClientWithResponses) TigrisReplaceWithResponse

func (c *ClientWithResponses) TigrisReplaceWithResponse(ctx context.Context, db string, collection string, body TigrisReplaceJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisReplaceResponse, error)

func (*ClientWithResponses) TigrisRollbackTransactionWithBodyWithResponse

func (c *ClientWithResponses) TigrisRollbackTransactionWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisRollbackTransactionResponse, error)

TigrisRollbackTransactionWithBodyWithResponse request with arbitrary body returning *TigrisRollbackTransactionResponse

func (*ClientWithResponses) TigrisRollbackTransactionWithResponse

func (c *ClientWithResponses) TigrisRollbackTransactionWithResponse(ctx context.Context, db string, body TigrisRollbackTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisRollbackTransactionResponse, error)

func (*ClientWithResponses) TigrisStreamWithBodyWithResponse

func (c *ClientWithResponses) TigrisStreamWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisStreamResponse, error)

TigrisStreamWithBodyWithResponse request with arbitrary body returning *TigrisStreamResponse

func (*ClientWithResponses) TigrisStreamWithResponse

func (c *ClientWithResponses) TigrisStreamWithResponse(ctx context.Context, db string, body TigrisStreamJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisStreamResponse, error)

func (*ClientWithResponses) TigrisUpdateWithBodyWithResponse

func (c *ClientWithResponses) TigrisUpdateWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisUpdateResponse, error)

TigrisUpdateWithBodyWithResponse request with arbitrary body returning *TigrisUpdateResponse

func (*ClientWithResponses) TigrisUpdateWithResponse

func (c *ClientWithResponses) TigrisUpdateWithResponse(ctx context.Context, db string, collection string, body TigrisUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisUpdateResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// TigrisListDatabases request
	TigrisListDatabasesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*TigrisListDatabasesResponse, error)

	// TigrisListCollections request with any body
	TigrisListCollectionsWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisListCollectionsResponse, error)

	TigrisListCollectionsWithResponse(ctx context.Context, db string, body TigrisListCollectionsJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisListCollectionsResponse, error)

	// TigrisCreateOrUpdateCollection request with any body
	TigrisCreateOrUpdateCollectionWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisCreateOrUpdateCollectionResponse, error)

	TigrisCreateOrUpdateCollectionWithResponse(ctx context.Context, db string, collection string, body TigrisCreateOrUpdateCollectionJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisCreateOrUpdateCollectionResponse, error)

	// TigrisDescribeCollection request with any body
	TigrisDescribeCollectionWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisDescribeCollectionResponse, error)

	TigrisDescribeCollectionWithResponse(ctx context.Context, db string, collection string, body TigrisDescribeCollectionJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisDescribeCollectionResponse, error)

	// TigrisDelete request with any body
	TigrisDeleteWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisDeleteResponse, error)

	TigrisDeleteWithResponse(ctx context.Context, db string, collection string, body TigrisDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisDeleteResponse, error)

	// TigrisInsert request with any body
	TigrisInsertWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisInsertResponse, error)

	TigrisInsertWithResponse(ctx context.Context, db string, collection string, body TigrisInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisInsertResponse, error)

	// TigrisRead request with any body
	TigrisReadWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisReadResponse, error)

	TigrisReadWithResponse(ctx context.Context, db string, collection string, body TigrisReadJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisReadResponse, error)

	// TigrisReplace request with any body
	TigrisReplaceWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisReplaceResponse, error)

	TigrisReplaceWithResponse(ctx context.Context, db string, collection string, body TigrisReplaceJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisReplaceResponse, error)

	// TigrisUpdate request with any body
	TigrisUpdateWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisUpdateResponse, error)

	TigrisUpdateWithResponse(ctx context.Context, db string, collection string, body TigrisUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisUpdateResponse, error)

	// TigrisDropCollection request with any body
	TigrisDropCollectionWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisDropCollectionResponse, error)

	TigrisDropCollectionWithResponse(ctx context.Context, db string, collection string, body TigrisDropCollectionJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisDropCollectionResponse, error)

	// TigrisCreateDatabase request with any body
	TigrisCreateDatabaseWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisCreateDatabaseResponse, error)

	TigrisCreateDatabaseWithResponse(ctx context.Context, db string, body TigrisCreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisCreateDatabaseResponse, error)

	// TigrisDescribeDatabase request with any body
	TigrisDescribeDatabaseWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisDescribeDatabaseResponse, error)

	TigrisDescribeDatabaseWithResponse(ctx context.Context, db string, body TigrisDescribeDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisDescribeDatabaseResponse, error)

	// TigrisDropDatabase request with any body
	TigrisDropDatabaseWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisDropDatabaseResponse, error)

	TigrisDropDatabaseWithResponse(ctx context.Context, db string, body TigrisDropDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisDropDatabaseResponse, error)

	// TigrisStream request with any body
	TigrisStreamWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisStreamResponse, error)

	TigrisStreamWithResponse(ctx context.Context, db string, body TigrisStreamJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisStreamResponse, error)

	// TigrisBeginTransaction request with any body
	TigrisBeginTransactionWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisBeginTransactionResponse, error)

	TigrisBeginTransactionWithResponse(ctx context.Context, db string, body TigrisBeginTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisBeginTransactionResponse, error)

	// TigrisCommitTransaction request with any body
	TigrisCommitTransactionWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisCommitTransactionResponse, error)

	TigrisCommitTransactionWithResponse(ctx context.Context, db string, body TigrisCommitTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisCommitTransactionResponse, error)

	// TigrisRollbackTransaction request with any body
	TigrisRollbackTransactionWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TigrisRollbackTransactionResponse, error)

	TigrisRollbackTransactionWithResponse(ctx context.Context, db string, body TigrisRollbackTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*TigrisRollbackTransactionResponse, error)

	// TigrisGetInfo request
	TigrisGetInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*TigrisGetInfoResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CollectionDescription

type CollectionDescription struct {
	// Name of the collection.
	Collection *string             `json:"collection,omitempty"`
	Metadata   *CollectionMetadata `json:"metadata,omitempty"`

	// Collections schema
	Schema json.RawMessage `json:"schema,omitempty"`
}

CollectionDescription defines model for CollectionDescription.

type CollectionInfo

type CollectionInfo struct {
	// Collection name.
	Collection *string             `json:"collection,omitempty"`
	Metadata   *CollectionMetadata `json:"metadata,omitempty"`
}

CollectionInfo defines model for CollectionInfo.

type CollectionMetadata

type CollectionMetadata = map[string]interface{}

CollectionMetadata defines model for CollectionMetadata.

type CollectionOptions

type CollectionOptions struct {
	// Contains ID which uniquely identifies transaction This context is returned by BeginTransaction request and should be passed in the subsequent requests in order to run them in the context of the same transaction.
	TxCtx *TransactionCtx `json:"tx_ctx,omitempty"`
}

Collection requests modifying options.

type CommitTransactionRequest

type CommitTransactionRequest struct {
	// Contains ID which uniquely identifies transaction This context is returned by BeginTransaction request and should be passed in the subsequent requests in order to run them in the context of the same transaction.
	TxCtx *TransactionCtx `json:"tx_ctx,omitempty"`
}

Commit transaction with the given ID

type CommitTransactionResponse

type CommitTransactionResponse struct {
	// Status of commit transaction operation.
	Status *string `json:"status,omitempty"`
}

CommitTransactionResponse defines model for CommitTransactionResponse.

type CreateDatabaseRequest

type CreateDatabaseRequest struct {
	// Database requests modifying options.
	Options *DatabaseOptions `json:"options,omitempty"`
}

CreateDatabaseRequest defines model for CreateDatabaseRequest.

type CreateDatabaseResponse

type CreateDatabaseResponse struct {
	// A detailed response message.
	Message *string `json:"message,omitempty"`

	// An enum with value set as "created".
	Status *string `json:"status,omitempty"`
}

CreateDatabaseResponse defines model for CreateDatabaseResponse.

type CreateOrUpdateCollectionRequest

type CreateOrUpdateCollectionRequest struct {
	OnlyCreate *bool `json:"only_create,omitempty"`

	// Collection requests modifying options.
	Options *CollectionOptions `json:"options,omitempty"`

	// Schema of the documents in this collection. The schema specifications are same as JSON schema specification defined <a href="https://json-schema.org/specification.html" title="here">here</a>. <p></p>The following is an schema example: `{  "title": "user",  "description": "Collection of documents with details of users",  "properties": {    "id": {      "description": "A unique identifier for the user",      "type": "integer"    },    "name": {      "description": "Name of the user",      "type": "string",      "maxLength": 100    },    "balance": {      "description": "User account balance",      "type": "number"    }  },  "primary_key": ["id"] }`
	Schema json.RawMessage `json:"schema,omitempty"`
}

CreateOrUpdateCollectionRequest defines model for CreateOrUpdateCollectionRequest.

type CreateOrUpdateCollectionResponse

type CreateOrUpdateCollectionResponse struct {
	// A detailed response message.
	Message *string `json:"message,omitempty"`

	// An enum with value set as "created" or "updated"
	Status *string `json:"status,omitempty"`
}

CreateOrUpdateCollectionResponse defines model for CreateOrUpdateCollectionResponse.

type DatabaseInfo

type DatabaseInfo struct {
	// Database name.
	Db       *string           `json:"db,omitempty"`
	Metadata *DatabaseMetadata `json:"metadata,omitempty"`
}

DatabaseInfo defines model for DatabaseInfo.

type DatabaseMetadata

type DatabaseMetadata = map[string]interface{}

DatabaseMetadata defines model for DatabaseMetadata.

type DatabaseOptions

type DatabaseOptions = map[string]interface{}

Database requests modifying options.

type DeleteRequest

type DeleteRequest struct {
	// Delete documents which matching specified filter. A filter can simply be key, value where key is the field name and value would be the value for this field. Or a filter can be logical where two or more fields can be logically joined using $or and $and. A few examples of filter: <li> To delete a user document where the id has a value 1: “`{"id": 1 }“` <li> To delete all the user documents where the key "id" has a value 1 or 2 or 3: `{"$or": [{"id": 1}, {"id": 2}, {"id": 3}]}`
	Filter json.RawMessage `json:"filter,omitempty"`

	// Additional options for deleted requests.
	Options *DeleteRequestOptions `json:"options,omitempty"`
}

DeleteRequest defines model for DeleteRequest.

type DeleteRequestOptions

type DeleteRequestOptions struct {
	// Additional options to modify write requests.
	WriteOptions *WriteOptions `json:"write_options,omitempty"`
}

Additional options for deleted requests.

type DeleteResponse

type DeleteResponse struct {
	// Has metadata related to the documents stored.
	Metadata *ResponseMetadata `json:"metadata,omitempty"`

	// an enum with value set as "deleted"
	Status *string `json:"status,omitempty"`
}

DeleteResponse defines model for DeleteResponse.

type DescribeCollectionRequest

type DescribeCollectionRequest struct {
	// Name of the collection.
	Collection *string `json:"collection,omitempty"`

	// Name of the database.
	Db *string `json:"db,omitempty"`

	// Collection requests modifying options.
	Options *CollectionOptions `json:"options,omitempty"`
}

DescribeCollectionRequest defines model for DescribeCollectionRequest.

type DescribeCollectionResponse

type DescribeCollectionResponse struct {
	// Name of the collection.
	Collection *string             `json:"collection,omitempty"`
	Metadata   *CollectionMetadata `json:"metadata,omitempty"`

	// Collections schema
	Schema json.RawMessage `json:"schema,omitempty"`
}

A detailed description about the collection. The description returns collection metadata and the schema.

type DescribeDatabaseRequest

type DescribeDatabaseRequest struct {
	// Name of the database.
	Db *string `json:"db,omitempty"`
}

DescribeDatabaseRequest defines model for DescribeDatabaseRequest.

type DescribeDatabaseResponse

type DescribeDatabaseResponse struct {
	// A detailed description about all the collections. The description returns collection metadata and the schema.
	Collections *[]CollectionDescription `json:"collections,omitempty"`

	// Name of the database.
	Db       *string           `json:"db,omitempty"`
	Metadata *DatabaseMetadata `json:"metadata,omitempty"`
}

A detailed description about the database and all associated collections. Description of the collection includes schema details as well.

type DropCollectionRequest

type DropCollectionRequest struct {
	// Collection requests modifying options.
	Options *CollectionOptions `json:"options,omitempty"`
}

DropCollectionRequest defines model for DropCollectionRequest.

type DropCollectionResponse

type DropCollectionResponse struct {
	// A detailed response message.
	Message *string `json:"message,omitempty"`

	// An enum with value set as "dropped".
	Status *string `json:"status,omitempty"`
}

DropCollectionResponse defines model for DropCollectionResponse.

type DropDatabaseRequest

type DropDatabaseRequest struct {
	// Database requests modifying options.
	Options *DatabaseOptions `json:"options,omitempty"`
}

DropDatabaseRequest defines model for DropDatabaseRequest.

type DropDatabaseResponse

type DropDatabaseResponse struct {
	// A detailed response message.
	Message *string `json:"message,omitempty"`

	// An enum with value set as "dropped".
	Status *string `json:"status,omitempty"`
}

DropDatabaseResponse defines model for DropDatabaseResponse.

type Error

type Error struct {
	// The status code is a short, machine parsable string, which uniquely identifies the error type. Tigris to HTTP code mapping [here](/reference/http-code)
	Code *ErrorCode `json:"code,omitempty"`

	// A developer-facing descriptive error message
	Message *string `json:"message,omitempty"`
}

The Error type defines a logical error model

type ErrorCode

type ErrorCode string

The status code is a short, machine parsable string, which uniquely identifies the error type. Tigris to HTTP code mapping [here](/reference/http-code)

const (
	ABORTED            ErrorCode = "ABORTED"
	ALREADYEXISTS      ErrorCode = "ALREADY_EXISTS"
	BADGATEWAY         ErrorCode = "BAD_GATEWAY"
	CANCELLED          ErrorCode = "CANCELLED"
	CONFLICT           ErrorCode = "CONFLICT"
	DATALOSS           ErrorCode = "DATA_LOSS"
	DEADLINEEXCEEDED   ErrorCode = "DEADLINE_EXCEEDED"
	FAILEDPRECONDITION ErrorCode = "FAILED_PRECONDITION"
	INTERNAL           ErrorCode = "INTERNAL"
	INVALIDARGUMENT    ErrorCode = "INVALID_ARGUMENT"
	NOTFOUND           ErrorCode = "NOT_FOUND"
	OK                 ErrorCode = "OK"
	OUTOFRANGE         ErrorCode = "OUT_OF_RANGE"
	PERMISSIONDENIED   ErrorCode = "PERMISSION_DENIED"
	RESOURCEEXHAUSTED  ErrorCode = "RESOURCE_EXHAUSTED"
	UNAUTHENTICATED    ErrorCode = "UNAUTHENTICATED"
	UNAVAILABLE        ErrorCode = "UNAVAILABLE"
	UNIMPLEMENTED      ErrorCode = "UNIMPLEMENTED"
	UNKNOWN            ErrorCode = "UNKNOWN"
)

Defines values for ErrorCode.

type GetInfoResponse

type GetInfoResponse struct {
	ServerVersion *string `json:"server_version,omitempty"`
}

GetInfoResponse defines model for GetInfoResponse.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InsertRequest

type InsertRequest struct {
	// Array of documents to insert. Each document is a JSON object.
	Documents *[]json.RawMessage `json:"documents,omitempty"`

	// additional options for insert requests.
	Options *InsertRequestOptions `json:"options,omitempty"`
}

InsertRequest defines model for InsertRequest.

type InsertRequestOptions

type InsertRequestOptions struct {
	// Additional options to modify write requests.
	WriteOptions *WriteOptions `json:"write_options,omitempty"`
}

additional options for insert requests.

type InsertResponse

type InsertResponse struct {
	// an array returns the value of the primary keys.
	Keys *[][]byte `json:"keys,omitempty"`

	// Has metadata related to the documents stored.
	Metadata *ResponseMetadata `json:"metadata,omitempty"`

	// An enum with value set as "inserted"
	Status *string `json:"status,omitempty"`
}

InsertResponse defines model for InsertResponse.

type ListCollectionsRequest

type ListCollectionsRequest struct {
	// Collection requests modifying options.
	Options *CollectionOptions `json:"options,omitempty"`
}

ListCollectionsRequest defines model for ListCollectionsRequest.

type ListCollectionsResponse

type ListCollectionsResponse struct {
	// List of the collections info in the database.
	Collections *[]CollectionInfo `json:"collections,omitempty"`

	// Name of the database.
	Db *string `json:"db,omitempty"`
}

ListCollectionsResponse defines model for ListCollectionsResponse.

type ListDatabasesResponse

type ListDatabasesResponse struct {
	// List of the databases.
	Databases *[]DatabaseInfo `json:"databases,omitempty"`
}

ListDatabasesResponse defines model for ListDatabasesResponse.

type ReadRequest

type ReadRequest struct {
	// To read specific fields from a document. Default is all.
	Fields json.RawMessage `json:"fields,omitempty"`

	// Returns documents matching this filter. A filter can simply be key, value where key is the field name and value would be the value for this field. Or a filter can be logical where two or more fields can be logically joined using $or and $and. A few examples of filter: <li> To read a user document where the id has a value 1: “`{"id": 1 }“` <li> To read all the user documents where the key "id" has a value 1 or 2 or 3: `{"$or": [{"id": 1}, {"id": 2}, {"id": 3}]}`
	Filter json.RawMessage `json:"filter,omitempty"`

	// Options that can be used to modify the results, for example "limit" to control the number of documents returned by the server.
	Options *ReadRequestOptions `json:"options,omitempty"`
}

ReadRequest defines model for ReadRequest.

type ReadRequestOptions

type ReadRequestOptions struct {
	// Limit the number of documents returned by the read operation.
	Limit *int64 `json:"limit,omitempty"`

	// A cursor for use in pagination. The next streams will return documents after this offset.
	Offset *[]byte `json:"offset,omitempty"`

	// Number of documents to skip before starting to return resulting documents.
	Skip *int64 `json:"skip,omitempty"`

	// Contains ID which uniquely identifies transaction This context is returned by BeginTransaction request and should be passed in the subsequent requests in order to run them in the context of the same transaction.
	TxCtx *TransactionCtx `json:"tx_ctx,omitempty"`
}

Options that can be used to modify the results, for example "limit" to control the number of documents returned by the server.

type ReadResponse

type ReadResponse struct {
	// Object containing the collection document.
	Data json.RawMessage `json:"data,omitempty"`

	// Has metadata related to the documents stored.
	Metadata *ResponseMetadata `json:"metadata,omitempty"`

	// An internal key, used for pagination.
	ResumeToken *[]byte `json:"resume_token,omitempty"`
}

ReadResponse defines model for ReadResponse.

type ReplaceRequest

type ReplaceRequest struct {
	// Array of documents to be replaced. Each document is a JSON object.
	Documents *[]json.RawMessage `json:"documents,omitempty"`

	// Additional options for replace requests.
	Options *ReplaceRequestOptions `json:"options,omitempty"`
}

ReplaceRequest defines model for ReplaceRequest.

type ReplaceRequestOptions

type ReplaceRequestOptions struct {
	// Additional options to modify write requests.
	WriteOptions *WriteOptions `json:"write_options,omitempty"`
}

Additional options for replace requests.

type ReplaceResponse

type ReplaceResponse struct {
	// an array returns the value of the primary keys.
	Keys *[][]byte `json:"keys,omitempty"`

	// Has metadata related to the documents stored.
	Metadata *ResponseMetadata `json:"metadata,omitempty"`

	// an enum with value set as "replaced"
	Status *string `json:"status,omitempty"`
}

ReplaceResponse defines model for ReplaceResponse.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ResponseMetadata

type ResponseMetadata struct {
	// Time at which the document was inserted/replaced. Measured in nano-seconds since the Unix epoch.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Time at which the document was deleted. Measured in nano-seconds since the Unix epoch.
	DeletedAt *time.Time `json:"deleted_at,omitempty"`

	// Time at which the document was updated. Measured in nano-seconds since the Unix epoch.
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

Has metadata related to the documents stored.

type RollbackTransactionRequest

type RollbackTransactionRequest struct {
	// Contains ID which uniquely identifies transaction This context is returned by BeginTransaction request and should be passed in the subsequent requests in order to run them in the context of the same transaction.
	TxCtx *TransactionCtx `json:"tx_ctx,omitempty"`
}

Rollback transaction with the given ID

type RollbackTransactionResponse

type RollbackTransactionResponse struct {
	// Status of rollback transaction operation.
	Status *string `json:"status,omitempty"`
}

RollbackTransactionResponse defines model for RollbackTransactionResponse.

type Status

type Status struct {
	// The Error type defines a logical error model
	Error *Error `json:"error,omitempty"`
}

Status defines model for Status.

type StreamEvent

type StreamEvent struct {
	Collection *string         `json:"collection,omitempty"`
	Data       json.RawMessage `json:"data,omitempty"`
	Key        *[]byte         `json:"key,omitempty"`
	Last       *bool           `json:"last,omitempty"`
	Lkey       *[]byte         `json:"lkey,omitempty"`
	Op         *string         `json:"op,omitempty"`
	Rkey       *[]byte         `json:"rkey,omitempty"`
	TxId       *[]byte         `json:"tx_id,omitempty"`
}

StreamEvent defines model for StreamEvent.

type StreamRequest

type StreamRequest struct {
	Collection *string               `json:"collection,omitempty"`
	Db         *string               `json:"db,omitempty"`
	Options    *StreamRequestOptions `json:"options,omitempty"`
}

StreamRequest defines model for StreamRequest.

type StreamRequestOptions

type StreamRequestOptions = map[string]interface{}

StreamRequestOptions defines model for StreamRequestOptions.

type StreamResponse

type StreamResponse struct {
	Event *StreamEvent `json:"event,omitempty"`
}

StreamResponse defines model for StreamResponse.

type StreamingReadResponse

type StreamingReadResponse struct {
	// The Error type defines a logical error model
	Error  *Error        `json:"error,omitempty"`
	Result *ReadResponse `json:"result,omitempty"`
}

StreamingReadResponse defines model for StreamingReadResponse.

type StreamingStreamResponse

type StreamingStreamResponse struct {
	// The Error type defines a logical error model
	Error  *Error          `json:"error,omitempty"`
	Result *StreamResponse `json:"result,omitempty"`
}

StreamingStreamResponse defines model for StreamingStreamResponse.

type TigrisBeginTransactionJSONBody

type TigrisBeginTransactionJSONBody = BeginTransactionRequest

TigrisBeginTransactionJSONBody defines parameters for TigrisBeginTransaction.

type TigrisBeginTransactionJSONRequestBody

type TigrisBeginTransactionJSONRequestBody = TigrisBeginTransactionJSONBody

TigrisBeginTransactionJSONRequestBody defines body for TigrisBeginTransaction for application/json ContentType.

type TigrisBeginTransactionResponse

type TigrisBeginTransactionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *BeginTransactionResponse
	JSONDefault  *Status
}

func ParseTigrisBeginTransactionResponse

func ParseTigrisBeginTransactionResponse(rsp *http.Response) (*TigrisBeginTransactionResponse, error)

ParseTigrisBeginTransactionResponse parses an HTTP response from a TigrisBeginTransactionWithResponse call

func (TigrisBeginTransactionResponse) Status

Status returns HTTPResponse.Status

func (TigrisBeginTransactionResponse) StatusCode

func (r TigrisBeginTransactionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TigrisCommitTransactionJSONBody

type TigrisCommitTransactionJSONBody = CommitTransactionRequest

TigrisCommitTransactionJSONBody defines parameters for TigrisCommitTransaction.

type TigrisCommitTransactionJSONRequestBody

type TigrisCommitTransactionJSONRequestBody = TigrisCommitTransactionJSONBody

TigrisCommitTransactionJSONRequestBody defines body for TigrisCommitTransaction for application/json ContentType.

type TigrisCommitTransactionResponse

type TigrisCommitTransactionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CommitTransactionResponse
	JSONDefault  *Status
}

func ParseTigrisCommitTransactionResponse

func ParseTigrisCommitTransactionResponse(rsp *http.Response) (*TigrisCommitTransactionResponse, error)

ParseTigrisCommitTransactionResponse parses an HTTP response from a TigrisCommitTransactionWithResponse call

func (TigrisCommitTransactionResponse) Status

Status returns HTTPResponse.Status

func (TigrisCommitTransactionResponse) StatusCode

func (r TigrisCommitTransactionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TigrisCreateDatabaseJSONBody

type TigrisCreateDatabaseJSONBody = CreateDatabaseRequest

TigrisCreateDatabaseJSONBody defines parameters for TigrisCreateDatabase.

type TigrisCreateDatabaseJSONRequestBody

type TigrisCreateDatabaseJSONRequestBody = TigrisCreateDatabaseJSONBody

TigrisCreateDatabaseJSONRequestBody defines body for TigrisCreateDatabase for application/json ContentType.

type TigrisCreateDatabaseResponse

type TigrisCreateDatabaseResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CreateDatabaseResponse
	JSONDefault  *Status
}

func ParseTigrisCreateDatabaseResponse

func ParseTigrisCreateDatabaseResponse(rsp *http.Response) (*TigrisCreateDatabaseResponse, error)

ParseTigrisCreateDatabaseResponse parses an HTTP response from a TigrisCreateDatabaseWithResponse call

func (TigrisCreateDatabaseResponse) Status

Status returns HTTPResponse.Status

func (TigrisCreateDatabaseResponse) StatusCode

func (r TigrisCreateDatabaseResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TigrisCreateOrUpdateCollectionJSONBody

type TigrisCreateOrUpdateCollectionJSONBody = CreateOrUpdateCollectionRequest

TigrisCreateOrUpdateCollectionJSONBody defines parameters for TigrisCreateOrUpdateCollection.

type TigrisCreateOrUpdateCollectionJSONRequestBody

type TigrisCreateOrUpdateCollectionJSONRequestBody = TigrisCreateOrUpdateCollectionJSONBody

TigrisCreateOrUpdateCollectionJSONRequestBody defines body for TigrisCreateOrUpdateCollection for application/json ContentType.

type TigrisCreateOrUpdateCollectionResponse

type TigrisCreateOrUpdateCollectionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CreateOrUpdateCollectionResponse
	JSONDefault  *Status
}

func ParseTigrisCreateOrUpdateCollectionResponse

func ParseTigrisCreateOrUpdateCollectionResponse(rsp *http.Response) (*TigrisCreateOrUpdateCollectionResponse, error)

ParseTigrisCreateOrUpdateCollectionResponse parses an HTTP response from a TigrisCreateOrUpdateCollectionWithResponse call

func (TigrisCreateOrUpdateCollectionResponse) Status

Status returns HTTPResponse.Status

func (TigrisCreateOrUpdateCollectionResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type TigrisDeleteJSONBody

type TigrisDeleteJSONBody = DeleteRequest

TigrisDeleteJSONBody defines parameters for TigrisDelete.

type TigrisDeleteJSONRequestBody

type TigrisDeleteJSONRequestBody = TigrisDeleteJSONBody

TigrisDeleteJSONRequestBody defines body for TigrisDelete for application/json ContentType.

type TigrisDeleteResponse

type TigrisDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DeleteResponse
	JSONDefault  *Status
}

func ParseTigrisDeleteResponse

func ParseTigrisDeleteResponse(rsp *http.Response) (*TigrisDeleteResponse, error)

ParseTigrisDeleteResponse parses an HTTP response from a TigrisDeleteWithResponse call

func (TigrisDeleteResponse) Status

func (r TigrisDeleteResponse) Status() string

Status returns HTTPResponse.Status

func (TigrisDeleteResponse) StatusCode

func (r TigrisDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TigrisDescribeCollectionJSONBody

type TigrisDescribeCollectionJSONBody = DescribeCollectionRequest

TigrisDescribeCollectionJSONBody defines parameters for TigrisDescribeCollection.

type TigrisDescribeCollectionJSONRequestBody

type TigrisDescribeCollectionJSONRequestBody = TigrisDescribeCollectionJSONBody

TigrisDescribeCollectionJSONRequestBody defines body for TigrisDescribeCollection for application/json ContentType.

type TigrisDescribeCollectionResponse

type TigrisDescribeCollectionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DescribeCollectionResponse
	JSONDefault  *Status
}

func ParseTigrisDescribeCollectionResponse

func ParseTigrisDescribeCollectionResponse(rsp *http.Response) (*TigrisDescribeCollectionResponse, error)

ParseTigrisDescribeCollectionResponse parses an HTTP response from a TigrisDescribeCollectionWithResponse call

func (TigrisDescribeCollectionResponse) Status

Status returns HTTPResponse.Status

func (TigrisDescribeCollectionResponse) StatusCode

func (r TigrisDescribeCollectionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TigrisDescribeDatabaseJSONBody

type TigrisDescribeDatabaseJSONBody = DescribeDatabaseRequest

TigrisDescribeDatabaseJSONBody defines parameters for TigrisDescribeDatabase.

type TigrisDescribeDatabaseJSONRequestBody

type TigrisDescribeDatabaseJSONRequestBody = TigrisDescribeDatabaseJSONBody

TigrisDescribeDatabaseJSONRequestBody defines body for TigrisDescribeDatabase for application/json ContentType.

type TigrisDescribeDatabaseResponse

type TigrisDescribeDatabaseResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DescribeDatabaseResponse
	JSONDefault  *Status
}

func ParseTigrisDescribeDatabaseResponse

func ParseTigrisDescribeDatabaseResponse(rsp *http.Response) (*TigrisDescribeDatabaseResponse, error)

ParseTigrisDescribeDatabaseResponse parses an HTTP response from a TigrisDescribeDatabaseWithResponse call

func (TigrisDescribeDatabaseResponse) Status

Status returns HTTPResponse.Status

func (TigrisDescribeDatabaseResponse) StatusCode

func (r TigrisDescribeDatabaseResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TigrisDropCollectionJSONBody

type TigrisDropCollectionJSONBody = DropCollectionRequest

TigrisDropCollectionJSONBody defines parameters for TigrisDropCollection.

type TigrisDropCollectionJSONRequestBody

type TigrisDropCollectionJSONRequestBody = TigrisDropCollectionJSONBody

TigrisDropCollectionJSONRequestBody defines body for TigrisDropCollection for application/json ContentType.

type TigrisDropCollectionResponse

type TigrisDropCollectionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DropCollectionResponse
	JSONDefault  *Status
}

func ParseTigrisDropCollectionResponse

func ParseTigrisDropCollectionResponse(rsp *http.Response) (*TigrisDropCollectionResponse, error)

ParseTigrisDropCollectionResponse parses an HTTP response from a TigrisDropCollectionWithResponse call

func (TigrisDropCollectionResponse) Status

Status returns HTTPResponse.Status

func (TigrisDropCollectionResponse) StatusCode

func (r TigrisDropCollectionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TigrisDropDatabaseJSONBody

type TigrisDropDatabaseJSONBody = DropDatabaseRequest

TigrisDropDatabaseJSONBody defines parameters for TigrisDropDatabase.

type TigrisDropDatabaseJSONRequestBody

type TigrisDropDatabaseJSONRequestBody = TigrisDropDatabaseJSONBody

TigrisDropDatabaseJSONRequestBody defines body for TigrisDropDatabase for application/json ContentType.

type TigrisDropDatabaseResponse

type TigrisDropDatabaseResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DropDatabaseResponse
	JSONDefault  *Status
}

func ParseTigrisDropDatabaseResponse

func ParseTigrisDropDatabaseResponse(rsp *http.Response) (*TigrisDropDatabaseResponse, error)

ParseTigrisDropDatabaseResponse parses an HTTP response from a TigrisDropDatabaseWithResponse call

func (TigrisDropDatabaseResponse) Status

Status returns HTTPResponse.Status

func (TigrisDropDatabaseResponse) StatusCode

func (r TigrisDropDatabaseResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TigrisGetInfoResponse

type TigrisGetInfoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetInfoResponse
	JSONDefault  *Status
}

func ParseTigrisGetInfoResponse

func ParseTigrisGetInfoResponse(rsp *http.Response) (*TigrisGetInfoResponse, error)

ParseTigrisGetInfoResponse parses an HTTP response from a TigrisGetInfoWithResponse call

func (TigrisGetInfoResponse) Status

func (r TigrisGetInfoResponse) Status() string

Status returns HTTPResponse.Status

func (TigrisGetInfoResponse) StatusCode

func (r TigrisGetInfoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TigrisInsertJSONBody

type TigrisInsertJSONBody = InsertRequest

TigrisInsertJSONBody defines parameters for TigrisInsert.

type TigrisInsertJSONRequestBody

type TigrisInsertJSONRequestBody = TigrisInsertJSONBody

TigrisInsertJSONRequestBody defines body for TigrisInsert for application/json ContentType.

type TigrisInsertResponse

type TigrisInsertResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InsertResponse
	JSONDefault  *Status
}

func ParseTigrisInsertResponse

func ParseTigrisInsertResponse(rsp *http.Response) (*TigrisInsertResponse, error)

ParseTigrisInsertResponse parses an HTTP response from a TigrisInsertWithResponse call

func (TigrisInsertResponse) Status

func (r TigrisInsertResponse) Status() string

Status returns HTTPResponse.Status

func (TigrisInsertResponse) StatusCode

func (r TigrisInsertResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TigrisListCollectionsJSONBody

type TigrisListCollectionsJSONBody = ListCollectionsRequest

TigrisListCollectionsJSONBody defines parameters for TigrisListCollections.

type TigrisListCollectionsJSONRequestBody

type TigrisListCollectionsJSONRequestBody = TigrisListCollectionsJSONBody

TigrisListCollectionsJSONRequestBody defines body for TigrisListCollections for application/json ContentType.

type TigrisListCollectionsResponse

type TigrisListCollectionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListCollectionsResponse
	JSONDefault  *Status
}

func ParseTigrisListCollectionsResponse

func ParseTigrisListCollectionsResponse(rsp *http.Response) (*TigrisListCollectionsResponse, error)

ParseTigrisListCollectionsResponse parses an HTTP response from a TigrisListCollectionsWithResponse call

func (TigrisListCollectionsResponse) Status

Status returns HTTPResponse.Status

func (TigrisListCollectionsResponse) StatusCode

func (r TigrisListCollectionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TigrisListDatabasesResponse

type TigrisListDatabasesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListDatabasesResponse
	JSONDefault  *Status
}

func ParseTigrisListDatabasesResponse

func ParseTigrisListDatabasesResponse(rsp *http.Response) (*TigrisListDatabasesResponse, error)

ParseTigrisListDatabasesResponse parses an HTTP response from a TigrisListDatabasesWithResponse call

func (TigrisListDatabasesResponse) Status

Status returns HTTPResponse.Status

func (TigrisListDatabasesResponse) StatusCode

func (r TigrisListDatabasesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TigrisReadJSONBody

type TigrisReadJSONBody = ReadRequest

TigrisReadJSONBody defines parameters for TigrisRead.

type TigrisReadJSONRequestBody

type TigrisReadJSONRequestBody = TigrisReadJSONBody

TigrisReadJSONRequestBody defines body for TigrisRead for application/json ContentType.

type TigrisReadResponse

type TigrisReadResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *StreamingReadResponse
	JSONDefault  *Status
}

func ParseTigrisReadResponse

func ParseTigrisReadResponse(rsp *http.Response) (*TigrisReadResponse, error)

ParseTigrisReadResponse parses an HTTP response from a TigrisReadWithResponse call

func (TigrisReadResponse) Status

func (r TigrisReadResponse) Status() string

Status returns HTTPResponse.Status

func (TigrisReadResponse) StatusCode

func (r TigrisReadResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TigrisReplaceJSONBody

type TigrisReplaceJSONBody = ReplaceRequest

TigrisReplaceJSONBody defines parameters for TigrisReplace.

type TigrisReplaceJSONRequestBody

type TigrisReplaceJSONRequestBody = TigrisReplaceJSONBody

TigrisReplaceJSONRequestBody defines body for TigrisReplace for application/json ContentType.

type TigrisReplaceResponse

type TigrisReplaceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ReplaceResponse
	JSONDefault  *Status
}

func ParseTigrisReplaceResponse

func ParseTigrisReplaceResponse(rsp *http.Response) (*TigrisReplaceResponse, error)

ParseTigrisReplaceResponse parses an HTTP response from a TigrisReplaceWithResponse call

func (TigrisReplaceResponse) Status

func (r TigrisReplaceResponse) Status() string

Status returns HTTPResponse.Status

func (TigrisReplaceResponse) StatusCode

func (r TigrisReplaceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TigrisRollbackTransactionJSONBody

type TigrisRollbackTransactionJSONBody = RollbackTransactionRequest

TigrisRollbackTransactionJSONBody defines parameters for TigrisRollbackTransaction.

type TigrisRollbackTransactionJSONRequestBody

type TigrisRollbackTransactionJSONRequestBody = TigrisRollbackTransactionJSONBody

TigrisRollbackTransactionJSONRequestBody defines body for TigrisRollbackTransaction for application/json ContentType.

type TigrisRollbackTransactionResponse

type TigrisRollbackTransactionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RollbackTransactionResponse
	JSONDefault  *Status
}

func ParseTigrisRollbackTransactionResponse

func ParseTigrisRollbackTransactionResponse(rsp *http.Response) (*TigrisRollbackTransactionResponse, error)

ParseTigrisRollbackTransactionResponse parses an HTTP response from a TigrisRollbackTransactionWithResponse call

func (TigrisRollbackTransactionResponse) Status

Status returns HTTPResponse.Status

func (TigrisRollbackTransactionResponse) StatusCode

func (r TigrisRollbackTransactionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TigrisStreamJSONBody

type TigrisStreamJSONBody = StreamRequest

TigrisStreamJSONBody defines parameters for TigrisStream.

type TigrisStreamJSONRequestBody

type TigrisStreamJSONRequestBody = TigrisStreamJSONBody

TigrisStreamJSONRequestBody defines body for TigrisStream for application/json ContentType.

type TigrisStreamResponse

type TigrisStreamResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *StreamingStreamResponse
	JSONDefault  *Status
}

func ParseTigrisStreamResponse

func ParseTigrisStreamResponse(rsp *http.Response) (*TigrisStreamResponse, error)

ParseTigrisStreamResponse parses an HTTP response from a TigrisStreamWithResponse call

func (TigrisStreamResponse) Status

func (r TigrisStreamResponse) Status() string

Status returns HTTPResponse.Status

func (TigrisStreamResponse) StatusCode

func (r TigrisStreamResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TigrisUpdateJSONBody

type TigrisUpdateJSONBody = UpdateRequest

TigrisUpdateJSONBody defines parameters for TigrisUpdate.

type TigrisUpdateJSONRequestBody

type TigrisUpdateJSONRequestBody = TigrisUpdateJSONBody

TigrisUpdateJSONRequestBody defines body for TigrisUpdate for application/json ContentType.

type TigrisUpdateResponse

type TigrisUpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UpdateResponse
	JSONDefault  *Status
}

func ParseTigrisUpdateResponse

func ParseTigrisUpdateResponse(rsp *http.Response) (*TigrisUpdateResponse, error)

ParseTigrisUpdateResponse parses an HTTP response from a TigrisUpdateWithResponse call

func (TigrisUpdateResponse) Status

func (r TigrisUpdateResponse) Status() string

Status returns HTTPResponse.Status

func (TigrisUpdateResponse) StatusCode

func (r TigrisUpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TransactionCtx

type TransactionCtx struct {
	// Unique for a single transactional request.
	Id *string `json:"id,omitempty"`

	// Serves as an internal identifier.
	Origin *string `json:"origin,omitempty"`
}

Contains ID which uniquely identifies transaction This context is returned by BeginTransaction request and should be passed in the subsequent requests in order to run them in the context of the same transaction.

type TransactionOptions

type TransactionOptions = map[string]interface{}

Options that can be used to modify the transaction semantics.

type UpdateRequest

type UpdateRequest struct {
	// Fields contains set of fields with the values which need to be updated. Should be proper JSON object.
	Fields json.RawMessage `json:"fields,omitempty"`

	// Update documents which matching specified filter. A filter can simply be key, value where key is the field name and value would be the value for this field. Or a filter can be logical where two or more fields can be logically joined using $or and $and. A few examples of filter: <li> To update a user document where the id has a value 1: “`{"id": 1 }“` <li> To update all the user documents where the key "id" has a value 1 or 2 or 3: `{"$or": [{"id": 1}, {"id": 2}, {"id": 3}]}`
	Filter json.RawMessage `json:"filter,omitempty"`

	// Additional options for update requests.
	Options *UpdateRequestOptions `json:"options,omitempty"`
}

UpdateRequest defines model for UpdateRequest.

type UpdateRequestOptions

type UpdateRequestOptions struct {
	// Additional options to modify write requests.
	WriteOptions *WriteOptions `json:"write_options,omitempty"`
}

Additional options for update requests.

type UpdateResponse

type UpdateResponse struct {
	// Has metadata related to the documents stored.
	Metadata *ResponseMetadata `json:"metadata,omitempty"`

	// Returns the number of documents modified.
	ModifiedCount *int32 `json:"modified_count,omitempty"`

	// an enum with value set as "updated".
	Status *string `json:"status,omitempty"`
}

UpdateResponse defines model for UpdateResponse.

type WriteOptions

type WriteOptions struct {
	// Contains ID which uniquely identifies transaction This context is returned by BeginTransaction request and should be passed in the subsequent requests in order to run them in the context of the same transaction.
	TxCtx *TransactionCtx `json:"tx_ctx,omitempty"`
}

Additional options to modify write requests.

Jump to

Keyboard shortcuts

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