1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-18 08:26:45 +02:00
woodpecker/vendor/github.com/samalba/dockerclient/interface.go

30 lines
997 B
Go
Raw Normal View History

2015-05-22 20:37:40 +02:00
package dockerclient
import (
"io"
)
type Callback func(*Event, chan error, ...interface{})
type Client interface {
Info() (*Info, error)
ListContainers(all, size bool, filters string) ([]Container, error)
InspectContainer(id string) (*ContainerInfo, error)
CreateContainer(config *ContainerConfig, name string) (string, error)
ContainerLogs(id string, options *LogOptions) (io.ReadCloser, error)
Exec(config *ExecConfig) (string, error)
StartContainer(id string, config *HostConfig) error
StopContainer(id string, timeout int) error
RestartContainer(id string, timeout int) error
KillContainer(id, signal string) error
StartMonitorEvents(cb Callback, ec chan error, args ...interface{})
StopAllMonitorEvents()
Version() (*Version, error)
PullImage(name string, auth *AuthConfig) error
RemoveContainer(id string, force, volumes bool) error
ListImages() ([]*Image, error)
RemoveImage(name string) error
PauseContainer(name string) error
UnpauseContainer(name string) error
}