// ValidatePullPolicy check if the pullPolicy from CLI is valid and returns the valid enum type
// if the value from CLI or containers.conf is invalid returns the error
ValidatePullPolicy check if the pullPolicy from CLI is valid and returns the valid enum type
if the value from CLI or containers.conf is invalid returns the error
// ValidatePullPolicy check if the pullPolicy from CLI is valid and returns the valid enum type // if the value from CLI or containers . conf is invalid returns the error
func ValidatePullPolicy(pullPolicy string) (PullPolicy, error) {
	switch pullPolicy {
	case "always":
		return PullImageAlways, nil
	case "missing":
		return PullImageMissing, nil
	case "never":
		return PullImageNever, nil
	case "":
		return PullImageMissing, nil
	default:
		return PullImageMissing, errors.Errorf("invalid pull policy %q", pullPolicy)
	}
}
func ValidatePullPolicy ( pullPolicy string ) ( PullPolicy , error ) { switch pullPolicy { case " " : return PullImageAlways , nil case " " : return PullImageMissing , nil case " " : return PullImageNever , nil case " " : return PullImageMissing , nil default : return PullImageMissing , errors . Errorf ( " " , pullPolicy ) } }
ValidatePullPolicy check if the pullPolicy from CLI is valid and returns the valid enum type
if the value from CLI or containers.conf is invalid returns the error
ValidatePullPolicy check if the pullPolicy from CLI is valid and returns the valid enum type if the value from CLI or containers . conf is invalid returns the error