@@ -56,7 +56,7 @@ import (
5656 "github.com/haproxytech/dataplaneapi/operations"
5757 "github.com/haproxytech/dataplaneapi/operations/discovery"
5858 "github.com/haproxytech/dataplaneapi/operations/specification"
59- "github.com/haproxytech/dataplaneapi/operations/specification_openapiv3 "
59+ "github.com/haproxytech/dataplaneapi/operations/version3 "
6060 "github.com/haproxytech/dataplaneapi/rate"
6161 "github.com/haproxytech/dataplaneapi/resilient"
6262 socket_runtime "github.com/haproxytech/dataplaneapi/runtime"
@@ -868,7 +868,7 @@ func configureAPI(api *operations.DataPlaneAPI) http.Handler { //nolint:cyclop,m
868868 data .ID = service_discovery .NewServiceDiscoveryUUID ()
869869 }
870870 if errSD = service_discovery .ValidateConsulData (data , true ); errSD != nil {
871- log .Fatalf ("Error validating Consul instance: " + errSD .Error ())
871+ log .Fatal ("Error validating Consul instance: " + errSD .Error ())
872872 }
873873 if errSD = discovery .AddNode ("consul" , * data .ID , data ); errSD != nil {
874874 log .Warning ("Error creating consul instance: " + errSD .Error ())
@@ -884,7 +884,7 @@ func configureAPI(api *operations.DataPlaneAPI) http.Handler { //nolint:cyclop,m
884884 data .ID = service_discovery .NewServiceDiscoveryUUID ()
885885 }
886886 if errSD = service_discovery .ValidateAWSData (data , true ); errSD != nil {
887- log .Fatalf ("Error validating AWS instance: " + errSD .Error ())
887+ log .Fatal ("Error validating AWS instance: " + errSD .Error ())
888888 }
889889 if errSD = discovery .AddNode ("aws" , * data .ID , data ); errSD != nil {
890890 log .Warning ("Error creating AWS instance: " + errSD .Error ())
@@ -917,12 +917,12 @@ func configureAPI(api *operations.DataPlaneAPI) http.Handler { //nolint:cyclop,m
917917 api .StorageReplaceStorageGeneralFileHandler = & handlers.StorageReplaceStorageGeneralFileHandlerImpl {Client : client , ReloadAgent : ra }
918918
919919 // setup OpenAPI v3 specification handler
920- api .SpecificationOpenapiv3GetOpenapiv3SpecificationHandler = specification_openapiv3 .GetOpenapiv3SpecificationHandlerFunc (func (params specification_openapiv3 .GetOpenapiv3SpecificationParams , principal interface {}) middleware.Responder {
920+ api .Version3GetOpenapiv3SpecificationHandler = version3 .GetOpenapiv3SpecificationHandlerFunc (func (params version3 .GetOpenapiv3SpecificationParams , principal interface {}) middleware.Responder {
921921 v2 := openapi2.T {}
922922 err = v2 .UnmarshalJSON (SwaggerJSON )
923923 if err != nil {
924924 e := misc .HandleError (err )
925- return specification_openapiv3 .NewGetOpenapiv3SpecificationDefault (int (* e .Code )).WithPayload (e )
925+ return version3 .NewGetOpenapiv3SpecificationDefault (int (* e .Code )).WithPayload (e )
926926 }
927927
928928 // if host is empty(dynamic hosts), server prop is empty,
@@ -936,9 +936,9 @@ func configureAPI(api *operations.DataPlaneAPI) http.Handler { //nolint:cyclop,m
936936 v3 , err = openapi2conv .ToV3 (& v2 )
937937 if err != nil {
938938 e := misc .HandleError (err )
939- return specification_openapiv3 .NewGetOpenapiv3SpecificationDefault (int (* e .Code )).WithPayload (e )
939+ return version3 .NewGetOpenapiv3SpecificationDefault (int (* e .Code )).WithPayload (e )
940940 }
941- return specification_openapiv3 .NewGetOpenapiv3SpecificationOK ().WithPayload (v3 )
941+ return version3 .NewGetOpenapiv3SpecificationOK ().WithPayload (v3 )
942942 })
943943
944944 // TODO: do we need a ReloadAgent for SPOE
@@ -1217,10 +1217,10 @@ func handleSignals(ctx context.Context, cancel context.CancelFunc, sigs chan os.
12171217func reloadConfigurationFile (client client_native.HAProxyClient , haproxyOptions dataplaneapi_config.HAProxyConfiguration , users * dataplaneapi_config.Users ) {
12181218 confClient , err := cn .ConfigureConfigurationClient (haproxyOptions , mWorker )
12191219 if err != nil {
1220- log .Fatalf (err .Error ())
1220+ log .Fatal (err .Error ())
12211221 }
12221222 if err := users .Init (); err != nil {
1223- log .Fatalf (err .Error ())
1223+ log .Fatal (err .Error ())
12241224 }
12251225 log .Info ("Rereading Configuration Files" )
12261226 clientMutex .Lock ()
0 commit comments