feat: add revision number to proxy and layers to identify changes
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
This commit is contained in:
@ -8,9 +8,10 @@ import (
|
||||
)
|
||||
|
||||
type layerHeaderItem struct {
|
||||
Proxy string `redis:"proxy"`
|
||||
Name string `redis:"name"`
|
||||
Type string `redis:"type"`
|
||||
Proxy string `redis:"proxy"`
|
||||
Name string `redis:"name"`
|
||||
Revision int `redis:"revision"`
|
||||
Type string `redis:"type"`
|
||||
|
||||
Weight int `redis:"weight"`
|
||||
Enabled bool `redis:"enabled"`
|
||||
@ -18,11 +19,12 @@ type layerHeaderItem struct {
|
||||
|
||||
func (i *layerHeaderItem) ToLayerHeader() (*store.LayerHeader, error) {
|
||||
layerHeader := &store.LayerHeader{
|
||||
Proxy: store.ProxyName(i.Proxy),
|
||||
Name: store.LayerName(i.Name),
|
||||
Type: store.LayerType(i.Type),
|
||||
Weight: i.Weight,
|
||||
Enabled: i.Enabled,
|
||||
Proxy: store.ProxyName(i.Proxy),
|
||||
Name: store.LayerName(i.Name),
|
||||
Revision: i.Revision,
|
||||
Type: store.LayerType(i.Type),
|
||||
Weight: i.Weight,
|
||||
Enabled: i.Enabled,
|
||||
}
|
||||
|
||||
return layerHeader, nil
|
||||
|
Reference in New Issue
Block a user