sqlite

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ALLOCATED = 0
	AVAILABLE = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DBStore

type DBStore struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore() *DBStore

func (*DBStore) AllocateIP

func (store *DBStore) AllocateIP(cidr string) string

func (*DBStore) CreateARecord

func (store *DBStore) CreateARecord(hostname, ipAddr string) bool

func (*DBStore) CreateTables

func (store *DBStore) CreateTables() bool

func (*DBStore) DeleteARecord

func (store *DBStore) DeleteARecord(hostname, ipAddr string) bool

func (*DBStore) DisplayIPRecords

func (store *DBStore) DisplayIPRecords()

func (*DBStore) GetIPAddress

func (store *DBStore) GetIPAddress(hostname string) string

func (*DBStore) InsertIP

func (store *DBStore) InsertIP(ips []string, cidr string)

func (*DBStore) MarkIPAsAllocated

func (store *DBStore) MarkIPAsAllocated(cidr, ipAddr string) bool

func (*DBStore) ReleaseIP

func (store *DBStore) ReleaseIP(ip string)

Jump to

Keyboard shortcuts

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