Add separate production, testserver, and demo deployments
CI / test (push) Failing after 10s

This commit is contained in:
2026-09-14 19:58:31 +02:00
parent b87aa0aa17
commit d06ff4a94a
37 changed files with 1293 additions and 121 deletions
+19
View File
@@ -49,6 +49,24 @@ type createUserResult struct {
Token *auth.Token
}
type demoResetInput struct {
Name string
Email string
PasswordHash []byte
}
type demoResetResult struct {
Email string `json:"email"`
Garden string `json:"garden"`
Images int `json:"images"`
Locations int `json:"locations"`
Species int `json:"species"`
Plants int `json:"plants"`
Tasks int `json:"tasks"`
Journal int `json:"journal_entries"`
Attachments int `json:"attachments"`
}
type adminStore interface {
Ping(context.Context) error
CreateUser(context.Context, createUserInput) (createUserResult, error)
@@ -59,6 +77,7 @@ type adminStore interface {
ResetPassword(context.Context, string, []byte) (userView, error)
SetUserRole(context.Context, string, string) (userView, error)
AddGardenMember(context.Context, int, string, string) (gardenMemberView, error)
ResetDemo(context.Context, demoResetInput) (demoResetResult, error)
Close() error
}