From b4c1d1b34d0ac0a4a7796d7ab1325cdceefe0779 Mon Sep 17 00:00:00 2001 From: Adrian Huber Date: Fri, 16 Jul 2021 09:40:51 +0200 Subject: [PATCH] Add description field to firewall rules --- go.mod | 4 +-- go.sum | 25 ++++++++++++------- internal/cmd/firewall/add_rule.go | 7 ++++++ internal/cmd/firewall/create.go | 9 ++++--- internal/cmd/firewall/delete_rule.go | 6 +++++ internal/cmd/firewall/describe.go | 4 +++ internal/cmd/firewall/list.go | 1 + internal/cmd/firewall/replace_rules.go | 7 +++--- internal/hcapi2/zz_certificate_client_base.go | 1 - internal/hcapi2/zz_datacenter_client_base.go | 1 - internal/hcapi2/zz_firewall_client_base.go | 1 - internal/hcapi2/zz_floating_ip_client_base.go | 1 - internal/hcapi2/zz_image_client_base.go | 1 - internal/hcapi2/zz_iso_client_base.go | 1 - .../hcapi2/zz_loadbalancer_client_base.go | 3 +-- .../zz_loadbalancer_type_client_base.go | 1 - internal/hcapi2/zz_location_client_base.go | 1 - internal/hcapi2/zz_network_client_base.go | 1 - internal/hcapi2/zz_server_client_base.go | 1 - internal/hcapi2/zz_server_type_client_base.go | 1 - internal/hcapi2/zz_ssh_key_client_base.go | 1 - internal/hcapi2/zz_volume_client_base.go | 1 - 22 files changed, 46 insertions(+), 33 deletions(-) diff --git a/go.mod b/go.mod index e442f54a..97c1cee5 100644 --- a/go.mod +++ b/go.mod @@ -5,10 +5,10 @@ require ( github.com/cheggaaa/pb/v3 v3.0.7 github.com/dustin/go-humanize v1.0.0 github.com/fatih/structs v1.1.0 - github.com/golang/mock v1.5.0 + github.com/golang/mock v1.6.0 github.com/google/go-cmp v0.5.2 // indirect github.com/guptarohit/asciigraph v0.5.1 - github.com/hetznercloud/hcloud-go v1.28.0 + github.com/hetznercloud/hcloud-go v1.29.0 github.com/pelletier/go-toml v1.8.1 github.com/rjeczalik/interfaces v0.1.1 github.com/spf13/cobra v1.1.3 diff --git a/go.sum b/go.sum index f1e0188e..39194094 100644 --- a/go.sum +++ b/go.sum @@ -62,8 +62,8 @@ github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4er 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/mock v1.5.0 h1:jlYHihg//f7RRwuPfptm04yp4s7O6Kw8EZiVYIGcH0g= -github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= +github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= +github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= 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= @@ -107,8 +107,8 @@ github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO 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/hetznercloud/hcloud-go v1.28.0 h1:T2a0CVGETf7BoWIdZ/TACqmTZAa/ROutcfdUHYiPAQ4= -github.com/hetznercloud/hcloud-go v1.28.0/go.mod h1:2C5uMtBiMoFr3m7lBFPf7wXTdh33CevmZpQIIDPGYJI= +github.com/hetznercloud/hcloud-go v1.29.0 h1:GVUj/VM3wFG6bnVGbIbTyUBr1MgcJI30pH6lus/UfpY= +github.com/hetznercloud/hcloud-go v1.29.0/go.mod h1:2C5uMtBiMoFr3m7lBFPf7wXTdh33CevmZpQIIDPGYJI= github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= @@ -200,6 +200,7 @@ github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69 github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= 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= @@ -233,8 +234,8 @@ golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCc 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/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 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= @@ -251,6 +252,7 @@ golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= 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= @@ -260,6 +262,7 @@ golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJ 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/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/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= @@ -275,8 +278,10 @@ golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 h1:nxC68pudNYkKU6jWhgrqdreuFiOQWj1Fs7T3VrH4Pjw= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007 h1:gG67DSER+11cZvqIMb8S8bt0vZtiN6xWYARwirrOSfE= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -304,12 +309,14 @@ golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20200526224456-8b020aee10d2 h1:21BqcH/onxtGHn1A2GDOJjZnbt4Nlez629S3eaR+eYs= golang.org/x/tools v0.0.0-20200526224456-8b020aee10d2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.1.1 h1:wGiQel/hW0NnEkJUk8lbzkX2gFJU6PFxf1v5OlCfuOs= +golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/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= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/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= diff --git a/internal/cmd/firewall/add_rule.go b/internal/cmd/firewall/add_rule.go index b0e09191..7d7b664a 100644 --- a/internal/cmd/firewall/add_rule.go +++ b/internal/cmd/firewall/add_rule.go @@ -36,6 +36,8 @@ func newAddRuleCommand(cli *state.State) *cobra.Command { cmd.Flags().StringArray("destination-ips", []string{}, "Destination IPs (CIDR Notation) (required when direction is out)") cmd.Flags().String("port", "", "Port to which traffic will be allowed, only applicable for protocols TCP and UDP, you can specify port ranges, sample: 80-85") + + cmd.Flags().String("description", "", "Description of the firewall rule") return cmd } @@ -45,6 +47,7 @@ func runAddRule(cli *state.State, cmd *cobra.Command, args []string) error { sourceIPs, _ := cmd.Flags().GetStringArray("source-ips") destinationIPs, _ := cmd.Flags().GetStringArray("destination-ips") port, _ := cmd.Flags().GetString("port") + description, _ := cmd.Flags().GetString("description") idOrName := args[0] firewall, _, err := cli.Client().Firewall.Get(cli.Context, idOrName) @@ -65,6 +68,10 @@ func runAddRule(cli *state.State, cmd *cobra.Command, args []string) error { rule.Port = hcloud.String(port) } + if description != "" { + rule.Description = hcloud.String(description) + } + switch rule.Protocol { case hcloud.FirewallRuleProtocolTCP: case hcloud.FirewallRuleProtocolUDP: diff --git a/internal/cmd/firewall/create.go b/internal/cmd/firewall/create.go index 7beb1855..a754d4f3 100644 --- a/internal/cmd/firewall/create.go +++ b/internal/cmd/firewall/create.go @@ -71,10 +71,11 @@ func runFirewallCreate(cli *state.State, cmd *cobra.Command, args []string) erro sourceNets = append(sourceNets, *sourceNet) } opts.Rules = append(opts.Rules, hcloud.FirewallRule{ - Direction: hcloud.FirewallRuleDirection(rule.Direction), - SourceIPs: sourceNets, - Protocol: hcloud.FirewallRuleProtocol(rule.Protocol), - Port: rule.Port, + Direction: hcloud.FirewallRuleDirection(rule.Direction), + SourceIPs: sourceNets, + Protocol: hcloud.FirewallRuleProtocol(rule.Protocol), + Port: rule.Port, + Description: rule.Description, }) } } diff --git a/internal/cmd/firewall/delete_rule.go b/internal/cmd/firewall/delete_rule.go index 37de5dd2..2b5779b3 100644 --- a/internal/cmd/firewall/delete_rule.go +++ b/internal/cmd/firewall/delete_rule.go @@ -37,6 +37,8 @@ func newDeleteRuleCommand(cli *state.State) *cobra.Command { cmd.Flags().StringArray("destination-ips", []string{}, "Destination IPs (CIDR Notation) (required when direction is out)") cmd.Flags().String("port", "", "Port to which traffic will be allowed, only applicable for protocols TCP and UDP") + + cmd.Flags().String("description", "", "Description of the firewall rule") return cmd } @@ -46,6 +48,7 @@ func runDeleteRule(cli *state.State, cmd *cobra.Command, args []string) error { sourceIPs, _ := cmd.Flags().GetStringArray("source-ips") destinationIPs, _ := cmd.Flags().GetStringArray("destination-ips") port, _ := cmd.Flags().GetString("port") + description, _ := cmd.Flags().GetString("description") idOrName := args[0] firewall, _, err := cli.Client().Firewall.Get(cli.Context, idOrName) @@ -64,6 +67,9 @@ func runDeleteRule(cli *state.State, cmd *cobra.Command, args []string) error { if port != "" { rule.Port = hcloud.String(port) } + if description != "" { + rule.Description = hcloud.String(description) + } switch rule.Protocol { case hcloud.FirewallRuleProtocolTCP: diff --git a/internal/cmd/firewall/describe.go b/internal/cmd/firewall/describe.go index d3ca4a9a..c8e8bd22 100644 --- a/internal/cmd/firewall/describe.go +++ b/internal/cmd/firewall/describe.go @@ -44,6 +44,10 @@ var describeCmd = base.DescribeCmd{ fmt.Print(" No rules\n") } else { for _, rule := range firewall.Rules { + if rule.Description != nil { + fmt.Printf(" Description:\t\t%s\n", *rule.Description) + } + fmt.Printf(" - Direction:\t\t%s\n", rule.Direction) fmt.Printf(" Protocol:\t\t%s\n", rule.Protocol) if rule.Port != nil { diff --git a/internal/cmd/firewall/list.go b/internal/cmd/firewall/list.go index a5d64e2f..f8446d8c 100644 --- a/internal/cmd/firewall/list.go +++ b/internal/cmd/firewall/list.go @@ -85,6 +85,7 @@ var listCmd = base.ListCmd{ DestinationIPs: destinationNets, Protocol: string(rule.Protocol), Port: rule.Port, + Description: rule.Description, }) } for _, AppliedTo := range firewall.AppliedTo { diff --git a/internal/cmd/firewall/replace_rules.go b/internal/cmd/firewall/replace_rules.go index 0efcee64..2cfa5523 100644 --- a/internal/cmd/firewall/replace_rules.go +++ b/internal/cmd/firewall/replace_rules.go @@ -63,9 +63,10 @@ func runFirewallReplaceRules(cli *state.State, cmd *cobra.Command, args []string for _, rule := range rules { d := hcloud.FirewallRuleDirection(rule.Direction) r := hcloud.FirewallRule{ - Direction: d, - Protocol: hcloud.FirewallRuleProtocol(rule.Protocol), - Port: rule.Port, + Direction: d, + Protocol: hcloud.FirewallRuleProtocol(rule.Protocol), + Port: rule.Port, + Description: rule.Description, } switch d { case hcloud.FirewallRuleDirectionOut: diff --git a/internal/hcapi2/zz_certificate_client_base.go b/internal/hcapi2/zz_certificate_client_base.go index eb9a8982..e43af6eb 100644 --- a/internal/hcapi2/zz_certificate_client_base.go +++ b/internal/hcapi2/zz_certificate_client_base.go @@ -4,7 +4,6 @@ package hcapi2 import ( "context" - "github.com/hetznercloud/hcloud-go/hcloud" ) diff --git a/internal/hcapi2/zz_datacenter_client_base.go b/internal/hcapi2/zz_datacenter_client_base.go index bd5efa08..012c5b8d 100644 --- a/internal/hcapi2/zz_datacenter_client_base.go +++ b/internal/hcapi2/zz_datacenter_client_base.go @@ -4,7 +4,6 @@ package hcapi2 import ( "context" - "github.com/hetznercloud/hcloud-go/hcloud" ) diff --git a/internal/hcapi2/zz_firewall_client_base.go b/internal/hcapi2/zz_firewall_client_base.go index a08851cd..32c1c109 100644 --- a/internal/hcapi2/zz_firewall_client_base.go +++ b/internal/hcapi2/zz_firewall_client_base.go @@ -4,7 +4,6 @@ package hcapi2 import ( "context" - "github.com/hetznercloud/hcloud-go/hcloud" ) diff --git a/internal/hcapi2/zz_floating_ip_client_base.go b/internal/hcapi2/zz_floating_ip_client_base.go index 0de877fb..2d335a7c 100644 --- a/internal/hcapi2/zz_floating_ip_client_base.go +++ b/internal/hcapi2/zz_floating_ip_client_base.go @@ -4,7 +4,6 @@ package hcapi2 import ( "context" - "github.com/hetznercloud/hcloud-go/hcloud" ) diff --git a/internal/hcapi2/zz_image_client_base.go b/internal/hcapi2/zz_image_client_base.go index 3f1a8fc3..ba1098de 100644 --- a/internal/hcapi2/zz_image_client_base.go +++ b/internal/hcapi2/zz_image_client_base.go @@ -4,7 +4,6 @@ package hcapi2 import ( "context" - "github.com/hetznercloud/hcloud-go/hcloud" ) diff --git a/internal/hcapi2/zz_iso_client_base.go b/internal/hcapi2/zz_iso_client_base.go index 13da29fe..ccdaeff0 100644 --- a/internal/hcapi2/zz_iso_client_base.go +++ b/internal/hcapi2/zz_iso_client_base.go @@ -4,7 +4,6 @@ package hcapi2 import ( "context" - "github.com/hetznercloud/hcloud-go/hcloud" ) diff --git a/internal/hcapi2/zz_loadbalancer_client_base.go b/internal/hcapi2/zz_loadbalancer_client_base.go index d3ebba51..e95d711d 100644 --- a/internal/hcapi2/zz_loadbalancer_client_base.go +++ b/internal/hcapi2/zz_loadbalancer_client_base.go @@ -4,9 +4,8 @@ package hcapi2 import ( "context" - "net" - "github.com/hetznercloud/hcloud-go/hcloud" + "net" ) // LoadBalancerClientBase is an interface generated for "github.com/hetznercloud/hcloud-go/hcloud.LoadBalancerClient". diff --git a/internal/hcapi2/zz_loadbalancer_type_client_base.go b/internal/hcapi2/zz_loadbalancer_type_client_base.go index fcc3ae45..946e5aa6 100644 --- a/internal/hcapi2/zz_loadbalancer_type_client_base.go +++ b/internal/hcapi2/zz_loadbalancer_type_client_base.go @@ -4,7 +4,6 @@ package hcapi2 import ( "context" - "github.com/hetznercloud/hcloud-go/hcloud" ) diff --git a/internal/hcapi2/zz_location_client_base.go b/internal/hcapi2/zz_location_client_base.go index 934d71fb..2d3315c7 100644 --- a/internal/hcapi2/zz_location_client_base.go +++ b/internal/hcapi2/zz_location_client_base.go @@ -4,7 +4,6 @@ package hcapi2 import ( "context" - "github.com/hetznercloud/hcloud-go/hcloud" ) diff --git a/internal/hcapi2/zz_network_client_base.go b/internal/hcapi2/zz_network_client_base.go index 9c03509d..3628f0df 100644 --- a/internal/hcapi2/zz_network_client_base.go +++ b/internal/hcapi2/zz_network_client_base.go @@ -4,7 +4,6 @@ package hcapi2 import ( "context" - "github.com/hetznercloud/hcloud-go/hcloud" ) diff --git a/internal/hcapi2/zz_server_client_base.go b/internal/hcapi2/zz_server_client_base.go index 3ceafd2c..20ae6317 100644 --- a/internal/hcapi2/zz_server_client_base.go +++ b/internal/hcapi2/zz_server_client_base.go @@ -4,7 +4,6 @@ package hcapi2 import ( "context" - "github.com/hetznercloud/hcloud-go/hcloud" ) diff --git a/internal/hcapi2/zz_server_type_client_base.go b/internal/hcapi2/zz_server_type_client_base.go index bf9acf74..0593d66c 100644 --- a/internal/hcapi2/zz_server_type_client_base.go +++ b/internal/hcapi2/zz_server_type_client_base.go @@ -4,7 +4,6 @@ package hcapi2 import ( "context" - "github.com/hetznercloud/hcloud-go/hcloud" ) diff --git a/internal/hcapi2/zz_ssh_key_client_base.go b/internal/hcapi2/zz_ssh_key_client_base.go index 23f0fb1e..d6c422a5 100644 --- a/internal/hcapi2/zz_ssh_key_client_base.go +++ b/internal/hcapi2/zz_ssh_key_client_base.go @@ -4,7 +4,6 @@ package hcapi2 import ( "context" - "github.com/hetznercloud/hcloud-go/hcloud" ) diff --git a/internal/hcapi2/zz_volume_client_base.go b/internal/hcapi2/zz_volume_client_base.go index 9a63bbeb..c36c7fcf 100644 --- a/internal/hcapi2/zz_volume_client_base.go +++ b/internal/hcapi2/zz_volume_client_base.go @@ -4,7 +4,6 @@ package hcapi2 import ( "context" - "github.com/hetznercloud/hcloud-go/hcloud" )