@@ -14,7 +14,7 @@ import (
1414 "github.com/cloudflare/cloudflared/connection"
1515 "github.com/cloudflare/cloudflared/ingress"
1616 "github.com/cloudflare/cloudflared/proxy"
17- tunnelpogs "github.com/cloudflare/cloudflared/tunnelrpc/pogs"
17+ "github.com/cloudflare/cloudflared/tunnelrpc/pogs"
1818)
1919
2020// Orchestrator manages configurations, so they can be updatable during runtime
@@ -32,7 +32,7 @@ type Orchestrator struct {
3232 internalRules []ingress.Rule
3333 // cloudflared Configuration
3434 config * Config
35- tags []tunnelpogs .Tag
35+ tags []pogs .Tag
3636 log * zerolog.Logger
3737
3838 // orchestrator must not handle any more updates after shutdownC is closed
@@ -43,7 +43,7 @@ type Orchestrator struct {
4343
4444func NewOrchestrator (ctx context.Context ,
4545 config * Config ,
46- tags []tunnelpogs .Tag ,
46+ tags []pogs .Tag ,
4747 internalRules []ingress.Rule ,
4848 log * zerolog.Logger ) (* Orchestrator , error ) {
4949 o := & Orchestrator {
@@ -65,7 +65,7 @@ func NewOrchestrator(ctx context.Context,
6565}
6666
6767// UpdateConfig creates a new proxy with the new ingress rules
68- func (o * Orchestrator ) UpdateConfig (version int32 , config []byte ) * tunnelpogs .UpdateConfigurationResponse {
68+ func (o * Orchestrator ) UpdateConfig (version int32 , config []byte ) * pogs .UpdateConfigurationResponse {
6969 o .lock .Lock ()
7070 defer o .lock .Unlock ()
7171
@@ -74,7 +74,7 @@ func (o *Orchestrator) UpdateConfig(version int32, config []byte) *tunnelpogs.Up
7474 Int32 ("current_version" , o .currentVersion ).
7575 Int32 ("received_version" , version ).
7676 Msg ("Current version is equal or newer than received version" )
77- return & tunnelpogs .UpdateConfigurationResponse {
77+ return & pogs .UpdateConfigurationResponse {
7878 LastAppliedVersion : o .currentVersion ,
7979 }
8080 }
@@ -84,7 +84,7 @@ func (o *Orchestrator) UpdateConfig(version int32, config []byte) *tunnelpogs.Up
8484 Int32 ("version" , version ).
8585 Str ("config" , string (config )).
8686 Msgf ("Failed to deserialize new configuration" )
87- return & tunnelpogs .UpdateConfigurationResponse {
87+ return & pogs .UpdateConfigurationResponse {
8888 LastAppliedVersion : o .currentVersion ,
8989 Err : err ,
9090 }
@@ -95,7 +95,7 @@ func (o *Orchestrator) UpdateConfig(version int32, config []byte) *tunnelpogs.Up
9595 Int32 ("version" , version ).
9696 Str ("config" , string (config )).
9797 Msgf ("Failed to update ingress" )
98- return & tunnelpogs .UpdateConfigurationResponse {
98+ return & pogs .UpdateConfigurationResponse {
9999 LastAppliedVersion : o .currentVersion ,
100100 Err : err ,
101101 }
@@ -107,7 +107,7 @@ func (o *Orchestrator) UpdateConfig(version int32, config []byte) *tunnelpogs.Up
107107 Str ("config" , string (config )).
108108 Msg ("Updated to new configuration" )
109109 configVersion .Set (float64 (version ))
110- return & tunnelpogs .UpdateConfigurationResponse {
110+ return & pogs .UpdateConfigurationResponse {
111111 LastAppliedVersion : o .currentVersion ,
112112 }
113113}
0 commit comments