Documentation
¶
Index ¶
- func DefaultDNS(r string) (err error)
- func DefaultLeaseDuration(r string) (err error)
- func DefaultPrefix(r string) (err error)
- func DefaultRange(r string) (err error)
- func DefaultRouter(r string) (err error)
- func DeleteManifest(m *manifest.Manifest) (err error)
- func GetAll() (manifests map[string]*manifest.Manifest)
- func GetByID(id string) (m *manifest.Manifest)
- func GetByIP(ip string) (m *manifest.Manifest)
- func GetByMAC(mac string) (m *manifest.Manifest)
- func GetDynamic(mac string) (m *manifest.Manifest, err error)
- func GetExpired() (manifests map[string]*manifest.Manifest)
- func GetUsedIPs() (ips []string)
- func InitKubernetes(kubepath string) (err error)
- func InitMemory() error
- func InitNetbox(url string, apiKey string) error
- func InitPowerDNS(url string, apiKey string) error
- func PutManifest(m manifest.Manifest) (err error)
- func ReverseAddr(addr string) (arpa string, err error)
- func Suspend(id string) (err error)
- func Unsuspend(id string) (err error)
- func UpdateLease(id string) (err error)
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDNS ¶
func DefaultLeaseDuration ¶
func DefaultPrefix ¶ added in v0.13.0
func DefaultRange ¶
func DefaultRouter ¶
func DeleteManifest ¶
func GetExpired ¶
func GetUsedIPs ¶
func GetUsedIPs() (ips []string)
func InitKubernetes ¶
func InitMemory ¶
func InitMemory() error
func InitNetbox ¶
func InitPowerDNS ¶
func PutManifest ¶
func ReverseAddr ¶
func UpdateLease ¶
Types ¶
type Store ¶
type Store struct { PutManifest func(manifest.Manifest) error DeleteManifest func(*manifest.Manifest) error GetByID func(string) *manifest.Manifest GetByIP func(string) *manifest.Manifest GetByMAC func(string) *manifest.Manifest GetAll func() map[string]*manifest.Manifest GetExpired func() map[string]*manifest.Manifest GetUsedIPs func() []string UpdateLease func(string) error Suspend func(string) error Unsuspend func(string) error // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.