github.com/wallyworld/juju@v0.0.0-20161013125918-6cf1bc9d917a/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.Model, as needed by the uniter API.
     8  
     9  // Model represents the state of a model.
    10  type Model struct {
    11  	name string
    12  	uuid string
    13  }
    14  
    15  // UUID returns the universally unique identifier of the model.
    16  func (e Model) UUID() string {
    17  	return e.uuid
    18  }
    19  
    20  // Name returns the human friendly name of the model.
    21  func (e Model) Name() string {
    22  	return e.name
    23  }