cnabio / cnab-go

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

Add bundle.GetAction helper #272

Closed carolynvs closed 2 years ago

carolynvs commented 2 years ago

Add GetAction function to bundle that helps retrieve the definition of an action, including core actions: install, upgrade, uninstall. This allows the client to use common logic for some checks about what should happen during an action that is stateless or modifies bundle resources.

For example, should a claim be recorded for a particular action or not.

carolynvs commented 2 years ago

The build will be fixed by #273. So that should merge first.