Documentation ¶
Index ¶
- Variables
- type AddressInfo
- type DataStore
- func (ds *DataStore) AddNodeToStore(node, instanceID string) error
- func (ds *DataStore) AddPrivateIPToStore(node, subnetID, ipAddress string, assigned bool) error
- func (ds *DataStore) AllocatePodPrivateIP(node string) (string, string, error)
- func (ds *DataStore) AllocatePodPrivateIPBySubnet(node, subnetID string) (string, string, error)
- func (ds *DataStore) DeleteNodeFromStore(node string) error
- func (ds *DataStore) DeletePrivateIPFromStore(node, subnetID, ipAddress string) error
- func (ds *DataStore) GetNodeStats(node string) (int, int, error)
- func (ds *DataStore) GetSubnetBucketStats(node, subnetID string) (int, int, error)
- func (ds *DataStore) GetUnassignedPrivateIPByNode(node string) ([]string, error)
- func (ds *DataStore) ListNodes() []string
- func (ds *DataStore) NodeExistsInStore(node string) bool
- func (ds *DataStore) ReleasePodPrivateIP(node, subnetID, ip string) error
- type Instance
- type SubnetBucket
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownNode = errors.New("datastore: unknown Node") UnknownSubnetError = errors.New("datastore: unknown subnet") ErrUnknownIP = errors.New("datastore: unknown IP") ErrEmptyNode = errors.New("datastore: empty Node") EmptySubnetError = errors.New("datastore: empty subnet") ErrNoAvailableIPAddressInDataStore = errors.New("no available ip address in datastore") NoAvailableIPAddressInSubnetBucketError = errors.New("no available ip address in subnet bucket") )
Functions ¶
This section is empty.
Types ¶
type AddressInfo ¶
type DataStore ¶
type DataStore struct {
// contains filtered or unexported fields
}
func NewDataStore ¶
func NewDataStore() *DataStore
func (*DataStore) AddNodeToStore ¶
func (*DataStore) AddPrivateIPToStore ¶
func (*DataStore) AllocatePodPrivateIP ¶
func (*DataStore) AllocatePodPrivateIPBySubnet ¶
func (*DataStore) DeleteNodeFromStore ¶
func (*DataStore) DeletePrivateIPFromStore ¶
func (*DataStore) GetSubnetBucketStats ¶
func (*DataStore) GetUnassignedPrivateIPByNode ¶
func (*DataStore) NodeExistsInStore ¶
func (*DataStore) ReleasePodPrivateIP ¶
type SubnetBucket ¶
type SubnetBucket struct { ID string IPv4Addresses map[string]*AddressInfo // contains filtered or unexported fields }
func (*SubnetBucket) AssignedIPv4Addresses ¶
func (sb *SubnetBucket) AssignedIPv4Addresses() int
func (*SubnetBucket) TotalIPv4Addresses ¶
func (sb *SubnetBucket) TotalIPv4Addresses() int
Click to show internal directories.
Click to hide internal directories.