Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultMarkBit = 13
DefaultMarkBit is the default mark bit to signal that masquerading is required.
Variables ¶
This section is empty.
Functions ¶
func GetSupportedVersions ¶
func GetSupportedVersions() version.PluginInfo
GetSupportedVersions returns supported CNI spec versions.
Types ¶
type Config ¶
type Config struct { types.NetConf SNAT *bool `json:"snat,omitempty"` ConditionsV4 *[]string `json:"conditionsV4"` ConditionsV6 *[]string `json:"conditionsV6"` MarkMasqBit *int `json:"markMasqBit"` ExternalSetMarkChain *string `json:"externalSetMarkChain"` RuntimeConfig struct { PortMaps []utils.MappingEntry `json:"portMappings,omitempty"` } `json:"runtimeConfig,omitempty"` // These are fields parsed out of the config or the environment; // included here for convenience ContainerID string `json:"-"` ContIPv4 net.IPNet `json:"-"` ContIPv6 net.IPNet `json:"-"` NatTableName string `json:"nat_table_name"` PostRoutingNatChainName string `json:"postrouting_nat_chain_name"` PreRoutingNatChainName string `json:"prerouting_nat_chain_name"` OutputNatChainName string `json:"output_nat_chain_name"` InputNatChainName string `json:"input_nat_chain_name"` RawTableName string `json:"raw_table_name"` PreRoutingRawChainName string `json:"prerouting_raw_chain_name"` FilterTableName string `json:"filter_table_name"` ForwardFilterChainName string `json:"forward_filter_chain_name"` }
Config holds the configuration for the Plugin.
type Interface ¶
type Interface struct {
// contains filtered or unexported fields
}
Interface represents a collection of addresses associated with a network interface.
Click to show internal directories.
Click to hide internal directories.