runfns: sort ContainerFilters depth first

- run ContainerFilters most deeply nested in the hierarchy before others
- test refactoring
This commit is contained in:
Phillip Wittrock
2020-01-13 12:35:47 -08:00
parent 62e5abd437
commit 778f92ca0d
5 changed files with 487 additions and 154 deletions

View File

@@ -152,6 +152,10 @@ type ContainerFilter struct {
checkInput func(string)
}
func (c ContainerFilter) String() string {
return c.Image
}
// StorageMount represents a container's mounted storage option(s)
type StorageMount struct {
// Type of mount e.g. bind mount, local volume, etc.