github.com/cloudbase/juju-core@v0.0.0-20140504232958-a7271ac7912f/state/api/base/caller.go (about) 1 // Copyright 2012, 2013 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package base 5 6 // Caller is implemented by the client-facing State object. 7 type Caller interface { 8 // Call makes a call to the API server with the given object type, 9 // id, request and parameters. The response is filled in with the 10 // call's result if the call is successful. 11 Call(objType, id, request string, params, response interface{}) error 12 }