Merge Go frontend (apiserver + xcecli) into meson build

This commit is contained in:
Rongsong Shen 2026-04-14 11:20:17 +08:00
parent 43dc12a36c
commit c9dc8c4676
205 changed files with 30793 additions and 328 deletions

View file

@ -0,0 +1,14 @@
package auth
// UserRoleSeeder is an optional interface for providers that can enumerate all users.
// Used to pre-populate the role store at startup so permissions work after restart.
type UserRoleSeeder interface {
AllUsers() []string
}
// AuthProvider is the interface for authentication strategies.
type AuthProvider interface {
Authenticate(username, password string) error
GetUserRoles(username string) []string
Name() string
}