summaryrefslogtreecommitdiffhomepage
path: root/util/syspolicy/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'util/syspolicy/handler.go')
-rw-r--r--util/syspolicy/handler.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/util/syspolicy/handler.go b/util/syspolicy/handler.go
index f511f0a56..555fe9fc3 100644
--- a/util/syspolicy/handler.go
+++ b/util/syspolicy/handler.go
@@ -5,6 +5,7 @@ package syspolicy
import (
"tailscale.com/util/syspolicy/internal"
+ "tailscale.com/util/syspolicy/pkey"
"tailscale.com/util/syspolicy/rsop"
"tailscale.com/util/syspolicy/setting"
"tailscale.com/util/syspolicy/source"
@@ -89,22 +90,22 @@ func (s handlerStore) RegisterChangeCallback(callback func()) (unregister func()
}
// ReadString implements [source.Store].
-func (s handlerStore) ReadString(key setting.Key) (string, error) {
+func (s handlerStore) ReadString(key pkey.Key) (string, error) {
return s.h.ReadString(string(key))
}
// ReadUInt64 implements [source.Store].
-func (s handlerStore) ReadUInt64(key setting.Key) (uint64, error) {
+func (s handlerStore) ReadUInt64(key pkey.Key) (uint64, error) {
return s.h.ReadUInt64(string(key))
}
// ReadBoolean implements [source.Store].
-func (s handlerStore) ReadBoolean(key setting.Key) (bool, error) {
+func (s handlerStore) ReadBoolean(key pkey.Key) (bool, error) {
return s.h.ReadBoolean(string(key))
}
// ReadStringArray implements [source.Store].
-func (s handlerStore) ReadStringArray(key setting.Key) ([]string, error) {
+func (s handlerStore) ReadStringArray(key pkey.Key) ([]string, error) {
return s.h.ReadStringArray(string(key))
}