Этот коммит содержится в:
Ben Schumacher
2021-07-12 20:05:36 +02:00
коммит произвёл Claudio Costa
родитель 953eebdef4
Коммит 97ccf0bdf6
472 изменённых файлов: 9126 добавлений и 9132 удалений

Просмотреть файл

@@ -27,7 +27,7 @@ func makeTestAtmosCamoProxy() *ImageProxy {
},
ImageProxySettings: model.ImageProxySettings{
Enable: model.NewBool(true),
ImageProxyType: model.NewString(model.IMAGE_PROXY_TYPE_ATMOS_CAMO),
ImageProxyType: model.NewString(model.ImageProxyTypeAtmosCamo),
RemoteImageProxyURL: model.NewString("http://images.example.com"),
RemoteImageProxyOptions: model.NewString("7e5f3fab20b94782b43cdb022a66985ef28ba355df2c5d5da3c9a05e4b697bac"),
},

Просмотреть файл

@@ -70,9 +70,9 @@ func (proxy *ImageProxy) makeBackend(enable bool, proxyType string) ImageProxyBa
}
switch proxyType {
case model.IMAGE_PROXY_TYPE_LOCAL:
case model.ImageProxyTypeLocal:
return makeLocalBackend(proxy)
case model.IMAGE_PROXY_TYPE_ATMOS_CAMO:
case model.ImageProxyTypeAtmosCamo:
return makeAtmosCamoBackend(proxy)
default:
return nil

Просмотреть файл

@@ -27,7 +27,7 @@ func makeTestLocalProxy() *ImageProxy {
},
ImageProxySettings: model.ImageProxySettings{
Enable: model.NewBool(true),
ImageProxyType: model.NewString(model.IMAGE_PROXY_TYPE_LOCAL),
ImageProxyType: model.NewString(model.ImageProxyTypeLocal),
},
},
}