Documentation
¶
Index ¶
- Variables
- type APIInterface
- type Client
- func (cli *Client) Attach(container string, tty bool, stdin io.ReadCloser, stdout, stderr io.Writer) error
- func (cli *Client) AuthHeader(orig map[string][]string, auth types.AuthConfig) (map[string][]string, error)
- func (cli *Client) Build(name string, hasBody bool, body io.Reader) (io.ReadCloser, string, error)
- func (cli *Client) Commit(container, repo, author, message string, changes []string, pause bool) (string, error)
- func (cli *Client) ContainerLogs(container, since string, timestamp, follow, stdout, stderr bool, tail string) (io.ReadCloser, string, error)
- func (cli *Client) CreateContainer(podID string, spec interface{}) (string, int, error)
- func (cli *Client) CreateExec(container string, command []byte, tty bool) (string, error)
- func (cli *Client) CreatePod(spec interface{}) (string, int, error)
- func (cli *Client) CreateVm(cpu, mem int, async bool) (id string, err error)
- func (cli *Client) GetContainerByPod(podId string) (string, error)
- func (cli *Client) GetContainerInfo(container string) (*types.ContainerInfo, error)
- func (cli *Client) GetExitCode(containerId, execId string) error
- func (cli *Client) GetImages(all, quiet bool) (*engine.Env, error)
- func (cli *Client) GetPodInfo(podName string) (*types.PodInfo, error)
- func (cli *Client) HTTPClient() *http.Client
- func (cli *Client) Info() (*engine.Env, error)
- func (cli *Client) KillContainer(container string, sig int) error
- func (cli *Client) KillPod(pod string, sig int) error
- func (cli *Client) List(item, pod, vm string, aux bool) (*engine.Env, error)
- func (cli *Client) Load(body io.Reader) (io.ReadCloser, string, error)
- func (cli *Client) Login(auth types.AuthConfig, response *types.AuthResponse) (remove bool, err error)
- func (cli *Client) PausePod(podId string) error
- func (cli *Client) Pull(image string, authConfig types.AuthConfig) (io.ReadCloser, string, int, error)
- func (cli *Client) Push(tag, repo string, authConfig types.AuthConfig) (io.ReadCloser, string, int, error)
- func (cli *Client) RemoveImage(image string, noprune, force bool) (*engine.Env, error)
- func (cli *Client) RmPod(id string) error
- func (cli *Client) RmVm(vm string) (err error)
- func (cli *Client) StartExec(containerId, execId string, tty bool, stdin io.ReadCloser, ...) error
- func (cli *Client) StartPod(podId, vmId string, attach, tty bool, stdin io.ReadCloser, ...) (string, error)
- func (cli *Client) StopContainer(container string) error
- func (cli *Client) StopPod(podId, stopVm string) (int, string, error)
- func (cli *Client) UnpausePod(podId string) error
- func (cli *Client) WinResize(containerId, execId string, height, width int) error
- type StatusError
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrConnectionRefused = errors.New("Cannot connect to the Hyper daemon. Is 'hyperd' running on this host?")
)
Functions ¶
This section is empty.
Types ¶
type APIInterface ¶
type APIInterface interface { Login(auth dockertypes.AuthConfig, response *dockertypes.AuthResponse) (remove bool, err error) Attach(container string, tty bool, stdin io.ReadCloser, stdout, stderr io.Writer) error CreateExec(containerId string, command []byte, tty bool) (string, error) StartExec(containerId, execId string, tty bool, stdin io.ReadCloser, stdout, stderr io.Writer) error WinResize(id, tag string, height, width int) error List(item, pod, vm string, aux bool) (*engine.Env, error) GetContainerInfo(container string) (*types.ContainerInfo, error) GetContainerByPod(podId string) (string, error) GetExitCode(container, tag string) error ContainerLogs(container, since string, timestamp, follow, stdout, stderr bool, tail string) (io.ReadCloser, string, error) KillContainer(container string, sig int) error StopContainer(container string) error GetPodInfo(podName string) (*types.PodInfo, error) CreatePod(spec interface{}) (string, int, error) StartPod(podId, vmId string, attach, tty bool, stdin io.ReadCloser, stdout, stderr io.Writer) (string, error) StopPod(podId, stopVm string) (int, string, error) RmPod(id string) error PausePod(podId string) error UnpausePod(podId string) error KillPod(pod string, sig int) error Build(name string, hasBody bool, body io.Reader) (io.ReadCloser, string, error) Commit(container, repo, author, message string, changes []string, pause bool) (string, error) Load(body io.Reader) (io.ReadCloser, string, error) GetImages(all, quiet bool) (*engine.Env, error) RemoveImage(image string, noprune, force bool) (*engine.Env, error) Pull(image string, authConfig dockertypes.AuthConfig) (io.ReadCloser, string, int, error) Push(tag, repo string, authConfig dockertypes.AuthConfig) (io.ReadCloser, string, int, error) CreateVm(cpu, mem int, async bool) (id string, err error) RmVm(vm string) (err error) Info() (*engine.Env, error) }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AuthHeader ¶
func (*Client) ContainerLogs ¶
func (*Client) CreateContainer ¶ added in v0.6.2
func (*Client) CreateExec ¶ added in v0.6.2
func (*Client) GetContainerByPod ¶
func (*Client) GetContainerInfo ¶
func (cli *Client) GetContainerInfo(container string) (*types.ContainerInfo, error)
func (*Client) GetExitCode ¶
func (*Client) HTTPClient ¶
func (*Client) Login ¶
func (cli *Client) Login(auth types.AuthConfig, response *types.AuthResponse) (remove bool, err error)
func (*Client) Pull ¶
func (cli *Client) Pull(image string, authConfig types.AuthConfig) (io.ReadCloser, string, int, error)
func (*Client) Push ¶
func (cli *Client) Push(tag, repo string, authConfig types.AuthConfig) (io.ReadCloser, string, int, error)
func (*Client) RemoveImage ¶
func (*Client) StopContainer ¶ added in v0.6.2
func (*Client) UnpausePod ¶
type StatusError ¶
An StatusError reports an unsuccessful exit by a command.
func (StatusError) Error ¶
func (e StatusError) Error() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.