feat: add first page with auth and containers list and agents

This commit is contained in:
2026-05-18 08:24:02 +02:00
parent 446087ae01
commit 3b4a841bf5
56 changed files with 16267 additions and 0 deletions

View File

@ -0,0 +1,16 @@
package api
import "context"
type contextKey int
const claimsKey contextKey = iota
func contextWithClaims(ctx context.Context, c *jwtClaims) context.Context {
return context.WithValue(ctx, claimsKey, c)
}
func claimsFromContext(r interface{ Context() context.Context }) (*jwtClaims, bool) {
c, ok := r.Context().Value(claimsKey).(*jwtClaims)
return c, ok && c != nil
}