mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-28 02:37:50 +00:00
21 lines
364 B
Go
21 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
|
|
}
|