~james-page/ubuntu/saucy/juju-core/1.16.5

« back to all changes in this revision

Viewing changes to src/launchpad.net/juju-core/provider/export_test.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-09-03 14:22:22 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20130903142222-9mes2r8wqr0bs7lp
Tags: 1.13.3-0ubuntu1
New upstream point release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright 2012, 2013 Canonical Ltd.
 
2
// Licensed under the AGPLv3, see LICENCE file for details.
 
3
 
 
4
package provider
 
5
 
 
6
import (
 
7
        "launchpad.net/juju-core/environs/config"
 
8
        "launchpad.net/juju-core/instance"
 
9
        "launchpad.net/juju-core/state"
 
10
        "launchpad.net/juju-core/state/api"
 
11
)
 
12
 
 
13
func GetDNSNames(instances []instance.Instance) []string {
 
14
        return getDNSNames(instances)
 
15
}
 
16
 
 
17
func GetStateInfo(cfg *config.Config, hostnames []string) (*state.Info, *api.Info) {
 
18
        return getStateInfo(cfg, hostnames)
 
19
}
 
20
 
 
21
func ComposeAddresses(hostnames []string, port int) []string {
 
22
        return composeAddresses(hostnames, port)
 
23
}