Documentation ¶
Index ¶
Constants ¶
View Source
const ( OptimisticLockErrorMsg = "the object has been modified; please apply your changes to the latest version and try again" MinV4MaskLength = 32 MaxV4MaskLength = 9 MaxV6PrefixLength = 105 MinV6PrefixLength = 128 )
Variables ¶
View Source
var ( SupportedCniVersions = version.PluginSupports("0.3.1") LegacyNamingScheme = "legacy" )
Functions ¶
This section is empty.
Types ¶
type CniBackendConfig ¶
type CniBackendConfig struct { CNIVersion string ReadConfig CniConfigReader IpamNeeded bool DeviceNeeded bool }
type CniConfigReader ¶
type Interface ¶
type Interface struct { Network string `json:"network,omitempty"` TenantNetwork string `json:"tenantNetwork,omitempty"` ClusterNetwork string `json:"clusterNetwork,omitempty"` Ip string `json:"ip,omitempty"` Ip6 string `json:"ip6,omitempty"` Proutes map[string]string `json:"proutes,omitempty"` Proutes6 map[string]string `json:"proutes6,omitempty"` DefaultIfaceName string Device string SequenceId int }
Interface represents a request coming from the Pod to connect it to one DanmNet during CNI_ADD operation It contains the name of the network object the Pod should be connected to, and other optional requests Pods can influence the scheme of IP allocation (dynamic, static, none), and can ask for the provisioning of policy-based IP routes
type IpamConfig ¶
Click to show internal directories.
Click to hide internal directories.