go-passbolt
go-passbolt copied to clipboard
New Resource Struct
The existing Approach with the Static Resource Struct has had its problems since the introduction of ResourceTypes.
Define a New Resource Struct which stores the metadata and secret as a map instead of individual fields. Add Helper functions on this New Struct to Simpifly Access to the fields. These helpers should automatically fetch The Secret Portion (perhaps also the Metadata) if it is not known and decrypt on the Fly. This should also cache the decrypted values.