cnabio / cnab-go

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

Store installation names #223

Closed carolynvs closed 4 years ago

carolynvs commented 4 years ago

Do not rely on inferring the names from the storage layer, e.g. the directory above the claims, that leaks the abstraction and makes implementing the store more difficult. Have the claim store be responsible for tracking the names of installed bundles explicitly.

I ran into this while implementing storage on top of object storage, where the installation wasn't encoded in the directory structure, but instead using tags on the objects. It just doesn't make sense to have to calculate what the installation names are at the crud.Store layer, when each implementation may be using a different technique.