package
0.33.4
Repository: https://github.com/appuio/control-api.git
Documentation: pkg.go.dev

# Packages

Code generated by MockGen.
No description provided by the author

# Functions

DecodeResult takes a buffer, decodes the intermediate JSONRPCResponse and then the contained "result" field into "result".
NewJSONRPCRequest returns a JSON RPC request with its protocol fields populated: * "id" will be set to a random UUID * "jsonrpc" will be set to "2.0" * "method" will be set to "call" * "params" will be set to whatever was passed in.
Open returns a new client and tries to log in to create a session.

# Constants

DateFormat only yields year, month, day.
DateTimeFormat combines DateFormat with TimeFormat separated by space.
MethodCreate is used to create new records.
MethodDelete is used to delete existing records.
MethodRead is used to read records.
MethodWrite is used to update existing records.
TimeFormat only yields hour, minute, seconds in 24-h format.

# Variables

ErrInvalidCredentials is an error that indicates an authentication error due to missing or invalid credentials.

# Structs

Client is the base struct that holds information required to talk to Odoo.
ClientOptions configures the Odoo client.
JSONRPCError holds error information.
JSONRPCRequest represents a generic json-rpc request.
JSONRPCResponse holds the JSONRPC response.
SearchReadModel is used as "params" in requests to "dataset/search_read" endpoints.
Session information.
WriteModel is used as "params" in requests to "dataset/create", "dataset/write" or "dataset/unlink" endpoints.

# Interfaces

QueryExecutor runs queries against Odoo API.

# Type aliases

Date is an Odoo-specific format of a timestamp.
Filter to use in queries, usually in the format of [predicate, operator, value], eg ["employee_id.user_id.id", "=", 123].
Method identifies the type of write operation.