Documentation ¶
Index ¶
- func IsErrEtcdKeyNotFound(e error) bool
- func IsErrEtcdNodeExist(e error) bool
- func IsErrEtcdTestFailed(e error) bool
- func NewManager(config *EtcdConfig) (EtcdManager, error)
- func ParseClusterNetConfig(s string) (*ClusterNetwork, error)
- type EtcdConfig
- type Manager
- func (m *Manager) AcquireNetNamespace(ctx context.Context, network string, netns *NetNamespace) error
- func (m *Manager) AcquireSubnet(ctx context.Context, network string, host string, subnet *HostSubnet) error
- func (m *Manager) GetNetNamespace(ctx context.Context, network string, namespace string) (*NetNamespace, error)
- func (m *Manager) GetNetNamespaces(ctx context.Context, network string) ([]NetNamespace, error)
- func (m *Manager) GetNetworkConfig(ctx context.Context, network string) (*ClusterNetwork, error)
- func (m *Manager) GetSubnet(ctx context.Context, network string, host string) (*HostSubnet, error)
- func (m *Manager) GetSubnets(ctx context.Context, network string) ([]HostSubnet, error)
- func (m *Manager) RenewNetNamespace(ctx context.Context, network string, netns *NetNamespace) error
- func (m *Manager) RenewSubnet(ctx context.Context, network string, subnet *HostSubnet) error
- func (m *Manager) RevokeNetNamespace(ctx context.Context, network string, namespace string) error
- func (m *Manager) RevokeSubnet(ctx context.Context, network string, host string) error
- func (m *Manager) WatchNetNamespaces(ctx context.Context, network string, cursor interface{}) (NetNamespaceWatchResult, error)
- func (m *Manager) WatchSubnets(ctx context.Context, network string, cursor interface{}) (SubnetWatchResult, error)
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrEtcdKeyNotFound ¶
func IsErrEtcdNodeExist ¶
func IsErrEtcdTestFailed ¶
func NewManager ¶
func NewManager(config *EtcdConfig) (EtcdManager, error)
func ParseClusterNetConfig ¶
Types ¶
type EtcdConfig ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) AcquireNetNamespace ¶
func (*Manager) AcquireSubnet ¶
func (*Manager) GetNetNamespace ¶
func (*Manager) GetNetNamespaces ¶
func (*Manager) GetNetworkConfig ¶
func (*Manager) GetSubnets ¶
func (*Manager) RenewNetNamespace ¶
func (*Manager) RenewSubnet ¶
func (*Manager) RevokeNetNamespace ¶
func (*Manager) RevokeSubnet ¶
func (*Manager) WatchNetNamespaces ¶
Click to show internal directories.
Click to hide internal directories.