func VisitContainers(podSpec *api.PodSpec, mask ContainerType, visitor ContainerVisitor) bool {
	if mask&InitContainers != 0 {
		for i := range podSpec.InitContainers {
			if !visitor(&podSpec.InitContainers[i], InitContainers) {
				return false
			}
		}
	}
	if mask&Containers != 0 {
		for i := range podSpec.Containers {
			if !visitor(&podSpec.Containers[i], Containers) {
				return false
			}
		}
	}
	if mask&EphemeralContainers != 0 {
		for i := range podSpec.EphemeralContainers {
			if !visitor((*api.Container)(&podSpec.EphemeralContainers[i].EphemeralContainerCommon), EphemeralContainers) {
				return false
			}
		}
	}
	return true
}
// VisitContainers invokes the visitor function with a pointer to every container
// spec in the given pod spec with type set in mask. If visitor returns false,
// visiting is short-circuited. VisitContainers returns true if visiting completes,
// false if visiting was short-circuited.
VisitContainers invokes the visitor function with a pointer to every container
spec in the given pod spec with type set in mask. If visitor returns false,
visiting is short-circuited. VisitContainers returns true if visiting completes,
false if visiting was short-circuited.
// VisitContainers invokes the visitor function with a pointer to every container // spec in the given pod spec with type set in mask . If visitor returns false // visiting is short - circuited . VisitContainers returns true if visiting completes // false if visiting was short - circuited .
func VisitContainers(podSpec *api.PodSpec, mask ContainerType, visitor ContainerVisitor) bool {
	if mask&InitContainers != 0 {
		for i := range podSpec.InitContainers {
			if !visitor(&podSpec.InitContainers[i], InitContainers) {
				return false
			}
		}
	}
	if mask&Containers != 0 {
		for i := range podSpec.Containers {
			if !visitor(&podSpec.Containers[i], Containers) {
				return false
			}
		}
	}
	if mask&EphemeralContainers != 0 {
		for i := range podSpec.EphemeralContainers {
			if !visitor((*api.Container)(&podSpec.EphemeralContainers[i].EphemeralContainerCommon), EphemeralContainers) {
				return false
			}
		}
	}
	return true
}
func VisitContainers ( podSpec * api . PodSpec , mask ContainerType , visitor ContainerVisitor ) bool { if mask & InitContainers != 0 { for i := range podSpec . InitContainers { if ! visitor ( & podSpec . InitContainers [ i ] , InitContainers ) { return false } } } if mask & Containers != 0 { for i := range podSpec . Containers { if ! visitor ( & podSpec . Containers [ i ] , Containers ) { return false } } } if mask & EphemeralContainers != 0 { for i := range podSpec . EphemeralContainers { if ! visitor ( ( * api . Container ) ( & podSpec . EphemeralContainers [ i ] . EphemeralContainerCommon ) , EphemeralContainers ) { return false } } } return true }
VisitContainers invokes the visitor function with a pointer to every container
spec in the given pod spec with type set in mask.
VisitContainers invokes the visitor function with a pointer to every container spec in the given pod spec with type set in mask .