github.com/wallyworld/juju@v0.0.0-20161013125918-6cf1bc9d917a/environs/simplestreams/validation.go (about) 1 // Copyright 2013 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package simplestreams 5 6 // MetadataValidator instances can provide parameters used to query simplestreams 7 // metadata to find information for the specified parameters. If region is "", 8 // then the implementation may use its own default region if it has one, 9 // or else returns an error. 10 type MetadataValidator interface { 11 MetadataLookupParams(region string) (*MetadataLookupParams, error) 12 } 13 14 type MetadataLookupParams struct { 15 Region string 16 Series string 17 Architectures []string 18 Endpoint string 19 Sources []DataSource 20 Stream string 21 }