Skip to content

Commit

Permalink
Feat/transit gateway (#25)
Browse files Browse the repository at this point in the history
* feat/transit-gateway: add global networks chart

* chore/charts: use my go-echarts fork that have support for tree chart type
  • Loading branch information
AndreZiviani committed Mar 19, 2021
1 parent 389f5d6 commit 5d997e1
Show file tree
Hide file tree
Showing 5 changed files with 562 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -26,4 +26,4 @@ require (
gopkg.in/ini.v1 v1.62.0
)

replace github.com/go-echarts/go-echarts/v2 => github.com/AndreZiviani/go-echarts/v2 v2.2.11
replace github.com/go-echarts/go-echarts/v2 => github.com/AndreZiviani/go-echarts/v2 v2.2.13
4 changes: 2 additions & 2 deletions go.sum
Expand Up @@ -42,8 +42,8 @@ contrib.go.opencensus.io/exporter/stackdriver v0.12.1/go.mod h1:iwB6wGarfphGGe/e
contrib.go.opencensus.io/integrations/ocsql v0.1.4/go.mod h1:8DsSdjz3F+APR+0z0WkU1aRorQCFfRxvqjUUPMbF3fE=
contrib.go.opencensus.io/resource v0.1.1/go.mod h1:F361eGI91LCmW1I/Saf+rX0+OFcigGlFvXwEGEnkRLA=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
github.com/AndreZiviani/go-echarts/v2 v2.2.11 h1:bHzL/5to4S3ASQjX2HkKBgp4nJg3CvXNqwhOEeGBSjA=
github.com/AndreZiviani/go-echarts/v2 v2.2.11/go.mod h1:6TOomEztzGDVDkOSCFBq3ed7xOYfbOqhaBzD0YV771A=
github.com/AndreZiviani/go-echarts/v2 v2.2.13 h1:JD927fR8otkGZZ3sy63Oz/uJolp/opFVHmsKHaYmHlg=
github.com/AndreZiviani/go-echarts/v2 v2.2.13/go.mod h1:6TOomEztzGDVDkOSCFBq3ed7xOYfbOqhaBzD0YV771A=
github.com/Azure/azure-amqp-common-go/v3 v3.0.0/go.mod h1:SY08giD/XbhTz07tJdpw1SoxQXHPN30+DI3Z04SYqyg=
github.com/Azure/azure-pipeline-go v0.2.1/go.mod h1:UGSo8XybXnIGZ3epmeBw7Jdz+HiUVpqIlpz/HKHylF4=
github.com/Azure/azure-pipeline-go v0.2.2/go.mod h1:4rQ/NZncSvGqNkkOsNpOU1tgoNuIlp9AfUH5G1tvCHc=
Expand Down
14 changes: 12 additions & 2 deletions internal/chart/main.go
Expand Up @@ -6,12 +6,17 @@ import (

type ChartCommand struct {
Profile string `short:"p" long:"profile" env:"AWS_PROFILE" default:"default" description:"What profile to use"`
User string `short:"u" long:"user" env:"AWSFUZZY_SSH_USER" default:"$USER" description:"Username to use with SSH"`
Key string `short:"k" long:"key" env:"AWSFUZZY_SSH_KEY" default:"~/.ssh/id_rsa" description:"Key to use with SSH"`
Region string `short:"r" long:"region" env:"AWS_REGION" default:"us-east-1" description:"What region to use"`
}

type NMCommand struct {
Profile string `short:"p" long:"profile" env:"AWS_PROFILE" default:"default" description:"What profile to use"`
Region string `short:"r" long:"region" env:"AWS_REGION" default:"us-east-1" description:"What region to use"`
}

var (
chartCommand ChartCommand
nmCommand NMCommand
)

func Init(parser *flags.Parser) {
Expand All @@ -29,4 +34,9 @@ func Init(parser *flags.Parser) {
"Chart peering relationship",
"Chart peering relationship",
&chartCommand)

cmd.AddCommand("nm",
"Chart NetworkManager topology",
"Chart NetworkManager topology",
&nmCommand)
}

0 comments on commit 5d997e1

Please sign in to comment.