~rogpeppe/juju-core/256-more-status

« back to all changes in this revision

Viewing changes to state/apiserver/apiserver.go

  • Committer: Benji York
  • Date: 2013-03-20 20:05:34 UTC
  • mfrom: (1010.3.15 1130172)
  • Revision ID: benji.york@canonical.com-20130320200534-ho97u66shmicxkkf
Add SetServiceConstraints to API

This also involved moving the Constraints struct into its own package in order
to break an import cycle.

R=dfc, bac, dimitern, fwereade
CC=
https://codereview.appspot.com/7600044

Show diffs side-by-side

added added

removed removed

Lines of Context:
369
369
        return statecmd.ServiceDestroy(c.root.srv.state, args)
370
370
}
371
371
 
 
372
// SetServiceConstraints sets the constraints for a given service.
 
373
func (c *srvClient) SetServiceConstraints(args params.SetServiceConstraints) error {
 
374
        return statecmd.SetServiceConstraints(c.root.srv.state, args)
 
375
}
 
376
 
372
377
// DestroyRelation removes the relation between the specified endpoints.
373
378
func (c *srvClient) DestroyRelation(args params.DestroyRelation) error {
374
379
        return statecmd.DestroyRelation(c.root.srv.state, args)