Signed-off-by: Vincent Demeester <vincent@sbr.pm> Upstream-commit: 1858656925c8705ae433769fbb9a2c18b6685a69 Component: engine
13 lines
312 B
Go
13 lines
312 B
Go
package environment
|
|
|
|
// ProtectImage adds the specified image(s) to be protected in case of clean
|
|
func (e *Execution) ProtectImage(t testingT, images ...string) {
|
|
for _, image := range images {
|
|
e.protectedElements.images[image] = struct{}{}
|
|
}
|
|
}
|
|
|
|
type protectedElements struct {
|
|
images map[string]struct{}
|
|
}
|