summaryrefslogtreecommitdiff
path: root/app/domain/identifiable.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-24 16:59:43 -0600
committermo khan <mo@mokhan.ca>2025-07-24 16:59:43 -0600
commita3496a1114c6958aa1831af5348d7340e29ebf06 (patch)
treee467d6d54a4a16ac0002bad784b7c3a1dd9fe0bd /app/domain/identifiable.go
parent0babaa518db6cbdc17779e9c4846a8a277d098b7 (diff)
refactor: delegate to GlobalID to provide object references
Diffstat (limited to 'app/domain/identifiable.go')
-rw-r--r--app/domain/identifiable.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/domain/identifiable.go b/app/domain/identifiable.go
index 3a39cf9..005c98c 100644
--- a/app/domain/identifiable.go
+++ b/app/domain/identifiable.go
@@ -1,7 +1,6 @@
package domain
import (
- v1 "github.com/authzed/authzed-go/proto/authzed/api/v1"
"github.com/xlgmokha/x/pkg/x"
"gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/pls"
)
@@ -9,7 +8,7 @@ import (
type Identifiable interface {
GetID() ID
SetID(id ID) error
- ToObjectReference() *v1.ObjectReference
+ ToGID() GlobalID
}
func WithID[T Identifiable](id ID) x.Option[T] {