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

Issue 7064066: environs/agent: new package

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by rog
Modified:
11 years, 3 months ago
Reviewers:
mp+142676
Visibility:
Public.

Description

environs/agent: new package For the moment, it only deals with settings, but some functionality will probably move from environs/tools.go into this package in a future CL. I decided to write all the settings to a single file rather than the current multiple files) because it's less code, more easily extensible, and if we do want different goroutines in an agent to write different aspects of the file, it would be straightforward to add some locking around the write. https://code.launchpad.net/~rogpeppe/juju-core/186-agent-package/+merge/142676 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : environs/agent: new package #

Total comments: 4

Patch Set 3 : environs/agent: new package #

Patch Set 4 : environs/agent: new package #

Unified diffs Side-by-side diffs Delta from patch set Stats (+434 lines, -0 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A environs/agent/agent.go View 1 2 3 1 chunk +174 lines, -0 lines 0 comments Download
A environs/agent/agent_test.go View 1 2 1 chunk +258 lines, -0 lines 0 comments Download

Messages

Total messages: 6
rog
Please take a look.
11 years, 3 months ago (2013-01-10 12:38:28 UTC) #1
TheMue
Mostly LGTM, only two little hints. https://codereview.appspot.com/7064066/diff/2001/environs/agent/agent.go File environs/agent/agent.go (right): https://codereview.appspot.com/7064066/diff/2001/environs/agent/agent.go#newcode85 environs/agent/agent.go:85: return fmt.Errorf("invalid server ...
11 years, 3 months ago (2013-01-10 12:57:18 UTC) #2
rog
Please take a look. https://codereview.appspot.com/7064066/diff/2001/environs/agent/agent.go File environs/agent/agent.go (right): https://codereview.appspot.com/7064066/diff/2001/environs/agent/agent.go#newcode85 environs/agent/agent.go:85: return fmt.Errorf("invalid server address %q", ...
11 years, 3 months ago (2013-01-10 13:01:49 UTC) #3
rog
11 years, 3 months ago (2013-01-10 13:01:54 UTC) #4
fwereade
LGTM -- json justified over yaml online on the basis that yaml doesn't deal with ...
11 years, 3 months ago (2013-01-10 13:21:49 UTC) #5
rog
11 years, 3 months ago (2013-01-10 18:35:17 UTC) #6
*** Submitted:

environs/agent: new package

For the moment, it only deals with settings, but some
functionality will probably move from environs/tools.go
into this package in a future CL.

I decided to write all the settings to a single file rather than the
current multiple files) because it's less code, more easily extensible,
and if we do want different goroutines in an agent to write different
aspects of the file, it would be straightforward to add some locking
around the write.

R=TheMue, fwereade
CC=
https://codereview.appspot.com/7064066
Sign in to reply to this message.

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