Documentation ¶
Index ¶
- func IsCCECNIMode(mode ContainerNetworkMode) bool
- func IsCCECNIModeAutoDetect(mode ContainerNetworkMode) bool
- func IsCCECNIModeBasedOnBBCSecondaryIP(mode ContainerNetworkMode) bool
- func IsCCECNIModeBasedOnBCCSecondaryIP(mode ContainerNetworkMode) bool
- func IsCCECNIModeBasedOnSecondaryIP(mode ContainerNetworkMode) bool
- func IsCCECNIModeBasedOnVPCRoute(mode ContainerNetworkMode) bool
- func IsCrossVPCEniMode(mode ContainerNetworkMode) bool
- func IsKubenetMode(mode ContainerNetworkMode) bool
- type ContainerNetworkMode
- type Duration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCCECNIMode ¶
func IsCCECNIMode(mode ContainerNetworkMode) bool
func IsCCECNIModeAutoDetect ¶
func IsCCECNIModeAutoDetect(mode ContainerNetworkMode) bool
func IsCCECNIModeBasedOnBBCSecondaryIP ¶
func IsCCECNIModeBasedOnBBCSecondaryIP(mode ContainerNetworkMode) bool
func IsCCECNIModeBasedOnBCCSecondaryIP ¶
func IsCCECNIModeBasedOnBCCSecondaryIP(mode ContainerNetworkMode) bool
func IsCCECNIModeBasedOnSecondaryIP ¶
func IsCCECNIModeBasedOnSecondaryIP(mode ContainerNetworkMode) bool
func IsCCECNIModeBasedOnVPCRoute ¶
func IsCCECNIModeBasedOnVPCRoute(mode ContainerNetworkMode) bool
func IsCrossVPCEniMode ¶
func IsCrossVPCEniMode(mode ContainerNetworkMode) bool
func IsKubenetMode ¶
func IsKubenetMode(mode ContainerNetworkMode) bool
Types ¶
type ContainerNetworkMode ¶
type ContainerNetworkMode string
ContainerNetworkMode defines container config
const ( // K8sNetworkModeKubenet using kubenet K8sNetworkModeKubenet ContainerNetworkMode = "kubenet" // CCEModeRouteVeth using vpc route plus veth CCEModeRouteVeth ContainerNetworkMode = "vpc-route-veth" // CCEModeRouteIPVlan using vpc route plus ipvlan CCEModeRouteIPVlan ContainerNetworkMode = "vpc-route-ipvlan" // CCEModeRouteAutoDetect using vpc route and auto detects veth or ipvlan due to kernel version CCEModeRouteAutoDetect ContainerNetworkMode = "vpc-route-auto-detect" // CCEModeSecondaryIPVeth using vpc secondary ip plus veth CCEModeSecondaryIPVeth ContainerNetworkMode = "vpc-secondary-ip-veth" // CCEModeSecondaryIPIPVlan using vpc secondary ip plus ipvlan CCEModeSecondaryIPIPVlan ContainerNetworkMode = "vpc-secondary-ip-ipvlan" // CCEModeSecondaryIPAutoDetect using vpc secondary ip and auto detects veth or ipvlan due to kernel version CCEModeSecondaryIPAutoDetect ContainerNetworkMode = "vpc-secondary-ip-auto-detect" // CCEModeBBCSecondaryIPVeth using vpc secondary ip plus veth (BBC only) CCEModeBBCSecondaryIPVeth ContainerNetworkMode = "bbc-vpc-secondary-ip-veth" // CCEModeBBCSecondaryIPIPVlan using vpc secondary ip plus ipvlan (BBC only) CCEModeBBCSecondaryIPIPVlan ContainerNetworkMode = "bbc-vpc-secondary-ip-ipvlan" // CCEModeBBCSecondaryIPAutoDetect using vpc secondary ip and auto detects veth or ipvlan due to kernel version (BBC only) CCEModeBBCSecondaryIPAutoDetect ContainerNetworkMode = "bbc-vpc-secondary-ip-auto-detect" // CCEModeCrossVPCEni using vpc-route-veth and eni as a secondary interface CCEModeCrossVPCEni ContainerNetworkMode = "cross-vpc-eni" // CCEModeExclusiveCrossVPCEni using eni as the only main interface CCEModeExclusiveCrossVPCEni ContainerNetworkMode = "exclusive-cross-vpc-eni" )
Click to show internal directories.
Click to hide internal directories.