[x] make test-all (UNIX) passes. CI will also test this
[x] unit and/or integration tests are included (if applicable)
[x] documentation is changed or added (if applicable)
Description of change
When using Goss as a package it might be desirable to disable a certain resource type - mainly Command - so this adds a new utility util.WithDisabledResourceTypes() that can be used to disable a resource type.
Might not be desirable to change the Validate() signature but was best I could come up with, let me know if you have alternatives in mind.
Checklist
make test-all
(UNIX) passes. CI will also test thisDescription of change
When using Goss as a package it might be desirable to disable a certain resource type - mainly Command - so this adds a new utility
util.WithDisabledResourceTypes()
that can be used to disable a resource type.Might not be desirable to change the
Validate()
signature but was best I could come up with, let me know if you have alternatives in mind.Also deals with
ioutil
deprecation.