github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/apiserver/facades/client/application/export_test.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package application
     5  
     6  import "github.com/juju/juju/state"
     7  
     8  var (
     9  	ParseSettingsCompatible = parseSettingsCompatible
    10  	NewStateStorage         = &newStateStorage
    11  	GetStorageState         = getStorageState
    12  )
    13  
    14  func GetState(st *state.State) Backend {
    15  	return stateShim{st}
    16  }
    17  
    18  func SetModelType(api *APIv9, modelType state.ModelType) {
    19  	api.modelType = modelType
    20  }