refactor: drop the unused access.PolicySource and the stale playbooks usage word

This commit is contained in:
sam committed 2026-11-09 08:35:44 +11:00
1 parent 5539835dd6
commit 403d5f8427
2 files changed
+1 -11

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ import (
)
const commandUsage = "usage: archied [flags] # run the daemon; archied -h lists the flags\n" +
"subcommands: setup, update, release, status, prbench, playbooks"
"subcommands: setup, update, release, status, prbench"
func main() {
os.Exit(run(os.Args[1:]))
-10
View File
@@ -4,8 +4,6 @@
package access
import (
"context"
"github.com/samcharles93/archie-core/internal/domain/identity"
"github.com/samcharles93/archie-core/internal/domain/org"
)
@@ -25,14 +23,6 @@ type Validator interface {
Validate(p Policy) error
}
// PolicySource hands the engine its snapshot. The State Store owns the
// stored policies; a process loads them once at boot (a policy change takes
// effect when the process reloads, which the policy-editing surface ships
// with its own refresh).
type PolicySource interface {
Policies(ctx context.Context) ([]Policy, error)
}
// SenderID is the principal an inbound event's sender is evaluated as.
const SenderID identity.IdentityID = "sender"