- feat: implement dns record model and zone checks - feat: implement zone file import and export
31 lines
614 B
Go
31 lines
614 B
Go
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
// Copyright (C) 2026 Bryan Joshua Pedini
|
|
|
|
package main
|
|
|
|
import (
|
|
"database/sql"
|
|
"errors"
|
|
"time"
|
|
)
|
|
|
|
type auditEntry struct {
|
|
ID int64
|
|
Time time.Time
|
|
UserID sql.NullInt64
|
|
Actor string
|
|
Origin string
|
|
Operation string
|
|
Status sql.NullInt64
|
|
Error sql.NullString
|
|
Zone sql.NullString
|
|
RecordID sql.NullInt64
|
|
TargetUserID sql.NullInt64
|
|
Before []byte
|
|
After []byte
|
|
}
|
|
|
|
func stubHashPassword(password string) (string, error) {
|
|
return "", errors.New("password hashing is not available")
|
|
}
|