LEFT | RIGHT |
1 // Copyright 2013 Canonical Ltd. | 1 // Copyright 2013 Canonical Ltd. |
2 // Licensed under the AGPLv3, see LICENCE file for details. | 2 // Licensed under the AGPLv3, see LICENCE file for details. |
3 | 3 |
4 package client | 4 package client |
5 | 5 |
6 import ( | 6 import ( |
7 "fmt" | 7 "fmt" |
8 "launchpad.net/juju-core/charm" | 8 "launchpad.net/juju-core/charm" |
9 "launchpad.net/juju-core/juju" | 9 "launchpad.net/juju-core/juju" |
10 "launchpad.net/juju-core/state" | 10 "launchpad.net/juju-core/state" |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 } | 297 } |
298 | 298 |
299 // SetAnnotations stores annotations about a given entity. | 299 // SetAnnotations stores annotations about a given entity. |
300 func (c *Client) SetAnnotations(args params.SetAnnotations) error { | 300 func (c *Client) SetAnnotations(args params.SetAnnotations) error { |
301 entity, err := c.api.state.Annotator(args.Tag) | 301 entity, err := c.api.state.Annotator(args.Tag) |
302 if err != nil { | 302 if err != nil { |
303 return err | 303 return err |
304 } | 304 } |
305 return entity.SetAnnotations(args.Pairs) | 305 return entity.SetAnnotations(args.Pairs) |
306 } | 306 } |
LEFT | RIGHT |