66 "github.com/docker/docker/api/types"
77 "github.com/docker/docker/api/types/container"
88 "github.com/docker/docker/api/types/events"
9+ "github.com/docker/docker/api/types/network"
910 "github.com/docker/docker/api/types/swarm"
1011 "github.com/docker/docker/api/types/system"
1112 "github.com/docker/docker/client"
@@ -18,11 +19,11 @@ type Client interface {
1819 TaskList (ctx context.Context , options types.TaskListOptions ) ([]swarm.Task , error )
1920 Info (ctx context.Context ) (system.Info , error )
2021 ContainerInspect (ctx context.Context , containerID string ) (types.ContainerJSON , error )
21- NetworkInspect (ctx context.Context , networkID string , options types. NetworkInspectOptions ) (types. NetworkResource , error )
22- NetworkList (ctx context.Context , options types. NetworkListOptions ) ([]types. NetworkResource , error )
22+ NetworkInspect (ctx context.Context , networkID string , options network. InspectOptions ) (network. Inspect , error )
23+ NetworkList (ctx context.Context , options network. ListOptions ) ([]network. Summary , error )
2324 ConfigList (ctx context.Context , options types.ConfigListOptions ) ([]swarm.Config , error )
2425 ConfigInspectWithRaw (ctx context.Context , id string ) (swarm.Config , []byte , error )
25- Events (ctx context.Context , options types. EventsOptions ) (<- chan events.Message , <- chan error )
26+ Events (ctx context.Context , options events. ListOptions ) (<- chan events.Message , <- chan error )
2627}
2728
2829// WrapClient creates a new docker client wrapper
@@ -60,18 +61,18 @@ func (wrapper *clientWrapper) ContainerInspect(ctx context.Context, containerID
6061 return wrapper .client .ContainerInspect (ctx , containerID )
6162}
6263
63- func (wrapper * clientWrapper ) NetworkInspect (ctx context.Context , networkID string , options types. NetworkInspectOptions ) (types. NetworkResource , error ) {
64+ func (wrapper * clientWrapper ) NetworkInspect (ctx context.Context , networkID string , options network. InspectOptions ) (network. Inspect , error ) {
6465 return wrapper .client .NetworkInspect (ctx , networkID , options )
6566}
6667
67- func (wrapper * clientWrapper ) NetworkList (ctx context.Context , options types. NetworkListOptions ) ([]types. NetworkResource , error ) {
68+ func (wrapper * clientWrapper ) NetworkList (ctx context.Context , options network. ListOptions ) ([]network. Summary , error ) {
6869 return wrapper .client .NetworkList (ctx , options )
6970}
7071
7172func (wrapper * clientWrapper ) ConfigInspectWithRaw (ctx context.Context , id string ) (swarm.Config , []byte , error ) {
7273 return wrapper .client .ConfigInspectWithRaw (ctx , id )
7374}
7475
75- func (wrapper * clientWrapper ) Events (ctx context.Context , options types. EventsOptions ) (<- chan events.Message , <- chan error ) {
76+ func (wrapper * clientWrapper ) Events (ctx context.Context , options events. ListOptions ) (<- chan events.Message , <- chan error ) {
7677 return wrapper .client .Events (ctx , options )
7778}
0 commit comments