bouncer/internal/store/proxy.go
William Petit 3c1939f418
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
feat: add revision number to proxy and layers to identify changes
2024-06-27 17:03:50 +02:00

23 lines
413 B
Go

package store
import (
"time"
)
type ProxyName Name
type ProxyHeader struct {
Name ProxyName `json:"name"`
Revision int `json:"revision"`
Weight int `json:"weight"`
Enabled bool `json:"enabled"`
}
type Proxy struct {
ProxyHeader
To string `json:"to"`
From []string `json:"from"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}