github.com/wallyworld/juju@v0.0.0-20161013125918-6cf1bc9d917a/worker/uniter/resolver/func.go (about) 1 // Copyright 2015 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package resolver 5 6 import ( 7 "github.com/juju/juju/worker/uniter/operation" 8 "github.com/juju/juju/worker/uniter/remotestate" 9 ) 10 11 type ResolverFunc func( 12 LocalState, 13 remotestate.Snapshot, 14 operation.Factory, 15 ) (operation.Operation, error) 16 17 func (f ResolverFunc) NextOp( 18 local LocalState, 19 remote remotestate.Snapshot, 20 opFactory operation.Factory, 21 ) (operation.Operation, error) { 22 return f(local, remote, opFactory) 23 }