-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: David Calavera <david.calavera@gmail.com>
- Loading branch information
Showing
11 changed files
with
144 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
vendor/src/github.com/docker/engine-api/client/interface.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
package client | ||
|
||
import ( | ||
"io" | ||
|
||
"github.com/docker/engine-api/types" | ||
"github.com/docker/engine-api/types/container" | ||
"github.com/docker/engine-api/types/filters" | ||
"github.com/docker/engine-api/types/network" | ||
"github.com/docker/engine-api/types/registry" | ||
) | ||
|
||
// APIClient is an interface that clients that talk with a docker server must implement. | ||
type APIClient interface { | ||
ClientVersion() string | ||
ContainerAttach(options types.ContainerAttachOptions) (types.HijackedResponse, error) | ||
ContainerCommit(options types.ContainerCommitOptions) (types.ContainerCommitResponse, error) | ||
ContainerCreate(config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, containerName string) (types.ContainerCreateResponse, error) | ||
ContainerDiff(containerID string) ([]types.ContainerChange, error) | ||
ContainerExecAttach(execID string, config types.ExecConfig) (types.HijackedResponse, error) | ||
ContainerExecCreate(config types.ExecConfig) (types.ContainerExecCreateResponse, error) | ||
ContainerExecInspect(execID string) (types.ContainerExecInspect, error) | ||
ContainerExecResize(options types.ResizeOptions) error | ||
ContainerExecStart(execID string, config types.ExecStartCheck) error | ||
ContainerExport(containerID string) (io.ReadCloser, error) | ||
ContainerInspect(containerID string) (types.ContainerJSON, error) | ||
ContainerInspectWithRaw(containerID string, getSize bool) (types.ContainerJSON, []byte, error) | ||
ContainerKill(containerID, signal string) error | ||
ContainerList(options types.ContainerListOptions) ([]types.Container, error) | ||
ContainerLogs(options types.ContainerLogsOptions) (io.ReadCloser, error) | ||
ContainerPause(containerID string) error | ||
ContainerRemove(options types.ContainerRemoveOptions) error | ||
ContainerRename(containerID, newContainerName string) error | ||
ContainerResize(options types.ResizeOptions) error | ||
ContainerRestart(containerID string, timeout int) error | ||
ContainerStatPath(containerID, path string) (types.ContainerPathStat, error) | ||
ContainerStats(containerID string, stream bool) (io.ReadCloser, error) | ||
ContainerStart(containerID string) error | ||
ContainerStop(containerID string, timeout int) error | ||
ContainerTop(containerID string, arguments []string) (types.ContainerProcessList, error) | ||
ContainerUnpause(containerID string) error | ||
ContainerUpdate(containerID string, updateConfig container.UpdateConfig) error | ||
ContainerWait(containerID string) (int, error) | ||
CopyFromContainer(containerID, srcPath string) (io.ReadCloser, types.ContainerPathStat, error) | ||
CopyToContainer(options types.CopyToContainerOptions) error | ||
Events(options types.EventsOptions) (io.ReadCloser, error) | ||
ImageBuild(options types.ImageBuildOptions) (types.ImageBuildResponse, error) | ||
ImageCreate(options types.ImageCreateOptions) (io.ReadCloser, error) | ||
ImageHistory(imageID string) ([]types.ImageHistory, error) | ||
ImageImport(options types.ImageImportOptions) (io.ReadCloser, error) | ||
ImageInspectWithRaw(imageID string, getSize bool) (types.ImageInspect, []byte, error) | ||
ImageList(options types.ImageListOptions) ([]types.Image, error) | ||
ImageLoad(input io.Reader) (types.ImageLoadResponse, error) | ||
ImagePull(options types.ImagePullOptions, privilegeFunc RequestPrivilegeFunc) (io.ReadCloser, error) | ||
ImagePush(options types.ImagePushOptions, privilegeFunc RequestPrivilegeFunc) (io.ReadCloser, error) | ||
ImageRemove(options types.ImageRemoveOptions) ([]types.ImageDelete, error) | ||
ImageSearch(options types.ImageSearchOptions, privilegeFunc RequestPrivilegeFunc) ([]registry.SearchResult, error) | ||
ImageSave(imageIDs []string) (io.ReadCloser, error) | ||
ImageTag(options types.ImageTagOptions) error | ||
Info() (types.Info, error) | ||
NetworkConnect(networkID, containerID string, config *network.EndpointSettings) error | ||
NetworkCreate(options types.NetworkCreate) (types.NetworkCreateResponse, error) | ||
NetworkDisconnect(networkID, containerID string) error | ||
NetworkInspect(networkID string) (types.NetworkResource, error) | ||
NetworkList(options types.NetworkListOptions) ([]types.NetworkResource, error) | ||
NetworkRemove(networkID string) error | ||
RegistryLogin(auth types.AuthConfig) (types.AuthResponse, error) | ||
ServerVersion() (types.Version, error) | ||
VolumeCreate(options types.VolumeCreateRequest) (types.Volume, error) | ||
VolumeInspect(volumeID string) (types.Volume, error) | ||
VolumeList(filter filters.Args) (types.VolumesListResponse, error) | ||
VolumeRemove(volumeID string) error | ||
} | ||
|
||
// Ensure that Client always implements APIClient. | ||
var _ APIClient = &Client{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters