tl icon indicating copy to clipboard operation
tl copied to clipboard

Provide public Verify to import in other applications

Open pst opened this issue 4 years ago • 1 comments

Is it a goal to allow tl's verify method to be built into other Go applications? I am thinking similarly how Kustomize provides API packages that it then uses itself to provide the CLI's functionality.

My use case is, that I provide release artifacts as zip files for both framework releases and upstream services I package. The kbst CLI scaffolds user repositories from release artifacts and also vendors packaged manifests from catalog artifacts in a user's repository.

Optimally I could use the GitHub action to add release artifacts to the log and have kbst verify artifacts automatically.

Am I on the right track here? I'd be happy to follow this issue up with a PR if this is a direction that you think is useful.

pst avatar Oct 01 '20 10:10 pst

Yea, this repo should provide a Go library version overtime. And I would accept a PR for something like that.

The get function from the GitHub action is probably close to what I would want to do except also taking a Reader instead of writing to a file.

philips avatar Oct 02 '20 14:10 philips