Code review comment for lp:~dimitern/goamz/nic-api-calls

Revision history for this message
Dimiter Naydenov (dimitern) wrote :

Please take a look.

https://codereview.appspot.com/54570048/diff/20001/ec2/ec2.go
File ec2/ec2.go (right):

https://codereview.appspot.com/54570048/diff/20001/ec2/ec2.go#newcode635
ec2/ec2.go:635: // CreateSecurityGroup run a CreateSecurityGroup request
in EC2, with
On 2014/02/05 15:17:35, rog wrote:
> s/run/runs/

Done.

https://codereview.appspot.com/54570048/diff/20001/ec2/ec2.go#newcode643
ec2/ec2.go:643: // CreateSecurityGroupVPC creates a security group in
EC2, associated
On 2014/02/05 15:17:35, rog wrote:
> s/,//

> // If vpcId is empty, this call is equivalent to CreateSecurityGroup.

> ?

Done.

https://codereview.appspot.com/54570048/diff/20001/ec2/networkinterfaces.go
File ec2/networkinterfaces.go (right):

https://codereview.appspot.com/54570048/diff/20001/ec2/networkinterfaces.go#newcode80
ec2/networkinterfaces.go:80: // You can specify a primary private IP
address by setting
On 2014/02/05 15:17:35, rog wrote:
> Why have we got both PrivateIPs and PrivateIPAddress?

> Couldn't we have PrivateIPs only and avoid the question
> of what happens when they're both set?

I tried to stay close to the AWS API, which allows both but with some
conditions. Having PrivateIPAddress and setting just that is a shortcut
to setting PrivateIPs: []ec2.PrivateIP{{Address: "..", IsPrimary:
true}}. But perhaps the slightly more verbose syntax will work well to
hide the API complexity.

https://codereview.appspot.com/54570048/diff/20001/ec2/networkinterfaces.go#newcode84
ec2/networkinterfaces.go:84: // If you don't specify a private IP
address, EC2 selects one for you
On 2014/02/05 15:17:35, rog wrote:
> // If a private IP address is not specified, EC2 selects
> // one from the subnet range.

Done slightly differently.

https://codereview.appspot.com/54570048/diff/20001/ec2/networkinterfaces.go#newcode87
ec2/networkinterfaces.go:87: // SecondaryPrivateIPsCount is the number
of secondary private IP
On 2014/02/05 15:17:35, rog wrote:
> // When SecondaryPrivateIPsCount is non-zero,
> // EC2 allocates that number of
> // IP addresses from within the subnet range.
> // The number of IP addresses you
> // can assign to a network interface varies by instance type.

> ?

Done.

https://codereview.appspot.com/54570048/diff/20001/ec2/networkinterfaces.go#newcode149
ec2/networkinterfaces.go:149: // You must detach the network interface
before you can delete it.
On 2014/02/05 15:17:35, rog wrote:
> // DeleteNetworkInterface deletes the specified network interface,
> // which must have been previously detached.

> ?

Done.

https://codereview.appspot.com/54570048/diff/20001/ec2/networkinterfaces.go#newcode192
ec2/networkinterfaces.go:192: // AttachNetworkInterfaceResp is the
response to a
On 2014/02/05 15:17:35, rog wrote:
> s/ a/ an/

Done.

https://codereview.appspot.com/54570048/

« Back to merge proposal