Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamespaceEvent ¶
type NetNamespace ¶
type NetNamespaceEvent ¶
type Service ¶
type Service struct {
Name string
Namespace string
UID string
IP string
Ports []ServicePort
}
type ServiceEvent ¶
type ServicePort ¶
type ServicePort struct {
Protocol ServiceProtocol
Port uint
}
type ServiceProtocol ¶
type ServiceProtocol string
const ( TCP ServiceProtocol = "TCP" UDP ServiceProtocol = "UDP" )
type SubnetEvent ¶
type SubnetRegistry ¶
type SubnetRegistry interface {
GetSubnets() ([]Subnet, string, error)
GetSubnet(nodeName string) (*Subnet, error)
DeleteSubnet(nodeName string) error
CreateSubnet(sn string, sub *Subnet) error
WatchSubnets(receiver chan<- *SubnetEvent, ready chan<- bool, startVersion <-chan string, stop <-chan bool) error
GetNodes() ([]Node, string, error)
WatchNodes(receiver chan<- *NodeEvent, ready chan<- bool, startVersion <-chan string, stop <-chan bool) error
WriteNetworkConfig(clusterNetworkCIDR string, clusterBitsPerSubnet uint, serviceNetworkCIDR string) error
GetClusterNetworkCIDR() (string, error)
GetNamespaces() ([]string, string, error)
WatchNamespaces(receiver chan<- *NamespaceEvent, ready chan<- bool, startVersion <-chan string, stop <-chan bool) error
WatchNetNamespaces(receiver chan<- *NetNamespaceEvent, ready chan<- bool, startVersion <-chan string, stop <-chan bool) error
GetNetNamespaces() ([]NetNamespace, string, error)
GetNetNamespace(name string) (NetNamespace, error)
WriteNetNamespace(name string, id uint) error
DeleteNetNamespace(name string) error
GetServicesNetworkCIDR() (string, error)
GetServices() ([]Service, string, error)
WatchServices(receiver chan<- *ServiceEvent, ready chan<- bool, startVersion <-chan string, stop <-chan bool) error
GetServicesForNamespace(namespace string) ([]Service, error)
GetPods() ([]Pod, string, error)
WatchPods(ready chan<- bool, startVersion <-chan string, stop <-chan bool) error
GetRunningPods(nodeName, namespace string) ([]Pod, error)
}
Click to show internal directories.
Click to hide internal directories.