LEFT | RIGHT |
(no file at all) | |
1 package main | 1 package main |
2 | 2 |
3 import "fmt" | 3 import ( |
| 4 » "fmt" |
| 5 » "launchpad.net/juju/go/cmd" |
| 6 ) |
4 | 7 |
5 // ProvisioningAgent is a cmd.Command responsible for running a provisioning age
nt. | 8 // ProvisioningAgent is a cmd.Command responsible for running a provisioning age
nt. |
6 type ProvisioningAgent struct { | 9 type ProvisioningAgent struct { |
7 agentConf | 10 agentConf |
8 } | 11 } |
9 | 12 |
10 func NewProvisioningAgent() *ProvisioningAgent { | 13 func NewProvisioningAgent() *ProvisioningAgent { |
11 return &ProvisioningAgent{agentConf: agentConf{name: "provisioning"}} | 14 return &ProvisioningAgent{agentConf: agentConf{name: "provisioning"}} |
12 } | 15 } |
13 | 16 |
14 // Run runs a provisioning agent. | 17 // Run runs a provisioning agent. |
15 func (a *ProvisioningAgent) Run() error { | 18 func (a *ProvisioningAgent) Run(_ *cmd.Context) error { |
16 return fmt.Errorf("MachineAgent.Run not implemented") | 19 return fmt.Errorf("MachineAgent.Run not implemented") |
17 } | 20 } |
LEFT | RIGHT |