1
// Copyright 2013 Joyent Inc.
2
// Licensed under the AGPLv3, see LICENCE file for details.
7
"launchpad.net/juju-core/instance"
8
"launchpad.net/juju-core/provider/common"
11
type environInstance struct {
16
var _ instance.Instance = (*environInstance)(nil)
18
func (inst *environInstance) Id() instance.Id {
22
func (inst *environInstance) Status() string {
23
_ = inst.env.getSnapshot()
24
return "unknown (not implemented)"
27
func (inst *environInstance) Addresses() ([]instance.Address, error) {
28
_ = inst.env.getSnapshot()
29
return nil, errNotImplemented
32
func (inst *environInstance) DNSName() (string, error) {
33
// This method is likely to be replaced entirely by Addresses() at some point,
34
// but remains necessary for now. It's probably smart to implement it in
35
// terms of Addresses above, to minimise churn when it's removed.
36
_ = inst.env.getSnapshot()
37
return "", errNotImplemented
40
func (inst *environInstance) WaitDNSName() (string, error) {
41
// This method is likely to be replaced entirely by Addresses() at some point,
42
// but remains necessary for now. Until it's finally removed, you can probably
43
// ignore this method; the common implementation should work.
44
return common.WaitDNSName(inst)