diff --git a/Flow_cheatsheet.md b/Flow_cheatsheet.md new file mode 100644 index 0000000..4d82852 --- /dev/null +++ b/Flow_cheatsheet.md @@ -0,0 +1,67 @@ + + +```bash +pisc-cli set-flow pipe.SwitchIngress.rmac SwitchIngress.rmac_hit -m "ff:ff:ff:ff:ff:ff" -a "" +pisc-cli set-flow pipe.SwitchIngress.dmac SwitchIngress.dmac_hit -m "ff:ff:ff:ff:ff:ff" -a "511" +pisc-cli set-flow pipe.SwitchIngress.fib SwitchIngress.hit_route_port -m "255.255.255.255" -a "511" +pisc-cli set-flow pipe.SwitchIngress.rib_24 SwitchIngress.hit_route_port -m "255.255.255" -a "511" +pisc-cli set-flow pipe.SwitchIngress.rib_20 SwitchIngress.hit_route_port -m "15.255.255" -a "511" +pisc-cli set-flow pipe.SwitchIngress.rib_16 SwitchIngress.hit_route_port -m "255.255" -a "511" +pisc-cli set-flow pipe.SwitchIngress.rib_12 SwitchIngress.hit_route_port -m "15.255" -a "511" +pisc-cli set-flow pipe.SwitchIngress.rib_8 SwitchIngress.hit_route_port -m "255" -a "511" +pisc-cli set-flow pipe.SwitchIngress.rib SwitchIngress.hit_route_port -m "255.255.255.255/255.255.255.255, 4000" -a "511" +pisc-cli set-flow pipe.SwitchIngress.nexthop SwitchIngress.set_nexthop -m "255" -a "511, ff:ff:ff:ff:ff:ff" +pisc-cli set-flow pipe.SwitchEgress.smac_rewrite_by_portid SwitchEgress.rewrite_smac -m "511/511, 4000" -a "ff:ff:ff:ff:ff:ff" +pisc-cli set-flow pipe.SwitchIngress.arp SwitchIngress.arp_response -m "511/511, 0xffff, 0xffff, 255.255.255.255/255.255.255.255, 4000" -a "ff:ff:ff:ff:ff:ff" +pisc-cli set-flow pipe.SwitchIngress.acl SwitchIngress.output -m "511/511, 0xffff/0xffff, aa:aa:aa:aa:aa:aa/ff:ff:ff:ff:ff:ff, 255.255.255.255/255.255.255.255, 255.255.255.255/255.255.255.255, 255/255, 4000" -a "10" +pisc-cli set-flow pipe.SwitchIngress.smac SwitchIngress.smac_hit -m "ff:ff:ff:ff:ff:ff" -a "511" -t 600 + +pisc-cli set-flow rmac SwitchIngress.rmac_hit -m "ff:ff:ff:ff:ff:ff" -a "" +pisc-cli set-flow dmac SwitchIngress.dmac_hit -m "ff:ff:ff:ff:ff:ff" -a "511" +pisc-cli set-flow fib SwitchIngress.hit_route_port -m "255.255.255.255" -a "511" +pisc-cli set-flow rib_24 SwitchIngress.hit_route_port -m "255.255.255" -a "511" +pisc-cli set-flow rib_20 SwitchIngress.hit_route_port -m "15.255.255" -a "511" +pisc-cli set-flow rib_16 SwitchIngress.hit_route_port -m "255.255" -a "511" +pisc-cli set-flow rib_12 SwitchIngress.hit_route_port -m "15.255" -a "511" +pisc-cli set-flow rib_8 SwitchIngress.hit_route_port -m "255" -a "511" +pisc-cli set-flow rib SwitchIngress.hit_route_port -m "255.255.255.255/255.255.255.255, 4000" -a "511" +pisc-cli set-flow nexthop SwitchIngress.set_nexthop -m "255" -a "511, ff:ff:ff:ff:ff:ff" +pisc-cli set-flow smac_rewrite_by_portid SwitchEgress.rewrite_smac -m "511/511, 4000" -a "ff:ff:ff:ff:ff:ff" +pisc-cli set-flow arp SwitchIngress.arp_response -m "511/511, 0xffff, 0xffff, 255.255.255.255/255.255.255.255, 4000" -a "ff:ff:ff:ff:ff:ff" +pisc-cli set-flow acl SwitchIngress.output -m "511/511, 0xffff/0xffff, aa:aa:aa:aa:aa:aa/ff:ff:ff:ff:ff:ff, 255.255.255.255/255.255.255.255, 255.255.255.255/255.255.255.255, 255/255, 4000" -a "10" +pisc-cli set-flow smac SwitchIngress.smac_hit -m "ff:ff:ff:ff:ff:ff" -a "511" -t 60000 + +``` + + +```bash +pisc-cli del-flow pipe.SwitchIngress.rmac -m "ff:ff:ff:ff:ff:ff" +pisc-cli del-flow pipe.SwitchIngress.dmac -m "ff:ff:ff:ff:ff:ff" +pisc-cli del-flow pipe.SwitchIngress.fib -m "255.255.255.255" +pisc-cli del-flow pipe.SwitchIngress.rib_24 -m "255.255.255" +pisc-cli del-flow pipe.SwitchIngress.rib_20 -m "15.255.255" +pisc-cli del-flow pipe.SwitchIngress.rib_16 -m "255.255" +pisc-cli del-flow pipe.SwitchIngress.rib_12 -m "15.255" +pisc-cli del-flow pipe.SwitchIngress.rib_8 -m "255" +pisc-cli del-flow pipe.SwitchIngress.rib -m "255.255.255.255/255.255.255.255, 4000" +pisc-cli del-flow pipe.SwitchIngress.nexthop -m "255" +pisc-cli del-flow pipe.SwitchEgress.smac_rewrite_by_portid -m "511/511, 4000" +pisc-cli del-flow pipe.SwitchIngress.arp -m "511/511, 0xffff, 0xffff, 255.255.255.255/255.255.255.255, 4000" +pisc-cli del-flow pipe.SwitchIngress.acl -m "511/511, 0xffff/0xffff, aa:aa:aa:aa:aa:aa/ff:ff:ff:ff:ff:ff, 255.255.255.255/255.255.255.255, 255.255.255.255/255.255.255.255, 255/255, 4000" +pisc-cli del-flow pipe.SwitchIngress.smac -m "ff:ff:ff:ff:ff:ff" + +pisc-cli del-flow rmac -m "ff:ff:ff:ff:ff:ff" +pisc-cli del-flow dmac -m "ff:ff:ff:ff:ff:ff" +pisc-cli del-flow fib -m "255.255.255.255" +pisc-cli del-flow rib_24 -m "255.255.255" +pisc-cli del-flow rib_20 -m "15.255.255" +pisc-cli del-flow rib_16 -m "255.255" +pisc-cli del-flow rib_12 -m "15.255" +pisc-cli del-flow rib_8 -m "255" +pisc-cli del-flow rib -m "255.255.255.255/255.255.255.255, 4000" +pisc-cli del-flow nexthop -m "255" +pisc-cli del-flow smac_rewrite_by_portid -m "511/511, 4000" +pisc-cli del-flow arp -m "511/511, 0xffff, 0xffff, 255.255.255.255/255.255.255.255, 4000" +pisc-cli del-flow acl -m "511/511, 0xffff/0xffff, aa:aa:aa:aa:aa:aa/ff:ff:ff:ff:ff:ff, 255.255.255.255/255.255.255.255, 255.255.255.255/255.255.255.255, 255/255, 4000" +pisc-cli del-flow smac -m "ff:ff:ff:ff:ff:ff" +``` \ No newline at end of file diff --git a/README.md b/README.md index a1e711e..f9dd57b 100644 --- a/README.md +++ b/README.md @@ -44,20 +44,35 @@ pisc-cli set-flow [TABLE NAME] [ACTION NAME] -m "match_key, ..." -a "action_valu 且Match key和Action value的寫入順序必須要跟pipeline所設定的順序相同。 -1. Exact : smac table example +>設table key的時候請務必確認,你所設定的值是否跟table所需要的值是一致的,假如說table需要MAC Addr,但卻你下的指令是沒有格式的數字或IP, 這樣會直接設下去,且會產生問題。 + +1. Exact : smac table example. ``` pisc-cli set-flow pipe.SwitchIngress.smac SwitchIngress.smac_hit -m "aa:aa:aa:aa:aa:aa" -a "10" ``` 2. LPM : rib table example。對於LPM, 必須要按照CIDR的形式輸入,否則會出現error. ``` - pisc-cli set-flow pipe.SwitchIngress.rib SwitchIngress.hit_route -m "10.0.0.1/24" -a "10" + pisc-cli set-flow pipe.SwitchIngress.rib SwitchIngress.hit_route -m "10.0.0.1/24" -a "10" + pisc-cli set-flow rib SwitchIngress.hit_route -m "10.0.0.1/24" -a "10" ``` -3. Ternary : acl example。對於Ternary,value與mask的長度以及形式必須要相同。 +3. Ternary : acl example。對於Ternary,value與mask的長度以及形式必須要相同。Ternary match key的區分僅能靠Match key的priority的欄位。PISC-CLI利用 match flag來題共設定priority。priority的設置方式與其他match key相同,且順序也是位於match的最後面。 + ``` - pisc-cli set-flow pipe.SwitchIngress.acl SwitchIngress.output -m "10/10, 0x0800/0xffff, fa:aa:aa:aa:aa:fa/ff:ff:ff:ff:ff:ff, 127.0.0.1/255.255.255.255, 11.1.1.2/255.255.255.255" -a "0" + pisc-cli set-flow pipe.SwitchIngress.arp SwitchIngress.arp_response -m "511/511, 0xffff, ffff, 255.255.255.255/255.255.255.255, 4000(priority value)" -a "ff:ff:ff:ff:ff:ff" pisc-cli set-flow acl SwitchIngress.output -m "10/10, 0x0800/0xffff, fa:aa:aa:aa:aa:fa/ff:ff:ff:ff:ff:ff, 127.0.0.1/255.255.255.255, 11.1.1.2/255.255.255.255" -a "0" + ``` + +## TTL - table TIMEOUT value setup +SMAC table has an idle_timeout function. This function will send a notification to the controller to notify that the entry's life has expired and need to remove it. +In PISC-CLI, it delivers TTL setting by -t flag on set-flow function. +The scale of the flag is milliseconds. min, max value of the TTL need to refer PISC. +Example as following: + + ``` + pisc-cli set-flow pipe.SwitchIngress.smac SwitchIngress.smac_hit -m "ff:ff:ff:ff:ff:ff" -a "511" -t 60000 + pisc-cli set-flow smac SwitchIngress.smac_hit -m "ff:ff:ff:ff:ff:ff" -a "511" -t 60000 ``` ## How to delete entry/entries from device? @@ -73,22 +88,15 @@ pisc-cli del-flow [TABLE_NAME] [Flag] [Arguments] // Do not confuse with set-flow's "-a" flag. It's totally diffrent. pisc-cli del-flow [TABLE_NAME] -a pisc-cli del-flow pipe.SwitchIngress.fib -a + pisc-cli del-flow fib -a ``` -3. entry : delete specific entry/entries number +3. match : delete specific entry by match keys. + the match flag acts like set-flow function. + the match flag need to specify table's match keys to delete entry. ``` - pisc-cli del-flow [TABLE_NAME] -e "entry_number, ..." - ``` - ``` - // Assume that we have four entries{0, 1, ,2 ,3} in rib table. - // Also, we can use "info" command to see the entry number. - // About deleting entry, we don't need to care about the order of entry number. - - pisc-cli del-flow pipe.SwitchIngress.rib -e "1, 0, 2" - - // After deleting, the entry number will change to another. - // Please check the entry number everytime after deleting. - - pisc-cli del-flow pipe.SwitchIngress.rib -e "3" - error + pisc-cli del-flow [TABLE_NAME] -m "Match key, ..." + pisc-cli del-flow pipe.SwitchIngress.rib -m "192.168.1.7/255.255.255.255, 4000" + pisc-cli del-flow rib -m "192.168.1.7/255.255.255.255, 4000" ``` ## How to show the table and entries information? @@ -96,26 +104,34 @@ pisc-cli del-flow [TABLE_NAME] [Flag] [Arguments] pisc-cli [command] [TABLE_NAME] ``` 1. table : list all table name. -``` -pisc-cli table -``` -2. dump : dump all entries of the table, also -a flag will dump all tables. -``` -pisc-cli dump -pisc-cli dump -a -``` + ``` + pisc-cli table + ``` +2. dump : dump all entries of the table. + ``` + pisc-cli dump [TABLE_NAME] + pisc-cli dump pipe.SwitchIngress.fib or pisc-cli dump fib + ``` + ``` + // dump all tables entries + pisc-cli dump -a + // dump all entries counts of the table. + pisc-cli dump -c + // also can dump all tables entries counts. + pisc-cli dump -a -c + ``` 3. info : show table information to the user -``` -pisc-cli info [TALBE_NAME] -``` + ``` + pisc-cli info [TALBE_NAME] + ``` ## Show version and logo 1. show version -``` -pisc-cli version -``` + ``` + pisc-cli version + ``` 2. show logo of PISC -``` -pisc-cli version -l -``` \ No newline at end of file + ``` + pisc-cli version -l + ``` \ No newline at end of file diff --git a/cmd/completion.go b/cmd/completion.go index a6e73a0..6c4a938 100644 --- a/cmd/completion.go +++ b/cmd/completion.go @@ -20,14 +20,4 @@ var completionCmd = &cobra.Command{ func init() { rootCmd.AddCommand(completionCmd) - - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // completionCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // completionCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") } diff --git a/cmd/delFlow.go b/cmd/delFlow.go index 619112e..785d571 100644 --- a/cmd/delFlow.go +++ b/cmd/delFlow.go @@ -2,35 +2,138 @@ package cmd import ( "fmt" - + "github.com/P4Networking/pisc/util" + "github.com/P4Networking/pisc/util/enums/id" + "github.com/P4Networking/proto/go/p4" "github.com/spf13/cobra" + "io" + "log" + "strings" +) + +var ( + reset bool + delEntry []string ) // delFlowCmd represents the delFlow command var delFlowCmd = &cobra.Command{ - Use: "del-flow", - Short: "A brief description of your command", - Long: `A longer description that spans multiple lines and likely contains examples -and usage of using your command. For example: - -Cobra is a CLI library for Go that empowers applications. -This application is a tool to generate the needed files -to quickly create a Cobra application.`, + Use: "del-flow TABLE-NAME ", + Short: "Delete entries from table", + Long: `del-flow can remove all of the entries from specific table`, + Args: cobra.MaximumNArgs(1), + ValidArgsFunction: func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { + _, _, conn, cancel, p4Info, _ := initConfigClient() + defer conn.Close() + defer cancel() + var argsList []string + for _, v := range p4Info.Tables { + if strings.Contains(v.Name, preFixIg) || strings.Contains(v.Name, preFixEg) { + strs := strings.Split(v.Name, ".") + if toComplete == "" || strings.Contains(toComplete, "pipe") { + argsList = append(argsList, v.Name) + } else { + argsList = append(argsList, strs[2]) + } + } + } + return argsList, cobra.ShellCompDirectiveNoFileComp + }, Run: func(cmd *cobra.Command, args []string) { - fmt.Println("delFlow called") + + if (all || len(delEntry) > 0) && len(args) <= 0 { + cmd.Help() + return + } + for a, v := range delEntry { + delEntry[a] = strings.Replace(v, " ", "", -1) + } + + cliAddr, ctxAddr, conn, cancel, p4Info, _ := initConfigClient() + defer conn.Close() + defer cancel() + cli := *cliAddr + ctx := *ctxAddr + + if !reset { + argsList, _ := p4Info.GuessTableName(args[0]) + if len(argsList) != 1 { + for _, v := range argsList { + strs := strings.Split(v, ".") + if strings.EqualFold(strs[2], args[0]) { + args[0] = v + } + } + } else { + args[0] = argsList[0] + } + } + + for _, v := range p4Info.Tables { + if strings.HasPrefix(v.Name, preFixIg) || strings.HasPrefix(v.Name, preFixEg) { + if (all || len(delEntry) > 0) && v.Name != args[0] { + continue + } + stream, err := cli.Read(ctx, genReadRequestWithId(v.ID)) + if err != nil { + log.Fatalf("Got error, %v \n", err.Error()) + return + } + + for { + rsp, err := stream.Recv() + if err == io.EOF { + break + } + if rsp != nil { + if len(rsp.GetEntities()) == 0 { + fmt.Printf("%s table is empty\n", v.Name) + break + } + var cnt []int + var err error + + if all || reset { + cnt, err = DeleteEntries(&rsp, &cli, &ctx) + if err != nil { + fmt.Printf("Failed to delete entry: table \"%s\" with fields: %s\n", v.Name, rsp.Entities[cnt[0]].GetTableEntry().Key.Fields) + } else { + fmt.Printf("%d entires of \"%s\" table have cleared\n", len(cnt), v.Name) + } + } else if len(delEntry) > 0 { + table, _ := p4Info.GetTableById(id.TableId(v.ID)) + collectedMatchTypes, ok := collectTableMatchTypes(table, &delEntry) + if !ok { + fmt.Println("Match keys are not matched") + return + } + fmt.Print("Make Match Key... ") + if match := BuildMatchKeys(&collectedMatchTypes); match != nil { + delReq := util.GenWriteRequestWithId(p4.Update_DELETE, id.TableId(v.ID), match, nil) + fmt.Print("Write Delete Reqeust... ") + _, err := cli.Write(ctx, delReq) + if err != nil { + fmt.Println(err) + return + } + fmt.Println("DONE.") + } else { + fmt.Println("Please Check match keys and inputted arguments.") + } + } + } + } + } + } + if reset { + fmt.Println("Reset complete.") + } }, } func init() { rootCmd.AddCommand(delFlowCmd) - - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // delFlowCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // delFlowCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") + delFlowCmd.Flags().BoolVarP(&all, "all", "a", false, "delete all entries of the table") + delFlowCmd.Flags().BoolVarP(&reset, "reset", "r", false, "clear all of the tables") + delFlowCmd.Flags().StringSliceVarP(&delEntry, "match", "m", []string{}, "delete specific entry by given entry number") } diff --git a/cmd/dump.go b/cmd/dump.go index 969e70e..d0cb488 100644 --- a/cmd/dump.go +++ b/cmd/dump.go @@ -2,15 +2,15 @@ package cmd import ( "fmt" - "github.com/P4Networking/pisc/util" + "github.com/P4Networking/pisc/southbound/bfrt" + "github.com/P4Networking/pisc/util/enums/id" "github.com/spf13/cobra" "log" "strings" ) - var ( - preFixIg = "pipe.SwitchIngress." - preFixEg = "pipe.SwitchEgress." + // all bool(define in table.go) + count bool ) // dumpCmd represents the dump command @@ -22,7 +22,17 @@ var dumpCmd = &cobra.Command{ _, _, conn, cancel, p4Info, _ := initConfigClient() defer conn.Close() defer cancel() - argsList, _ := p4Info.GuessTableName(toComplete) + var argsList []string + for _, v := range p4Info.Tables { + if strings.Contains(v.Name, preFixIg) || strings.Contains(v.Name, preFixEg) { + strs := strings.Split(v.Name, ".") + if toComplete == "" || strings.Contains(toComplete, "pipe") { + argsList = append(argsList, v.Name) + } else { + argsList = append(argsList, strs[2]) + } + } + } return argsList, cobra.ShellCompDirectiveNoFileComp }, Run: func(cmd *cobra.Command, args []string) { @@ -34,41 +44,59 @@ var dumpCmd = &cobra.Command{ switch all { case false: - if len(args) <= 0{ + if len(args) <= 0 { cmd.Help() return } - tableId := p4Info.SearchTableId(args[0]) - if uint32(tableId) == util.ID_NOT_FOUND { + + argsList, _ := p4Info.GuessTableName(args[0]) + if len(argsList) != 1 { + for _, v := range argsList { + strs := strings.Split(v, ".") + if strings.EqualFold(strs[2], args[0]) { + args[0] = v + } + } + } else { + args[0] = argsList[0] + } + + tableId, ok := p4Info.GetTableId(args[0]) + if uint32(tableId) == bfrt.ID_NOT_FOUND || !ok { fmt.Printf("Can not found table with name: %s\n", args[0]) return } - table := p4Info.SearchTableById(tableId) - if table == nil { + table, ok := p4Info.GetTableById(tableId) + if !ok { fmt.Printf("Can not found table with ID: %d\n", tableId) return } - - stream, err := cli.Read(ctx, genReadRequestWithId(uint32(table.ID))) + stream, err := cli.Read(ctx, genReadRequestWithId(table.ID)) if err != nil { log.Fatalf("Got error, %v \n", err.Error()) } - - DumpEntries(&stream, table) + if count { + DumpEntriesCount(&stream, table) + } else { + DumpEntries(&stream, table) + } case true: for _, v := range p4Info.Tables { if strings.HasPrefix(v.Name, preFixIg) || strings.HasPrefix(v.Name, preFixEg) { - table := p4Info.SearchTableById(v.ID) + table, _ := p4Info.GetTableById(id.TableId(v.ID)) if table == nil { fmt.Printf("Can not found table with ID: %v\n", v.ID) return } - stream, err := cli.Read(ctx, genReadRequestWithId(uint32(v.ID))) + stream, err := cli.Read(ctx, genReadRequestWithId(v.ID)) if err != nil { log.Fatalf("Got error, %v \n", err.Error()) } - - DumpEntries(&stream, table) + if count { + DumpEntriesCount(&stream, table) + } else { + DumpEntries(&stream, table) + } } } } @@ -78,14 +106,5 @@ var dumpCmd = &cobra.Command{ func init() { rootCmd.AddCommand(dumpCmd) dumpCmd.Flags().BoolVarP(&all, "all", "a", false, "dump all of the tables") - - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // dumpCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // dumpCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") + dumpCmd.Flags().BoolVarP(&count, "count", "c", false, "dump entries number of counts") } diff --git a/cmd/info.go b/cmd/info.go index 81e18c6..de882cd 100644 --- a/cmd/info.go +++ b/cmd/info.go @@ -2,8 +2,9 @@ package cmd import ( "fmt" - "github.com/P4Networking/pisc/util" + "github.com/P4Networking/pisc/southbound/bfrt" "github.com/spf13/cobra" + "strings" ) // infoCmd represents the info command @@ -16,7 +17,18 @@ var infoCmd = &cobra.Command{ _, _, conn, cancel, p4Info, _ := initConfigClient() defer conn.Close() defer cancel() - argsList, _ := p4Info.GuessTableName(toComplete) + + var argsList []string + for _, v := range p4Info.Tables { + if strings.Contains(v.Name, preFixIg) || strings.Contains(v.Name, preFixEg) { + strs := strings.Split(v.Name, ".") + if toComplete == "" || strings.Contains(toComplete, "pipe") { + argsList = append(argsList, v.Name) + } else { + argsList = append(argsList, strs[2]) + } + } + } return argsList, cobra.ShellCompDirectiveNoFileComp }, Run: func(cmd *cobra.Command, args []string) { @@ -33,14 +45,25 @@ var infoCmd = &cobra.Command{ return } */ + argsList, _ := p4Info.GuessTableName(args[0]) + if len(argsList) != 1 { + for _, v := range argsList { + strs := strings.Split(v, ".") + if strings.EqualFold(strs[2], args[0]) { + args[0] = v + } + } + } else { + args[0] = argsList[0] + } - tableId := p4Info.SearchTableId(args[0]) - if uint32(tableId) == util.ID_NOT_FOUND { - fmt.Printf("Can not found table with name: %s\n", args[0]) + tableId, _ := p4Info.GetTableId(args[0]) + if uint32(tableId) == bfrt.ID_NOT_FOUND { + fmt.Printf("Can't found table with name: %s\n", args[0]) return } - table := p4Info.SearchTableById(tableId) + table, _ := p4Info.GetTableById(tableId) if table == nil { fmt.Printf("Can not found table with Id %d\n", tableId) return @@ -63,7 +86,11 @@ var infoCmd = &cobra.Command{ if table.Annotations != nil { fmt.Printf(" %-12s:\n", "Annotations") for k, v := range table.Annotations { - fmt.Printf("%d - Name: %s | Value: %s \n", k+1, v.Name, v.Value) + if v.Value != "" { + fmt.Printf(" %d - Name: %s | Value: %s \n", k+1, v.Name, v.Value) + } else { + fmt.Printf(" %d - Name: %s \n", k+1, v.Name) + } } } if table.DependsOn != nil { @@ -76,11 +103,13 @@ var infoCmd = &cobra.Command{ fmt.Printf(" %-8s %-20s %-11s %-10s %-9s %-8s %-4s", "KeyId", "Name", "Match_type", "Mandatory", "Repeated", "Type", "Width\n") for _, v := range table.Key { - if v.ID == 65537 || v.Name == "$MATCH_PRIORITY" { - continue + if v.Name == "$MATCH_PRIORITY" { + fmt.Printf(" %-8d %-20s %-11s %-10t %-9t %-8s %-4d\n", + v.ID, v.Name, v.MatchType, v.Mandatory, v.Repeated, v.Type.Type, 32) + } else { + fmt.Printf(" %-8d %-20s %-11s %-10t %-9t %-8s %-4d\n", + v.ID, v.Name, v.MatchType, v.Mandatory, v.Repeated, v.Type.Type, v.Type.Width) } - fmt.Printf(" %-8d %-20s %-11s %-10t %-9t %-8s %-4d\n", - v.ID, v.Name, v.MatchType, v.Mandatory, v.Repeated, v.Type.Type, v.Type.Width) } } @@ -118,14 +147,4 @@ var infoCmd = &cobra.Command{ func init() { rootCmd.AddCommand(infoCmd) - - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // infoCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // infoCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") } diff --git a/cmd/root.go b/cmd/root.go index 2883762..66747af 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -5,7 +5,7 @@ import ( "github.com/spf13/cobra" "os" - homedir "github.com/mitchellh/go-homedir" + "github.com/mitchellh/go-homedir" "github.com/spf13/viper" ) diff --git a/cmd/setFlow.go b/cmd/setFlow.go index 5211e6a..80abec7 100644 --- a/cmd/setFlow.go +++ b/cmd/setFlow.go @@ -2,35 +2,154 @@ package cmd import ( "fmt" - + "github.com/P4Networking/pisc/southbound/bfrt" + "github.com/P4Networking/pisc/util" + "github.com/P4Networking/proto/go/p4" "github.com/spf13/cobra" + "log" + "strconv" + "strings" +) + +var ( + matchLists []string + actionValues []string + ttl = "" ) // setFlowCmd represents the setFlow command var setFlowCmd = &cobra.Command{ - Use: "set-flow", - Short: "A brief description of your command", - Long: `A longer description that spans multiple lines and likely contains examples -and usage of using your command. For example: - -Cobra is a CLI library for Go that empowers applications. -This application is a tool to generate the needed files -to quickly create a Cobra application.`, + Use: "set-flow TABLE_NAME ACTION-NAME ", + Short: "Set flow into table", + Long: `Insert the flow to table with action`, + Args: cobra.ExactArgs(2), + ValidArgsFunction: func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { + _, _, conn, cancel, p4Info, _ := initConfigClient() + defer conn.Close() + defer cancel() + argsList, _ := p4Info.GuessTableName(toComplete) + for k, v := range argsList { + if strings.Contains(v, preFixIgPar) || strings.Contains(v, preFixEgPar) { + argsList[k] = argsList[len(argsList)-1] // Copy last element to index i. + argsList[len(argsList)-1] = "" // Erase last element (write zero value). + argsList = argsList[:len(argsList)-1] + } + } + return argsList, cobra.ShellCompDirectiveNoFileComp + }, Run: func(cmd *cobra.Command, args []string) { - fmt.Println("setFlow called") + + for a, v := range matchLists { + matchLists[a] = strings.Replace(v, " ", "", -1) + } + + for a, v := range actionValues { + actionValues[a] = strings.Replace(v, " ", "", -1) + } + + cliAddr, ctxAddr, conn, cancel, p4Info, _ := initConfigClient() + defer conn.Close() + defer cancel() + cli := *cliAddr + ctx := *ctxAddr + argsList, _ := p4Info.GuessTableName(args[0]) + if len(argsList) != 1 { + for _, v := range argsList { + strs := strings.Split(v, ".") + if strings.EqualFold(strs[2], args[0]) { + args[0] = v + } + } + } else { + args[0] = argsList[0] + } + + tableName := args[0] + actionName := args[1] + tableId, ok := p4Info.GetTableId(tableName) + if uint32(tableId) == bfrt.ID_NOT_FOUND || !ok { + fmt.Printf("Can not found table with name: %s\n", tableName) + return + } + table, _ := p4Info.GetTableById(tableId) + + collectedMatchTypes, ok := collectTableMatchTypes(table, &matchLists) + if !ok { + fmt.Println("Match keys are not matched") + return + } + + actionId, ok := p4Info.GetActionId(tableName, actionName) + if actionId == bfrt.ID_NOT_FOUND || !ok { + fmt.Printf("Can not found action with names: %s\n", actionName) + return + } + dataId, ok := p4Info.GetDataId(tableName, "$ENTRY_TTL") + if ok && ttl == "" { + fmt.Printf("Please set the TTL value for table %s\n", table.Name) + return + } + + collectedActionFieldIds, err := collectActionFieldIds(table, actionId, actionValues) + if err != nil { + fmt.Println(err) + return + } + if len(collectedActionFieldIds) != len(actionValues) { + fmt.Printf("Length of action fields [%d] != Length of action args [%d]\n", len(collectedActionFieldIds), len(actionValues)) + fmt.Println("Check action arguments") + return + } + + fmt.Printf("Make Match Data...") + match := BuildMatchKeys(&collectedMatchTypes) + if match == nil { + return + } + + fmt.Printf(" Make Action Data...") + action := util.Action() + if len(collectedActionFieldIds) != 0 { + for _, v := range collectedActionFieldIds { + switch mlt, v1, _ := checkMatchListType(v.actionValue, v.parsedBitWidth); mlt { + case MAC_TYPE: + action = append(action, util.GenDataField(v.fieldId, v1.([]byte))) + case IP_TYPE: + action = append(action, util.GenDataField(v.fieldId, v1.([]byte))) + case VALUE_TYPE: + action = append(action, util.GenDataField(v.fieldId, setBitValue(v1.(int), v.parsedBitWidth))) + default: + fmt.Println("Unexpected value for action fields") + return + } + } + } + if ttl != "" { + if !ok { + fmt.Println("ttl set failed") + return + } + l, err :=strconv.ParseUint(ttl, 10 , 32) + if err != nil { + fmt.Printf("Please Check the TTL value %s.\n", ttl) + return + } + action = append(action, util.GenDataField(dataId, util.Int32ToBytes(uint32(l)))) + } + + fmt.Printf(" Make Write Request...") + var req = util.GenWriteRequestWithId(p4.Update_INSERT, tableId, match, &p4.TableData{ActionId: actionId, Fields: action}) + if _, err := cli.Write(ctx, req); err != nil { + log.Printf("Got error, %v \n", err.Error()) + } else { + fmt.Printf(" Write Done.\n") + } }, } func init() { rootCmd.AddCommand(setFlowCmd) - - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // setFlowCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // setFlowCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") + setFlowCmd.Flags().StringSliceVarP(&matchLists, "match", "m", []string{}, "match arguments") + setFlowCmd.Flags().StringSliceVarP(&actionValues, "action", "a", []string{}, "action arguments") + setFlowCmd.Flags().StringVarP(&ttl, "ttl", "t", ttl, "TTL arguments") } diff --git a/cmd/table.go b/cmd/table.go index 5aad27c..688dea9 100644 --- a/cmd/table.go +++ b/cmd/table.go @@ -3,6 +3,7 @@ package cmd import ( "fmt" "github.com/spf13/cobra" + "strings" ) var ( @@ -22,7 +23,9 @@ var tableCmd = &cobra.Command{ //fmt.Println("------ The following is for P4 table ------") for _, v := range p4Info.Tables { - fmt.Println(v.Name) + if strings.Contains(v.Name, preFixIg) || strings.Contains(v.Name, preFixEg) { + fmt.Println(v.Name) + } } if all { @@ -37,14 +40,4 @@ var tableCmd = &cobra.Command{ func init() { rootCmd.AddCommand(tableCmd) tableCmd.Flags().BoolVarP(&all, "all", "a", false, "Show all tables") - - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // tableCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // tableCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") } diff --git a/cmd/utils.go b/cmd/utils.go index 08546b6..f5c5a72 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -5,25 +5,73 @@ import ( "context" "encoding/gob" "fmt" + "github.com/P4Networking/pisc/southbound/bfrt" "github.com/P4Networking/pisc/util" + "github.com/P4Networking/pisc/util/enums" + "github.com/P4Networking/pisc/util/enums/id" "github.com/P4Networking/proto/go/p4" "google.golang.org/grpc" "io" "log" + "math" + "net" "reflect" + "strconv" "strings" + "unicode" ) -//PISC-CLI use 50000 port basically +// MAC_TYPE for Exact match +// IP_TYPE for Exact match +// VALUE_TYPE for Exact match +// CIDR_TYPE for LPM match +// MASK_TYPE for Ternary match +// NON_TYPE for unexpect value +const ( + MAC_TYPE = iota //0 + IP_TYPE + CIDR_TYPE + MASK_TYPE + VALUE_TYPE + HEX_TYPE + NON_TYPE //6 + + INT8 //7 + INT16 + INT32 + INT64 //10 + + IP_MASK //11 + ETH_MASK + HEX_MASK + VALUE_MASK //14 +) + +type MatchSet struct { + fieldId uint32 + matchValue string + matchType uint + bitWidth int +} +type ActionSet struct { + fieldId uint32 + actionValue string + bitWidth int + parsedBitWidth int +} + var ( DEFAULT_ADDR = ":50000" - found = true - not_found = false - p4Info util.BfRtInfoStruct - nonP4Info util.BfRtInfoStruct + + p4Info bfrt.BfRtInfo + nonP4Info bfrt.BfRtInfo + preFixIg = "pipe.SwitchIngress." + preFixEg = "pipe.SwitchEgress." + preFixIgPar = "pipe.SwitchIngressParser." + preFixEgPar = "pipe.SwitchEgressParser." ) -func initConfigClient() (*p4.BfRuntimeClient, *context.Context, *grpc.ClientConn, context.CancelFunc, *util.BfRtInfoStruct, *util.BfRtInfoStruct) { +func initConfigClient() (*p4.BfRuntimeClient, *context.Context, *grpc.ClientConn, context.CancelFunc, *bfrt.BfRtInfo, *bfrt.BfRtInfo) { if server == "" { server = DEFAULT_ADDR } @@ -35,10 +83,8 @@ func initConfigClient() (*p4.BfRuntimeClient, *context.Context, *grpc.ClientConn cli := p4.NewBfRuntimeClient(conn) // Contact the server and print out its response. - ctx, cancel := context.WithCancel(context.Background()) - - rsp, err := cli.GetForwardingPipelineConfig(ctx, &p4.GetForwardingPipelineConfigRequest{DeviceId: uint32(77)}) + rsp, err := cli.GetForwardingPipelineConfig(ctx, &p4.GetForwardingPipelineConfigRequest{DeviceId: uint32(0)}) if err != nil { log.Fatalf("Error with %v", err) } @@ -55,28 +101,286 @@ func initConfigClient() (*p4.BfRuntimeClient, *context.Context, *grpc.ClientConn return &cli, &ctx, conn, cancel, &p4Info, &nonP4Info } -func printNameById(id uint32) (string, bool) { +func printNameById(actionName string, id uint32) (string, bool) { var name string var ok bool - name, ok = p4Info.SearchActionNameById(id) + name, ok = p4Info.GetActionNameById(id) if ok == true { - return name, found + return name, true } - name, ok = p4Info.SearchDataNameById(id) + name, ok = p4Info.GetDataNameById(id) if ok == true { - return name, found + return name, true } - return "",not_found + name, ok = p4Info.GetActionParameterNameById(actionName, id) + if ok == true { + return name, true + } + + name, ok = p4Info.GetDataNameById(id) + if ok == true { + return name, true + } + + return "", false } +// collectTableMatchTypes function collects the match key's type and bit width. +// the collected type and bit width determine what kind of the input should be used. +func collectTableMatchTypes(table *bfrt.Table, matchKey *[]string) ([]MatchSet, bool) { + if len(table.Key) != len(*matchKey) { + fmt.Printf("Length of Match keys [%d] != Length of match args [%d]\n", len(table.Key), len(matchLists)) + return nil, false + } -// DumpEntries function print entries data of the table. -// function will terminate when the stream occurs an error. -// also, it's not show the priority information. -func DumpEntries(stream *p4.BfRuntime_ReadClient, p4table *util.Table) { + var m []MatchSet + for kv, v := range table.Key { + bw := parseBitWidth(v.Type.Width) + switch v.MatchType { + case "Exact": + if v.ID == 65537 || v.Name == "$MATCH_PRIORITY" { + m = append(m, MatchSet{fieldId: v.ID, matchValue: (*matchKey)[kv], matchType: enums.MATCH_EXACT, bitWidth: INT32}) + } else { + m = append(m, MatchSet{fieldId: v.ID, matchValue: (*matchKey)[kv], matchType: enums.MATCH_EXACT, bitWidth: bw}) + } + case "LPM": + m = append(m, MatchSet{fieldId: v.ID, matchValue: (*matchKey)[kv], matchType: enums.MATCH_LPM, bitWidth: bw}) + case "Range": + m = append(m, MatchSet{fieldId: v.ID, matchValue: (*matchKey)[kv], matchType: enums.MATCH_RANGE, bitWidth: bw}) + case "Ternary": + m = append(m, MatchSet{fieldId: v.ID, matchValue: (*matchKey)[kv], matchType: enums.MATCH_TERNARY, bitWidth: bw}) + default: + return nil, false + } + } + return m, true +} + +// collectActionFieldIds function collects the bit width of action data. +// the collected bit widths decide what kind of input should be used. +func collectActionFieldIds(table *bfrt.Table, id uint32, values []string) ([]ActionSet, error) { + var result []ActionSet + for _, v := range table.ActionSpecs { + if v.ID == id { + for kd, d := range v.Data { + if IsNumber(values[kd]) { + value, err := strconv.Atoi(values[kd]) + if int(math.Pow(2, float64(d.Type.Width))-1) < value { + err = fmt.Errorf("inputted action value is overflow: %s\n", values[kd]) + return nil, err + } + } + result = append(result, ActionSet{fieldId: d.ID, actionValue: values[kd], bitWidth: d.Type.Width, parsedBitWidth: parseBitWidth(d.Type.Width)}) + } + break + } + } + return result, nil +} + +// IsNumber function check that the string is numeric. +func IsNumber(s string) bool { + for _, r := range s { + if !unicode.IsNumber(r) { + return false + } + } + return true +} + +// checkMatchListType function checks that the input arguments are what kind of the match values. +func checkMatchListType(value string, bitWidth int) (uint, interface{}, interface{}) { + if _, e := net.ParseMAC(value); e == nil && bitWidth == INT64 { + return MAC_TYPE, util.MacToBytes(value), nil + } else if e := parseIPv4(value); (strings.IndexByte(value, '/') < 0) && (e != nil) && (bitWidth <= INT32) { + return IP_TYPE, e, nil + } else if i, a, e := parseCIDR(value); e && strings.IndexByte(value, '/') >= 0 { + return CIDR_TYPE, i, a + } else if maskType, arg := checkMaskType(value); maskType != -1 && arg != nil { + return MASK_TYPE, maskType, arg + } else if strings.HasPrefix(strings.ToLower(value), "0x") { + hexValue, e := strconv.ParseUint(value, 0, 16) + return HEX_TYPE, hexValue, e + } else if IsNumber(value) { + arg, _ := strconv.Atoi(value) + return VALUE_TYPE, arg, nil + } + return NON_TYPE, nil, nil +} + +/* +Four case in checkMask +case 1 : both arguments are IP presentation +case 2 : both arguments are Ether presentation +case 2 : both arguments are hex presentation (for ethertype, etc...) +case 3 : both arguments are integer +Caution : out of range of the cases are not handled. +*/ + +// checkMaskType function checks that the input arguments have what kind of the mask types. +// checkMaskType function only work with the argument what it has "/" character. +func checkMaskType(value string) (int, interface{}) { + if strings.Count(value, "/") == 1 { + var i = strings.IndexByte(value, '/') + m1, _ := net.ParseMAC(value[:i]) + m2, _ := net.ParseMAC(value[i+1:]) + if m1 != nil && m2 != nil && (len(m1) == len(m2)) { + return ETH_MASK, []string{value[:i], value[i+1:]} + } + i1 := net.ParseIP(value[:i]) + i2 := net.ParseIP(value[i+1:]) + if i1 != nil && i2 != nil && (len(i1) == len(i2)) { + return IP_MASK, []string{value[:i], value[i+1:]} + } + if strings.HasPrefix(strings.ToLower(value[:i]), "0x") && + strings.HasPrefix(strings.ToLower(value[i+1:]), "0x") { + c1, _ := strconv.ParseUint(value[:i], 0, 16) + c2, _ := strconv.ParseUint(value[i+1:], 0, 16) + return HEX_MASK, []uint16{uint16(c1), uint16(c2)} + } + if IsNumber(value[:i]) && IsNumber(value[i+1:]) { + a1, _ := strconv.Atoi(value[:i]) + a2, _ := strconv.Atoi(value[i+1:]) + return VALUE_MASK, []int{a1, a2} + } + } + return -1, nil +} + +// parseBitWidth function determines that the input value is what kind of sizes. +func parseBitWidth(value int) int { + if (value > 32) && (value <= 64) { + return INT64 + } else if (value > 16) && (value <= 32) { + return INT32 + } else if (value > 8) && (value <= 16) { + return INT16 + } else if (value > 0) && (value <= 8) { + return INT8 + } else { + return -1 + } +} + +// setBitValue function based on the input bit width to decide what size of the function should be used. +// If the function can't determine the type of the bit width, it will return nil. +func setBitValue(value int, bitWidth int) []byte { + var result []byte + switch bitWidth { + case INT32: + result = util.Int32ToBytes(uint32(value)) + case INT16: + result = util.Int16ToBytes(uint16(value)) + case INT8: + result = util.Int8ToBytes(uint8(value)) + default: + return nil + } + return result +} + +// parseCIDR function copies from net packages. +// parseCIDR function checking the input string has a "/" character or not. +// If does, the function parses the string and checks that the string is CIDR form. +// parseCIDR function only used when the collectedMatchType function has LPM type. +func parseCIDR(s string) (interface{}, int, bool) { + i := strings.IndexByte(s, '/') + if i < 0 { + return nil, -1, false + } + addr, mask := s[:i], s[i+1:] + ip := parseIPv4(addr) + n, i, ok := dtoi(mask) + if ip == nil || !ok || i != len(mask) || n < 0 || n > 32 { + return nil, -1, false + } + m, _ := strconv.Atoi(mask) + return ip, m, true +} + +// dtoi function copies from net package +// dtoi function checks character is numeric and makes it to integer than return. +func dtoi(s string) (n int, i int, ok bool) { + var big = 0xFFFFF + n = 0 + for i = 0; i < len(s) && '0' <= s[i] && s[i] <= '9'; i++ { + n = n*10 + int(s[i]-'0') + if n >= big { + return big, i, false + } + } + if i == 0 { + return 0, 0, false + } + return n, i, true +} + +// parseIPv4 function copy form net package +// parseIPv4 function checks that the string is IPv4 form. +// the string must have three cases : "x.x", "x.x.x", "x.x.x.x" +func parseIPv4(s string) []byte { + var size = strings.Count(s, ".") + if size <= 0 || size > 3 { + return nil + } + size++ + p := make([]byte, size) + for i := 0; i < size; i++ { + if len(s) == 0 { + goto ERROR + } + if i > 0 { + if s[0] != '.' { + goto ERROR + } + s = s[1:] + } + n, c, ok := dtoi(s) + if !ok || n > 0xFF { + goto ERROR + } + s = s[c:] + p[i] = byte(n) + } + if len(s) != 0 { + goto ERROR + } + return p +ERROR: + return nil +} + +func DumpEntriesCount(stream *p4.BfRuntime_ReadClient, p4table *bfrt.Table) { + for { + rsp, err := (*stream).Recv() + if err == io.EOF { + break + } + if err != nil { + log.Fatalf("Got error: %v", err) + } + Entities := rsp.GetEntities() + cnt := 0 + if len(Entities) == 0 { + fmt.Printf("The \"%s\" table is empty\n", p4table.Name) + } else { + for _, v := range Entities { + if v.GetTableEntry().IsDefaultEntry{ + continue + } + cnt++ + } + fmt.Printf("Table \"%s\" has %d entries.\n", p4table.Name, cnt) + } + } +} + +// DumpEntries function reads entries from ReadRequest response, and the function print all of the entries. +// The function will terminate when the stream occurs an error and the response entities count has zeros. +func DumpEntries(stream *p4.BfRuntime_ReadClient, p4table *bfrt.Table) { for { rsp, err := (*stream).Recv() if err == io.EOF { @@ -88,31 +392,28 @@ func DumpEntries(stream *p4.BfRuntime_ReadClient, p4table *util.Table) { Entities := rsp.GetEntities() if len(Entities) == 0 { fmt.Printf("The \"%s\" table is empty\n", p4table.Name) - }else { + } else { fmt.Println("--------------------------------------------------------------------------------") fmt.Printf("Table Name : %-s\n", p4table.Name) - for k, v := range Entities { + for kv, v := range Entities { tbl := v.GetTableEntry() if !tbl.IsDefaultEntry { - fmt.Printf("Entry %d:\n", k) + fmt.Printf("Entry %d:\n", kv) } fmt.Println("Match Key Info") if tbl.GetKey() != nil { fmt.Printf(" %-20s %-10s %-16s\n", "Field Name:", "Type:", "Value:") - for k, f := range tbl.Key.Fields { - if f.FieldId == 65537 { - continue - } + for kf, f := range tbl.Key.Fields { switch strings.Split(reflect.TypeOf(f.GetMatchType()).String(), ".")[1] { case "KeyField_Exact_": m := f.GetExact() - fmt.Printf(" %-20s %-10s %-16x\n", p4table.Key[k].Name, "Exact", m.Value) + fmt.Printf(" %-20s %-10s %-16x\n", p4table.Key[kf].Name, "Exact", m.Value) case "KeyField_Ternary_": t := f.GetTernary() - fmt.Printf(" %-20s %-10s %-16x Mask: %-12x\n", p4table.Key[k].Name, "Ternay", t.Value, t.Mask) + fmt.Printf(" %-20s %-10s %-16x Mask: %-12x\n", p4table.Key[kf].Name, "Ternay", t.Value, t.Mask) case "KeyField_Lpm": l := f.GetLpm() - fmt.Printf(" %-20s %-10s %-16x PreFix: %-12d\n", p4table.Key[k].Name, "LPM", l.Value, l.PrefixLen) + fmt.Printf(" %-20s %-10s %-16x PreFix: %-12d\n", p4table.Key[kf].Name, "LPM", l.Value, l.PrefixLen) case "KeyField_Range_": //TODO: Implement range match //r := f.GetRange() @@ -124,22 +425,18 @@ func DumpEntries(stream *p4.BfRuntime_ReadClient, p4table *util.Table) { if tbl.IsDefaultEntry { fmt.Printf("Table default action:\n") } - actionName, _ := printNameById(tbl.Data.ActionId) + actionName, _ := p4Info.GetActionNameById(tbl.Data.ActionId) fmt.Println("Action:", actionName) - if tbl.Data.Fields != nil { fmt.Printf(" %-20s %-16s\n", "Field Name:", "Value:") - for _, d := range p4table.ActionSpecs { - if d.Name == actionName { - for k, data := range tbl.Data.Fields { - if d.Data[k].ID == data.FieldId{ - fmt.Printf(" %-20s %-16x\n", d.Data[k].Name, data.GetStream()) - } - } + for _, datafield := range tbl.Data.Fields { + an, err := printNameById(actionName, datafield.FieldId) + if err { + fmt.Printf(" %-20s %-16x\n", an, datafield.GetStream()) } } } - if k+1 != len(Entities) { + if kv+1 != len(Entities) { fmt.Printf("------------------\n") } } @@ -148,17 +445,101 @@ func DumpEntries(stream *p4.BfRuntime_ReadClient, p4table *util.Table) { } } -// genReadRequestWithId function generates the read request format to read entries of the table via table ID. +// genReadRequestWithId function generates the read request to read table's entries. func genReadRequestWithId(tableId uint32) *p4.ReadRequest { - return &p4.ReadRequest{ - Entities: []*p4.Entity{ - { - Entity: &p4.Entity_TableEntry{ - TableEntry: &p4.TableEntry{ - TableId: tableId, - }, - }, + var req = &p4.ReadRequest{} + req.Entities = append(req.Entities, genEntity(tableId)) + return req +} + +func genEntity(tableId uint32) *p4.Entity { + return &p4.Entity{ + Entity: &p4.Entity_TableEntry{ + TableEntry: &p4.TableEntry{ + TableId: tableId, }, }, } } + +// DeleteEntries function read entries from the response to delete all entries of a table +func DeleteEntries(rsp **p4.ReadResponse, cli *p4.BfRuntimeClient, ctx *context.Context) ([]int, error) { + var result []int + var delReq *p4.WriteRequest = nil + for k, e := range (*rsp).Entities { + tbl := e.GetTableEntry() + if tbl.IsDefaultEntry { + continue + } + if delReq == nil { + delReq = util.GenWriteRequestWithId(p4.Update_DELETE, id.TableId(tbl.TableId), tbl.Key.Fields, nil) + } else { + delReq.Updates = append(delReq.Updates, util.GenUpdateWithId(p4.Update_DELETE, id.TableId(tbl.TableId), tbl.Key.Fields, nil)) + } + result = append(result, k) + } + _, err := (*cli).Write(*ctx, delReq) + if err != nil { + return result, err + } + return result, nil +} + +// BuildMatchKeys function using the input arguments make the KeyField what a table need to match. +func BuildMatchKeys(collectedMatchTypes *[]MatchSet) []*p4.KeyField { + match := util.Match() + for _, v := range *collectedMatchTypes { + mlt, v1, v2 := checkMatchListType(v.matchValue, v.bitWidth) + // In EXACT case, v2 value is always nil. + if v.matchType == enums.MATCH_EXACT { + switch mlt { + case MAC_TYPE: + match = append(match, util.GenKeyField(v.matchType, v.fieldId, v1.([]byte))) + case IP_TYPE: + match = append(match, util.GenKeyField(v.matchType, v.fieldId, v1.([]byte))) + case VALUE_TYPE: + match = append(match, util.GenKeyField(v.matchType, v.fieldId, setBitValue(v1.(int), v.bitWidth))) + case HEX_TYPE: + match = append(match, util.GenKeyField(v.matchType, v.fieldId, util.HexToBytes(uint16(v1.(uint64))))) + default: + fmt.Printf("Unexpect value for EXACT_MATCH : %s\n", v.matchValue) + return nil + } + } else if v.matchType == enums.MATCH_LPM { + if mlt == CIDR_TYPE { + match = append(match, util.GenKeyField(v.matchType, v.fieldId, v1.([]byte), v2.(int))) + } else { + fmt.Printf("Unexpect value for LPM_MATCH : %s\n", v.matchValue) + return nil + } + } else if v.matchType == enums.MATCH_TERNARY { + //Ternary match only support the complete address format(aa:aa:aa:aa:aa:aa/ff:ff:ff:ff:ff:ff, x.x.x.x/255.255.255.255) + if mlt == MASK_TYPE { + switch v1.(int) { + case IP_MASK: + arg := v2.([]string) + match = append(match, util.GenKeyField(v.matchType, v.fieldId, util.Ipv4ToBytes(arg[0]), util.Ipv4ToBytes(arg[1]))) + case ETH_MASK: + arg := v2.([]string) + match = append(match, util.GenKeyField(v.matchType, v.fieldId, util.MacToBytes(arg[0]), util.MacToBytes(arg[1]))) + case HEX_MASK: + arg := v2.([]uint16) + match = append(match, util.GenKeyField(v.matchType, v.fieldId, util.HexToBytes(arg[0]), util.HexToBytes(arg[1]))) + case VALUE_MASK: + arg := v2.([]int) + match = append(match, util.GenKeyField(v.matchType, v.fieldId, setBitValue(arg[0], v.bitWidth), setBitValue(arg[1], v.bitWidth))) + } + } else { + fmt.Printf("Unexpect value for TERNARY_MATCH : %s\n", v.matchValue) + return nil + } + } else if v.matchType == enums.MATCH_RANGE { + //TODO: Implement range match + fmt.Println("Range_Match Not Supported Yet") + return nil + } else { + fmt.Println("Unexpected Match Type") + } + } + return match +} diff --git a/cmd/version.go b/cmd/version.go index 743de33..48b8e0d 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -7,8 +7,8 @@ import ( ) var ( - logo bool - version bool + logo bool + version bool piscLogo string ) @@ -16,13 +16,13 @@ var ( var versionCmd = &cobra.Command{ Use: "version", Short: "Show the pisc-cli version information", - Long: `Show the pisc-cli version information`, + Long: `Show the pisc-cli version information`, Run: func(cmd *cobra.Command, args []string) { if logo { callLogo() fmt.Println(piscLogo) } - fmt.Println("Version Called") + fmt.Println("Version : 0.1.0") }, } @@ -41,17 +41,7 @@ func callLogo() { "|__/\n" } - func init() { rootCmd.AddCommand(versionCmd) versionCmd.Flags().BoolVarP(&logo, "logo", "l", false, "") - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // versionCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // versionCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") } diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..fe9449a --- /dev/null +++ b/go.mod @@ -0,0 +1,17 @@ +module github.com/P4Networking/pisc-cli + +go 1.14 + +replace ( + github.com/P4Networking/pisc => ../pisc + github.com/P4Networking/proto => ../proto +) + +require ( + github.com/P4Networking/pisc v0.0.0-00010101000000-000000000000 + github.com/P4Networking/proto v1.0.0 + github.com/mitchellh/go-homedir v1.1.0 + github.com/spf13/cobra v1.0.0 + github.com/spf13/viper v1.7.1 + google.golang.org/grpc v1.32.0 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..fbb1d21 --- /dev/null +++ b/go.sum @@ -0,0 +1,395 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/P4Networking/netlink v1.1.1/go.mod h1:jphS5KWlRePmRBaqpiFy7OVXLwN971M7FiiSrXeFZ4s= +github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= +github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= +github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= +github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= +github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= +github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= +github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8= +github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= +github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= +github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= +github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= +github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= +github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= +github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= +github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= +github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= +github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= +github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= +github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= +github.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a/go.mod h1:yL958EeXv8Ylng6IfnvG4oflryUi3vgA3xPs9hmII1s= +github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= +github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= +github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= +github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= +github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= +github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/magiconair/properties v1.8.1 h1:ZC2Vc7/ZFkGmsVC9KvOjumD+G5lXy2RtTKyzRKO2BQ4= +github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= +github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= +github.com/mitchellh/hashstructure v1.0.0/go.mod h1:QjSHrPWS+BGUVBYkbTZWEnOh3G1DutKwClXU/ABz6AQ= +github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= +github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE= +github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= +github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc= +github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= +github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= +github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= +github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= +github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= +github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM= +github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= +github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s= +github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= +github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/afero v1.1.2 h1:m8/z1t7/fwjysjQRYbP0RD+bUIF/8tJwPdEZsI83ACI= +github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/spf13/cast v1.3.0 h1:oget//CVOEoFewqQxwr0Ej5yjygnqGkvggSE/gB35Q8= +github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cobra v1.0.0 h1:6m/oheQuQ13N9ks4hubMG6BnvwOeaJrqSPLahSnczz8= +github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= +github.com/spf13/jwalterweatherman v1.0.0 h1:XHEdyB+EcvlqZamSM4ZOMGlc93t6AcsBEu9Gc1vn7yk= +github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= +github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg= +github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= +github.com/spf13/viper v1.7.1 h1:pM5oEahlgWv/WnHXpgbKz7iLIxRf65tye2Ci+XFK5sk= +github.com/spf13/viper v1.7.1/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= +github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= +github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= +github.com/vishvananda/netns v0.0.0-20200728191858-db3c7e526aae/go.mod h1:DD4vA1DwXk04H54A1oHXtwZmA0grkVMdPxx/VGLCah0= +github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= +github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= +go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.uber.org/atomic v1.6.0 h1:Ezj3JGmsOnG1MoRWQkPBsKLe9DwWD9QeXzTRzzldNVk= +go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= +go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= +go.uber.org/multierr v1.5.0 h1:KCa4XfM8CWFCpxXRGok+Q0SS/0XBhMDbHHGABQLvD2A= +go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= +go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee h1:0mgffUl7nfd+FpvXMVz4IDEaUSmT1ysygQC7qYo7sG4= +go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= +go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= +go.uber.org/zap v1.16.0 h1:uFRZXykJGK9lLY4HtgSw44DnIcAM+kRBP7x5m+NpAOM= +go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ= +golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de h1:5hukYrvBGR8/eNkX5mdUezrA6JiaEZDtJb9Ei+1LlBs= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859 h1:R/3boaszxrf1GEUWTVDzSKVwLmSJpwZ1yqXm8j0v2QI= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0 h1:HyfiK1WMnHj5FXFXatD+Qs1A/xC2Run6RzeW1SyHxpc= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200217220822-9197077df867/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200826173525-f9321e4c35a6/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200909081042-eff7692f9009 h1:W0lCpv29Hv0UaM1LXb9QlBHLNP8UFfcKjblhVCWftOM= +golang.org/x/sys v0.0.0-20200909081042-eff7692f9009/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc h1:NCy3Ohtk6Iny5V/reW2Ktypo4zIpWBdRJ1uFMjBxdg8= +golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200828030656-73b5761be4c5 h1:SXvXDcZm33V0P03upM01EgN1an0ggw+yntYrnvdWbCU= +google.golang.org/genproto v0.0.0-20200828030656-73b5761be4c5/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.32.0 h1:zWTV+LMdc3kaiJMSTOFz2UgSBgx8RNQoTGiZu3fR9S0= +google.golang.org/grpc v1.32.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/ini.v1 v1.51.0 h1:AQvPpx3LzTDM0AjnIRlVFwFFGC+npRopjZxLJj6gdno= +gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= +gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3 h1:3JgtbtFHMiCmsznwGVTUWbgGov+pVqnlf1dEJTNAXeM= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=