Add NetworkInspect to DockerAPI

This commit is contained in:
Marcos Lilljedahl
2017-08-24 16:45:12 -03:00
parent 1bdda6948e
commit 52d523ac92
2 changed files with 10 additions and 0 deletions

View File

@@ -23,6 +23,11 @@ func (m *Mock) ConnectNetwork(container, network, ip string) (string, error) {
return args.String(0), args.Error(1)
}
func (m *Mock) NetworkInspect(id string) (types.NetworkResource, error) {
args := m.Called(id)
return args.Get(0).(types.NetworkResource), args.Error(1)
}
func (m *Mock) GetDaemonInfo() (types.Info, error) {
args := m.Called()
return args.Get(0).(types.Info), args.Error(1)