etcdv2

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrEtcdKeyNotFound

func IsErrEtcdKeyNotFound(e error) bool

func IsErrEtcdNodeExist

func IsErrEtcdNodeExist(e error) bool

func IsErrEtcdTestFailed

func IsErrEtcdTestFailed(e error) bool

func NewManager

func NewManager(config *EtcdConfig) (EtcdManager, error)

func ParseClusterNetConfig

func ParseClusterNetConfig(s string) (*ClusterNetwork, error)

Types

type EtcdConfig

type EtcdConfig struct {
	Endpoints []string
	Keyfile   string
	Certfile  string
	CAFile    string
	Prefix    string
	Username  string
	Password  string
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func (*Manager) AcquireNetNamespace

func (m *Manager) AcquireNetNamespace(ctx context.Context, network string, netns *NetNamespace) error

func (*Manager) AcquireSubnet

func (m *Manager) AcquireSubnet(ctx context.Context, network string, host string, subnet *HostSubnet) error

func (*Manager) GetNetNamespace

func (m *Manager) GetNetNamespace(ctx context.Context, network string, namespace string) (*NetNamespace, error)

func (*Manager) GetNetNamespaces

func (m *Manager) GetNetNamespaces(ctx context.Context, network string) ([]NetNamespace, error)

func (*Manager) GetNetworkConfig

func (m *Manager) GetNetworkConfig(ctx context.Context, network string) (*ClusterNetwork, error)

func (*Manager) GetSubnet

func (m *Manager) GetSubnet(ctx context.Context, network string, host string) (*HostSubnet, error)

func (*Manager) GetSubnets

func (m *Manager) GetSubnets(ctx context.Context, network string) ([]HostSubnet, error)

func (*Manager) RenewNetNamespace

func (m *Manager) RenewNetNamespace(ctx context.Context, network string, netns *NetNamespace) error

func (*Manager) RenewSubnet

func (m *Manager) RenewSubnet(ctx context.Context, network string, subnet *HostSubnet) error

func (*Manager) RevokeNetNamespace

func (m *Manager) RevokeNetNamespace(ctx context.Context, network string, namespace string) error

func (*Manager) RevokeSubnet

func (m *Manager) RevokeSubnet(ctx context.Context, network string, host string) error

func (*Manager) WatchNetNamespaces

func (m *Manager) WatchNetNamespaces(ctx context.Context, network string, cursor interface{}) (NetNamespaceWatchResult, error)

func (*Manager) WatchSubnets

func (m *Manager) WatchSubnets(ctx context.Context, network string, cursor interface{}) (SubnetWatchResult, error)

type Registry

type Registry interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL