github.com/altoros/juju-vmware@v0.0.0-20150312064031-f19ae857ccca/api/uniter/environ.go (about) 1 // Copyright 2013 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package uniter 5 6 // This module implements a subset of the interface provided by 7 // state.Environment, as needed by the uniter API. 8 9 // Environment represents the state of an environment. 10 type Environment struct { 11 name string 12 uuid string 13 } 14 15 // UUID returns the universally unique identifier of the environment. 16 func (e Environment) UUID() string { 17 return e.uuid 18 } 19 20 // Name returns the human friendly name of the environment. 21 func (e Environment) Name() string { 22 return e.name 23 }