Skip to content

Commit b05749c

Browse files
committed
chore(gofmt): go format fix
Signed-off-by: gkarthiks <[email protected]>
1 parent 1f4cd65 commit b05749c

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

pkg/util/iptables/iptables.go

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const (
4040
// Prepend is the insert flag for iptable
4141
Prepend RulePosition = "-I"
4242
// Append is the append flag for iptable
43-
Append RulePosition = "-A"
43+
Append RulePosition = "-A"
4444
)
4545

4646
// Interface is an injectable interface for running iptables commands. Implementations must be goroutine-safe.
@@ -101,7 +101,7 @@ type Table string
101101

102102
const (
103103
// TableNAT represents the built-in nat table
104-
TableNAT Table = "nat"
104+
TableNAT Table = "nat"
105105
// TableFilter represents the built-in filter table
106106
TableFilter Table = "filter"
107107
// TableMangle represents the built-in mangle table
@@ -115,13 +115,13 @@ const (
115115
// ChainPostrouting used for source NAT in nat table
116116
ChainPostrouting Chain = "POSTROUTING"
117117
// ChainPrerouting used for DNAT (destination NAT) in nat table
118-
ChainPrerouting Chain = "PREROUTING"
118+
ChainPrerouting Chain = "PREROUTING"
119119
// ChainOutput used for the packets going out from local
120-
ChainOutput Chain = "OUTPUT"
120+
ChainOutput Chain = "OUTPUT"
121121
// ChainInput used for incoming packets
122-
ChainInput Chain = "INPUT"
122+
ChainInput Chain = "INPUT"
123123
// ChainForward used for the packets for another NIC
124-
ChainForward Chain = "FORWARD"
124+
ChainForward Chain = "FORWARD"
125125
)
126126

127127
const (
@@ -138,6 +138,7 @@ type RestoreCountersFlag bool
138138

139139
// RestoreCounters a boolean true constant for the option flag RestoreCountersFlag
140140
const RestoreCounters RestoreCountersFlag = true
141+
141142
// NoRestoreCounters a boolean false constant for the option flag RestoreCountersFlag
142143
const NoRestoreCounters RestoreCountersFlag = false
143144

@@ -146,6 +147,7 @@ type FlushFlag bool
146147

147148
// FlushTables a boolean true constant for option flag FlushFlag
148149
const FlushTables FlushFlag = true
150+
149151
// NoFlushTables a boolean false constant for option flag FlushFlag
150152
const NoFlushTables FlushFlag = false
151153

@@ -160,13 +162,16 @@ var RandomFullyMinVersion = utilversion.MustParseGeneric("1.6.2")
160162

161163
// WaitMinVersion a minimum iptables versions supporting the -w and -w<seconds> flags
162164
var WaitMinVersion = utilversion.MustParseGeneric("1.4.20")
165+
163166
// WaitSecondsMinVersion a minimum iptables versions supporting the wait seconds
164167
var WaitSecondsMinVersion = utilversion.MustParseGeneric("1.4.22")
168+
165169
// WaitRestoreMinVersion a minimum iptables versions supporting the wait restore seconds
166170
var WaitRestoreMinVersion = utilversion.MustParseGeneric("1.6.2")
167171

168172
// WaitString a constant for specifying the wait flag
169173
const WaitString = "-w"
174+
170175
// WaitSecondsValue a constant for specifying the default wait seconds
171176
const WaitSecondsValue = "5"
172177

0 commit comments

Comments
 (0)