cnabio / cnab-go

A Go implementation of CNAB Core 1.0
MIT License
69 stars 37 forks source link

Initialize storage from backing stores #225

Closed carolynvs closed 4 years ago

carolynvs commented 4 years ago

Do not create backing stores internally for a claim or credential storage. Instead have the caller pass in the backing store so that the caller can control the lifetime and connection properties, such as AutoConnect, themselves.

For example, in porter this let's us use the same instance of a backing store independently and with a claim store, while keeping the connection open during the migration of the claims directory to match the new claims spec.