Commit Graph

117 Commits

Author SHA1 Message Date
Leon Mai 85aca5ac44
Merge branch 'master' into cosmos4 2020-07-14 13:45:03 -07:00
LMWF 15be14b9b3 cleaned up 2020-07-14 13:17:38 -07:00
LMWF 17d3d0b848 #377 - cosmos deserialization issue 2020-07-13 20:07:36 -07:00
Brooke Hamilton a0a293ca1b
[WIP] PostgreSQL State Store (#353)
* Added postgres state files

* Fix SQL Server integration tests. (#324)

* Initial unit and int tests for postgres

* Implemented dbaccess interface

* Formatting updates

* Create state table if not exists

* Initial set implementation

* Get and set with integration test

* Added delete

* Create date and update date in database

* Integration tests for bulk set and bulk delete

* Etag processing, test refactor

* Added tests for etag processing

* Updated const, removed public metadata fields

* Cleanup edits

* Fixed linting issues

* Ran go mod tidy

* Initial implementation of TransactionalStore

* Fixed linting issues

* Added tests and validation

* Test for creating the state table

* Fixed issue with parsing param value as string

* Update to integration tests

* Fixed linting issues

* Added retry logic from state

* Changed primary key to text

* Updated debug logging

* Review updates

Co-authored-by: Young Bu Park <youngp@microsoft.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2020-07-09 13:56:08 -07:00
Leon Mai a086a42f2b
Implement the Multi() interface method adding transaction support in … (#372)
* Implement the Multi() interface method adding transaction support in the cosmos db component.  The implementation
uses a stored procedure to do this.  The stored procedure is registered in Init().

* linter

* code review comments

* code review

* remove comment

* casing and de-dup

* use 'in' in query

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2020-06-30 13:32:41 -07:00
Shalabh Mohan Shrivastava 007dbd03b0
Fix for context deadline exceeded issue - use operation timeout (#370) 2020-06-25 15:11:56 -07:00
Shalabh Mohan Shrivastava 7b0fbe65cc
Setting URL correctly when username/password is not provided (#369)
* Adding Username/password optional

* fixing lint errors
2020-06-25 13:29:52 -07:00
Mukundan Sundararajan 5c62707aba
Upgrade go version to 1.14.3 and linter version to 1.26.0 (#352)
* Upgrade to go 1.14.3 and linter version to 1.26.0
2020-05-29 15:26:33 -07:00
Sashi Kumar 42a7af4c0c
[DynamoDB] Update BulkSet and BulkDelete with BatchWriteItem (#331)
* [DynamoDB] Update BulkSet and BulkDelete with BatchWriteItem

* Validate type of value

* Marshal value before setting for Set and BulkSet

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2020-05-27 15:12:34 -07:00
Trond Hindenes d3e9a7b3a7
Use shared aws auth package (#347)
* Use shared sqs auth package

* Goimports-ed files

* Added support for endpoint param in aws credentials abstraction, since the sqs-sns pubsub module required it

* Added endpoint support for all aws things

* Updated tests
2020-05-26 16:27:16 -07:00
Brooke Hamilton 909739702e
Fixed SQL Server state store integration tests (#324) (#325) 2020-05-18 09:40:26 -07:00
Julian-Chu caab6d32eb
don't treat non-existent keys as errors (#300) 2020-04-09 12:03:02 -07:00
Young Bu Park 0489fb17f3
Fix linter errors (#293) 2020-04-01 17:22:15 -07:00
pruthvidhodda fe9b90075a
Change redis client library to go-redis for redis component (#283)
* Change redis client library to go-redis for redis component to support TLS
2020-03-30 19:50:48 -07:00
Sivamuthu Kumar 910a8931f7
Empty response when aerospike state key not found (#285) 2020-03-28 09:06:01 -07:00
Abhishek Gupta a0b981bda5
don't treat non-existent keys as errors (#274)
Co-authored-by: Aman Bhardwaj <amanbha@users.noreply.github.com>
2020-03-19 14:22:17 -07:00
Abhishek Gupta b6f15ed72c
don't treat non-existent keys as errors (#275) 2020-03-19 12:28:37 -07:00
Sivamuthu Kumar 14b08a11cf
Couchbase state store: don't treat non-existent keys as errors (#276)
* Couchabse state store: don't treat non-existent keys as errors

* Check specific key not found error
2020-03-19 12:27:38 -07:00
Young Bu Park 60490d584d
Fix linting errors (#257) 2020-03-09 08:33:09 -07:00
Yaron Schneider 703f9bf04e
Initial implementation (#116)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-03-04 14:42:02 -08:00
Young Bu Park 3f3100fc22
fix wrong pkg (#239) 2020-02-28 16:32:24 -08:00
Young Bu Park ee97c3c56a
Use dapr logger (#238)
* Use dapr logger

* skip linter false alarm
2020-02-28 15:49:49 -08:00
Yaron Schneider d40be01831
fix sql server get (#233) 2020-02-25 03:23:40 -08:00
Yaron Schneider df6c3c3e32
add params for mongoDB (#216) 2020-02-10 11:04:37 -08:00
Young Bu Park 5a24823c89
Upgrade go to 1.13.7 and linter to 1.23.2 (#205)
* upgrade go

* Fix all linter errors
2020-02-03 14:29:29 -08:00
REDDY PRASAD 5f3f850852
Add GCP Secret Manager (#199)
*  Add GCP Secret Manager

* Update tests

* Fix lint errors

* Update as per review

* Run go mod tidy

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2020-01-30 21:51:52 -08:00
Haishi2016 0cfa9ad99c
sort store names alphabetically (#201) 2020-01-30 17:00:57 -08:00
Yaron Schneider 4433e605f1
Add CloudState CRDT (#200)
* add CloudState CRDT

* fix linter

* add tests
2020-01-29 14:13:23 -08:00
Abhishek Gupta 6de230391d
Aerospike state store implementation (#196)
* aerospike state store impl

* fixed linter issues:

* addressed feedback

* Delete bearer_middleware.go

* Delete cassandra_test.go

* Revert "Delete cassandra_test.go"

This reverts commit 462c066814.

* Revert "Delete bearer_middleware.go"

This reverts commit ae114a1df1.

Co-authored-by: Young Bu Park <youngp@microsoft.com>
2020-01-28 18:55:14 -08:00
Ivan Gavryliuk 84c4e6bf8e Azure Table Storage state (#197)
* initial scaffolding

* tidy go.mod

* adding delete functionality and tests

* updating Readme.md

* ETag concurrency support and github review fixes

* removing unused isConflictError

* ping build, some issue with CI timing out

Co-authored-by: Young Bu Park <youngp@microsoft.com>
2020-01-28 09:20:18 -08:00
Abhishek Gupta 9323c44ecf check etag for etcd update and delete ops (#175) 2020-01-09 12:33:23 -08:00
Francisco Beltrao 1a37f892aa Move SQLServer state store from azure folder (#181) 2020-01-07 23:38:44 -08:00
Artur Souza 0ad870bebf
Merge branch 'master' into dapr-issue123 2020-01-07 14:05:59 -08:00
Francisco Beltrao db8b6135d6 Rename SQLServer state ctor to existing pattern (#176) 2020-01-07 06:17:13 -08:00
abhishek 7d841d55a9 added port option to cassandra state store 2020-01-07 18:05:26 +05:30
Francisco Beltrao 70381d8312 Add sql server state (#158)
* Add sql server state

* Fix lint

* Disable docker based tests

* Rename store to SQLServer
Use env variable DAPR_TEST_SQL_CONNSTRING to enable integratoion test

* Add support to Azure SQL on integration test

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2020-01-06 09:14:13 -08:00
Abhishek Gupta c4bd2a47ea Implementation for Hazelcast based state store (#145)
* hazelcast store impl

* go.mod update
2019-11-27 21:12:47 -08:00
sayboras 08362d9e6b Added check for go.mod (#141)
* Added check for go.mod

* Rename the make target

* Grrrrr

* Update go.mod and go.sum

* Run gofmt and goimports

* Correct typo
2019-11-25 00:45:51 -08:00
Shalabh Mohan Shrivastava bcd23db009
Changes to include Package names pubsub/secret stores/state to be consistent with company name (#137)
* [Commit - PubSub changes ]

Changing the names of the packages directory so to be consistent with name of the company .

It is to be noted that package name can not have hyphen "-" in the name.
So changing the directory names and putting under company names.

For example - servicebus package would be

dapr/components-contrib/pubsub/azure/servicebus

* Commit 2 - Changes for Secret Stores

* Commit 3 - for the state store changes
2019-11-22 12:46:42 -08:00
Leon Mai 48d385b82b Don't return nil for response when length of items is 0 (#133) 2019-11-20 15:21:21 -08:00
Shalabh Mohan Shrivastava 4ad618f2f4 Adding metadata to State Delete and Get requests 2019-11-19 14:03:11 -08:00
Yaron Schneider 9c6f0e9ebf
Update Readme.md (#129)
Update with Couchbase addition.
2019-11-18 23:53:54 -08:00
Abhishek Gupta 356981000e Couchbase state store implementation (#100)
* first cut for couchbase store

* set and delete account for etag

* updated implementation

* fixed go mod
2019-11-18 23:13:41 -08:00
Yoichi Kawasaki bd36a6759f Added state store: Cloud Firestore (#110)
* Added State Store: Cloud Firestore

* changed state store name
2019-11-08 14:43:43 -08:00
Shalabh Mohan Shrivastava 08e654c0cd Change TransactionalStateStore interface to TransactionalStore (#114)
* Change TransactionalStateStore interface to TransactionalStore

https://github.com/dapr/components-contrib/issues/91

* Updating the ReadMe file

Changing to TransactionalStore and also including new MongoDB state store.
2019-11-08 12:10:19 -08:00
Shalabh Mohan Shrivastava 4b58411247 Adding transactions support to MongoDB (#111)
* Adding transactions support to MongoDB

* Resolving code review comments

* fixing the issue while testing, passing options in the callback
2019-11-08 11:33:39 -08:00
Yaron Schneider 75b1fc29b4
Update Readme with Zookeeper (#90) 2019-10-31 21:06:51 -07:00
Flier Lu 342e0d6223 [WIP] Add zookeeper state store (#80)
* [WIP] Add zookeeper state store

* go mod vendor

* fix lint warnings

* change state.StateStore to state.Store
2019-10-31 21:04:34 -07:00
Shalabh Mohan Shrivastava 3ae5547e41 Adding MongoDB State Store Implementation (#53)
* Adding MongoDB State Store Implementation

Adding MongoDB State Store Implementation

* Fix bugs and add unit tests

* Adding write/read concerns

* go sum changes

* adding defer cancellation

* fixing the bug for default case override

* Resolving code review comment

* Adding go mod vendor files

* Fixing lint errors
2019-10-31 12:03:04 -07:00
Abhilash Singh 0cae368496 [WIP] Add memcached state store (#71)
* Add memcached state store init

* Add parsing of optional parameters

* Add tests

* Update vendor

* Add memcached to supported state store list
2019-10-31 06:21:04 -07:00
sayboras a26e926ad2 Rename the StateStore interface (#70)
* Rename the interface

* Revert the godoc changes
2019-10-30 17:44:47 -07:00
Leon Mai 4200a3cc2d Add link to examples (#83) 2019-10-30 11:49:25 -07:00
Young Bu Park e48d4bca90
Merge branch 'master' into state-fix 2019-10-29 16:55:12 -07:00
Haishi Bai b278fb7da0 relax etag check during delete 2019-10-29 16:24:31 -07:00
sayboras 8adf323961 Add github action for CI (#59)
* Initial commit

* Fixed all linting error

* Used prepared query instead of string format

* Enabled linter for test
Enabled below linters
    - gochecknoglobals
    - gochecknoinits

* Enabled below linters
    - godox
    - interfacer
    - maligned

* Revert name change for StateStore in pkg state

* Incorporate review comments

* Cleanup the github ci

* Correct typo

* Add golangci-lint version in github ci step

* Update Readme.md
2019-10-28 15:39:48 -07:00
Anubhav Mishra cc7578c02b state: initial version for the consul state store implementation (#52)
* state: initial version for the consul state store implementation

* updates after review

* changes after running go mod vendor

* more clean up after review
2019-10-25 21:34:16 -07:00
Yaron Schneider f2b0cede8a
Add cassandra state store (#48)
* add cassandra state store

* refactor return statements
2019-10-23 12:47:28 -07:00
Roberto Rojas 63af15926b ETCD Implementation of State Store (#42)
* etcd: initial commit

* etcd: functionality and unit tests

* etcd: fixes marshaling data sent to etcd

* changes as per PR review
2019-10-22 14:30:15 -07:00
Yaron Schneider 887cd92b8d
vendor update (#34) 2019-10-14 23:49:50 -07:00
shalabhs 4a62360ad4 - adding more corrections 2019-10-10 18:16:08 -07:00
shalabhs 1aa7125ca4 adding commment. 2019-10-10 18:13:06 -07:00
shalabhs ae8c77f43b Adding and Correcting code comments and types 2019-10-10 18:09:13 -07:00
Aman Bhardwaj 04bef3ac3f Adding license header and updating to MIT license. (#26) 2019-10-09 10:58:08 -07:00
Yaron Schneider 70c06fadd8
redis: skip marshalling if []byte (#23) 2019-10-06 07:53:26 -07:00
Yaron Schneider 2b8dbd2b44
dapr name change (#21) 2019-10-02 13:21:22 -07:00
Yaron Schneider ec74d90bf4
More descriptive Redis errors (#19) 2019-09-30 13:02:30 -07:00
yaron2 22fea6f43d initial commit 2019-09-26 15:47:41 -07:00