Documentation ¶
Index ¶
- Variables
- type Cache
- type Store
- func (s *Store) AddPool(name string, pool *types.Pool) error
- func (*Store) CountPool(network, pool string) (total, used int, err error)
- func (s *Store) CreateNetwork(name string) error
- func (s *Store) DelPool(networkName, poolName string) error
- func (s *Store) DeleteNetwork(name string) error
- func (s *Store) GetLastReservedIP(name string) (*types.LastReservedIP, error)
- func (s *Store) GetNetwork(name string) (*types.Network, error)
- func (s *Store) Release(ip net.IP) error
- func (*Store) ReleaseByName(network, pool, namespace, name string) error
- func (s *Store) Reserve(network, pool, namespace, name string, ip net.IP) (bool, error)
- func (s *Store) Run() error
Constants ¶
This section is empty.
Variables ¶
View Source
var LoggerCache = logrus.WithFields(logrus.Fields{"component": "cache"})
View Source
var LoggerStore = logrus.WithFields(logrus.Fields{"component": "store/kube"})
Functions ¶
This section is empty.
Types ¶
type Cache ¶
func (*Cache) GetLastReservedIP ¶
func (c *Cache) GetLastReservedIP(networkName string) *types.LastReservedIP
type Store ¶
func (*Store) CreateNetwork ¶
func (*Store) DeleteNetwork ¶
func (*Store) GetLastReservedIP ¶
func (s *Store) GetLastReservedIP(name string) (*types.LastReservedIP, error)
func (*Store) ReleaseByName ¶
Click to show internal directories.
Click to hide internal directories.