2023-04-24 20:52:12 +02:00
|
|
|
package store
|
|
|
|
|
2024-05-17 15:44:28 +02:00
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
"time"
|
|
|
|
)
|
2023-04-24 20:52:12 +02:00
|
|
|
|
|
|
|
type (
|
|
|
|
LayerName Name
|
|
|
|
LayerType string
|
|
|
|
)
|
|
|
|
|
|
|
|
type LayerHeader struct {
|
2024-06-27 17:03:50 +02:00
|
|
|
Proxy ProxyName `json:"proxy"`
|
|
|
|
Name LayerName `json:"name"`
|
|
|
|
Revision int `json:"revision"`
|
|
|
|
Type LayerType `json:"type"`
|
2023-04-24 20:52:12 +02:00
|
|
|
|
|
|
|
Weight int `json:"weight"`
|
|
|
|
Enabled bool `json:"enabled"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Layer struct {
|
|
|
|
LayerHeader
|
|
|
|
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
|
|
Options LayerOptions `json:"options"`
|
|
|
|
}
|
2024-05-17 15:44:28 +02:00
|
|
|
|
|
|
|
type LayerDefinition struct {
|
|
|
|
Type LayerType `json:"type"`
|
|
|
|
Options json.RawMessage `json:"options"`
|
|
|
|
}
|