Documentation ¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.9.1 DO NOT EDIT.
Index ¶
- func GetSwagger() (swagger *openapi3.T, err error)
- func NewTigrisBeginTransactionRequest(server string, db string, body TigrisBeginTransactionJSONRequestBody) (*http.Request, error)
- func NewTigrisBeginTransactionRequestWithBody(server string, db string, contentType string, body io.Reader) (*http.Request, error)
- func NewTigrisCommitTransactionRequest(server string, db string, body TigrisCommitTransactionJSONRequestBody) (*http.Request, error)
- func NewTigrisCommitTransactionRequestWithBody(server string, db string, contentType string, body io.Reader) (*http.Request, error)
- func NewTigrisCreateDatabaseRequest(server string, db string, body TigrisCreateDatabaseJSONRequestBody) (*http.Request, error)
- func NewTigrisCreateDatabaseRequestWithBody(server string, db string, contentType string, body io.Reader) (*http.Request, error)
- func NewTigrisCreateOrUpdateCollectionRequest(server string, db string, collection string, ...) (*http.Request, error)
- func NewTigrisCreateOrUpdateCollectionRequestWithBody(server string, db string, collection string, contentType string, ...) (*http.Request, error)
- func NewTigrisDeleteRequest(server string, db string, collection string, body TigrisDeleteJSONRequestBody) (*http.Request, error)
- func NewTigrisDeleteRequestWithBody(server string, db string, collection string, contentType string, ...) (*http.Request, error)
- func NewTigrisDescribeCollectionRequest(server string, db string, collection string, ...) (*http.Request, error)
- func NewTigrisDescribeCollectionRequestWithBody(server string, db string, collection string, contentType string, ...) (*http.Request, error)
- func NewTigrisDescribeDatabaseRequest(server string, db string, body TigrisDescribeDatabaseJSONRequestBody) (*http.Request, error)
- func NewTigrisDescribeDatabaseRequestWithBody(server string, db string, contentType string, body io.Reader) (*http.Request, error)
- func NewTigrisDropCollectionRequest(server string, db string, collection string, ...) (*http.Request, error)
- func NewTigrisDropCollectionRequestWithBody(server string, db string, collection string, contentType string, ...) (*http.Request, error)
- func NewTigrisDropDatabaseRequest(server string, db string, body TigrisDropDatabaseJSONRequestBody) (*http.Request, error)
- func NewTigrisDropDatabaseRequestWithBody(server string, db string, contentType string, body io.Reader) (*http.Request, error)
- func NewTigrisGetInfoRequest(server string) (*http.Request, error)
- func NewTigrisInsertRequest(server string, db string, collection string, body TigrisInsertJSONRequestBody) (*http.Request, error)
- func NewTigrisInsertRequestWithBody(server string, db string, collection string, contentType string, ...) (*http.Request, error)
- func NewTigrisListCollectionsRequest(server string, db string, body TigrisListCollectionsJSONRequestBody) (*http.Request, error)
- func NewTigrisListCollectionsRequestWithBody(server string, db string, contentType string, body io.Reader) (*http.Request, error)
- func NewTigrisListDatabasesRequest(server string) (*http.Request, error)
- func NewTigrisReadRequest(server string, db string, collection string, body TigrisReadJSONRequestBody) (*http.Request, error)
- func NewTigrisReadRequestWithBody(server string, db string, collection string, contentType string, ...) (*http.Request, error)
- func NewTigrisReplaceRequest(server string, db string, collection string, body TigrisReplaceJSONRequestBody) (*http.Request, error)
- func NewTigrisReplaceRequestWithBody(server string, db string, collection string, contentType string, ...) (*http.Request, error)
- func NewTigrisRollbackTransactionRequest(server string, db string, body TigrisRollbackTransactionJSONRequestBody) (*http.Request, error)
- func NewTigrisRollbackTransactionRequestWithBody(server string, db string, contentType string, body io.Reader) (*http.Request, error)
- func NewTigrisStreamRequest(server string, db string, body TigrisStreamJSONRequestBody) (*http.Request, error)
- func NewTigrisStreamRequestWithBody(server string, db string, contentType string, body io.Reader) (*http.Request, error)
- func NewTigrisUpdateRequest(server string, db string, collection string, body TigrisUpdateJSONRequestBody) (*http.Request, error)
- func NewTigrisUpdateRequestWithBody(server string, db string, collection string, contentType string, ...) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type BeginTransactionRequest
- type BeginTransactionResponse
- type Client
- func (c *Client) TigrisBeginTransaction(ctx context.Context, db string, body TigrisBeginTransactionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TigrisBeginTransactionWithBody(ctx context.Context, db string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) TigrisCommitTransaction(ctx context.Context, db string, body TigrisCommitTransactionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TigrisCommitTransactionWithBody(ctx context.Context, db string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) TigrisCreateDatabase(ctx context.Context, db string, body TigrisCreateDatabaseJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TigrisCreateDatabaseWithBody(ctx context.Context, db string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) TigrisCreateOrUpdateCollection(ctx context.Context, db string, collection string, ...) (*http.Response, error)
- func (c *Client) TigrisCreateOrUpdateCollectionWithBody(ctx context.Context, db string, collection string, contentType string, ...) (*http.Response, error)
- func (c *Client) TigrisDelete(ctx context.Context, db string, collection string, ...) (*http.Response, error)
- func (c *Client) TigrisDeleteWithBody(ctx context.Context, db string, collection string, contentType string, ...) (*http.Response, error)
- func (c *Client) TigrisDescribeCollection(ctx context.Context, db string, collection string, ...) (*http.Response, error)
- func (c *Client) TigrisDescribeCollectionWithBody(ctx context.Context, db string, collection string, contentType string, ...) (*http.Response, error)
- func (c *Client) TigrisDescribeDatabase(ctx context.Context, db string, body TigrisDescribeDatabaseJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TigrisDescribeDatabaseWithBody(ctx context.Context, db string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) TigrisDropCollection(ctx context.Context, db string, collection string, ...) (*http.Response, error)
- func (c *Client) TigrisDropCollectionWithBody(ctx context.Context, db string, collection string, contentType string, ...) (*http.Response, error)
- func (c *Client) TigrisDropDatabase(ctx context.Context, db string, body TigrisDropDatabaseJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TigrisDropDatabaseWithBody(ctx context.Context, db string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) TigrisGetInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) TigrisInsert(ctx context.Context, db string, collection string, ...) (*http.Response, error)
- func (c *Client) TigrisInsertWithBody(ctx context.Context, db string, collection string, contentType string, ...) (*http.Response, error)
- func (c *Client) TigrisListCollections(ctx context.Context, db string, body TigrisListCollectionsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TigrisListCollectionsWithBody(ctx context.Context, db string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) TigrisListDatabases(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) TigrisRead(ctx context.Context, db string, collection string, ...) (*http.Response, error)
- func (c *Client) TigrisReadWithBody(ctx context.Context, db string, collection string, contentType string, ...) (*http.Response, error)
- func (c *Client) TigrisReplace(ctx context.Context, db string, collection string, ...) (*http.Response, error)
- func (c *Client) TigrisReplaceWithBody(ctx context.Context, db string, collection string, contentType string, ...) (*http.Response, error)
- func (c *Client) TigrisRollbackTransaction(ctx context.Context, db string, body TigrisRollbackTransactionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TigrisRollbackTransactionWithBody(ctx context.Context, db string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) TigrisStream(ctx context.Context, db string, body TigrisStreamJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TigrisStreamWithBody(ctx context.Context, db string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) TigrisUpdate(ctx context.Context, db string, collection string, ...) (*http.Response, error)
- func (c *Client) TigrisUpdateWithBody(ctx context.Context, db string, collection string, contentType string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) TigrisBeginTransactionWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, ...) (*TigrisBeginTransactionResponse, error)
- func (c *ClientWithResponses) TigrisBeginTransactionWithResponse(ctx context.Context, db string, body TigrisBeginTransactionJSONRequestBody, ...) (*TigrisBeginTransactionResponse, error)
- func (c *ClientWithResponses) TigrisCommitTransactionWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, ...) (*TigrisCommitTransactionResponse, error)
- func (c *ClientWithResponses) TigrisCommitTransactionWithResponse(ctx context.Context, db string, body TigrisCommitTransactionJSONRequestBody, ...) (*TigrisCommitTransactionResponse, error)
- func (c *ClientWithResponses) TigrisCreateDatabaseWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, ...) (*TigrisCreateDatabaseResponse, error)
- func (c *ClientWithResponses) TigrisCreateDatabaseWithResponse(ctx context.Context, db string, body TigrisCreateDatabaseJSONRequestBody, ...) (*TigrisCreateDatabaseResponse, error)
- func (c *ClientWithResponses) TigrisCreateOrUpdateCollectionWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, ...) (*TigrisCreateOrUpdateCollectionResponse, error)
- func (c *ClientWithResponses) TigrisCreateOrUpdateCollectionWithResponse(ctx context.Context, db string, collection string, ...) (*TigrisCreateOrUpdateCollectionResponse, error)
- func (c *ClientWithResponses) TigrisDeleteWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, ...) (*TigrisDeleteResponse, error)
- func (c *ClientWithResponses) TigrisDeleteWithResponse(ctx context.Context, db string, collection string, ...) (*TigrisDeleteResponse, error)
- func (c *ClientWithResponses) TigrisDescribeCollectionWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, ...) (*TigrisDescribeCollectionResponse, error)
- func (c *ClientWithResponses) TigrisDescribeCollectionWithResponse(ctx context.Context, db string, collection string, ...) (*TigrisDescribeCollectionResponse, error)
- func (c *ClientWithResponses) TigrisDescribeDatabaseWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, ...) (*TigrisDescribeDatabaseResponse, error)
- func (c *ClientWithResponses) TigrisDescribeDatabaseWithResponse(ctx context.Context, db string, body TigrisDescribeDatabaseJSONRequestBody, ...) (*TigrisDescribeDatabaseResponse, error)
- func (c *ClientWithResponses) TigrisDropCollectionWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, ...) (*TigrisDropCollectionResponse, error)
- func (c *ClientWithResponses) TigrisDropCollectionWithResponse(ctx context.Context, db string, collection string, ...) (*TigrisDropCollectionResponse, error)
- func (c *ClientWithResponses) TigrisDropDatabaseWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, ...) (*TigrisDropDatabaseResponse, error)
- func (c *ClientWithResponses) TigrisDropDatabaseWithResponse(ctx context.Context, db string, body TigrisDropDatabaseJSONRequestBody, ...) (*TigrisDropDatabaseResponse, error)
- func (c *ClientWithResponses) TigrisGetInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*TigrisGetInfoResponse, error)
- func (c *ClientWithResponses) TigrisInsertWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, ...) (*TigrisInsertResponse, error)
- func (c *ClientWithResponses) TigrisInsertWithResponse(ctx context.Context, db string, collection string, ...) (*TigrisInsertResponse, error)
- func (c *ClientWithResponses) TigrisListCollectionsWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, ...) (*TigrisListCollectionsResponse, error)
- func (c *ClientWithResponses) TigrisListCollectionsWithResponse(ctx context.Context, db string, body TigrisListCollectionsJSONRequestBody, ...) (*TigrisListCollectionsResponse, error)
- func (c *ClientWithResponses) TigrisListDatabasesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*TigrisListDatabasesResponse, error)
- func (c *ClientWithResponses) TigrisReadWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, ...) (*TigrisReadResponse, error)
- func (c *ClientWithResponses) TigrisReadWithResponse(ctx context.Context, db string, collection string, ...) (*TigrisReadResponse, error)
- func (c *ClientWithResponses) TigrisReplaceWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, ...) (*TigrisReplaceResponse, error)
- func (c *ClientWithResponses) TigrisReplaceWithResponse(ctx context.Context, db string, collection string, ...) (*TigrisReplaceResponse, error)
- func (c *ClientWithResponses) TigrisRollbackTransactionWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, ...) (*TigrisRollbackTransactionResponse, error)
- func (c *ClientWithResponses) TigrisRollbackTransactionWithResponse(ctx context.Context, db string, body TigrisRollbackTransactionJSONRequestBody, ...) (*TigrisRollbackTransactionResponse, error)
- func (c *ClientWithResponses) TigrisStreamWithBodyWithResponse(ctx context.Context, db string, contentType string, body io.Reader, ...) (*TigrisStreamResponse, error)
- func (c *ClientWithResponses) TigrisStreamWithResponse(ctx context.Context, db string, body TigrisStreamJSONRequestBody, ...) (*TigrisStreamResponse, error)
- func (c *ClientWithResponses) TigrisUpdateWithBodyWithResponse(ctx context.Context, db string, collection string, contentType string, ...) (*TigrisUpdateResponse, error)
- func (c *ClientWithResponses) TigrisUpdateWithResponse(ctx context.Context, db string, collection string, ...) (*TigrisUpdateResponse, error)
- type ClientWithResponsesInterface
- type CollectionDescription
- type CollectionInfo
- type CollectionMetadata
- type CollectionOptions
- type CommitTransactionRequest
- type CommitTransactionResponse
- type CreateDatabaseRequest
- type CreateDatabaseResponse
- type CreateOrUpdateCollectionRequest
- type CreateOrUpdateCollectionResponse
- type DatabaseInfo
- type DatabaseMetadata
- type DatabaseOptions
- type DeleteRequest
- type DeleteRequestOptions
- type DeleteResponse
- type DescribeCollectionRequest
- type DescribeCollectionResponse
- type DescribeDatabaseRequest
- type DescribeDatabaseResponse
- type DropCollectionRequest
- type DropCollectionResponse
- type DropDatabaseRequest
- type DropDatabaseResponse
- type GetInfoResponse
- type GoogleProtobufAny
- type HttpRequestDoer
- type InsertRequest
- type InsertRequestOptions
- type InsertResponse
- type ListCollectionsRequest
- type ListCollectionsResponse
- type ListDatabasesResponse
- type ReadRequest
- type ReadRequestOptions
- type ReadResponse
- type ReplaceRequest
- type ReplaceRequestOptions
- type ReplaceResponse
- type RequestEditorFn
- type ResponseMetadata
- type RollbackTransactionRequest
- type RollbackTransactionResponse
- type Status
- type StreamChange
- type StreamRequest
- type StreamResponse
- type TigrisBeginTransactionJSONBody
- type TigrisBeginTransactionJSONRequestBody
- type TigrisBeginTransactionResponse
- type TigrisCommitTransactionJSONBody
- type TigrisCommitTransactionJSONRequestBody
- type TigrisCommitTransactionResponse
- type TigrisCreateDatabaseJSONBody
- type TigrisCreateDatabaseJSONRequestBody
- type TigrisCreateDatabaseResponse
- type TigrisCreateOrUpdateCollectionJSONBody
- type TigrisCreateOrUpdateCollectionJSONRequestBody
- type TigrisCreateOrUpdateCollectionResponse
- type TigrisDeleteJSONBody
- type TigrisDeleteJSONRequestBody
- type TigrisDeleteResponse
- type TigrisDescribeCollectionJSONBody
- type TigrisDescribeCollectionJSONRequestBody
- type TigrisDescribeCollectionResponse
- type TigrisDescribeDatabaseJSONBody
- type TigrisDescribeDatabaseJSONRequestBody
- type TigrisDescribeDatabaseResponse
- type TigrisDropCollectionJSONBody
- type TigrisDropCollectionJSONRequestBody
- type TigrisDropCollectionResponse
- type TigrisDropDatabaseJSONBody
- type TigrisDropDatabaseJSONRequestBody
- type TigrisDropDatabaseResponse
- type TigrisGetInfoResponse
- type TigrisInsertJSONBody
- type TigrisInsertJSONRequestBody
- type TigrisInsertResponse
- type TigrisListCollectionsJSONBody
- type TigrisListCollectionsJSONRequestBody
- type TigrisListCollectionsResponse
- type TigrisListDatabasesResponse
- type TigrisReadJSONBody
- type TigrisReadJSONRequestBody
- type TigrisReadResponse
- type TigrisReplaceJSONBody
- type TigrisReplaceJSONRequestBody
- type TigrisReplaceResponse
- type TigrisRollbackTransactionJSONBody
- type TigrisRollbackTransactionJSONRequestBody
- type TigrisRollbackTransactionResponse
- type TigrisStreamJSONBody
- type TigrisStreamJSONRequestBody
- type TigrisStreamResponse
- type TigrisUpdateJSONBody
- type TigrisUpdateJSONRequestBody
- type TigrisUpdateResponse
- type TransactionCtx
- type TransactionOptions
- type UpdateRequest
- type UpdateRequestOptions
- type UpdateResponse
- type WriteOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
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 ¶
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 ¶
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
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 (*Client) TigrisCommitTransaction ¶
func (c *Client) TigrisCommitTransaction(ctx context.Context, db string, body TigrisCommitTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TigrisCommitTransactionWithBody ¶
func (*Client) TigrisCreateDatabase ¶
func (c *Client) TigrisCreateDatabase(ctx context.Context, db string, body TigrisCreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TigrisCreateDatabaseWithBody ¶
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 (*Client) TigrisDelete ¶
func (c *Client) TigrisDelete(ctx context.Context, db string, collection string, body TigrisDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TigrisDeleteWithBody ¶
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 (*Client) TigrisDescribeDatabase ¶
func (c *Client) TigrisDescribeDatabase(ctx context.Context, db string, body TigrisDescribeDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TigrisDescribeDatabaseWithBody ¶
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 (*Client) TigrisDropDatabase ¶
func (c *Client) TigrisDropDatabase(ctx context.Context, db string, body TigrisDropDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TigrisDropDatabaseWithBody ¶
func (*Client) TigrisGetInfo ¶
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 (*Client) TigrisListCollections ¶
func (c *Client) TigrisListCollections(ctx context.Context, db string, body TigrisListCollectionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TigrisListCollectionsWithBody ¶
func (*Client) TigrisListDatabases ¶
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 (*Client) TigrisReplace ¶
func (c *Client) TigrisReplace(ctx context.Context, db string, collection string, body TigrisReplaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TigrisReplaceWithBody ¶
func (*Client) TigrisRollbackTransaction ¶
func (c *Client) TigrisRollbackTransaction(ctx context.Context, db string, body TigrisRollbackTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TigrisRollbackTransactionWithBody ¶
func (*Client) TigrisStream ¶
func (c *Client) TigrisStream(ctx context.Context, db string, body TigrisStreamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TigrisStreamWithBody ¶
func (*Client) TigrisUpdate ¶
func (c *Client) TigrisUpdate(ctx context.Context, db string, collection string, body TigrisUpdateJSONRequestBody, 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 ¶
ClientOption allows setting custom parameters during construction
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: `{ "name": "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 GetInfoResponse ¶
type GetInfoResponse struct {
ServerVersion *string `json:"server_version,omitempty"`
}
GetInfoResponse defines model for GetInfoResponse.
type GoogleProtobufAny ¶
type GoogleProtobufAny struct { // The type of the serialized message. Type *string `json:"@type,omitempty"` AdditionalProperties map[string]interface{} `json:"-"` }
Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.
func (GoogleProtobufAny) Get ¶
func (a GoogleProtobufAny) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for GoogleProtobufAny. Returns the specified element and whether it was found
func (GoogleProtobufAny) MarshalJSON ¶
func (a GoogleProtobufAny) MarshalJSON() ([]byte, error)
Override default JSON handling for GoogleProtobufAny to handle AdditionalProperties
func (*GoogleProtobufAny) Set ¶
func (a *GoogleProtobufAny) Set(fieldName string, value interface{})
Setter for additional properties for GoogleProtobufAny
func (*GoogleProtobufAny) UnmarshalJSON ¶
func (a *GoogleProtobufAny) UnmarshalJSON(b []byte) error
Override default JSON handling for GoogleProtobufAny to handle AdditionalProperties
type HttpRequestDoer ¶
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 { // 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 { // 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 ¶
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 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 status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. Code *int32 `json:"code,omitempty"` // A list of messages that carry the error details. There is a common set of message types for APIs to use. Details *[]GoogleProtobufAny `json:"details,omitempty"` // A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. Message *string `json:"message,omitempty"` }
The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
type StreamChange ¶
type StreamChange struct { CollectionName *string `json:"collection_name,omitempty"` Data *[]byte `json:"data,omitempty"` }
StreamChange defines model for StreamChange.
type StreamRequest ¶
type StreamRequest struct {
Db *string `json:"db,omitempty"`
}
StreamRequest defines model for StreamRequest.
type StreamResponse ¶
type StreamResponse struct {
Changes *[]StreamChange `json:"changes,omitempty"`
}
StreamResponse defines model for StreamResponse.
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 ¶
func (r TigrisBeginTransactionResponse) Status() string
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 ¶
func (r TigrisCommitTransactionResponse) Status() string
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 ¶
func (r TigrisCreateDatabaseResponse) Status() string
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 ¶
func (r TigrisCreateOrUpdateCollectionResponse) Status() string
Status returns HTTPResponse.Status
func (TigrisCreateOrUpdateCollectionResponse) StatusCode ¶
func (r TigrisCreateOrUpdateCollectionResponse) StatusCode() int
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 ¶
func (r TigrisDescribeCollectionResponse) Status() string
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 ¶
func (r TigrisDescribeDatabaseResponse) Status() string
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 ¶
func (r TigrisDropCollectionResponse) Status() string
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 ¶
func (r TigrisDropDatabaseResponse) Status() string
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 ¶
func (r TigrisListCollectionsResponse) Status() string
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 ¶
func (r TigrisListDatabasesResponse) Status() string
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 *ReadResponse 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 ¶
func (r TigrisRollbackTransactionResponse) Status() string
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 *StreamResponse 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.