github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/api/base/types.go (about) 1 // Copyright 2015 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package base 5 6 import ( 7 "time" 8 9 "github.com/juju/juju/apiserver/params" 10 ) 11 12 // UserModel holds information about a model and the last 13 // time the model was accessed for a particular user. This is a client 14 // side structure that translates the owner tag into a user facing string. 15 type UserModel struct { 16 Name string 17 UUID string 18 Owner string 19 LastConnection *time.Time 20 } 21 22 // ModelStatus holds information about the status of a juju model. 23 type ModelStatus struct { 24 UUID string 25 Life params.Life 26 Owner string 27 HostedMachineCount int 28 ServiceCount int 29 }