github.com/altoros/juju-vmware@v0.0.0-20150312064031-f19ae857ccca/api/leadership/interface.go (about) 1 // Copyright 2014 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package leadership 5 6 import ( 7 "github.com/juju/errors" 8 9 "github.com/juju/juju/api/base" 10 "github.com/juju/juju/leadership" 11 ) 12 13 // LeadershipClaimDeniedErr is the error which will be returned when a 14 // leadership claim has been denied. 15 var LeadershipClaimDeniedErr = errors.New("leadership claim denied") 16 17 // LeadershipClient represents a client to the leadership service. 18 type LeadershipClient interface { 19 base.ClientFacade 20 leadership.LeadershipManager 21 }