mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
chore(gofmt): go format fix
Signed-off-by: gkarthiks <github.gkarthiks@gmail.com>
This commit is contained in:
parent
1f4cd65be5
commit
b05749c619
@ -40,7 +40,7 @@ const (
|
|||||||
// Prepend is the insert flag for iptable
|
// Prepend is the insert flag for iptable
|
||||||
Prepend RulePosition = "-I"
|
Prepend RulePosition = "-I"
|
||||||
// Append is the append flag for iptable
|
// 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.
|
// Interface is an injectable interface for running iptables commands. Implementations must be goroutine-safe.
|
||||||
@ -101,7 +101,7 @@ type Table string
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
// TableNAT represents the built-in nat table
|
// TableNAT represents the built-in nat table
|
||||||
TableNAT Table = "nat"
|
TableNAT Table = "nat"
|
||||||
// TableFilter represents the built-in filter table
|
// TableFilter represents the built-in filter table
|
||||||
TableFilter Table = "filter"
|
TableFilter Table = "filter"
|
||||||
// TableMangle represents the built-in mangle table
|
// TableMangle represents the built-in mangle table
|
||||||
@ -115,13 +115,13 @@ const (
|
|||||||
// ChainPostrouting used for source NAT in nat table
|
// ChainPostrouting used for source NAT in nat table
|
||||||
ChainPostrouting Chain = "POSTROUTING"
|
ChainPostrouting Chain = "POSTROUTING"
|
||||||
// ChainPrerouting used for DNAT (destination NAT) in nat table
|
// 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 used for the packets going out from local
|
||||||
ChainOutput Chain = "OUTPUT"
|
ChainOutput Chain = "OUTPUT"
|
||||||
// ChainInput used for incoming packets
|
// ChainInput used for incoming packets
|
||||||
ChainInput Chain = "INPUT"
|
ChainInput Chain = "INPUT"
|
||||||
// ChainForward used for the packets for another NIC
|
// ChainForward used for the packets for another NIC
|
||||||
ChainForward Chain = "FORWARD"
|
ChainForward Chain = "FORWARD"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -138,6 +138,7 @@ type RestoreCountersFlag bool
|
|||||||
|
|
||||||
// RestoreCounters a boolean true constant for the option flag RestoreCountersFlag
|
// RestoreCounters a boolean true constant for the option flag RestoreCountersFlag
|
||||||
const RestoreCounters RestoreCountersFlag = true
|
const RestoreCounters RestoreCountersFlag = true
|
||||||
|
|
||||||
// NoRestoreCounters a boolean false constant for the option flag RestoreCountersFlag
|
// NoRestoreCounters a boolean false constant for the option flag RestoreCountersFlag
|
||||||
const NoRestoreCounters RestoreCountersFlag = false
|
const NoRestoreCounters RestoreCountersFlag = false
|
||||||
|
|
||||||
@ -146,6 +147,7 @@ type FlushFlag bool
|
|||||||
|
|
||||||
// FlushTables a boolean true constant for option flag FlushFlag
|
// FlushTables a boolean true constant for option flag FlushFlag
|
||||||
const FlushTables FlushFlag = true
|
const FlushTables FlushFlag = true
|
||||||
|
|
||||||
// NoFlushTables a boolean false constant for option flag FlushFlag
|
// NoFlushTables a boolean false constant for option flag FlushFlag
|
||||||
const NoFlushTables FlushFlag = false
|
const NoFlushTables FlushFlag = false
|
||||||
|
|
||||||
@ -160,13 +162,16 @@ var RandomFullyMinVersion = utilversion.MustParseGeneric("1.6.2")
|
|||||||
|
|
||||||
// WaitMinVersion a minimum iptables versions supporting the -w and -w<seconds> flags
|
// WaitMinVersion a minimum iptables versions supporting the -w and -w<seconds> flags
|
||||||
var WaitMinVersion = utilversion.MustParseGeneric("1.4.20")
|
var WaitMinVersion = utilversion.MustParseGeneric("1.4.20")
|
||||||
|
|
||||||
// WaitSecondsMinVersion a minimum iptables versions supporting the wait seconds
|
// WaitSecondsMinVersion a minimum iptables versions supporting the wait seconds
|
||||||
var WaitSecondsMinVersion = utilversion.MustParseGeneric("1.4.22")
|
var WaitSecondsMinVersion = utilversion.MustParseGeneric("1.4.22")
|
||||||
|
|
||||||
// WaitRestoreMinVersion a minimum iptables versions supporting the wait restore seconds
|
// WaitRestoreMinVersion a minimum iptables versions supporting the wait restore seconds
|
||||||
var WaitRestoreMinVersion = utilversion.MustParseGeneric("1.6.2")
|
var WaitRestoreMinVersion = utilversion.MustParseGeneric("1.6.2")
|
||||||
|
|
||||||
// WaitString a constant for specifying the wait flag
|
// WaitString a constant for specifying the wait flag
|
||||||
const WaitString = "-w"
|
const WaitString = "-w"
|
||||||
|
|
||||||
// WaitSecondsValue a constant for specifying the default wait seconds
|
// WaitSecondsValue a constant for specifying the default wait seconds
|
||||||
const WaitSecondsValue = "5"
|
const WaitSecondsValue = "5"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user