Documentation ¶
Index ¶
- Constants
- func SetupIptables(ipt iptables.Interface, clusterNetworkCIDR string) error
- type FirewallRule
- type FlowController
- type OvsController
- func (oc *OvsController) BaseInit(registry *Registry, flowController FlowController, pluginHooks PluginHooks, ...) error
- func (oc *OvsController) StartMaster(clusterNetworkCIDR string, clusterBitsPerSubnet uint, ...) error
- func (oc *OvsController) StartNode(mtu uint) error
- func (oc *OvsController) Stop()
- func (oc *OvsController) SubnetStartMaster(clusterNetworkCIDR string, clusterBitsPerSubnet uint, ...) error
- func (oc *OvsController) SubnetStartNode(mtu uint) error
- func (oc *OvsController) VnidStartMaster() error
- func (oc *OvsController) VnidStartNode() error
- func (oc *OvsController) WaitForPodNetworkReady() error
- type PluginHooks
- type Registry
- func (registry *Registry) CreateSubnet(nodeName string, sub *osdnapi.Subnet) error
- func (registry *Registry) DeleteNetNamespace(name string) error
- func (registry *Registry) DeleteSubnet(nodeName string) error
- func (registry *Registry) GetClusterNetworkCIDR() (string, error)
- func (registry *Registry) GetHostSubnetLength() (int, error)
- func (registry *Registry) GetNamespaces() ([]string, string, error)
- func (registry *Registry) GetNetNamespace(name string) (osdnapi.NetNamespace, error)
- func (registry *Registry) GetNetNamespaces() ([]osdnapi.NetNamespace, string, error)
- func (registry *Registry) GetNodes() ([]osdnapi.Node, string, error)
- func (registry *Registry) GetPods() ([]osdnapi.Pod, string, error)
- func (registry *Registry) GetRunningPods(nodeName, namespace string) ([]osdnapi.Pod, error)
- func (registry *Registry) GetServices() ([]osdnapi.Service, string, error)
- func (registry *Registry) GetServicesForNamespace(namespace string) ([]osdnapi.Service, error)
- func (registry *Registry) GetServicesNetworkCIDR() (string, error)
- func (registry *Registry) GetSubnet(nodeName string) (*osdnapi.Subnet, error)
- func (registry *Registry) GetSubnets() ([]osdnapi.Subnet, string, error)
- func (registry *Registry) OnEndpointsUpdate(allEndpoints []kapi.Endpoints)
- func (registry *Registry) SetBaseEndpointsHandler(base pconfig.EndpointsConfigHandler)
- func (registry *Registry) WatchNamespaces(receiver chan<- *osdnapi.NamespaceEvent, ready chan<- bool, ...) error
- func (registry *Registry) WatchNetNamespaces(receiver chan<- *osdnapi.NetNamespaceEvent, ready chan<- bool, ...) error
- func (registry *Registry) WatchNodes(receiver chan<- *osdnapi.NodeEvent, ready chan<- bool, start <-chan string, ...) error
- func (registry *Registry) WatchPods(ready chan<- bool, start <-chan string, stop <-chan bool) error
- func (registry *Registry) WatchServices(receiver chan<- *osdnapi.ServiceEvent, ready chan<- bool, start <-chan string, ...) error
- func (registry *Registry) WatchSubnets(receiver chan<- *osdnapi.SubnetEvent, ready chan<- bool, start <-chan string, ...) error
- func (registry *Registry) WriteNetNamespace(name string, id uint) error
- func (registry *Registry) WriteNetworkConfig(network string, subnetLength uint, serviceNetwork string) error
Constants ¶
View Source
const ( // Maximum VXLAN Network Identifier as per RFC#7348 MaxVNID = ((1 << 24) - 1) // VNID for the admin namespaces AdminVNID = uint(0) )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FirewallRule ¶ added in v1.1.1
type FirewallRule struct {
// contains filtered or unexported fields
}
type FlowController ¶ added in v1.1.1
type FlowController interface { Setup(localSubnetCIDR, clusterNetworkCIDR, serviceNetworkCIDR string, mtu uint) error AddOFRules(nodeIP, nodeSubnetCIDR, localIP string) error DelOFRules(nodeIP, localIP string) error AddServiceOFRules(netID uint, IP string, protocol api.ServiceProtocol, port uint) error DelServiceOFRules(netID uint, IP string, protocol api.ServiceProtocol, port uint) error }
type OvsController ¶ added in v1.1.1
type OvsController struct { Registry *Registry VNIDMap map[string]uint // contains filtered or unexported fields }
func (*OvsController) BaseInit ¶ added in v1.1.1
func (oc *OvsController) BaseInit(registry *Registry, flowController FlowController, pluginHooks PluginHooks, hostname string, selfIP string) error
Called by plug factory functions to initialize the generic plugin instance
func (*OvsController) StartMaster ¶ added in v1.1.1
func (oc *OvsController) StartMaster(clusterNetworkCIDR string, clusterBitsPerSubnet uint, serviceNetworkCIDR string) error
func (*OvsController) StartNode ¶ added in v1.1.1
func (oc *OvsController) StartNode(mtu uint) error
func (*OvsController) Stop ¶ added in v1.1.1
func (oc *OvsController) Stop()
func (*OvsController) SubnetStartMaster ¶ added in v1.1.1
func (oc *OvsController) SubnetStartMaster(clusterNetworkCIDR string, clusterBitsPerSubnet uint, serviceNetworkCIDR string) error
func (*OvsController) SubnetStartNode ¶ added in v1.1.1
func (oc *OvsController) SubnetStartNode(mtu uint) error
func (*OvsController) VnidStartMaster ¶ added in v1.1.1
func (oc *OvsController) VnidStartMaster() error
func (*OvsController) VnidStartNode ¶ added in v1.1.1
func (oc *OvsController) VnidStartNode() error
func (*OvsController) WaitForPodNetworkReady ¶ added in v1.1.1
func (oc *OvsController) WaitForPodNetworkReady() error
type PluginHooks ¶ added in v1.1.1
type Registry ¶ added in v1.1.1
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶ added in v1.1.1
func (*Registry) CreateSubnet ¶ added in v1.1.1
func (*Registry) DeleteNetNamespace ¶ added in v1.1.1
func (*Registry) DeleteSubnet ¶ added in v1.1.1
func (*Registry) GetClusterNetworkCIDR ¶ added in v1.1.1
func (*Registry) GetHostSubnetLength ¶ added in v1.1.1
func (*Registry) GetNamespaces ¶ added in v1.1.1
func (*Registry) GetNetNamespace ¶ added in v1.1.1
func (registry *Registry) GetNetNamespace(name string) (osdnapi.NetNamespace, error)
func (*Registry) GetNetNamespaces ¶ added in v1.1.1
func (registry *Registry) GetNetNamespaces() ([]osdnapi.NetNamespace, string, error)
func (*Registry) GetRunningPods ¶ added in v1.1.1
func (*Registry) GetServices ¶ added in v1.1.1
func (*Registry) GetServicesForNamespace ¶ added in v1.1.1
func (*Registry) GetServicesNetworkCIDR ¶ added in v1.1.1
func (*Registry) GetSubnets ¶ added in v1.1.1
func (*Registry) OnEndpointsUpdate ¶ added in v1.1.1
func (*Registry) SetBaseEndpointsHandler ¶ added in v1.1.1
func (registry *Registry) SetBaseEndpointsHandler(base pconfig.EndpointsConfigHandler)
FilteringEndpointsConfigHandler implementation
func (*Registry) WatchNamespaces ¶ added in v1.1.1
func (*Registry) WatchNetNamespaces ¶ added in v1.1.1
func (*Registry) WatchNodes ¶ added in v1.1.1
func (*Registry) WatchServices ¶ added in v1.1.1
func (*Registry) WatchSubnets ¶ added in v1.1.1
func (*Registry) WriteNetNamespace ¶ added in v1.1.1
Click to show internal directories.
Click to hide internal directories.