GetDockerClient returns the Go context and the Docker API client
()
| 104 | |
| 105 | // GetDockerClient returns the Go context and the Docker API client |
| 106 | func GetDockerClient() (context.Context, client.APIClient, error) { |
| 107 | dm, err := getDockerManagerInstance() |
| 108 | if err != nil { |
| 109 | return nil, nil, err |
| 110 | } |
| 111 | return dm.goContext, dm.apiClient, nil |
| 112 | } |
| 113 | |
| 114 | // GetDockerClientInfo returns the Docker system information from the daemon |
| 115 | func GetDockerClientInfo() (system.Info, error) { |