Documentation ¶
Index ¶
- func New(ctx context.Context, dsn, hostnamePrefix string) (datastore.Datastore, error)
- type SQLite
- func (s *SQLite) Close() error
- func (s *SQLite) CreateLeaseFromManagementSubnet(ctx context.Context, mac types.HardwareAddr) (*dhcpd.Lease, error)
- func (s *SQLite) CreateLeaseFromServiceSubnet(ctx context.Context, mac types.HardwareAddr) (*dhcpd.Lease, error)
- func (s *SQLite) CreateManagementSubnet(ctx context.Context, network types.IPNet, start, end types.IP) (*dhcpd.Subnet, error)
- func (s *SQLite) CreateServiceSubnet(ctx context.Context, network types.IPNet, ...) (*dhcpd.Subnet, error)
- func (s *SQLite) GetHostByAddress(ctx context.Context, address types.IP) (*httpd.Host, error)
- func (s *SQLite) GetLeaseByID(ctx context.Context, id int) (*httpd.Lease, error)
- func (s *SQLite) GetLeaseFromManagementSubnet(ctx context.Context, mac types.HardwareAddr) (*dhcpd.Lease, error)
- func (s *SQLite) GetLeaseFromServiceSubnet(ctx context.Context, mac types.HardwareAddr) (*dhcpd.Lease, error)
- func (s *SQLite) GetManagementSubnet(ctx context.Context) (*dhcpd.Subnet, error)
- func (s *SQLite) GetServiceSubnet(ctx context.Context) (*dhcpd.Subnet, error)
- func (s *SQLite) ListKeyByUserID(ctx context.Context, userID int) ([]httpd.Key, error)
- func (s *SQLite) ListUser(ctx context.Context) ([]httpd.User, error)
- func (s *SQLite) RegisterHost(ctx context.Context, serverID uuid.UUID, serial, product, manufacturer string, ...) (*httpd.Host, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SQLite ¶
type SQLite struct {
// contains filtered or unexported fields
}
SQLite is
func (*SQLite) CreateLeaseFromManagementSubnet ¶
func (s *SQLite) CreateLeaseFromManagementSubnet(ctx context.Context, mac types.HardwareAddr) (*dhcpd.Lease, error)
CreateLeaseFromManagementSubnet is
func (*SQLite) CreateLeaseFromServiceSubnet ¶
func (s *SQLite) CreateLeaseFromServiceSubnet(ctx context.Context, mac types.HardwareAddr) (*dhcpd.Lease, error)
CreateLeaseFromServiceSubnet is
func (*SQLite) CreateManagementSubnet ¶
func (s *SQLite) CreateManagementSubnet(ctx context.Context, network types.IPNet, start, end types.IP) (*dhcpd.Subnet, error)
CreateManagementSubnet is
func (*SQLite) CreateServiceSubnet ¶
func (s *SQLite) CreateServiceSubnet(ctx context.Context, network types.IPNet, start, end, gateway, dnsServer types.IP) (*dhcpd.Subnet, error)
CreateServiceSubnet is
func (*SQLite) GetHostByAddress ¶
GetHostByAddress is
func (*SQLite) GetLeaseByID ¶
GetLeaseByID is
func (*SQLite) GetLeaseFromManagementSubnet ¶
func (s *SQLite) GetLeaseFromManagementSubnet(ctx context.Context, mac types.HardwareAddr) (*dhcpd.Lease, error)
GetLeaseFromManagementSubnet is
func (*SQLite) GetLeaseFromServiceSubnet ¶
func (s *SQLite) GetLeaseFromServiceSubnet(ctx context.Context, mac types.HardwareAddr) (*dhcpd.Lease, error)
GetLeaseFromServiceSubnet is
func (*SQLite) GetManagementSubnet ¶
GetManagementSubnet is
func (*SQLite) GetServiceSubnet ¶
GetServiceSubnet is
func (*SQLite) ListKeyByUserID ¶
ListKeyByUserID is
Click to show internal directories.
Click to hide internal directories.