WClient is the client used to write to replicas
| 92 | |
| 93 | // WClient is the client used to write to replicas |
| 94 | type WClient interface { |
| 95 | PutObject(ctx context.Context, host, index, shard, requestID string, |
| 96 | obj *storobj.Object, schemaVersion uint64) (SimpleResponse, error) |
| 97 | DeleteObject(ctx context.Context, host, index, shard, requestID string, |
| 98 | id strfmt.UUID, deletionTime time.Time, schemaVersion uint64) (SimpleResponse, error) |
| 99 | PutObjects(ctx context.Context, host, index, shard, requestID string, |
| 100 | objs []*storobj.Object, schemaVersion uint64) (SimpleResponse, error) |
| 101 | MergeObject(ctx context.Context, host, index, shard, requestID string, |
| 102 | mergeDoc *objects.MergeDocument, schemaVersion uint64) (SimpleResponse, error) |
| 103 | DeleteObjects(ctx context.Context, host, index, shard, requestID string, |
| 104 | uuids []strfmt.UUID, deletionTime time.Time, dryRun bool, schemaVersion uint64) (SimpleResponse, error) |
| 105 | AddReferences(ctx context.Context, host, index, shard, requestID string, |
| 106 | refs []objects.BatchReference, schemaVersion uint64) (SimpleResponse, error) |
| 107 | Commit(ctx context.Context, host, index, shard, requestID string, resp interface{}) error |
| 108 | Abort(ctx context.Context, host, index, shard, requestID string) (SimpleResponse, error) |
| 109 | } |
| 110 | |
| 111 | // RClient is the client used to read from remote replicas |
| 112 | type RClient interface { |
no outgoing calls
no test coverage detected
searching dependent graphs…