Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add die feed/release methods for json/yaml (reconcilerio#98)
Errors now result in a panic rather than being ignored. New die methods: // DieFeedJSON returns a new die with the provided JSON. Panics on error. DieFeedJSON(j []byte) *MyResourceDie // DieFeedYAML returns a new die with the provided YAML. Panics on error. DieFeedYAML(y []byte) *MyResourceDie // DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error. DieFeedYAMLFile(name string) *MyResourceDie // DieReleaseJSON returns the resource managed by the die as JSON. Panics on error. DieReleaseJSON() []byte // DieReleaseYAML returns the resource managed by the die as YAML. Panics on error. DieReleaseYAML() []byte Signed-off-by: Scott Andrews <scott@andrews.me>
- Loading branch information