Tizen_4.0 base
[platform/upstream/docker-engine.git] / integration-cli / environment / protect.go
1 package environment
2
3 // ProtectImage adds the specified image(s) to be protected in case of clean
4 func (e *Execution) ProtectImage(t testingT, images ...string) {
5         for _, image := range images {
6                 e.protectedElements.images[image] = struct{}{}
7         }
8 }
9
10 type protectedElements struct {
11         images map[string]struct{}
12 }