Skip to content

Commit

Permalink
comments for hound
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Aug 1, 2016
1 parent f79f548 commit 6c94127
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/cmd/formation/handler/ec2.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func HandleEC2AvailabilityZones(req Request) (string, map[string]string, error)
return "", nil, fmt.Errorf("unknown RequestType: %s", req.RequestType)
}

// HandleEC2NatGateway handles the lifecycle of a Custom::EC2NatGateway
func HandleEC2NatGateway(req Request) (string, map[string]string, error) {
defer recoverFailure(req)

Expand All @@ -50,6 +51,7 @@ func HandleEC2NatGateway(req Request) (string, map[string]string, error) {
return "", nil, fmt.Errorf("unknown RequestType: %s", req.RequestType)
}

// HandleEC2Route handles the lifecycle of a Custom::EC2Route
func HandleEC2Route(req Request) (string, map[string]string, error) {
defer recoverFailure(req)

Expand Down Expand Up @@ -109,6 +111,7 @@ func EC2AvailabilityZonesDelete(req Request) (string, map[string]string, error)
return req.PhysicalResourceId, nil, nil
}

// EC2NatGatewayDelete deletes a Custom::EC2route
// TODO: delete
func EC2NatGatewayDelete(req Request) (string, map[string]string, error) {
_, err := EC2(req).DeleteNatGateway(&ec2.DeleteNatGatewayInput{
Expand Down Expand Up @@ -151,6 +154,7 @@ func EC2NatGatewayDelete(req Request) (string, map[string]string, error) {
return req.PhysicalResourceId, nil, err
}

// EC2RouteDelete deletes a Custom::EC2route
// TODO: delete
func EC2RouteDelete(req Request) (string, map[string]string, error) {
parts := strings.SplitN(req.PhysicalResourceId, "/", 2)
Expand Down

0 comments on commit 6c94127

Please sign in to comment.