Documentation ¶
Index ¶
- type FakeStore
- func (f *FakeStore) Close() error
- func (f *FakeStore) GetByID(applicantID, _ string) []net.IP
- func (f *FakeStore) LastReservedIP(_ string) (net.IP, error)
- func (f *FakeStore) Lock() error
- func (f *FakeStore) Release(ip net.IP) error
- func (f *FakeStore) ReleaseByID(applicantID, _ string) error
- func (f *FakeStore) Reserve(applicantID, _ string, ip net.IP, _ string) (bool, error)
- func (f *FakeStore) Unlock() error
- type Store
- func (s *Store) Close() error
- func (s *Store) GetByID(applicantID, _ string) []net.IP
- func (s *Store) LastReservedIP(_ string) (net.IP, error)
- func (s *Store) Lock() error
- func (s *Store) Release(ip net.IP) error
- func (s *Store) ReleaseByID(applicantID, _ string) error
- func (s *Store) Reserve(applicantID, _ string, ip net.IP, _ string) (bool, error)
- func (s *Store) Unlock() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeStore ¶
type FakeStore struct {
// contains filtered or unexported fields
}
FakeStore for testdata
func (*FakeStore) ReleaseByID ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a CRD store that records the allocated IP in the status of IPPool CR
func New ¶
func New(ipPoolName string, ipPoolCache ctllbv1.IPPoolCache, ipPoolClient ctllbv1.IPPoolClient) *Store
func (*Store) ReleaseByID ¶
Click to show internal directories.
Click to hide internal directories.