mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-27 09:23:05 +00:00
20 lines
364 B
Go
20 lines
364 B
Go
package types
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
var (
|
|
ErrPolicyNotFound = errors.New("acl policy not found")
|
|
ErrPolicyUpdateIsDisabled = errors.New("update is disabled for modes other than 'database'")
|
|
)
|
|
|
|
// Policy represents a policy in the database.
|
|
type Policy struct {
|
|
gorm.Model
|
|
|
|
// Data contains the policy in HuJSON format.
|
|
Data string
|
|
}
|