Documentation ¶
Index ¶
- Variables
- func CleanUpTrafficManagerIfRefCountIsZero(clientset *kubernetes.Clientset, namespace string)
- func FromStringToDHCP(str string) map[string]sets.Int
- func GetAvailableIPs(m map[string]sets.Int) sets.Int
- func ToString(m map[string]sets.Int) string
- func UpdateRefCount(clientset *kubernetes.Clientset, namespace, name string, increment int)
- type DHCPManager
- type DHCPRecord
- type DHCPRecordMap
Constants ¶
This section is empty.
Variables ¶
View Source
var CancelFunctions = make([]context.CancelFunc, 3)
Functions ¶
func CleanUpTrafficManagerIfRefCountIsZero ¶
func CleanUpTrafficManagerIfRefCountIsZero(clientset *kubernetes.Clientset, namespace string)
func UpdateRefCount ¶
func UpdateRefCount(clientset *kubernetes.Clientset, namespace, name string, increment int)
UpdateRefCount vendor/k8s.io/kubectl/pkg/polymorphichelpers/rollback.go:99
Types ¶
type DHCPManager ¶
type DHCPManager struct {
// contains filtered or unexported fields
}
func NewDHCPManager ¶
func NewDHCPManager(client *kubernetes.Clientset, namespace string, addr *net.IPNet) *DHCPManager
func (*DHCPManager) InitDHCPIfNecessary ¶
todo optimize dhcp, using mac address, ip and deadline as unit
func (*DHCPManager) ReleaseIP ¶
func (d *DHCPManager) ReleaseIP(ips ...int) error
type DHCPRecordMap ¶
type DHCPRecordMap struct {
// contains filtered or unexported fields
}
func FromStringToMac2IP ¶
func FromStringToMac2IP(str string) (result DHCPRecordMap)
FromStringToMac2IP Mac --> DHCPRecord
func (*DHCPRecordMap) AddMacToIPRecord ¶
func (maps *DHCPRecordMap) AddMacToIPRecord(mac string, ip net.IP) *DHCPRecordMap
func (*DHCPRecordMap) GetIPByMac ¶
func (maps *DHCPRecordMap) GetIPByMac(mac string) (ip string)
func (*DHCPRecordMap) ToMac2IPMap ¶
func (maps *DHCPRecordMap) ToMac2IPMap() map[string]string
func (*DHCPRecordMap) ToString ¶
func (maps *DHCPRecordMap) ToString() string
Click to show internal directories.
Click to hide internal directories.