1
0
mirror of https://github.com/strongdm/comply synced 2024-11-15 04:14:55 +00:00
comply/vendor/github.com/docker/docker/client
2018-05-09 18:02:33 -07:00
..
checkpoint_create.go Initial commit 2018-05-09 18:02:33 -07:00
checkpoint_delete.go Initial commit 2018-05-09 18:02:33 -07:00
checkpoint_list.go Initial commit 2018-05-09 18:02:33 -07:00
client_unix.go Initial commit 2018-05-09 18:02:33 -07:00
client_windows.go Initial commit 2018-05-09 18:02:33 -07:00
client.go Initial commit 2018-05-09 18:02:33 -07:00
container_attach.go Initial commit 2018-05-09 18:02:33 -07:00
container_commit.go Initial commit 2018-05-09 18:02:33 -07:00
container_copy.go Initial commit 2018-05-09 18:02:33 -07:00
container_create.go Initial commit 2018-05-09 18:02:33 -07:00
container_diff.go Initial commit 2018-05-09 18:02:33 -07:00
container_exec.go Initial commit 2018-05-09 18:02:33 -07:00
container_export.go Initial commit 2018-05-09 18:02:33 -07:00
container_inspect.go Initial commit 2018-05-09 18:02:33 -07:00
container_kill.go Initial commit 2018-05-09 18:02:33 -07:00
container_list.go Initial commit 2018-05-09 18:02:33 -07:00
container_logs.go Initial commit 2018-05-09 18:02:33 -07:00
container_pause.go Initial commit 2018-05-09 18:02:33 -07:00
container_prune.go Initial commit 2018-05-09 18:02:33 -07:00
container_remove.go Initial commit 2018-05-09 18:02:33 -07:00
container_rename.go Initial commit 2018-05-09 18:02:33 -07:00
container_resize.go Initial commit 2018-05-09 18:02:33 -07:00
container_restart.go Initial commit 2018-05-09 18:02:33 -07:00
container_start.go Initial commit 2018-05-09 18:02:33 -07:00
container_stats.go Initial commit 2018-05-09 18:02:33 -07:00
container_stop.go Initial commit 2018-05-09 18:02:33 -07:00
container_top.go Initial commit 2018-05-09 18:02:33 -07:00
container_unpause.go Initial commit 2018-05-09 18:02:33 -07:00
container_update.go Initial commit 2018-05-09 18:02:33 -07:00
container_wait.go Initial commit 2018-05-09 18:02:33 -07:00
disk_usage.go Initial commit 2018-05-09 18:02:33 -07:00
errors.go Initial commit 2018-05-09 18:02:33 -07:00
events.go Initial commit 2018-05-09 18:02:33 -07:00
hijack.go Initial commit 2018-05-09 18:02:33 -07:00
image_build.go Initial commit 2018-05-09 18:02:33 -07:00
image_create.go Initial commit 2018-05-09 18:02:33 -07:00
image_history.go Initial commit 2018-05-09 18:02:33 -07:00
image_import.go Initial commit 2018-05-09 18:02:33 -07:00
image_inspect.go Initial commit 2018-05-09 18:02:33 -07:00
image_list.go Initial commit 2018-05-09 18:02:33 -07:00
image_load.go Initial commit 2018-05-09 18:02:33 -07:00
image_prune.go Initial commit 2018-05-09 18:02:33 -07:00
image_pull.go Initial commit 2018-05-09 18:02:33 -07:00
image_push.go Initial commit 2018-05-09 18:02:33 -07:00
image_remove.go Initial commit 2018-05-09 18:02:33 -07:00
image_save.go Initial commit 2018-05-09 18:02:33 -07:00
image_search.go Initial commit 2018-05-09 18:02:33 -07:00
image_tag.go Initial commit 2018-05-09 18:02:33 -07:00
info.go Initial commit 2018-05-09 18:02:33 -07:00
interface_experimental.go Initial commit 2018-05-09 18:02:33 -07:00
interface_stable.go Initial commit 2018-05-09 18:02:33 -07:00
interface.go Initial commit 2018-05-09 18:02:33 -07:00
login.go Initial commit 2018-05-09 18:02:33 -07:00
network_connect.go Initial commit 2018-05-09 18:02:33 -07:00
network_create.go Initial commit 2018-05-09 18:02:33 -07:00
network_disconnect.go Initial commit 2018-05-09 18:02:33 -07:00
network_inspect.go Initial commit 2018-05-09 18:02:33 -07:00
network_list.go Initial commit 2018-05-09 18:02:33 -07:00
network_prune.go Initial commit 2018-05-09 18:02:33 -07:00
network_remove.go Initial commit 2018-05-09 18:02:33 -07:00
node_inspect.go Initial commit 2018-05-09 18:02:33 -07:00
node_list.go Initial commit 2018-05-09 18:02:33 -07:00
node_remove.go Initial commit 2018-05-09 18:02:33 -07:00
node_update.go Initial commit 2018-05-09 18:02:33 -07:00
ping.go Initial commit 2018-05-09 18:02:33 -07:00
plugin_create.go Initial commit 2018-05-09 18:02:33 -07:00
plugin_disable.go Initial commit 2018-05-09 18:02:33 -07:00
plugin_enable.go Initial commit 2018-05-09 18:02:33 -07:00
plugin_inspect.go Initial commit 2018-05-09 18:02:33 -07:00
plugin_install.go Initial commit 2018-05-09 18:02:33 -07:00
plugin_list.go Initial commit 2018-05-09 18:02:33 -07:00
plugin_push.go Initial commit 2018-05-09 18:02:33 -07:00
plugin_remove.go Initial commit 2018-05-09 18:02:33 -07:00
plugin_set.go Initial commit 2018-05-09 18:02:33 -07:00
plugin_upgrade.go Initial commit 2018-05-09 18:02:33 -07:00
README.md Initial commit 2018-05-09 18:02:33 -07:00
request.go Initial commit 2018-05-09 18:02:33 -07:00
secret_create.go Initial commit 2018-05-09 18:02:33 -07:00
secret_inspect.go Initial commit 2018-05-09 18:02:33 -07:00
secret_list.go Initial commit 2018-05-09 18:02:33 -07:00
secret_remove.go Initial commit 2018-05-09 18:02:33 -07:00
secret_update.go Initial commit 2018-05-09 18:02:33 -07:00
service_create.go Initial commit 2018-05-09 18:02:33 -07:00
service_inspect.go Initial commit 2018-05-09 18:02:33 -07:00
service_list.go Initial commit 2018-05-09 18:02:33 -07:00
service_logs.go Initial commit 2018-05-09 18:02:33 -07:00
service_remove.go Initial commit 2018-05-09 18:02:33 -07:00
service_update.go Initial commit 2018-05-09 18:02:33 -07:00
swarm_get_unlock_key.go Initial commit 2018-05-09 18:02:33 -07:00
swarm_init.go Initial commit 2018-05-09 18:02:33 -07:00
swarm_inspect.go Initial commit 2018-05-09 18:02:33 -07:00
swarm_join.go Initial commit 2018-05-09 18:02:33 -07:00
swarm_leave.go Initial commit 2018-05-09 18:02:33 -07:00
swarm_unlock.go Initial commit 2018-05-09 18:02:33 -07:00
swarm_update.go Initial commit 2018-05-09 18:02:33 -07:00
task_inspect.go Initial commit 2018-05-09 18:02:33 -07:00
task_list.go Initial commit 2018-05-09 18:02:33 -07:00
transport.go Initial commit 2018-05-09 18:02:33 -07:00
utils.go Initial commit 2018-05-09 18:02:33 -07:00
version.go Initial commit 2018-05-09 18:02:33 -07:00
volume_create.go Initial commit 2018-05-09 18:02:33 -07:00
volume_inspect.go Initial commit 2018-05-09 18:02:33 -07:00
volume_list.go Initial commit 2018-05-09 18:02:33 -07:00
volume_prune.go Initial commit 2018-05-09 18:02:33 -07:00
volume_remove.go Initial commit 2018-05-09 18:02:33 -07: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.