store

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	Lock() error
	Unlock() error
	Close() error
	Reserve(id string, ip net.IP, podName string, podNamespace string, controller string) (bool, error)
	Release(id string) error

	RetrieveGateway(subnet *net.IPNet) net.IP // return nil if error
	RetrieveAllocated(namespace string, subnet *net.IPNet) (*utils.RangeSet, error)
	RetrieveUsed(namespace string, subnet *net.IPNet) (*utils.RangeSet, error)
}

Store is the store interface for anchor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL