github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/apiserver/facades/client/backups/mock_test.go (about) 1 // Copyright 2016 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package backups_test 5 6 import ( 7 "gopkg.in/juju/names.v2" 8 9 "github.com/juju/juju/state" 10 ) 11 12 // TODO - CAAS(ericclaudejones): This should contain state alone, model will be 13 // removed once all relevant methods are moved from state to model. 14 type stateShim struct { 15 *state.State 16 *state.Model 17 } 18 19 func (s *stateShim) MachineSeries(id string) (string, error) { 20 return "xenial", nil 21 } 22 23 func (s *stateShim) ControllerTag() names.ControllerTag { 24 return s.State.ControllerTag() 25 }