Documentation ¶
Index ¶
- Variables
- func ErrNoAvailableIPAddressWithInCoolingPeriodInENI(addressInfo *AddressInfo) error
- type AddressInfo
- type DataStore
- func (ds *DataStore) AddENIToStore(node, eniID string) error
- func (ds *DataStore) AddNodeToStore(node, instanceID string) error
- func (ds *DataStore) AddPrivateIPToStore(node, eniID, ipAddress string, assigned bool) error
- func (ds *DataStore) AddPrivateIPToStoreUnsafe(node, eniID, ipAddress string, assigned, crossSubnet bool) error
- func (ds *DataStore) AllocatePodPrivateIP(node string) (string, error)
- func (ds *DataStore) AllocatePodPrivateIPByENI(node, eniID string) (string, error)
- func (ds *DataStore) DeleteENIFromStore(node, eniID string) error
- func (ds *DataStore) DeleteNodeFromStore(node string) error
- func (ds *DataStore) DeletePrivateIPFromStore(node, eniID, ipAddress string)
- func (ds *DataStore) DeletePrivateIPFromStoreUnsafe(node, eniID, ipAddress string)
- func (ds *DataStore) ENIExistsInStore(node, eniID string) bool
- func (ds *DataStore) GetENIStats(node, eniID string) (int, int, error)
- func (ds *DataStore) GetNodeStats(node 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, eniID, ip string) error
- func (ds *DataStore) ReleasePodPrivateIPUnsafe(node, eniID, ip string)
- func (ds *DataStore) Synchronized(task func() error) error
- type ENI
- type Instance
- type PodIPInfo
- type PodKey
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownNode = errors.New("datastore: unknown Node") ErrUnknownENI = errors.New("datastore: unknown ENI") ErrUnknownIP = errors.New("datastore: unknown IP") ErrEmptyNode = errors.New("datastore: empty Node") ErrEmptyENI = errors.New("datastore: empty ENI") ErrNoAvailableIPAddressInDataStore = errors.New("no available ip address in datastore") ErrNoAvailableIPAddressInENI = errors.New("no available ip address in eni") )
Functions ¶
func ErrNoAvailableIPAddressWithInCoolingPeriodInENI ¶ added in v1.6.12
func ErrNoAvailableIPAddressWithInCoolingPeriodInENI(addressInfo *AddressInfo) error
Types ¶
type AddressInfo ¶
type DataStore ¶
type DataStore struct {
// contains filtered or unexported fields
}
func NewDataStore ¶
func NewDataStore() *DataStore
func (*DataStore) AddENIToStore ¶
func (*DataStore) AddNodeToStore ¶
func (*DataStore) AddPrivateIPToStore ¶
func (*DataStore) AddPrivateIPToStoreUnsafe ¶
func (ds *DataStore) AddPrivateIPToStoreUnsafe(node, eniID, ipAddress string, assigned, crossSubnet bool) error
Add the IP address to the Eni cache, and mark whether the IP address is an IP address across the subnet
func (*DataStore) AllocatePodPrivateIP ¶
func (*DataStore) AllocatePodPrivateIPByENI ¶
func (*DataStore) DeleteENIFromStore ¶
func (*DataStore) DeleteNodeFromStore ¶
func (*DataStore) DeletePrivateIPFromStore ¶
func (*DataStore) DeletePrivateIPFromStoreUnsafe ¶
func (*DataStore) ENIExistsInStore ¶
func (*DataStore) GetENIStats ¶
func (*DataStore) GetUnassignedPrivateIPByNode ¶
func (*DataStore) NodeExistsInStore ¶
func (*DataStore) ReleasePodPrivateIP ¶
func (*DataStore) ReleasePodPrivateIPUnsafe ¶
func (*DataStore) Synchronized ¶
Synchronized Executing transactions in locks
type ENI ¶
type ENI struct { ID string IPv4Addresses map[string]*AddressInfo // contains filtered or unexported fields }
func (*ENI) AssignedIPv4Addresses ¶
func (*ENI) TotalIPv4Addresses ¶
Click to show internal directories.
Click to hide internal directories.