Skip to content

Latest commit

 

History

History
418 lines (332 loc) · 12.2 KB

File metadata and controls

418 lines (332 loc) · 12.2 KB

Available Actions

Each task can be executed using REST endpoints. All tasks tags to provide additional configuration that is also available on a per-task basis:


/bulk-create

REST : POST

Description : Do operation between range from [start,end)

Name Type JSON Tag
IdentifierToken string json:identifierToken
OperationConfig ptr json:operationConfig
DBType string json:dbType
ConnStr string json:connectionString
Username string json:username
Password string json:password
Extra struct json:extra

/bulk-delete

REST : POST

Description : Do operation between range from [start,end)

Name Type JSON Tag
IdentifierToken string json:identifierToken
OperationConfig ptr json:operationConfig
DBType string json:dbType
ConnStr string json:connectionString
Username string json:username
Password string json:password
Extra struct json:extra

/bulk-read

REST : POST

Description : Do operation between range from [start,end)

Name Type JSON Tag
IdentifierToken string json:identifierToken
OperationConfig ptr json:operationConfig
DBType string json:dbType
ConnStr string json:connectionString
Username string json:username
Password string json:password
Extra struct json:extra

/bulk-touch

REST : POST

Description : Do operation between range from [start,end)

Name Type JSON Tag
IdentifierToken string json:identifierToken
OperationConfig ptr json:operationConfig
DBType string json:dbType
ConnStr string json:connectionString
Username string json:username
Password string json:password
Extra struct json:extra

/bulk-upsert

REST : POST

Description : Do operation between range from [start,end)

Name Type JSON Tag
IdentifierToken string json:identifierToken
OperationConfig ptr json:operationConfig
DBType string json:dbType
ConnStr string json:connectionString
Username string json:username
Password string json:password
Extra struct json:extra

/create

REST : POST

Description : Do operation between range from [start,end)

Name Type JSON Tag
IdentifierToken string json:identifierToken
OperationConfig ptr json:operationConfig
DBType string json:dbType
ConnStr string json:connectionString
Username string json:username
Password string json:password
Extra struct json:extra

/delete

REST : POST

Description : Do operation between range from [start,end)

Name Type JSON Tag
IdentifierToken string json:identifierToken
OperationConfig ptr json:operationConfig
DBType string json:dbType
ConnStr string json:connectionString
Username string json:username
Password string json:password
Extra struct json:extra

/read

REST : POST

Description : Do operation between range from [start,end)

Name Type JSON Tag
IdentifierToken string json:identifierToken
OperationConfig ptr json:operationConfig
DBType string json:dbType
ConnStr string json:connectionString
Username string json:username
Password string json:password
Extra struct json:extra

/sub-doc-delete

REST : POST

Description : Do operation between range from [start,end)

Name Type JSON Tag
IdentifierToken string json:identifierToken
OperationConfig ptr json:operationConfig
DBType string json:dbType
ConnStr string json:connectionString
Username string json:username
Password string json:password
Extra struct json:extra

/sub-doc-insert

REST : POST

Description : Do operation between range from [start,end)

Name Type JSON Tag
IdentifierToken string json:identifierToken
OperationConfig ptr json:operationConfig
DBType string json:dbType
ConnStr string json:connectionString
Username string json:username
Password string json:password
Extra struct json:extra

/sub-doc-read

REST : POST

Description : Do operation between range from [start,end)

Name Type JSON Tag
IdentifierToken string json:identifierToken
OperationConfig ptr json:operationConfig
DBType string json:dbType
ConnStr string json:connectionString
Username string json:username
Password string json:password
Extra struct json:extra

/sub-doc-replace

REST : POST

Description : Do operation between range from [start,end)

Name Type JSON Tag
IdentifierToken string json:identifierToken
OperationConfig ptr json:operationConfig
DBType string json:dbType
ConnStr string json:connectionString
Username string json:username
Password string json:password
Extra struct json:extra

/sub-doc-upsert

REST : POST

Description : Do operation between range from [start,end)

