Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(355)

Delta Between Two Patch Sets: state/apiserver/client/client.go

Issue 10494043: state/apiserver/client: new package
Left Patch Set: Created 11 years, 10 months ago
Right Patch Set: state/apiserver/client: new package Created 11 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « state/apiserver/client/api_test.go ('k') | state/apiserver/client/client_test.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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
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 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b