Skip to content

Commit

Permalink
chore(gofmt): go format fix
Browse files Browse the repository at this point in the history
Signed-off-by: gkarthiks <github.gkarthiks@gmail.com>
  • Loading branch information
gkarthiks committed Nov 19, 2019
1 parent 1f4cd65 commit b05749c
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions pkg/util/iptables/iptables.go
Expand Up @@ -40,7 +40,7 @@ const (
// Prepend is the insert flag for iptable
Prepend RulePosition = "-I"
// Append is the append flag for iptable
Append RulePosition = "-A"
Append RulePosition = "-A"
)

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

const (
// TableNAT represents the built-in nat table
TableNAT Table = "nat"
TableNAT Table = "nat"
// TableFilter represents the built-in filter table
TableFilter Table = "filter"
// TableMangle represents the built-in mangle table
Expand All @@ -115,13 +115,13 @@ const (
// ChainPostrouting used for source NAT in nat table
ChainPostrouting Chain = "POSTROUTING"
// ChainPrerouting used for DNAT (destination NAT) in nat table
ChainPrerouting Chain = "PREROUTING"
ChainPrerouting Chain = "PREROUTING"
// ChainOutput used for the packets going out from local
ChainOutput Chain = "OUTPUT"
ChainOutput Chain = "OUTPUT"
// ChainInput used for incoming packets
ChainInput Chain = "INPUT"
ChainInput Chain = "INPUT"
// ChainForward used for the packets for another NIC
ChainForward Chain = "FORWARD"
ChainForward Chain = "FORWARD"
)

const (
Expand All @@ -138,6 +138,7 @@ type RestoreCountersFlag bool

// RestoreCounters a boolean true constant for the option flag RestoreCountersFlag
const RestoreCounters RestoreCountersFlag = true

// NoRestoreCounters a boolean false constant for the option flag RestoreCountersFlag
const NoRestoreCounters RestoreCountersFlag = false

Expand All @@ -146,6 +147,7 @@ type FlushFlag bool

// FlushTables a boolean true constant for option flag FlushFlag
const FlushTables FlushFlag = true

// NoFlushTables a boolean false constant for option flag FlushFlag
const NoFlushTables FlushFlag = false

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

// WaitMinVersion a minimum iptables versions supporting the -w and -w<seconds> flags
var WaitMinVersion = utilversion.MustParseGeneric("1.4.20")

// WaitSecondsMinVersion a minimum iptables versions supporting the wait seconds
var WaitSecondsMinVersion = utilversion.MustParseGeneric("1.4.22")

// WaitRestoreMinVersion a minimum iptables versions supporting the wait restore seconds
var WaitRestoreMinVersion = utilversion.MustParseGeneric("1.6.2")

// WaitString a constant for specifying the wait flag
const WaitString = "-w"

// WaitSecondsValue a constant for specifying the default wait seconds
const WaitSecondsValue = "5"

Expand Down

0 comments on commit b05749c

Please sign in to comment.