func (env *environ) cloudSpec(region string) (simplestreams.CloudSpec, error) { endpoint := gosigma.ResolveEndpoint(region) return simplestreams.CloudSpec{ Region: region, Endpoint: endpoint, }, nil }
func (env *environ) MetadataLookupParams(region string) (*simplestreams.MetadataLookupParams, error) { env.lock.Lock() defer env.lock.Unlock() return &simplestreams.MetadataLookupParams{ Region: region, Endpoint: gosigma.ResolveEndpoint(region), Series: config.PreferredSeries(env.ecfg), }, nil }
func (env *environ) MetadataLookupParams(region string) (*simplestreams.MetadataLookupParams, error) { if region == "" { region = gosigma.DefaultRegion } env.lock.Lock() defer env.lock.Unlock() return &simplestreams.MetadataLookupParams{ Region: region, Endpoint: gosigma.ResolveEndpoint(region), Architectures: arch.AllSupportedArches, Series: config.PreferredSeries(env.ecfg), }, nil }