github.com/rogpeppe/juju@v0.0.0-20140613142852-6337964b789e/constraints/export_test.go (about) 1 // Copyright 2014 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package constraints 5 6 var WithFallbacks = withFallbacks 7 8 func Without(cons Value, attrTags ...string) (Value, error) { 9 return cons.without(attrTags...) 10 } 11 12 func HasAny(cons Value, attrTags ...string) []string { 13 return cons.hasAny(attrTags...) 14 } 15 16 func AttributesWithValues(cons Value) map[string]interface{} { 17 return cons.attributesWithValues() 18 }