cri-o/vendor/github.com/docker/docker/client
Daniel J Walsh 63a218a458 Move to new github.com/sirupsen/logrus.
Need to mv to latest released and supported version of logrus
switch github.com/Sirupsen/logrus github.com/sirupsen/logrus

Also vendor in latest containers/storage and containers/image

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2017-08-07 11:50:04 -04:00
..
build_prune.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
checkpoint_create.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
checkpoint_delete.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
checkpoint_list.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
client.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
client_unix.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
client_windows.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
config_create.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
config_inspect.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
config_list.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
config_remove.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
config_update.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
container_attach.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
container_commit.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
container_copy.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
container_create.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
container_diff.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
container_exec.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
container_export.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
container_inspect.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
container_kill.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
container_list.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
container_logs.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
container_pause.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
container_prune.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
container_remove.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
container_rename.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
container_resize.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
container_restart.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
container_start.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
container_stats.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
container_stop.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
container_top.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
container_unpause.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
container_update.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
container_wait.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
disk_usage.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
distribution_inspect.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
errors.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
events.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
hijack.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
image_build.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
image_create.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
image_history.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
image_import.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
image_inspect.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
image_list.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
image_load.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
image_prune.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
image_pull.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
image_push.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
image_remove.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
image_save.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
image_search.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
image_tag.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
info.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
interface.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
interface_experimental.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
interface_stable.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
login.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
network_connect.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
network_create.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
network_disconnect.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
network_inspect.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
network_list.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
network_prune.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
network_remove.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
node_inspect.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
node_list.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
node_remove.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
node_update.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
parse_logs.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
ping.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
plugin_create.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
plugin_disable.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
plugin_enable.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
plugin_inspect.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
plugin_install.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
plugin_list.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
plugin_push.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
plugin_remove.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
plugin_set.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
plugin_upgrade.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
README.md Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
request.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
secret_create.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
secret_inspect.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
secret_list.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
secret_remove.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
secret_update.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
service_create.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
service_inspect.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
service_list.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
service_logs.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
service_remove.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
service_update.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
session.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
swarm_get_unlock_key.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
swarm_init.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
swarm_inspect.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
swarm_join.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
swarm_leave.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
swarm_unlock.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
swarm_update.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
task_inspect.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
task_list.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
task_logs.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
transport.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
utils.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
version.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
volume_create.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
volume_inspect.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
volume_list.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
volume_prune.go Move to new github.com/sirupsen/logrus. 2017-08-07 11:50:04 -04:00
volume_remove.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00

Go client for the Docker Engine API

The docker command uses this package to communicate with the daemon. It can also be used by your own Go applications to do anything the command-line interface does  running containers, pulling images, managing swarms, etc.

For example, to list running containers (the equivalent of docker ps):

package main

import (
	"context"
	"fmt"

	"github.com/docker/docker/api/types"
	"github.com/docker/docker/client"
)

func main() {
	cli, err := client.NewEnvClient()
	if err != nil {
		panic(err)
	}

	containers, err := cli.ContainerList(context.Background(), types.ContainerListOptions{})
	if err != nil {
		panic(err)
	}

	for _, container := range containers {
		fmt.Printf("%s %s\n", container.ID[:10], container.Image)
	}
}

Full documentation is available on GoDoc.