@@ -32,7 +32,7 @@ type fakeClient struct {
3232 client.Client
3333 containerListFunc func (options container.ListOptions ) ([]container.Summary , error )
3434 imageListFunc func (options image.ListOptions ) ([]image.Summary , error )
35- networkListFunc func (ctx context.Context , options network. ListOptions ) ([]network.Summary , error )
35+ networkListFunc func (ctx context.Context , options client. NetworkListOptions ) ([]network.Summary , error )
3636 volumeListFunc func (filter filters.Args ) (volume.ListResponse , error )
3737}
3838
@@ -50,14 +50,14 @@ func (c *fakeClient) ImageList(_ context.Context, options image.ListOptions) ([]
5050 return []image.Summary {}, nil
5151}
5252
53- func (c * fakeClient ) NetworkList (ctx context.Context , options network. ListOptions ) ([]network.Summary , error ) {
53+ func (c * fakeClient ) NetworkList (ctx context.Context , options client. NetworkListOptions ) ([]network.Summary , error ) {
5454 if c .networkListFunc != nil {
5555 return c .networkListFunc (ctx , options )
5656 }
5757 return []network.Inspect {}, nil
5858}
5959
60- func (c * fakeClient ) VolumeList (_ context.Context , options volume. ListOptions ) (volume.ListResponse , error ) {
60+ func (c * fakeClient ) VolumeList (_ context.Context , options client. VolumeListOptions ) (volume.ListResponse , error ) {
6161 if c .volumeListFunc != nil {
6262 return c .volumeListFunc (options .Filters )
6363 }
@@ -273,7 +273,7 @@ func TestCompleteNetworkNames(t *testing.T) {
273273 for _ , tc := range tests {
274274 t .Run (tc .doc , func (t * testing.T ) {
275275 comp := NetworkNames (fakeCLI {& fakeClient {
276- networkListFunc : func (ctx context.Context , options network. ListOptions ) ([]network.Summary , error ) {
276+ networkListFunc : func (ctx context.Context , options client. NetworkListOptions ) ([]network.Summary , error ) {
277277 if tc .expDirective == cobra .ShellCompDirectiveError {
278278 return nil , errors .New ("some error occurred" )
279279 }
0 commit comments