-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter resources NOT having a tag (#101)
* updated to allow for all resources not matching tag to be removed * better example of use * Refactor NewFilter function * move unmarshal JSON into NewFilter * return error instead of Fatal() * Add tagged filter If true, select all resources with any tag. If false, select all resources without tags. * Check len(tags) == 0 instead of tags != nil * Separate MatchTags and MatchTagged * Add notags filter * Remove notags and allow NOT(key) in tags filter * Update README * Fix using matchTags and matchNoTags together Co-authored-by: Richard Silver <[email protected]>
- Loading branch information
Showing
9 changed files
with
554 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.