Name Type JSON Tag
IdentifierToken string json:identifierToken
OperationConfig ptr json:operationConfig
DBType string json:dbType
ConnStr string json:connectionString
Username string json:username
Password string json:password
Extra struct json:extra

/touch

REST : POST

Description : Do operation between range from [start,end)

Name Type JSON Tag
IdentifierToken string json:identifierToken
OperationConfig ptr json:operationConfig
DBType string json:dbType
ConnStr string json:connectionString
Username string json:username
Password string json:password
Extra struct json:extra

/upsert

REST : POST

Description : Do operation between range from [start,end)

Name Type JSON Tag
IdentifierToken string json:identifierToken
OperationConfig ptr json:operationConfig
DBType string json:dbType
ConnStr string json:connectionString
Username string json:username
Password string json:password
Extra struct json:extra

/warmup-bucket

REST : POST

Description : Warming up a connection to database.

Name Type JSON Tag
IdentifierToken string json:identifierToken
DBType string json:dbType
ConnStr string json:connectionString
Username string json:username
Password string json:password
Extra struct json:extra

Description of Extra Parameters.

Name Type JSON Tag
CompressionDisabled bool json:compressionDisabled,omitempty
CompressionMinSize uint32 json:compressionMinSize,omitempty
CompressionMinRatio float64 json:compressionMinRatio,omitempty
ConnectionTimeout int json:connectionTimeout,omitempty
KVTimeout int json:KVTimeout,omitempty
KVDurableTimeout int json:KVDurableTimeout,omitempty
Bucket string json:bucket,omitempty
Scope string json:scope,omitempty
Collection string json:collection,omitempty
Expiry int json:expiry,omitempty
PersistTo uint json:persistTo,omitempty
ReplicateTo uint json:replicateTo,omitempty
Durability string json:durability,omitempty
OperationTimeout int json:operationTimeout,omitempty
Cas uint64 json:cas,omitempty
IsXattr bool json:isXattr,omitempty
StoreSemantic int json:storeSemantic,omitempty
PreserveExpiry bool json:preserveExpiry,omitempty
CreatePath bool json:createPath,omitempty
SDKBatchSize int json:SDKBatchSize,omitempty

Possible values for durability :-

  1. NONE
  2. MAJORITY
  3. MAJORITY_AND_PERSIST_TO_ACTIVE
  4. PERSIST_TO_MAJORITY

APIs Response Description.

  1. Response after initiating a TASK.
Name Type JSON Tag
Seed string json:seed

  1. Response which contains the TASK's result.
Name Type JSON Tag
ResultSeed int64 json:resultSeed
Operation string json:operation
ErrorOther string json:otherErrors
Success int64 json:success
Failure int64 json:failure
BulkError map json:bulkErrors
RetriedError map json:retriedError
QueryError map json:queryErrors
SingleResult map json:singleResult

Helping nested json values n.


bulkError

Name Type JSON Tag
SDKTiming struct json:sdkTimings
DocId string json:key
Status bool json:status
Extra map json:extra
ErrorString string json:errorString

exceptions

Name Type JSON Tag
IgnoreExceptions slice json:ignoreExceptions,omitempty
RetryExceptions slice json:retryExceptions,omitempty
RetryAttempts int json:retryAttempts,omitempty

operationConfig

Name Type JSON Tag
DocSize int json:docSize
DocType string json:docType,omitempty
KeySize int json:keySize,omitempty
TemplateName string json:template
Start int64 json:start
End int64 json:end
FieldsToChange slice json:fieldsToChange
Exceptions struct json:exceptions,omitempty

retriedError

Name Type JSON Tag
SDKTiming struct json:sdkTimings
DocId string json:key
Status bool json:status
Extra map json:extra
ErrorString string json:errorString

sdkTimings

Name Type JSON Tag
SendTime string json:sendTime
AckTime string json:ackTime

singleResult

Name Type JSON Tag
SDKTiming struct json:sdkTimings
ErrorString string json:errorString
Status bool json:status
Cas uint64 json:cas