Documentation ¶
Index ¶
- type OsdnRegistryInterface
- func (oi *OsdnRegistryInterface) CheckEtcdIsAlive(seconds uint64) bool
- func (oi *OsdnRegistryInterface) CreateNode(nodeName string, data string) error
- func (oi *OsdnRegistryInterface) CreateSubnet(nodeName string, sub *osdnapi.Subnet) error
- func (oi *OsdnRegistryInterface) DeleteNetNamespace(name string) error
- func (oi *OsdnRegistryInterface) DeleteSubnet(nodeName string) error
- func (oi *OsdnRegistryInterface) GetContainerNetwork() (string, error)
- func (oi *OsdnRegistryInterface) GetNamespaces() ([]string, error)
- func (oi *OsdnRegistryInterface) GetNetNamespace(name string) (osdnapi.NetNamespace, error)
- func (oi *OsdnRegistryInterface) GetNetNamespaces() ([]osdnapi.NetNamespace, error)
- func (oi *OsdnRegistryInterface) GetNodes() ([]osdnapi.Node, error)
- func (oi *OsdnRegistryInterface) GetServices() ([]osdnapi.Service, error)
- func (oi *OsdnRegistryInterface) GetServicesNetwork() (string, error)
- func (oi *OsdnRegistryInterface) GetSubnet(nodeName string) (*osdnapi.Subnet, error)
- func (oi *OsdnRegistryInterface) GetSubnetLength() (uint64, error)
- func (oi *OsdnRegistryInterface) GetSubnets() ([]osdnapi.Subnet, error)
- func (oi *OsdnRegistryInterface) InitNodes() error
- func (oi *OsdnRegistryInterface) InitServices() error
- func (oi *OsdnRegistryInterface) InitSubnets() error
- func (oi *OsdnRegistryInterface) WatchNamespaces(receiver chan *osdnapi.NamespaceEvent, stop chan bool) error
- func (oi *OsdnRegistryInterface) WatchNetNamespaces(receiver chan *osdnapi.NetNamespaceEvent, stop chan bool) error
- func (oi *OsdnRegistryInterface) WatchNodes(receiver chan *osdnapi.NodeEvent, stop chan bool) error
- func (oi *OsdnRegistryInterface) WatchServices(receiver chan *osdnapi.ServiceEvent, stop chan bool) error
- func (oi *OsdnRegistryInterface) WatchSubnets(receiver chan *osdnapi.SubnetEvent, stop chan bool) error
- func (oi *OsdnRegistryInterface) WriteNetNamespace(name string, id uint) error
- func (oi *OsdnRegistryInterface) WriteNetworkConfig(network string, subnetLength uint, serviceNetwork string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OsdnRegistryInterface ¶
type OsdnRegistryInterface struct {
// contains filtered or unexported fields
}
func NewOsdnRegistryInterface ¶ added in v1.0.5
func NewOsdnRegistryInterface(osClient *osclient.Client, kClient *kclient.Client) OsdnRegistryInterface
func (*OsdnRegistryInterface) CheckEtcdIsAlive ¶
func (oi *OsdnRegistryInterface) CheckEtcdIsAlive(seconds uint64) bool
func (*OsdnRegistryInterface) CreateNode ¶ added in v1.0.5
func (oi *OsdnRegistryInterface) CreateNode(nodeName string, data string) error
func (*OsdnRegistryInterface) CreateSubnet ¶
func (oi *OsdnRegistryInterface) CreateSubnet(nodeName string, sub *osdnapi.Subnet) error
func (*OsdnRegistryInterface) DeleteNetNamespace ¶ added in v1.0.5
func (oi *OsdnRegistryInterface) DeleteNetNamespace(name string) error
func (*OsdnRegistryInterface) DeleteSubnet ¶
func (oi *OsdnRegistryInterface) DeleteSubnet(nodeName string) error
func (*OsdnRegistryInterface) GetContainerNetwork ¶
func (oi *OsdnRegistryInterface) GetContainerNetwork() (string, error)
func (*OsdnRegistryInterface) GetNamespaces ¶ added in v1.0.6
func (oi *OsdnRegistryInterface) GetNamespaces() ([]string, error)
func (*OsdnRegistryInterface) GetNetNamespace ¶ added in v1.0.5
func (oi *OsdnRegistryInterface) GetNetNamespace(name string) (osdnapi.NetNamespace, error)
func (*OsdnRegistryInterface) GetNetNamespaces ¶ added in v1.0.5
func (oi *OsdnRegistryInterface) GetNetNamespaces() ([]osdnapi.NetNamespace, error)
func (*OsdnRegistryInterface) GetNodes ¶ added in v1.0.5
func (oi *OsdnRegistryInterface) GetNodes() ([]osdnapi.Node, error)
func (*OsdnRegistryInterface) GetServices ¶ added in v1.0.6
func (oi *OsdnRegistryInterface) GetServices() ([]osdnapi.Service, error)
func (*OsdnRegistryInterface) GetServicesNetwork ¶ added in v1.0.6
func (oi *OsdnRegistryInterface) GetServicesNetwork() (string, error)
func (*OsdnRegistryInterface) GetSubnet ¶
func (oi *OsdnRegistryInterface) GetSubnet(nodeName string) (*osdnapi.Subnet, error)
func (*OsdnRegistryInterface) GetSubnetLength ¶
func (oi *OsdnRegistryInterface) GetSubnetLength() (uint64, error)
func (*OsdnRegistryInterface) GetSubnets ¶
func (oi *OsdnRegistryInterface) GetSubnets() ([]osdnapi.Subnet, error)
func (*OsdnRegistryInterface) InitNodes ¶ added in v1.0.5
func (oi *OsdnRegistryInterface) InitNodes() error
func (*OsdnRegistryInterface) InitServices ¶ added in v1.0.6
func (oi *OsdnRegistryInterface) InitServices() error
func (*OsdnRegistryInterface) InitSubnets ¶
func (oi *OsdnRegistryInterface) InitSubnets() error
func (*OsdnRegistryInterface) WatchNamespaces ¶ added in v1.0.5
func (oi *OsdnRegistryInterface) WatchNamespaces(receiver chan *osdnapi.NamespaceEvent, stop chan bool) error
func (*OsdnRegistryInterface) WatchNetNamespaces ¶ added in v1.0.5
func (oi *OsdnRegistryInterface) WatchNetNamespaces(receiver chan *osdnapi.NetNamespaceEvent, stop chan bool) error
func (*OsdnRegistryInterface) WatchNodes ¶ added in v1.0.5
func (oi *OsdnRegistryInterface) WatchNodes(receiver chan *osdnapi.NodeEvent, stop chan bool) error
func (*OsdnRegistryInterface) WatchServices ¶ added in v1.0.6
func (oi *OsdnRegistryInterface) WatchServices(receiver chan *osdnapi.ServiceEvent, stop chan bool) error
func (*OsdnRegistryInterface) WatchSubnets ¶
func (oi *OsdnRegistryInterface) WatchSubnets(receiver chan *osdnapi.SubnetEvent, stop chan bool) error
func (*OsdnRegistryInterface) WriteNetNamespace ¶ added in v1.0.5
func (oi *OsdnRegistryInterface) WriteNetNamespace(name string, id uint) error
func (*OsdnRegistryInterface) WriteNetworkConfig ¶
func (oi *OsdnRegistryInterface) WriteNetworkConfig(network string, subnetLength uint, serviceNetwork string) error
Click to show internal directories.
Click to hide internal directories.