@@ -30,7 +30,7 @@ func (cli *BackingImageManagerClient) Sync(name, uuid, checksum, fromAddress str
30
30
return nil , fmt .Errorf ("failed to sync backing image: missing required parameter" )
31
31
}
32
32
33
- conn , err := grpc .Dial (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
33
+ conn , err := grpc .NewClient (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
34
34
if err != nil {
35
35
return nil , fmt .Errorf ("cannot connect backing image manager service to %v: %v" , cli .Address , err )
36
36
}
@@ -60,7 +60,7 @@ func (cli *BackingImageManagerClient) Send(name, uuid, toAddress string) error {
60
60
return fmt .Errorf ("failed to send backing image: missing required parameter" )
61
61
}
62
62
63
- conn , err := grpc .Dial (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
63
+ conn , err := grpc .NewClient (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
64
64
if err != nil {
65
65
return fmt .Errorf ("cannot connect backing image manager service to %v: %v" , cli .Address , err )
66
66
}
@@ -83,7 +83,7 @@ func (cli *BackingImageManagerClient) Delete(name, uuid string) error {
83
83
return fmt .Errorf ("failed to delete backing image: missing required parameter" )
84
84
}
85
85
86
- conn , err := grpc .Dial (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
86
+ conn , err := grpc .NewClient (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
87
87
if err != nil {
88
88
return fmt .Errorf ("cannot connect backing image manager service to %v: %v" , cli .Address , err )
89
89
}
@@ -105,7 +105,7 @@ func (cli *BackingImageManagerClient) Get(name, uuid string) (*api.BackingImage,
105
105
return nil , fmt .Errorf ("failed to get backing image: missing required parameter" )
106
106
}
107
107
108
- conn , err := grpc .Dial (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
108
+ conn , err := grpc .NewClient (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
109
109
if err != nil {
110
110
return nil , fmt .Errorf ("cannot connect backing image manager service to %v: %v" , cli .Address , err )
111
111
}
@@ -126,7 +126,7 @@ func (cli *BackingImageManagerClient) Get(name, uuid string) (*api.BackingImage,
126
126
}
127
127
128
128
func (cli * BackingImageManagerClient ) List () (map [string ]* api.BackingImage , error ) {
129
- conn , err := grpc .Dial (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
129
+ conn , err := grpc .NewClient (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
130
130
if err != nil {
131
131
return nil , fmt .Errorf ("cannot connect backing image manager service to %v: %v" , cli .Address , err )
132
132
}
@@ -148,7 +148,7 @@ func (cli *BackingImageManagerClient) Fetch(name, uuid, checksum, dataSourceAddr
148
148
return nil , fmt .Errorf ("failed to fetch backing image: missing required parameter" )
149
149
}
150
150
151
- conn , err := grpc .Dial (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
151
+ conn , err := grpc .NewClient (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
152
152
if err != nil {
153
153
return nil , fmt .Errorf ("cannot connect backing image manager service to %v: %v" , cli .Address , err )
154
154
}
@@ -178,7 +178,7 @@ func (cli *BackingImageManagerClient) PrepareDownload(name, uuid string) (string
178
178
return "" , "" , fmt .Errorf ("failed to get backing image: missing required parameter" )
179
179
}
180
180
181
- conn , err := grpc .Dial (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
181
+ conn , err := grpc .NewClient (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
182
182
if err != nil {
183
183
return "" , "" , fmt .Errorf ("cannot connect backing image manager service to %v: %v" , cli .Address , err )
184
184
}
@@ -199,7 +199,7 @@ func (cli *BackingImageManagerClient) PrepareDownload(name, uuid string) (string
199
199
}
200
200
201
201
func (cli * BackingImageManagerClient ) VersionGet () (* meta.VersionOutput , error ) {
202
- conn , err := grpc .Dial (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
202
+ conn , err := grpc .NewClient (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
203
203
if err != nil {
204
204
return nil , fmt .Errorf ("cannot connect backing image manager service to %v: %v" , cli .Address , err )
205
205
}
@@ -224,7 +224,7 @@ func (cli *BackingImageManagerClient) VersionGet() (*meta.VersionOutput, error)
224
224
}
225
225
226
226
func (cli * BackingImageManagerClient ) Watch () (* api.BackingImageStream , error ) {
227
- conn , err := grpc .Dial (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
227
+ conn , err := grpc .NewClient (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
228
228
if err != nil {
229
229
return nil , fmt .Errorf ("cannot connect backing image manager service to %v: %v" , cli .Address , err )
230
230
}
@@ -245,7 +245,7 @@ func (cli *BackingImageManagerClient) BackupCreate(name, uuid, checksum, backupT
245
245
return fmt .Errorf ("failed to create backup backing image: missing required parameter" )
246
246
}
247
247
248
- conn , err := grpc .Dial (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
248
+ conn , err := grpc .NewClient (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
249
249
if err != nil {
250
250
return fmt .Errorf ("failed to connect backing image manager service to %v: %v" , cli .Address , err )
251
251
}
@@ -278,7 +278,7 @@ func (cli *BackingImageManagerClient) BackupStatus(name string) (*api.BackupStat
278
278
return nil , fmt .Errorf ("failed to get backup backing image status: missing required parameter" )
279
279
}
280
280
281
- conn , err := grpc .Dial (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
281
+ conn , err := grpc .NewClient (cli .Address , grpc .WithTransportCredentials (insecure .NewCredentials ()))
282
282
if err != nil {
283
283
return nil , fmt .Errorf ("failed to connect backing image manager service to %v: %v" , cli .Address , err )
284
284
}
0 commit comments