Currently, the credentials manager defines and implements two methods depending on the kind of credentials that are sent/retrieved. https://github.com/chainloop-dev/chainloop/blob/main/internal/credentials/credentials.go#L39
We could achieve the same goal by just making the methods receive an interface {} or any and let the caller be the one that passes an object reference that supports json marshaller.
Currently, the credentials manager defines and implements two methods depending on the kind of credentials that are sent/retrieved. https://github.com/chainloop-dev/chainloop/blob/main/internal/credentials/credentials.go#L39
We could achieve the same goal by just making the methods receive an
interface {}oranyand let the caller be the one that passes an object reference that supports json marshaller.