protect.go 312 B

123456789101112
  1. package environment
  2. // ProtectImage adds the specified image(s) to be protected in case of clean
  3. func (e *Execution) ProtectImage(t testingT, images ...string) {
  4. for _, image := range images {
  5. e.protectedElements.images[image] = struct{}{}
  6. }
  7. }
  8. type protectedElements struct {
  9. images map[string]struct{}
  10. }